Discussion Section Week 3 EE122 Introduction to Communication Networks Fall 2006 Sockets and Ports Chicken 3 4 5 6 Web Server sock1 OS port80 sock3 sock4 sock5 Mail Server sock2 sock6 port25 In server there can be multiple sockets for one port Socket 1 and 2 do not have a corresponding client It only accepts incoming connections Host 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 tuples In client there is 1 to 1 between socket and port Cow 7 7 7 7 OS 2005 8006 Explorer sock11 Firefox sock12 Dog 9 8 7 6 OS 6001 3500 Explorer sock13 Outlook sock14 1 select Monitor read of 3 inputs stdio keyboard socket 1 X socket 2 2
View Full Document