Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Julian Anastasov <ja@ssi.bg>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] the routing cache and route selection; is this correct?
Date: Tue, 29 Oct 2002 10:15:47 +0000	[thread overview]
Message-ID: <marc-lartc-103588674118993@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103586295601326@msgid-missing>


	Hello,

On Mon, 28 Oct 2002, Martin A. Brown wrote:

>   - If there is no routing cache entry, we continue with route selection
>     by consulting the RPDB and routing tables.
>
>     1 start traversing the RPDB at the highest priority
>     2 keep traversing the RPDB for the next matching entry

	Lookup the list with ip rules and match by using the following
keys:

- dest
- src
- tos (optional)
- fwmark (optional)
- iif (optional)

>     3 when a match is found, try to find a match for the destination
>       in the designated table

	In the designated table lookup for routes by using the following
keys:

- dest
- tos
- scope
- oif (optional)

> So, my question:
>
> Is the routing cache actually keyed on the above items?  If I understand
> Arthur's post of last Friday properly

	Yes, you listed the cache keys correctly.

> (http://mailman.ds9a.nl/pipermail/lartc/2002q4/005641.html), he's
> suggesting that the keys in the routing cache are src, dest, and tos.

> My empirical evidence: I know I'm using fwmark routing on a particular
> host, and packets are transmitted out the "correct" interfaces when I
> generate traffic for all of the fwmark'd routes.  What confuses me is the
> output of "ip route show cache ip.ad.dr.es".  There is no reference
> whatsoever to fwmark in this output.

	May be for compatibility reasons the fwmark is not
listed in the route cache entries.

> Can somebody confirm (as the evidence suggests) that the routing cache is
> keyed on the above five elements?

	Yes, this is my understanding reading the sources

> -Martin

Regards

--
Julian Anastasov <ja@ssi.bg>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2002-10-29 10:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29  3:40 [LARTC] the routing cache and route selection; is this correct? Martin A. Brown
2002-10-29 10:15 ` Julian Anastasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-103588674118993@msgid-missing \
    --to=ja@ssi.bg \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox