Socket Programming Part 1 ZhuZhu 07302010096@fudan.edu.cn Reference: Daniel Spangenberger 15-441 Computer Networks, Fall 2007 PPT-4 Socket Programming
Zhu Zhu 07302010096@fudan.edu.cn Reference: Daniel Spangenberger 15-441 Computer Networks, Fall 2007 PPT-4 Socket Programming
Why Do I Want Networking? Goal of Networking: Communication Share data Pass Messages Say I want to talk to a friend in Singapore How can i do this? What applications and services must I use Where can I access them? How will the data get there? Will it be reliable?
Goal of Networking: Communication Share data Pass Messages Say I want to talk to a friend in Singapore… How can I do this? What applications and services must I use? Where can I access them? How will the data get there? Will it be reliable?
Lecture Today. o Motivations for sockets o What's in a socket? o Working with Sockets Concurrent Network Applications
Motivations for Sockets What’s in a Socket? Working with Sockets Concurrent Network Applications
Layered Commuication Application Application Application Presentation Presentation End-to-end Transparency Session Session CPI Transport UDP Transport Network P Network Network Data Link 8023 Data Link WiFi Data Link sica Physical Physical Core Network
Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical Network Data Link Physical Core Network End-to-end Transparency Application IP IP TCP/ UDP 802.3 WiFi
What's really going on.. Lets consider project one. Client(mIRO) (IRO 128.2194242:6262 TCP 128.2237.25:6667 Which Is IP Packet IP Packet IP Packet IP Packet 1 # Which Is Ethernet Ethernet Ethe Ethe Frame #1 Frame #2 Frame Frame#4
Let’s consider project one… Client (mIRC) 128.2.194.242:6262 Server (IRC) 128.2.237.25:6667 TCP IP Packet #1 IP Packet #2 IP Packet #3 IP Packet #4 Ethernet Frame #1 Ethernet Frame #2 Ethernet Frame #3 Ethernet Frame #4 Which Is also… Which Is also…