CHAP login through the iSCSI class

Jun 3, 2011 at 3:09 PM

I am having a hard time figuring out how to start a CHAP session via the discutils.  I can connectto a lun that is set to anonymous so it apparently works there.

 

Ken, you have any snippet to get me started here?

Coordinator
Jun 4, 2011 at 5:53 AM

Hi,

Something like this should work...

Initiator initiator = new DiscUtils.Iscsi.Initiator();
initiator.SetCredentials("user", "password");
....

If that's not working, most likely there's a bug in DiscUtils.

Can you grab a network trace using ethereal and attach the trace to this thread? 

Also, would be useful to know the software / device that is the iSCSI target.

 

Cheers,

Ken

Jun 8, 2011 at 1:41 PM

Sorry for the length of this, but I don't know what all you need.  I had to do it with wireshark.  If this is not what you needed let me know.  The trace is from a Win2k8R1 (uptodate) machine and connecting to a Cybernetics SAN device.  I am not 100% sure on the actual target they use, but I know they use an ubuntu core OS and their own target software.  So that may not make it easy to figure out.

The trace is using the source code in the ISCSI_BROWSE, which goes through each LUN on the SAN,  the trace is of the entire run.  There are two LUNs and the first is anonymous and the second requires a CHAP authentication, which the MS ISCSI initiator does connect into without an issue.  I am using the parameters of "192.168.1.1 -u daniel -pw 0123456701234567 -v"  to exec the ISCSI_BROWSE console.

Since the first anonymous connection is successful, the trace shows that, but its the second LUN (CHAP one) that fails.

Again, let me know if the trace below is not complete.  I have the actual trace file for wireshark if you want, instead of the plain text export.

 

No.     Time        Source                Destination           Protocol Length Info
      1 0.000000    Supermic_bb:a9:5d     Broadcast             ARP      42     Who has 192.168.1.1?  Tell 192.168.1.14

Frame 1: 42 bytes on wire (336 bits), 42 bytes captured (336 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No.     Time        Source                Destination           Protocol Length Info
      2 0.000077    Cynet_00:3f:60     Supermic_bb:a9:5d     ARP      60     192.168.1.1 is at 00:0b:56:00:3f:60

Frame 2: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Address Resolution Protocol (reply)

No.     Time        Source                Destination           Protocol Length Info
      3 0.000090    192.168.1.14          192.168.1.1           TCP      66     57715 > iscsi-target [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1

Frame 3: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 0, Len: 0

No.     Time        Source                Destination           Protocol Length Info
      4 0.000152    192.168.1.1           192.168.1.14          TCP      66     iscsi-target > 57715 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=512

Frame 4: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 0, Ack: 1, Len: 0

No.     Time        Source                Destination           Protocol Length Info
      5 0.000180    192.168.1.14          192.168.1.1           TCP      54     57715 > iscsi-target [ACK] Seq=1 Ack=1 Win=65536 Len=0

Frame 5: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 0

No.     Time        Source                Destination           Protocol Length Info
      6 0.032557    192.168.1.14          192.168.1.1           iSCSI    202    Login Command

Frame 6: 202 bytes on wire (1616 bits), 202 bytes captured (1616 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 148
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
      7 0.032650    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57715 [ACK] Seq=1 Ack=149 Win=7168 Len=0

Frame 7: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 1, Ack: 149, Len: 0

No.     Time        Source                Destination           Protocol Length Info
      8 0.032769    192.168.1.1           192.168.1.14          TCP      102    [TCP segment of a reassembled PDU]

Frame 8: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 1, Ack: 149, Len: 48

No.     Time        Source                Destination           Protocol Length Info
      9 0.032770    192.168.1.1           192.168.1.14          iSCSI    70     Login Response (Success)

Frame 9: 70 bytes on wire (560 bits), 70 bytes captured (560 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 49, Ack: 149, Len: 16
[2 Reassembled TCP Segments (64 bytes): #8(48), #9(16)]
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     10 0.032792    192.168.1.14          192.168.1.1           TCP      54     57715 > iscsi-target [ACK] Seq=149 Ack=65 Win=65536 Len=0

Frame 10: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 149, Ack: 65, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     11 0.051548    192.168.1.14          192.168.1.1           iSCSI    102    Login Command

Frame 11: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 149, Ack: 65, Len: 48
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     12 0.051616    192.168.1.1           192.168.1.14          iSCSI    102    Login Response (Success)

Frame 12: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 65, Ack: 197, Len: 48
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     13 0.056867    192.168.1.14          192.168.1.1           iSCSI    102    Login Command

Frame 13: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 197, Ack: 113, Len: 48
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     14 0.057030    192.168.1.1           192.168.1.14          iSCSI    102    Login Response (Success)

Frame 14: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 113, Ack: 245, Len: 48
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     15 0.064876    192.168.1.14          192.168.1.1           iSCSI    118    Text Command

Frame 15: 118 bytes on wire (944 bits), 118 bytes captured (944 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 245, Ack: 161, Len: 64
iSCSI (Text Command)

No.     Time        Source                Destination           Protocol Length Info
     16 0.065266    192.168.1.1           192.168.1.14          TCP      102    [TCP segment of a reassembled PDU]

Frame 16: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 161, Ack: 309, Len: 48

No.     Time        Source                Destination           Protocol Length Info
     17 0.065267    192.168.1.1           192.168.1.14          iSCSI    450    Text Response

Frame 17: 450 bytes on wire (3600 bits), 450 bytes captured (3600 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 209, Ack: 309, Len: 396
[2 Reassembled TCP Segments (444 bytes): #16(48), #17(396)]
iSCSI (Text Response)

No.     Time        Source                Destination           Protocol Length Info
     18 0.065293    192.168.1.14          192.168.1.1           TCP      54     57715 > iscsi-target [ACK] Seq=309 Ack=605 Win=65024 Len=0

Frame 18: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 309, Ack: 605, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     19 0.069954    192.168.1.14          192.168.1.1           iSCSI    102    Logout Command (Close session)

Frame 19: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 309, Ack: 605, Len: 48
iSCSI (Logout Command)

No.     Time        Source                Destination           Protocol Length Info
     20 0.070045    192.168.1.1           192.168.1.14          iSCSI    102    Logout Response

Frame 20: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 605, Ack: 357, Len: 48
iSCSI (Logout Response)

No.     Time        Source                Destination           Protocol Length Info
     21 0.070046    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57715 [FIN, ACK] Seq=653 Ack=357 Win=7168 Len=0

Frame 21: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 653, Ack: 357, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     22 0.070070    192.168.1.14          192.168.1.1           TCP      54     57715 > iscsi-target [ACK] Seq=357 Ack=654 Win=65024 Len=0

Frame 22: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 357, Ack: 654, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     23 0.071584    192.168.1.14          192.168.1.1           TCP      54     57715 > iscsi-target [FIN, ACK] Seq=357 Ack=654 Win=65024 Len=0

Frame 23: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57715 (57715), Dst Port: iscsi-target (3260), Seq: 357, Ack: 654, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     24 0.071645    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57715 [ACK] Seq=654 Ack=358 Win=7168 Len=0

Frame 24: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57715 (57715), Seq: 654, Ack: 358, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     25 0.076141    192.168.1.14          192.168.1.1           TCP      66     57716 > iscsi-target [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1

Frame 25: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 0, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     26 0.076200    192.168.1.1           192.168.1.14          TCP      66     iscsi-target > 57716 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=512

Frame 26: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 0, Ack: 1, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     27 0.076224    192.168.1.14          192.168.1.1           TCP      54     57716 > iscsi-target [ACK] Seq=1 Ack=1 Win=65536 Len=0

Frame 27: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     28 0.077819    192.168.1.14          192.168.1.1           iSCSI    230    Login Command

Frame 28: 230 bytes on wire (1840 bits), 230 bytes captured (1840 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 176
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     29 0.077910    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57716 [ACK] Seq=1 Ack=177 Win=7168 Len=0

Frame 29: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 1, Ack: 177, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     30 0.077937    192.168.1.1           192.168.1.14          iSCSI    142    Login Response (Success)

Frame 30: 142 bytes on wire (1136 bits), 142 bytes captured (1136 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 1, Ack: 177, Len: 88
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     31 0.079152    192.168.1.14          192.168.1.1           iSCSI    102    Login Command

Frame 31: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 177, Ack: 89, Len: 48
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     32 0.079296    192.168.1.1           192.168.1.14          iSCSI    102    Login Response (Success)

Frame 32: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 89, Ack: 225, Len: 48
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     33 0.080894    192.168.1.14          192.168.1.1           iSCSI    178    Login Command

Frame 33: 178 bytes on wire (1424 bits), 178 bytes captured (1424 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 225, Ack: 137, Len: 124
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     34 0.081032    192.168.1.1           192.168.1.14          iSCSI    174    Login Response (Success)

Frame 34: 174 bytes on wire (1392 bits), 174 bytes captured (1392 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 137, Ack: 349, Len: 120
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     35 0.093238    192.168.1.14          192.168.1.1           iSCSI    102    SCSI: Report LUNs LUN: 0x00

Frame 35: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 349, Ack: 257, Len: 48
iSCSI (SCSI Command)
SCSI CDB Report LUNs

No.     Time        Source                Destination           Protocol Length Info
     36 0.093375    192.168.1.1           192.168.1.14          iSCSI    118    SCSI: Data In LUN: 0x00 (Report LUNs Response Data) SCSI: Response LUN: 0x00 (Report LUNs) (Good)

Frame 36: 118 bytes on wire (944 bits), 118 bytes captured (944 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 257, Ack: 397, Len: 64
iSCSI (SCSI Data In)
SCSI Payload (Report LUNs Response Data)
SCSI Response (Report LUNs)

No.     Time        Source                Destination           Protocol Length Info
     37 0.099677    192.168.1.14          192.168.1.1           iSCSI    102    SCSI: Inquiry LUN: 0x00

Frame 37: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 397, Ack: 321, Len: 48
iSCSI (SCSI Command)
SCSI CDB Inquiry

No.     Time        Source                Destination           Protocol Length Info
     38 0.099787    192.168.1.1           192.168.1.14          iSCSI    138    SCSI: Data In LUN: 0x00 (Inquiry Response Data) [SCSI transfer limited due to allocation_length too small]

Frame 38: 138 bytes on wire (1104 bits), 138 bytes captured (1104 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 321, Ack: 445, Len: 84
iSCSI (SCSI Data In)
SCSI Payload (Inquiry Response Data)
SCSI transfer limited due to allocation_length too small: SCSI truncated]

No.     Time        Source                Destination           Protocol Length Info
     39 0.107750    192.168.1.14          192.168.1.1           iSCSI    102    Logout Command (Close session)

Frame 39: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 445, Ack: 405, Len: 48
iSCSI (Logout Command)

No.     Time        Source                Destination           Protocol Length Info
     40 0.107838    192.168.1.1           192.168.1.14          iSCSI    102    Logout Response

Frame 40: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 405, Ack: 493, Len: 48
iSCSI (Logout Response)

No.     Time        Source                Destination           Protocol Length Info
     41 0.107863    192.168.1.14          192.168.1.1           TCP      54     57716 > iscsi-target [ACK] Seq=493 Ack=454 Win=65024 Len=0

Frame 41: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 493, Ack: 454, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     42 0.107873    192.168.1.14          192.168.1.1           TCP      54     57716 > iscsi-target [FIN, ACK] Seq=493 Ack=454 Win=65024 Len=0

Frame 42: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57716 (57716), Dst Port: iscsi-target (3260), Seq: 493, Ack: 454, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     43 0.107958    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57716 [ACK] Seq=454 Ack=494 Win=7168 Len=0

Frame 43: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57716 (57716), Seq: 454, Ack: 494, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     44 0.114835    192.168.1.14          192.168.1.1           TCP      66     57717 > iscsi-target [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1

Frame 44: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 0, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     45 0.114921    192.168.1.1           192.168.1.14          TCP      66     iscsi-target > 57717 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=512

Frame 45: 66 bytes on wire (528 bits), 66 bytes captured (528 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57717 (57717), Seq: 0, Ack: 1, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     46 0.114946    192.168.1.14          192.168.1.1           TCP      54     57717 > iscsi-target [ACK] Seq=1 Ack=1 Win=65536 Len=0

Frame 46: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     47 0.116424    192.168.1.14          192.168.1.1           iSCSI    230    Login Command

Frame 47: 230 bytes on wire (1840 bits), 230 bytes captured (1840 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 1, Ack: 1, Len: 176
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     48 0.116497    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57717 [ACK] Seq=1 Ack=177 Win=7168 Len=0

Frame 48: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57717 (57717), Seq: 1, Ack: 177, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     49 0.116580    192.168.1.1           192.168.1.14          iSCSI    142    Login Response (Success)

Frame 49: 142 bytes on wire (1136 bits), 142 bytes captured (1136 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57717 (57717), Seq: 1, Ack: 177, Len: 88
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     50 0.118478    192.168.1.14          192.168.1.1           iSCSI    114    Login Command

Frame 50: 114 bytes on wire (912 bits), 114 bytes captured (912 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 177, Ack: 89, Len: 60
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     51 0.118589    192.168.1.1           192.168.1.14          iSCSI    166    Login Response (Success)

Frame 51: 166 bytes on wire (1328 bits), 166 bytes captured (1328 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57717 (57717), Seq: 89, Ack: 237, Len: 112
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     52 0.126988    192.168.1.14          192.168.1.1           iSCSI    170    Login Command

Frame 52: 170 bytes on wire (1360 bits), 170 bytes captured (1360 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 237, Ack: 201, Len: 116
iSCSI (Login Command)

No.     Time        Source                Destination           Protocol Length Info
     53 0.127113    192.168.1.1           192.168.1.14          iSCSI    102    Login Response (Authentication failed)

Frame 53: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57717 (57717), Seq: 201, Ack: 353, Len: 48
iSCSI (Login Response)

No.     Time        Source                Destination           Protocol Length Info
     54 0.127180    192.168.1.1           192.168.1.14          TCP      60     iscsi-target > 57717 [FIN, ACK] Seq=249 Ack=353 Win=7168 Len=0

Frame 54: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Ethernet II, Src: Cynet_00:3f:60 (00:0b:56:00:3f:60), Dst: Supermic_bb:a9:5d (00:30:48:bb:a9:5d)
Internet Protocol Version 4, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.14 (192.168.1.14)
Transmission Control Protocol, Src Port: iscsi-target (3260), Dst Port: 57717 (57717), Seq: 249, Ack: 353, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     55 0.127199    192.168.1.14          192.168.1.1           TCP      54     57717 > iscsi-target [ACK] Seq=353 Ack=250 Win=65280 Len=0

Frame 55: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 353, Ack: 250, Len: 0

No.     Time        Source                Destination           Protocol Length Info
     56 12.596090   192.168.1.14          192.168.1.255         BROWSER  243    Host Announcement ELEMENT, Workstation, Server, NT Workstation, NT Server

Frame 56: 243 bytes on wire (1944 bits), 243 bytes captured (1944 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.255 (192.168.1.255)
User Datagram Protocol, Src Port: netbios-dgm (138), Dst Port: netbios-dgm (138)
NetBIOS Datagram Service
SMB (Server Message Block Protocol)
SMB MailSlot Protocol
Microsoft Windows Browser Protocol

No.     Time        Source                Destination           Protocol Length Info
     57 13.225428   192.168.1.14          192.168.1.1           TCP      54     57717 > iscsi-target [RST, ACK] Seq=353 Ack=250 Win=0 Len=0

Frame 57: 54 bytes on wire (432 bits), 54 bytes captured (432 bits)
Ethernet II, Src: Supermic_bb:a9:5d (00:30:48:bb:a9:5d), Dst: Cynet_00:3f:60 (00:0b:56:00:3f:60)
Internet Protocol Version 4, Src: 192.168.1.14 (192.168.1.14), Dst: 192.168.1.1 (192.168.1.1)
Transmission Control Protocol, Src Port: 57717 (57717), Dst Port: iscsi-target (3260), Seq: 353, Ack: 250, Len: 0

Coordinator
Jun 9, 2011 at 8:51 PM

Thanks.

I think I'll need the actual wireshark trace file - it would be really useful to have a corresponding trace for Microsoft iSCSI initiator connecting to the LUN as well.

If you could share them from dropbox or similar, that would be great - otherwise can turn this into an 'Issue' on codeplex, which I think lets you attach files.

 

Cheers,

Ken

Jun 9, 2011 at 9:39 PM

its in the issue tracker.  the zip has both wireshark traces