Eric Klavins will describe this in some detail in his lecture on Friday, 25 October. You can a high level view of how the Internet works (including routers at HowStuffWorks.com:
For a more detailed description (probably more than you would ever want to know), you can also look at some of the papers by Steven Low, a professor in CS and EE at Caltech whose research area is congestion control for the Internet.