Index: [Article Count Order] [Thread]

Date: Mon, 18 Jun 2007 07:49:10 -0700 (PDT)
From: Mark Atkinson <m.atkinson@f5.com>
Subject: [users:00341] Re: Error in Check Sum which is in a received packet is invalid.
To: users@tahi.org
Message-Id: <20070618074131.M45829@moby.pdsea.f5net.com>
In-Reply-To: <515c64960706180412v2f9d0c0cl694cd4eb6ef59090@mail.gmail.com>
References: <515c64960706180412v2f9d0c0cl694cd4eb6ef59090@mail.gmail.com>
X-Mail-Count: 00341

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Mon, 18 Jun 2007, Channa wrote:
> Hi,
> I am testing IPv6 stack when i run the test suite the following test case is
> failing.
> I have attached the test case report. Can anyone tell me what could be the
> reason for failure?

If I remember right, this particular test may not work if the NUT and TN 
attached to a switch, since the switch will 'learn' the mac address of the 
faked hardware address in the first packet sent out.  This test would be 
better if the checksum was actually calculated externally instead of 
relying on the engine to do it when generating a packet.    That would get 
rid of the need to do an actual fake send.   This is really the only test 
in the entire suite that may not work attached to a switch.

That said, your results show ipv4 traffic on the wire, you should really 
perform these tests directly connected or on a 'quiet' segment where no 
other traffic can interfere in the results.

> IPv6 Conformance Test Report
>
> Test Information
>
> Title  Echo_Checksum
> CommandLine  ./Echo_Checksum.seq -p Echo_Checksum.def -v
> TestVersion  REL_2_1_1
> ToolVersion  REL_3_0_11
> Start  2007/06/18 16:22:51
> Tn  /usr/local/v6eval//etc//tn.def
> Nu  /usr/local/v6eval//etc//nut.def
> Pkt  Echo_Checksum.def
> System  manual
> TargetName  Kernel 2.6.9-1.667
> HostName  target.tahi.org
> Type  host
>
>
> Test Sequence Execution Log
>
> 16:22:51  Start
>
>
> Initialization
>
> 16:22:51  Start Capturing Packets (Link0)
> Start Capturing Packets (Link0)
>
>
>
> This is very tricky, but send echo-reply (src = NUT/dst = TN) to get valid
> checksum value.
>
>
> 16:22:52
> vSend(Link0,echo_reply_link_local)
> send echo_reply_link_local
>
> send echo_reply_link_local
>
>
> 16:22:52  Clear Captured Packets (Link0)
> Clear Captured Packets (Link0)
>
> Test
>
> 16:22:52
> vSend(Link0,echo_request)
> Send Echo Request (Link-local address)
>
> Send Echo Request (Link-local address)
>
> 16:22:53
> vRecv(Link0,echo_reply ns_local ns_local_sll) timeout:5 cntLimit:0
> seektime:0
>
> recv unexpect packet at 16:22:52
>
> vRecv() return status=1
>
> TN can not receive Echo Reply from NUT.
> FAIL
>
> 16:22:59  End
>
> Packet Reverse Log
>
> send echo_reply_link_local at 16:22:52
> Frame_Ether                     (length:68)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = 0:0:0:0:1:0
> | | SourceAddress                    = 0:60:a:0:4f:86
> | | Type                             = 34525
> | Packet_IPv6                     (length:54)
> | | Hdr_IPv6                        (length:40)
> | | | Version                          = 6
> | | | TrafficClass                     = 0
> | | | FlowLabel                        = 0
> | | | PayloadLength                    = 14
> | | | NextHeader                       = 58
> | | | HopLimit                         = 64
> | | | SourceAddress                    = fe80::260:aff:fe00:4f86
> | | | DestinationAddress               = fe80::200:ff:fe00:100
> | | ICMPv6_EchoReply                (length:14)
> | | | Type                             = 129
> | | | Code                             = 0
> | | | Checksum                         = 9423 calc(9423)
> | | | Identifier                       = 0
> | | | SequenceNumber                   = 0
> | | | Payload                         (length:6)
> | | | | data                             = ffffffff ffff
> Send Echo Request (Link-local address) at 16:22:52
> Frame_Ether                     (length:68)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = 0:60:a:0:4f:86
> | | SourceAddress                    = 0:0:0:0:1:0
> | | Type                             = 34525
> | Packet_IPv6                     (length:54)
> | | Hdr_IPv6                        (length:40)
> | | | Version                          = 6
> | | | TrafficClass                     = 0
> | | | FlowLabel                        = 0
> | | | PayloadLength                    = 14
> | | | NextHeader                       = 58
> | | | HopLimit                         = 64
> | | | SourceAddress                    = fe80::200:ff:fe00:100
> | | | DestinationAddress               = fe80::260:aff:fe00:4f86
> | | ICMPv6_EchoRequest              (length:14)
> | | | Type                             = 128
> | | | Code                             = 0
> | | | Checksum                         = 9679 calc(9679)
> | | | Identifier                       = 0
> | | | SequenceNumber                   = 0
> | | | Payload                         (length:6)
> | | | | data                             = ffffffff ffff
> Recv at 16:22:52
> Frame_Ether                     (length:60)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = 0:2:e3:34:62:d7
> | | SourceAddress                    = 0:50:ba:a7:98:81
> | | Type                             = 2048
> | Packet_IPv4                     (length:40)
> | | Hdr_IPv4                        (length:20)
> | | | Version                          = 4
> | | | IHL                              = 5
> | | | TypeOfService                    = 0
> | | | TotalLength                      = 40
> | | | Identifier                       = 5959
> | | | Reserved                         = 0
> | | | DF                               = 1
> | | | MF                               = 0
> | | | FragmentOffset                   = 0
> | | | TTL                              = 128
> | | | Protocol                         = 6
> | | | HeaderChecksum                   = 49070 calc(49070)
> | | | SourceAddress                    = 43.88.102.128
> | | | DestinationAddress               = 43.88.102.170
> | | Upp_TCP                         (length:20)
> | | | Hdr_TCP                         (length:20)
> | | | | SourcePort                       = 3371
> | | | | DestinationPort                  = 22
> | | | | SequenceNumber                   = 1623147229
> | | | | AcknowledgmentNumber             = 2702243603
> | | | | DataOffset                       = 5
> | | | | Reserverd                        = 0
> | | | | URGFlag                          = 0
> | | | | ACKFlag                          = 1
> | | | | PSHFlag                          = 0
> | | | | RSTFlag                          = 0
> | | | | SYNFlag                          = 0
> | | | | FINFlag                          = 0
> | | | | Window                           = 16700
> | | | | Checksum                         = 444 calc(444)
> | | | | UrgentPointer                    = 0
> | | | Payload                         (length:0)
> | | | | data                             =
> | [Needless]                      (length:6)
> | | data                             = 20202020 2020
> ===echo_reply=================================
> ng compare _HETHER_nut2tn.DestinationAddress received:0:2:e3:34:62:d7 =
> 0:0:0:0:1:0
> ng compare _HETHER_nut2tn.SourceAddress received:0:50:ba:a7:98:81 =
> 0:60:a:0:4f:86
> ng compare _HETHER_nut2tn.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> ===ns_local=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:0:2:e3:34:62:d7 =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:50:ba:a7:98:81 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> ===ns_local_sll=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:0:2:e3:34:62:d7 =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:50:ba:a7:98:81 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> Recv at 16:22:52
> Frame_Ether                     (length:106)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = 0:2:e3:34:62:d7
> | | SourceAddress                    = 0:50:ba:a7:98:81
> | | Type                             = 2048
> | Packet_IPv4                     (length:92)
> | | Hdr_IPv4                        (length:20)
> | | | Version                          = 4
> | | | IHL                              = 5
> | | | TypeOfService                    = 0
> | | | TotalLength                      = 92
> | | | Identifier                       = 5960
> | | | Reserved                         = 0
> | | | DF                               = 1
> | | | MF                               = 0
> | | | FragmentOffset                   = 0
> | | | TTL                              = 128
> | | | Protocol                         = 6
> | | | HeaderChecksum                   = 49017 calc(49017)
> | | | SourceAddress                    = 43.88.102.128
> | | | DestinationAddress               = 43.88.102.170
> | | Upp_TCP                         (length:72)
> | | | Hdr_TCP                         (length:20)
> | | | | SourcePort                       = 3371
> | | | | DestinationPort                  = 22
> | | | | SequenceNumber                   = 1623147229
> | | | | AcknowledgmentNumber             = 2702243603
> | | | | DataOffset                       = 5
> | | | | Reserverd                        = 0
> | | | | URGFlag                          = 0
> | | | | ACKFlag                          = 1
> | | | | PSHFlag                          = 1
> | | | | RSTFlag                          = 0
> | | | | SYNFlag                          = 0
> | | | | FINFlag                          = 0
> | | | | Window                           = 16700
> | | | | Checksum                         = 1948 calc(1948)
> | | | | UrgentPointer                    = 0
> | | | Payload                         (length:52)
> | | | | data                             =
> | | | |   4757f742 5b57df53  257fb880 5a7b82aa  a8cde168 ec90abc9  765b13cb
> 660882a8
> | | | |   636a91bb 7fe1c9fe  2fc6e47a b10e413d  dd3b0d41
> ===echo_reply=================================
> ng compare _HETHER_nut2tn.DestinationAddress received:0:2:e3:34:62:d7 =
> 0:0:0:0:1:0
> ng compare _HETHER_nut2tn.SourceAddress received:0:50:ba:a7:98:81 =
> 0:60:a:0:4f:86
> ng compare _HETHER_nut2tn.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> ===ns_local=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:0:2:e3:34:62:d7 =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:50:ba:a7:98:81 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> ===ns_local_sll=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:0:2:e3:34:62:d7 =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:50:ba:a7:98:81 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> Recv at 16:22:52
> Frame_Ether                     (length:154)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = 0:50:ba:a7:98:81
> | | SourceAddress                    = 0:2:e3:34:62:d7
> | | Type                             = 2048
> | Packet_IPv4                     (length:140)
> | | Hdr_IPv4                        (length:20)
> | | | Version                          = 4
> | | | IHL                              = 5
> | | | TypeOfService                    = 16
> | | | TotalLength                      = 140
> | | | Identifier                       = 30197
> | | | Reserved                         = 0
> | | | DF                               = 1
> | | | MF                               = 0
> | | | FragmentOffset                   = 0
> | | | TTL                              = 64
> | | | Protocol                         = 6
> | | | HeaderChecksum                   = 41100 calc(41100)
> | | | SourceAddress                    = 43.88.102.170
> | | | DestinationAddress               = 43.88.102.128
> | | Upp_TCP                         (length:120)
> | | | Hdr_TCP                         (length:20)
> | | | | SourcePort                       = 22
> | | | | DestinationPort                  = 3371
> | | | | SequenceNumber                   = 2702243603
> | | | | AcknowledgmentNumber             = 1623147281
> | | | | DataOffset                       = 5
> | | | | Reserverd                        = 0
> | | | | URGFlag                          = 0
> | | | | ACKFlag                          = 1
> | | | | PSHFlag                          = 1
> | | | | RSTFlag                          = 0
> | | | | SYNFlag                          = 0
> | | | | FINFlag                          = 0
> | | | | Window                           = 11592
> | | | | Checksum                         = 55154 calc(55154)
> | | | | UrgentPointer                    = 0
> | | | Payload                         (length:100)
> | | | | data                             =
> | | | |   2e9c090c bff93879  648246a0 1e7e254f  91d5d4c9 a39b65c3  12e5a685
> e1c8081b
> | | | |   6a09e374 f5ed8fe2  b35d5649 6f0b5524  a7c3ce5d 87122a05  457690f2
> 5beeb262
> | | | |   abab72b1 1306ae37  3d727220 b9a6695f  9ca56e23 276e01c9  c2138daf
> db095aef
> | | | |   90aa6191
> ===echo_reply=================================
> ng compare _HETHER_nut2tn.DestinationAddress received:0:50:ba:a7:98:81 =
> 0:0:0:0:1:0
> ng compare _HETHER_nut2tn.SourceAddress received:0:2:e3:34:62:d7 =
> 0:60:a:0:4f:86
> ng compare _HETHER_nut2tn.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> ===ns_local=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:0:50:ba:a7:98:81
> =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:2:e3:34:62:d7 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> ===ns_local_sll=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:0:50:ba:a7:98:81
> =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:2:e3:34:62:d7 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2048 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_IPv4
> Recv at 16:22:52
> Frame_Ether                     (length:60)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = ff:ff:ff:ff:ff:ff
> | | SourceAddress                    = 0:d:9d:98:e8:70
> | | Type                             = 2054
> | Packet_ARP                      (length:28)
> | | Hdr_ARP                         (length:28)
> | | | Hardware                         = 1
> | | | Protocol                         = 2048
> | | | HLEN                             = 6
> | | | PLEN                             = 4
> | | | Operation                        = 1
> | | | SenderHAddr                      = 0:d:9d:98:e8:70
> | | | SenderPAddr                      = 43.88.102.35
> | | | TargetHAddr                      = 0:0:0:0:0:0
> | | | TargetPAddr                      = 43.88.102.18
> | [Needless]                      (length:18)
> | | data                             =
> | |   00000000 00000000  00000000 00000000  0000
> ===echo_reply=================================
> ng compare _HETHER_nut2tn.DestinationAddress received:ff:ff:ff:ff:ff:ff =
> 0:0:0:0:1:0
> ng compare _HETHER_nut2tn.SourceAddress received:0:d:9d:98:e8:70 =
> 0:60:a:0:4f:86
> ng compare _HETHER_nut2tn.Type received:2054 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_ARP
> ===ns_local=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:ff:ff:ff:ff:ff:ff
> =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:d:9d:98:e8:70 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2054 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_ARP
> ===ns_local_sll=================================
> ng compare HETHER_nut2tn_oneof.DestinationAddress received:ff:ff:ff:ff:ff:ff
> =
> oneof(tnether(),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,v6merge(&quot;3ffe:501:ffff:100::&quot;,64,v6(&quot;::1&quot;)))),v62ethermulti(v6merge(&quot;FF02:0:0:0:0:1:FF00:0000&quot;,104,tnv6())))
> ng compare HETHER_nut2tn_oneof.SourceAddress received:0:d:9d:98:e8:70 =
> 0:60:a:0:4f:86
> ng compare HETHER_nut2tn_oneof.Type received:2054 = 34525
> ng meta Frame_Ether.Packet_IPv6 != Frame_Ether.Packet_ARP
> Recv at 16:22:52
> Frame_Ether                     (length:60)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = ff:ff:ff:ff:ff:ff
> | | SourceAddress                    = 0:50:ba:d8:f8:b4
> | | Type                             = 2054
> | Packet_ARP                      (length:28)
> | | Hdr_ARP                         (length:28)
> | | | Hardware                         = 1
> | | | Protocol                         = 2048
> | | | HLEN                             = 6
> | | | PLEN                             = 4
> | | | Operation                        = 1
> | | | SenderHAddr                      = 0:50:ba:d8:f8:b4
> | | | SenderPAddr                      = 43.88.102.11
> | | | TargetHAddr                      = 0:0:0:0:0:0
> | | | TargetPAddr                      = 43.88.102.84
> | [Needless]                      (length:18)
> | | data                             =
> | |   20202020 20202020  20202020 20202020  2020
>
> Thanks in advance,
>
> Channagoud
>

- ---
Mark Atkinson
m.atkinson@f5.com
(!wired)?(coffee++):(wired);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGdptnrDN5kXnx8yYRAnhFAKCC5FCEy0JkWUhJ32hekuEfDhumFwCePPZg
BYG/JotNjXpZlZtPjB+pcr0=
=aIER
-----END PGP SIGNATURE-----