[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Diffserv:default code point for undefined flows
I think you can add one entry to the policy table, with source/destination
Node set to ANY_HOST and policer set to your-new-policy. Then, add an
entry to the policer table describing the downgrade code point.
Or, if you want to hack the code, you can add something like
add-default-policy-entry, etc.
Hope it helps,
-chen xuan
On Tue, 19 Jun 2001, Anurag Goel wrote:
> Hi all
> I was going through the ns diffserv code, in
> particular dsPolicy.cc, and I am referring to the code
> below:
>
> **************************************************
> policyTableEntry*
> PolicyClassifier::getPolicyTableEntry(nsaddr_t source,
> nsaddr_t dest) {
> for (int i = 0; i <= policyTableSize; i++) {
> if ((policyTable[i].sourceNode == source) ||
> (policyTable[i].sourceNode == ANY_HOST)) {
> if ((policyTable[i].destNode == dest) ||
> (policyTable[i].destNode == ANY_HOST))
> return(&policyTable[i]);
> }
> }
>
> // !!! Could make a default code point for undefined
> flows:
>
> printf("ERROR: No Policy Table entry found for
> Source %d-Destination %d.\n", source, dest);
> printPolicyTable();
> return(NULL);
> }
> ****************************************************
>
> Has anyone tried to set default code points for
> undefined flows? Or any ideas for how to go about it?
> If yes, then it would be a big help if you could share
> them, because I want the DV routing protocol to work
> with Diffserv, and the initial packet exchanges (for
> gaining routing information) are making it very
> difficult for me to do so, unless I define policies
> for all source-destination pairs.
>
> Anurag
>
>
> __________________________________________________
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/
>
--
Xuan Chen
USC/ISI