Flux rss

Routing over the Internet

Routers

Routers are devices which make it possible to "choose" the path that datagrams will take to arrive at the destination.
They are machines with several network interface cards each one of which is linked to a different network. So, in the simplest configuration, the router only has to "look at" what network a computer is located on to send datagrams to it from the originator.

However, on the Internet the schema is much more complicated for the following reasons:

  • The number of networks to which a router is connected is generally large
  • The networks to which the router is linked can be linked to other networks that the router cannot see directly

So, routers work using routing tables and protocols, according to the following model:

  • The router receives a frame from a machine connected to one of the networks it is attached to
  • Datagrams are sent on the IP layer
  • The router looks at the datagram's header
  • If the destination IP address belongs to one of the networks to which one of the router interfaces is attached, the information must be sent at layer 4 after the IP header has been unencapsulated (removed)
  • If the destination IP address is part of a different network, the router consults its routing table, a table which establishes the path to take for a given address.
  • The router sends the datagram using the network interface card linked to the network on which the router decides to send the packet.
So, there are two scenarios, either the originator and recipient belong to the same network in which case we talk about direct delivery, or there is at least one router between the originator and recipient, in which case we talk about indirect delivery.

In the case of indirect delivery, the role of the router and in particular that of the routing table is very important. So, the operation of a router is determined by the way in which this routing table is created.

  • If the routing table is entered manually by the administrator, it is a static routing (suitable for small networks)
  • If the router builds its own routing tables using information that it receives (via the routing protocols), it is a dynamic routing

The routing table

The routing table is a table of connections between the target machine address and the node according to which the router must deliver the message. In reality it is enough that the message is delivered to the network that contains the machine, it is therefore not necessary to store the complete IP address of the machine: only the network identifier of the IP address (i.e. the network ID) needs to be stored.

The routing table is therefore a table which contains address pairs:

Using this table, the router knowing the address of the recipient encapsulated in the message, will be able to find out what interface to send the message on (this comes back to knowing which network interface card to use), and to which router, directly accessible on the network to which this card is connected, to send the datagram.
This mechanism consisting of only knowing the address of the next link leading to the destination is called next-hop routing.

However, it may be that the recipient belongs to a non referenced network in the routing table. In this case, the router uses a default router (also called the default gateway).

Here, in a simplified way is what a routing table could look like:

The message is therefore sent from router to router by successive hops, until the recipient belongs to a network directly connected to a router. This then sends the message directly to the target machine...

In the case of static routing, it is the administrator who updates the routing table.
In the case of dynamic routing a protocol called a routing protocol enables the automatic updating of the table so that it contains the optimal route at any time.

Routing protocols

The internet is a collection of connected networks. As a result, all routers do not work in the same way, this depends on the type of network upon which they are found.

In fact, there are different levels of routers which operate with different protocols:

  • Node routers are the main routers because they link the different networks
  • External routers allow a connection to autonomous networks between them. They work with a protocol called EGP (Exterior Gateway Protocol) which develops gradually by keeping the same name
  • Internal routers allow routing of information inside an autonomous network. They exchange information using protocols called IGP (Interior Gateway Protocol), such as RIP and OSPF

The RIP protocol

RIP means Routing Information Protocol. It is a Vector Distance type protocol, i.e. each router communicates to the other routers the distance which separates them (the number of hops which separates them). So, when a router receives one of these messages it increments this distance by 1 and sends the message to directly accessible routers. In this way, the routers can then keep the optimal route of a message by storing the next router address in the routing table in such a way that the number of hops to reach a network is kept to a minimum. However this protocol only takes into account the distance between two machines in terms of hops and does not consider the state of the connection so as to select the best possible bandwidth.

The OSPF protocol

OSPF (Open Shortest Path First) is more effective than RIP and is therefore beginning to gradually replace it. It is a protocol route-link type protocol; this means that contrary to RIP, this protocol does not send the number of hops which separates them to the adjacent routers, but the state of the connection which separates them. In this way, each router is capable of sending a card of the state of the network and can as a result choose the most appropriate route for a given message at any time.

In addition, this protocol avoids intermediary routers having to increment the number of hops, which results in much less extensive information making it possible to have more useful bandwidth than with RIP.

This document entitled « Routing over the Internet » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Résultats pour Routing over the Internet

Static routes over dynamic routing Hello, Which is not one of the advantages of using static routes over dynamic routing ? en.kioskea.net/forum/affich-2889-static-routes-over-dynamic-routing
Internet - Messaging protocols (SMTP,POP,IMAP) E-mail is considered as being the most widely used service on the Internet. So the TCP/IP protocol suite offers a range of protocols allowing the easy management of email routing over the network. The SMTP protocol (Simple Mail Transfer Protocol) is... en.kioskea.net/internet/smtp.php3
Dell integrated ethernet port lags Hello, My Dell has a wireless PCI network card and also an integrated (built in non-PCI) ethernet port. Both will definitely connect to the router and internet. The problem is that the connection speed of the ethernet port is not enough to finish... en.kioskea.net/forum/affich-4997-dell-integrated-ethernet-port-lags

Résultats pour Routing over the Internet

Creating manually your ADSL connectionCreating manually your ADSL connection. Go to the new network setup wizard. Setting up your connection: The interfaces of connection utility programs provided by most Internet Service Provider are sometimes hard to configure and to... en.kioskea.net/faq/sujet-554-creating-manually-your-adsl-connection

Résultats pour Routing over the Internet

I can connect to the internet but not routerHello, I have a netgear wireless router CG814WG that is hardwired to my PC. I am connected to the internet and can surf to my hearts content. The problem arises when i try to connect to my router so i can set up the wireless network. every time i go... en.kioskea.net/forum/affich-13043-i-can-connect-to-the-internet-but-not-router
Router To Router Config (linksys wrt300n)Hello, I had 2 Linksys WRT300n router, my problem is how to connect thoese 2 router to each other so that the Internet connection on Roater A will be shared in Router B. although WRT300n has a wireless connectivity, my other WRT300n is beyond the... en.kioskea.net/forum/affich-9549-router-to-router-config-linksys-wrt300n
Router disconects when phone gets usedHello, when i use my phone my sky router box turns off and i lose my internet connection i have phoned sky about this they say its my lap top but it has a new wireless card in and i know its the box as the lights on the frount go from yellow which is... en.kioskea.net/forum/affich-19259-router-disconects-when-phone-gets-used

Résultats pour Routing over the Internet

Download WebVideoCapWhen you browse over Internet, you have the possibility of looking at videos. Sometimes you would definitely like to record this last video on your hard disc to be able to view it except connection. WebVideoCap is an application allowing to capture... en.kioskea.net/telecharger/telecharger-661-webvideocap

Résultats pour Routing over the Internet

Internet flaw a boon to hackersA skull-and-crossbones symbol is placed over a computer keyboard at a 'hacker academy' in Paris, France. Computer security professionals crammed into a Las Vegas ballroom on Wednesday for the first public briefing on an Internet flaw that... en.kioskea.net/actualites/internet-flaw-a-boon-to-hackers-10592-actualite.php3
Sweden could force Internet firms to name file sharers: reportA student downloads music from a file sharing website in 2001. Sweden should require Internet providers to hand over information identifying people involved in illegal file sharing, according to two government ministers. Sweden should require... en.kioskea.net/actualites/sweden-could-force-internet-firms-to-name-file-sharers-report-10208-actualite.php3
Hackers get hold of critical Internet flawA skull-and-crossbones symbol is placed over a computer keyboard at a 'hacker academy' in Paris, France. Internet security researchers on Thursday warned that hackers have caught on to a "critical" flaw that lets them control traffic on the... en.kioskea.net/actualites/hackers-get-hold-of-critical-internet-flaw-10566-actualite.php3

Résultats pour Routing over the Internet

Internet - IP Addresses Computers communicate over the Internet using the IP protocol (Internet Protocol), which uses numerical addresses, called IP addresses, made up of four whole numbers (4 bytes) between 0 and 255 and written in the format xxx.xxx.xxx.xxx. For example,... en.kioskea.net/internet/ip.php3
Network equipment - Router A router is a device for connecting computer networks to one another, used for handling the routing of packets between two networks, or to determine the path that a data packet shall take. When a user enters a URL, the Web client (the browser)... en.kioskea.net/lan/routeurs.php3
Network test Before doing anything else, you are advised to check the computer's IP configuration. Windows systems offer a command-line tool, called ipconfig, that lets you find out your computer's IP configuration. The output of this command gives the IP... en.kioskea.net/configuration-reseau/tests-diagnostics-reseau.php3