TCP/IP Networking Review Covered Subjects: Packet Switched Network Structure Issues of PSNs Ports & IP Numbers Delivery Services Domain Name Servers Client Server Programming
Packet Switched Network Packet switched network ◦ means that data is carried in discrete certain- sized packets ◦ Analogy: Postal service IP Network A B D C
Issues 1. Addressing ◦ Unique address for every host (IPv4 or IPv6 address) 2. Packet size ◦ Max size = = bytes 3. Packet forwarding ◦ How to deliver the packet to the destination? ◦ Simply give the packet to the default router
Analogy Is this how you send your letters to your friends? What is missing on the address parts? ◦ The names of the sender & receiver. ◦ It is the people (applications) that communicate. From: Bob To: Alice I will write home everyday. Love. Bob I will write home everyday. Love. Bob
Ports & IPs IP Network AB Bob Alice From: A To: B Port # IP Address
What is next? How do you want the packet delivered? Do you want the ACK of delivery? ◦ reliable delivery or not Delivery services: 1. Best effort (unreliable) UDP 2. Reliable TCP UDP: connectionless, unreliable, unordered, datagram services TCP: connection-oriented, reliable, ordered, byte-stream
IP stack & interaction Socket Layer UDP (32-bit) (128-bit) IPv4 IPv6 TCP ports sockets IP Network AB Browser Web Server designated port
Domain Name Server How do you identify the server? DNS resolver IP address What about port #? ◦ designated port 80 – web server port 21 – FTP servers port 23 for Telnet ….
Next question Who initiates a transaction? ◦ Browser -- called the client Client is the active entity that initiates the transaction/contact Server is the passive entity that waits for requests from clients & sends replies in response. This is why we call this the «client & server» programming.