Couple of questions

Couple of questions

par Jacopo Ferro,
Nombre de réponses : 1

- (1) Does a web server know/can distinguish the end client who's asking through a proxy? 

- (2) What's the relationship between port number and sockets? What are the standard port numbers that we should know? Other key info? (midterm 2016 ex1.7 and others)

En réponse à Jacopo Ferro

Re: Couple of questions

par Katerina Argyraki,

(1) Based on what we have discussed in class, no, an origin web server cannot distinguish the web client that is asking for something through a proxy web server. Relevant thought: a proxy web server may serve a cached web object to multiple web clients that ask for it; so, it does not make sense to tell the origin web server which particular web client is asking.

(2) A socket is a data structure that "lives" in the transport layer. A port number is one piece of state (among others) that is associated with a socket. The standard port numbers we have discussed in class are for the web and for DNS. But you don't even need to remember those by heart. E.g., if you don't remember that the port number for the web is 80, write "the standard port number for the web." All I want is that you realize that there exist standard port numbers per protocol.