Re: BBC TV 4 - Hawkwind: Do not panic



Woody <usenet@xxxxxxxxxxxxxx> wrote:

Rowland McDonnell <real-address-in-sig@xxxxxxxxxxxxxxx> wrote:

[snip]

Here's a question: let's say I'm Web browsing. My Web browser sends a
request for a Web page over port 80 to a server. Got that - but what'
the mechanism for ensuring that the data sent back from the Web server
to the originally requesting Web browser goes to the right place?

Obviously there's an IP address to send it to the right device on the
network (with NAT getting involved and so on if needful) - but how does
the OS at the browser end sort things out?

In exactly the same way as it went out.

Umm. But the way it went out was sending out a request for data via a
port on a server. `The same way it went out' implies to me that the
server then sends a similar request to the client, on a `A.N. Other'
socket, and that's just bollocks and gibberish, innit?

A TCP header consists of a source port and a destination port (and some
other flags and counters to do with ensuring that data hasn't been
lost). The answer goes to the port where the question came from.

Aha! Cunning! Righto. The source port - is that, as Jim suggested,
`just some arbitrary bignum', or what?

The operating system on the browsers machine keeps a routing table which
makes an entry that the web browser sent a request out on a certain
port, to a destination, so an answer from that destination goes back to
the web browser.

Gotcha.

Like everything though, this is a simplistic overview,

Well, yeah, but it's the basic principles I'm trying to get the hang of.
Seems to do the job - at least, I think I'm understanding it well enough
to be getting on with, so that'll do.

and there is a
lot going on behind the scenes because it is on a TCP stream connection
which has to be set up (which involves more communication between the
source and destination),

I'll leave all that to the machinery ;-)

but the effect is the same either way.

Righto - ta.

Cheers,
Rowland.

--
Remove the animal for email address: rowland.mcdonnell@xxxxxxxxxxxxxxx
Sorry - the spam got to me
http://www.mag-uk.org http://www.bmf.co.uk
UK biker? Join MAG and the BMF and stop the Eurocrats banning biking
.



Relevant Pages

  • Re: No inbound email from external domains -- please help!
    ... Was not particularly pointing at you with the comment about disclosing the info needed, but you would be amazed at what gets XXXXX'd out when people request help in this space. ... except for the error that the tool cannot reach your mail server. ... My guess is that your router took a hit. ... verify that the wan facing nic and the inside port on the router are still in the same subnet. ...
    (microsoft.public.windows.server.sbs)
  • Re: iptables newbie question
    ... so it's not a dedicated server. ... > merely want to limit connections on that port ONLY to the e-mail server ... do you want to be able to establish connections out to ... The same sort of thing happens for any request you make - dns, ntp, web, ...
    (comp.os.linux.security)
  • Re: IIS 6 Ports Stop Responding
    ... or failed request), then the problem is not likely an IIS issue since the ... The fact that a port is listening on a server does NOT mean it is remotely ... the client and server can certainly alter behavior. ...
    (microsoft.public.inetserver.iis)
  • Using HTTP 304 code
    ... I'm trying to make a web browser in vb6. ... Can anyone tell me what request is sent by ... The 'if-modified-since' shows the date of the file on the server. ... Therefore my cache system is not working ...
    (microsoft.public.vb.general.discussion)
  • Re: BBC TV 4 - Hawkwind: Do not panic
    ... request for a Web page over port 80 to a server. ... makes an entry that the web browser sent a request out on a certain ...
    (uk.comp.sys.mac)