30 likes | 139 Views
Discussion Section Week 3. EE122: Introduction to Communication Networks Fall 2006. Sockets and Ports. Chicken (3.4.5.6). Cow (7.7.7.7). In server, there can be multiple sockets for one port. Web Server. OS. OS. Explorer. sock11. sock1. port80. 2005.
E N D
Discussion SectionWeek 3 EE122: Introduction to Communication Networks Fall 2006
Sockets and Ports Chicken (3.4.5.6) Cow (7.7.7.7) In server, there can be multiple sockets for one port Web Server OS OS Explorer sock11 sock1 port80 2005 Socket 1 and 2 do not have a corresponding client. It only accepts incoming connections Firefox sock3 8006 sock12 sock4 Host address of client in the packet is also needed for the OS of server to forward the packet to a correct socket, sock5 Dog (9.8.7.6) Mail Server OS Explorer sock2 port25 sock13 6001 and port number of client, too – four tuples sock6 Outlook 3500 sock14 In client, there is 1-to-1 between socket and port
select() Monitor read of 3 inputs