[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unknown-flow error



Huiwen,

	what could possibly be happening is this:
	
	- adresses are stored unencoded inside the classifier
	- but the lookup is done on the encoded adresses
	- so if you want to set a slot for the pair (0,1), you should be setting 
it for the encoded pair (0,256).
	
	The unknown-flow error is raised by HashClassifier::newflow(Packet* p).
	 
> X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
[email protected] using -f
> From: "Huiwen Li" <[email protected]>
> To: "'Nader Salehi'" <[email protected]>
> Cc: "'[email protected]'" <[email protected]>
> Subject: Unknown-flow error
> Date: Tue, 26 Oct 1999 13:52:05 -0700
> MIME-Version: 1.0
> 
> Hi, 
> 
> I am using SrcDest Hash Classifier with one of the nodes in my network
> topology. I am wondering if anyone has experience in it? Currently I could
> see the classifier is set as I want but when $ns run it gave me "unknown
> flow" error. The strange thing is it could identify this flow before but it
> couldn't for the third time. Can anyone please give me any suggestions? The
> following is the error and the debug information I had. By the way, I also
> change the original code of classifier.cc, etc and ns-route.tcl so that when
> it is not the default classifier, the routing algorithm won't have effect on
> the classifier slot table. 
> 
> classifier _o18  (SrcDest Hash Classifier)
>         0 offset
>         0 shift
>         2147483647 mask
>         11 slots
>                 slot 0: _o64      ;#src0->dest0(tcp), flow 0
>                 slot 1: _o118     ;#src1->dest1(tcp), flow 1
>                 slot 2: _o172     ;#src2->dest2(tcp), flow 2
>                 slot 3: _o226     ;#src3->dest3(tcp), flow 3
>                 slot 4: _o280     ;#src4->dest4(tcp), flow 4
>                 slot 5: _o334     ;#src5->dest5(udp), flow 5
>                 slot 6: _o388     ;#src6->dest6(udp), flow 6
>                 slot 7: _o442     ;#src7->dest7(udp), flow 7
>                 slot 8: _o496     ;#src8->dest8(udp), flow 8
>                 slot 9: _o550     ;#src9->dest9(udp), flow 9
>                 slot 10: _o28     ;#ack for TCP flows
>         -1 default
> 
> #following is the value returned by printf("%d %d %d\n", mshift(h->saddr()),
> mshift(h->daddr()), h->flowid()) in get_hash function.
> 
> src dest fid
> 4 6 0
>  7 9 1
>  10 12 2
>  13 15 3
>  16 18 4
>  19 21 5
>  22 24 6
>  25 27 7
>  28 30 8
>  31 33 9
>  19 21 5
>  22 24 6
>  25 27 7
>  28 30 8
>  31 33 9
>  19 21 5
>  -1      ;# return value for lookup(Packet *p)
> 
> ns: _o18 unknown-flow 19 21 5: 
>     (_o18 cmd line 1)
>     invoked from within
> "_o18 cmd unknown-flow 19 21 5"
>     invoked from within
> "catch "$self cmd $args" ret"
>     (procedure "_o18" line 2)
>     (SplitObject unknown line 2)
>     invoked from within
> "_o18 unknown-flow 19 21 5"

Tarik Alj
INRS-Telecommunications
16 place du commerce
Verdun (Ile des Soeurs), Qc, H3E 1H6
Canada
Tel: 514 761 8611
Fax: 514 761 8619