Greetings.
I've been beating my head against the wall trying to get UDP working with an unproven prototype hardware device. I've been using WireShark to monitor communications and it seems to be quite helpful.
One thing is that the packets that I'm sending contain a CheckSum error. Here's the complete text of the packet:
The Data string is correct. The rest, well, I don't know about calculating the check sum.
Here's the snippet that generated that packet:
I'm wondering if the device that I'm trying to communicate with is seeing the checksum error and causing an issue.
Any thoughts would be greatly appreciated.
Dan
I've been beating my head against the wall trying to get UDP working with an unproven prototype hardware device. I've been using WireShark to monitor communications and it seems to be quite helpful.
One thing is that the packets that I'm sending contain a CheckSum error. Here's the complete text of the packet:
Code:
No. Time Source Destination Protocol Info 188 1812.943226 192.168.10.3 192.168.255.255 UDP Source port: 52306 Destination port: 50501 [UDP CHECKSUM INCORRECT] Frame 188 (58 bytes on wire, 58 bytes captured) Arrival Time: Oct 23, 2008 16:26:32.067104000 [Time delta from previous captured frame: 0.320303000 seconds] [Time delta from previous displayed frame: 0.320303000 seconds] [Time since reference or first frame: 1812.943226000 seconds] Frame Number: 188 Frame Length: 58 bytes Capture Length: 58 bytes [Frame is marked: False] [Protocols in frame: eth:ip:udp:data] Ethernet II, Src: QuantaCo_e8:b0:82 (00:1b:24:e8:b0:82), Dst: Cisco-Li_89:74:7e (00:0c:41:89:74:7e) Destination: Cisco-Li_89:74:7e (00:0c:41:89:74:7e) Address: Cisco-Li_89:74:7e (00:0c:41:89:74:7e) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: QuantaCo_e8:b0:82 (00:1b:24:e8:b0:82) Address: QuantaCo_e8:b0:82 (00:1b:24:e8:b0:82) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol, Src: 192.168.10.3 (192.168.10.3), Dst: 192.168.255.255 (192.168.255.255) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..0. = ECN-Capable Transport (ECT): 0 .... ...0 = ECN-CE: 0 Total Length: 44 Identification: 0x57b9 (22457) Flags: 0x00 0... = Reserved bit: Not set .0.. = Don't fragment: Not set ..0. = More fragments: Not set Fragment offset: 0 Time to live: 128 Protocol: UDP (0x11) Header checksum: 0x0000 [incorrect, should be 0x57b4] [Good: False] [Bad : True] Source: 192.168.10.3 (192.168.10.3) Destination: 192.168.255.255 (192.168.255.255) User Datagram Protocol, Src Port: 52306 (52306), Dst Port: 50501 (50501) Source port: 52306 (52306) Destination port: 50501 (50501) Length: 24 Checksum: 0x8b7d [incorrect, should be 0xe0d1 (maybe caused by "UDP checksum offload"?)] [Good Checksum: False] [Bad Checksum: True] Data (16 bytes) Data: 01FFFFFFFFFFFFFFFFFFFFFFFF0100FF 0000 00 0c 41 89 74 7e 00 1b 24 e8 b0 82 08 00 45 00 ..A.t~..$.....E. 0010 00 2c 57 b9 00 00 80 11 00 00 c0 a8 0a 03 c0 a8 .,W............. 0020 ff ff cc 52 c5 45 00 18 8b 7d 01 ff ff ff ff ff ...R.E...}...... 0030 ff ff ff ff ff ff ff 01 00 ff ..........
Here's the snippet that generated that packet:
Code:
t = Chr$(&H01) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&HFF) + Chr$(&H01) + Chr$(&H00) + Chr$(&HFF) UDP OPEN AS 105 HOST ADDR "192.168.255.255" TO i UDP SEND 105, AT i, 50501, t UDP CLOSE 105
Any thoughts would be greatly appreciated.
Dan
Comment