77
Chapter 1: Introducing Networks and Protocols

Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

  • Upload
    others

  • View
    32

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

Chapter 1: Introducing Networks andProtocols

Page 2: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 2 ]

Page 3: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 3 ]

Page 4: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 4 ]

Page 5: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 5 ]

Page 6: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 6 ]

Page 7: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 7 ]

Page 8: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 8 ]

Page 9: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 9 ]

Page 10: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 10 ]

Page 11: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 11 ]

Page 12: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 12 ]

Chapter 2: Getting to Grips with Socket APIs

Page 13: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 13 ]

Page 14: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 14 ]

Page 15: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 15 ]

Page 16: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 16 ]

Page 17: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 17 ]

Chapter 3: An In-Depth Overview of TCPConnections

Page 18: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 18 ]

Page 19: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 19 ]

Page 20: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 20 ]

Page 21: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 21 ]

Page 22: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 22 ]

Chapter 4: Establishing UDP Connections

Page 23: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 23 ]

Page 24: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 24 ]

Page 25: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 25 ]

Page 26: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 26 ]

Page 27: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 27 ]

Page 28: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 28 ]

Chapter 5: Hostname Resolution and DNS

Page 29: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 29 ]

Page 30: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 30 ]

Page 31: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 31 ]

Page 32: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 32 ]

Page 33: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 33 ]

Page 34: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 34 ]

Page 35: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 35 ]

Chapter 6: Building a Simple Web Client

Page 36: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 36 ]

Page 37: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 37 ]

Page 38: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 38 ]

Chapter 7: Building a Simple Web Server

Page 39: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 39 ]

Page 40: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 40 ]

Chapter 8: Making Your Program Send Email

Page 41: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 41 ]

Page 42: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 42 ]

Page 43: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 43 ]

Page 44: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 44 ]

Chapter 9: Loading Secure Web Pages withHTTPS and OpenSSL

Page 45: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 45 ]

Page 46: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 46 ]

Page 47: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 47 ]

Page 48: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 48 ]

Chapter 10: Implementing a Secure WebServer

Page 49: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 49 ]

Page 50: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 50 ]

Page 51: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 51 ]

Page 52: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 52 ]

Page 53: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 53 ]

Page 54: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 54 ]

Chapter 11: Establishing SSH Connectionswith libssh

Page 55: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 55 ]

Page 56: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 56 ]

Page 57: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 57 ]

Chapter 12: Network Monitoring andSecurity

Page 58: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 58 ]

Page 59: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 59 ]

Page 60: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 60 ]

Page 61: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 61 ]

Page 62: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 62 ]

Page 63: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 63 ]

Page 64: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 64 ]

Chapter 13: Socket Programming Tips andPitfalls

Page 65: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 65 ]

Page 66: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 66 ]

Page 67: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 67 ]

Page 68: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 68 ]

Page 69: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 69 ]

Page 70: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 70 ]

Page 71: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 71 ]

Page 72: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 72 ]

Page 73: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 73 ]

Chapter 14: Web Programming for theInternet of Things

Page 74: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 74 ]

Page 75: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 75 ]

Page 76: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 76 ]

Page 77: Chapter 1: Introducing Networks and Protocols€¦ · S ping -s leee example.com -1 -2 ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= ttl= 128 128 128 128 128 128 128 128 128 time= time=

[ 77 ]