30 likes | 149 Vues
This discussion explores the fundamentals of sockets and ports in network communication, emphasizing their roles within the server architecture. We delve into examples, including multiple sockets for a single port and the importance of client host addresses in packet forwarding. The concept of one-to-one mapping between sockets and ports in clients is also examined, alongside the significance of the four tuples for effective communication in various applications such as web servers and mail servers. Key insights are drawn from case studies featuring different servers and their corresponding sockets.
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