What Happens When You Visit An Internet Website?

Time For Some Alphabet Soup

Whenever you type an address into your web browser, or click on a link in a web page, you are making a request for a certain document. Handled by the Hyper Text Transfer Protocol (HTTP), your request is sent over the Internet to the server that holds the document you want. Assuming all goes well, the server will respond by sending the document, usually a web page consisting of text and graphics.

Exactly what is HTTP? It is part of the Internet Protocol (IP) suite, and is used by a "client," such as a web browser, to establish a connection with the server that hosts a particular website. The server monitors TCP port 80 as it waits for incoming requests.

Connections on the Internet that allow 2 computers to exchange data are created by the Transmission Control Protocol (TCP). TCP is equipped to identify the requesting computer, and to properly transmit data to its destination.

Server To Web Browser -- Behind The Scenes

Several TCP ports are available with standardized uses. For example, TCP Port 21 is usually reserved for FTP (File Transfer Protocol) for uploading and downloading files. Port 80 is usually used for HTTP.

If the server receives a request string on TCP port 80 in the form of GET / HTTP/1.1 it will send a response code, depending on whether the requested web page is available or not. A typical request will look like this:

GET /faq.html HTTP/1.1
Host: http://www.mywebsite.com

This is a request for the page "faq" on the host site "mywebsite". The "host" must be specified to distinguish between websites that are hosted on shared servers. If faq.html is available, the server will respond something like:

HTTP/1.1 200 OK
Date: Mon, 12 October 2005 22:38:34 GMT
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
.. followed by the actual web page.

How Data Gets Where It's Going

The first line above, HTTP/1.1 200 OK, means that the requested web page is available. Other codes may also be returned. For example, the code 404 means the server cannot find the requested page.

When found, the web page is sent via TCP as a series of data packets, each with a header that specifies its destination and its order in the data stream. The various packets can take different paths to reach their destination.

Each is sent through a router, which polls other routers close by. If a connection with the first router is unavailable, the data will be sent through another one. This allows the data to reach its destination as quickly as possible.

What Happens When It Gets There

When the web browser receives the data, it sends back an acknowledgement. This insures that all the packets have been received within a certain time. If not, they will be re-transmitted by the server. TCP also checks to be sure the data is undamaged.

The data is then reassembled in the correct order, thanks to the sequence number of each data packet.

And Presto! The web page appears on your computer screen, usually in a few seconds.

Other articles by this author »
About Ron King

Copyright 2005 Ron King. This article may be reprinted if the resource box is left intact and the links live.

Visit http://www.adventhosting.com to learn more. Ron King is a full-time researcher, writer, and web developer, visit his website at http://www.ronxking.com


And here is another random article you might be interested in...

Forex Trading: The Perfect Forex Trading System

Trading the Forex market has became very popular in the last few years. But how difficult is it to achieve success in the Forex trading arena? Or let me rephrase this question, how many traders achieve consistent profitable results trading the Forex market? Unfortunately very few, only 5% of traders achieve this goal. One of the main reasons of this is because Forex traders focus in the wrong information to make their trading decisions and totally forget about the most important factor: Price behavior.

Most Forex trading systems are made off technical indicators (a moving average (MA) crossover, overbought/oversold conditions in an oscillator, etc.) But what are technical indicators? They are just a series of data points plotted in a chart; these points are derived from a mathematical formula applied to the price of any given currency pair. In other words, it is a chart of price plotted in a different way that helps us see other aspects of price.

There is an important implication on this definition of technical indicators. The fact that the readings obtained from them are based on price action. Take for instance a long MA crossover signal, the price has gone up enough to make the short period MA crossover the long period MA generating a long signal. Most traders see it as "the MA crossover made the price go up," but it happened the other way around, the MA crossover signal occurred because the price went up. Where I'm trying to get here is that at the end, price behavior dictates how an indicator will act, and this should be taken into consideration on any trading decision made.

Trading decisions based on technical indicators without taking price action into consideration will give us less accurate results. For example, again a long signal generated by a MA crossover as the market approaches an important resistance level. If the price suddenly starts to bounce back off that important level there is no point on taking this signal, price action is telling us the market doesn't want to go up. Most of the time, under this circumstances, the market will continue to fall down, disregarding the MA crossover.

Don't get me wrong here, technical indicators are a very important aspect of trading. They help us see certain conditions that are otherwise difficult to see by watching pure price action. But when it comes to pull the trigger, price action incorporation into our Forex trading system will definitely put the odds in our favor, it will generate higher probability trades.

So, how to create a perfect Forex trading system?

First of all, you need to make sure your trading system fits your trading personality; otherwise you will find it hard to follow it. Every trader has different needs and goals, thus there is no system that perfectly fits all traders. You need to make your own research on various trading styles and technical indicators until you find a concept that perfectly works for you. Make sure you know the nature of whatever technical indicator used.

Secondly, incorporate price action into your system. So you only take long signals if the price behavior tells you the market wants to go up, and short signals if the market gives you indication that it will go down.

Third, and most importantly, you need to have the discipline to follow your Forex trading system rigorously. Try it first on a demo account, then move on to a small account and finally when feeling comfortably and being consistent profitable apply your system in a regular account.

Other articles by this author »
About Raul Lopez

Raul Lopez is a full time Forex trader and founder of www.straightforex.com a high quality Forex training company.