1Discussion SectionWeek 3EE122: Introduction to Communication NetworksFall 2006Sockets and Ports Chicken (3.4.5.6) Cow (7.7.7.7)Dog (9.8.7.6)OS OSOSWeb Serversock1sock3sock4sock5Mail Serversock2sock6port80port252005800660013500ExplorerFirefoxExplorerOutlooksock11sock12sock13sock14Socket 1 and 2 do not have a corresponding client. It only accepts incoming connectionsIn server, there can be multiple sockets for one portHost address of client in the packet is also needed for the OS of server to forward the packet to a correct socket,and port number of client, too – four tuplesIn client, there is 1-to-1 between socket and port2select()socket 2Xsocket 1stdio(keyboard)Monitor read of 3
View Full Document