Kasper Dupont wrote:
>
> Jeg ville prøve at bruge ethereal i hver ende af forbindelsen
Da den ene ende er en embedded ARM, så gør det generent debugging
vanskeligt; der er ikke plads til at lægge de store værktøjer over på
den. En tcpdump har jeg dog fået lagt over, men jeg forstår ikke så
meget af den =\
> Hvis problemet viser sig at ligge på den ene maskine ville jeg så
> fortsætte med strace for at finde ud af, hvad programmet foretager
> sig.
Problemet opstår både når jeg bruger wget og firefox, så jeg vil
tillade mig indtil videre at udelukke dem fra at være fejlkilder.
Endvidere opstår problemet kun, når jeg går på ARM-boxen via wlan0
(10.0.0.1); går jeg gennem eth0 (192.168.17.1) så går http-requests
igennem, som de skal.
> En mulighed jeg ville undersøge er DNS problemer. Måske står
> serveren og venter på et reverse DNS opslag.
Jeg bruger kun IP-adresser i mine requests. eth0 virker og wlan0
virker ikke, og de skal opføre sig ens uanset DNS-situationen?
>> root@1901000039
# route
>
> Uheldigt hostnavn, det kunne misforstås som en IP adresse.
Jeg har rettet det til au1901000039, men et har ikke hjulpet på dette
problem.
Ethereal ser super fedt ud. Jeg har nogle output her, som du måske kan
hjælpe med at tolke på; jeg er ikke så skarp i tcp =)
Det første er fra wget
http://192.168.17.1/index.html som virker, og den
anden er fra wget
http://10.0.0.1/index.html som jeg lukker loggen på
efter 30 sekunder, hvor wget bare hænger. Min klient-maskine, hvor
ethereal kører, hedder 192.168.1.2 og 10.0.0.44.
Jeg har tilladt mig at overskride linielængderne så loggen er mere læsbar:
No. Time Source Destination Protocol Info
1 0.000000 192.168.17.2 192.168.17.1 TCP 33121 > www [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=17286420 TSER=0 WS=2
Frame 1 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:11:25:42:7c:06, Dst: 00:12:ca:01:00:03
Internet Protocol, Src Addr: 192.168.17.2 (192.168.17.2), Dst Addr: 192.168.17.1 (192.168.17.1)
Transmission Control Protocol, Src Port: 33121 (33121), Dst Port: www (80), Seq: 0, Ack: 0, Len: 0
No. Time Source Destination Protocol Info
2 0.000359 192.168.17.1 192.168.17.2 TCP www > 33121 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=407517 TSER=17286420 WS=0
Frame 2 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:12:ca:01:00:03, Dst: 00:11:25:42:7c:06
Internet Protocol, Src Addr: 192.168.17.1 (192.168.17.1), Dst Addr: 192.168.17.2 (192.168.17.2)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33121 (33121), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
3 0.000393 192.168.17.2 192.168.17.1 TCP 33121 > www [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSV=17286421 TSER=407517
Frame 3 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:11:25:42:7c:06, Dst: 00:12:ca:01:00:03
Internet Protocol, Src Addr: 192.168.17.2 (192.168.17.2), Dst Addr: 192.168.17.1 (192.168.17.1)
Transmission Control Protocol, Src Port: 33121 (33121), Dst Port: www (80), Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
4 0.001115 192.168.17.2 192.168.17.1 HTTP GET /index.html HTTP/1.0
Frame 4 (175 bytes on wire, 175 bytes captured)
Ethernet II, Src: 00:11:25:42:7c:06, Dst: 00:12:ca:01:00:03
Internet Protocol, Src Addr: 192.168.17.2 (192.168.17.2), Dst Addr: 192.168.17.1 (192.168.17.1)
Transmission Control Protocol, Src Port: 33121 (33121), Dst Port: www (80), Seq: 1, Ack: 1, Len: 109
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
5 0.001483 192.168.17.1 192.168.17.2 TCP www > 33121 [ACK] Seq=1 Ack=110 Win=5792 Len=0 TSV=407517 TSER=17286421
Frame 5 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:12:ca:01:00:03, Dst: 00:11:25:42:7c:06
Internet Protocol, Src Addr: 192.168.17.1 (192.168.17.1), Dst Addr: 192.168.17.2 (192.168.17.2)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33121 (33121), Seq: 1, Ack: 110, Len: 0
No. Time Source Destination Protocol Info
6 0.011727 192.168.17.1 192.168.17.2 HTTP HTTP/1.0 200 OK
Frame 6 (232 bytes on wire, 232 bytes captured)
Ethernet II, Src: 00:12:ca:01:00:03, Dst: 00:11:25:42:7c:06
Internet Protocol, Src Addr: 192.168.17.1 (192.168.17.1), Dst Addr: 192.168.17.2 (192.168.17.2)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33121 (33121), Seq: 1, Ack: 110, Len: 166
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
7 0.011739 192.168.17.2 192.168.17.1 TCP 33121 > www [ACK] Seq=110 Ack=167 Win=5840 Len=0 TSV=17286432 TSER=407518
Frame 7 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:11:25:42:7c:06, Dst: 00:12:ca:01:00:03
Internet Protocol, Src Addr: 192.168.17.2 (192.168.17.2), Dst Addr: 192.168.17.1 (192.168.17.1)
Transmission Control Protocol, Src Port: 33121 (33121), Dst Port: www (80), Seq: 110, Ack: 167, Len: 0
No. Time Source Destination Protocol Info
8 0.012111 192.168.17.1 192.168.17.2 HTTP Continuation or non-HTTP traffic
Frame 8 (368 bytes on wire, 368 bytes captured)
Ethernet II, Src: 00:12:ca:01:00:03, Dst: 00:11:25:42:7c:06
Internet Protocol, Src Addr: 192.168.17.1 (192.168.17.1), Dst Addr: 192.168.17.2 (192.168.17.2)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33121 (33121), Seq: 167, Ack: 110, Len: 302
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
9 0.012122 192.168.17.2 192.168.17.1 TCP 33121 > www [ACK] Seq=110 Ack=469 Win=6912 Len=0 TSV=17286433 TSER=407518
Frame 9 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:11:25:42:7c:06, Dst: 00:12:ca:01:00:03
Internet Protocol, Src Addr: 192.168.17.2 (192.168.17.2), Dst Addr: 192.168.17.1 (192.168.17.1)
Transmission Control Protocol, Src Port: 33121 (33121), Dst Port: www (80), Seq: 110, Ack: 469, Len: 0
No. Time Source Destination Protocol Info
10 0.012602 192.168.17.1 192.168.17.2 TCP www > 33121 [FIN, ACK] Seq=469 Ack=110 Win=5792 Len=0 TSV=407518 TSER=17286433
Frame 10 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:12:ca:01:00:03, Dst: 00:11:25:42:7c:06
Internet Protocol, Src Addr: 192.168.17.1 (192.168.17.1), Dst Addr: 192.168.17.2 (192.168.17.2)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33121 (33121), Seq: 469, Ack: 110, Len: 0
No. Time Source Destination Protocol Info
11 0.013488 192.168.17.2 192.168.17.1 TCP 33121 > www [FIN, ACK] Seq=110 Ack=470 Win=6912 Len=0 TSV=17286434 TSER=407518
Frame 11 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:11:25:42:7c:06, Dst: 00:12:ca:01:00:03
Internet Protocol, Src Addr: 192.168.17.2 (192.168.17.2), Dst Addr: 192.168.17.1 (192.168.17.1)
Transmission Control Protocol, Src Port: 33123 (33121), Dst Port: www (80), Seq: 110, Ack: 470, Len: 0
No. Time Source Destination Protocol Info
12 0.013850 192.168.17.1 192.168.17.2 TCP www > 33121 [ACK] Seq=470 Ack=111 Win=5792 Len=0 TSV=407518 TSER=17286434
Frame 12 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:12:ca:01:00:03, Dst: 00:11:25:42:7c:06
Internet Protocol, Src Addr: 192.168.17.1 (192.168.17.1), Dst Addr: 192.168.17.2 (192.168.17.2)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33121 (33121), Seq: 470, Ack: 111, Len: 0
Og nu output fra det, der fejler: wget
http://10.0.0.1/index.html:
No. Time Source Destination Protocol Info
1 0.000000 10.0.0.44 10.0.0.1 TCP 33126 > www [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=17639641 TSER=0 WS=2
Frame 1 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 0, Ack: 0, Len: 0
No. Time Source Destination Protocol Info
2 0.002959 10.0.0.1 10.0.0.44 TCP www > 33126 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=442799 TSER=17639641 WS=0
Frame 2 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:0f:cb:c3:58:20, Dst: 00:0c:f6:11:87:31
Internet Protocol, Src Addr: 10.0.0.1 (10.0.0.1), Dst Addr: 10.0.0.44 (10.0.0.44)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33126 (33126), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
3 0.003014 10.0.0.44 10.0.0.1 TCP 33126 > www [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSV=17639644 TSER=442799
Frame 3 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
4 0.004287 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 4 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
5 0.006700 10.0.0.1 10.0.0.44 TCP www > 33126 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=442800 TSER=17639641 WS=0
Frame 5 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:0f:cb:c3:58:20, Dst: 00:0c:f6:11:87:31
Internet Protocol, Src Addr: 10.0.0.1 (10.0.0.1), Dst Addr: 10.0.0.44 (10.0.0.44)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33126 (33126), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
6 0.006723 10.0.0.44 10.0.0.1 TCP 33126 > www [ACK] Seq=106 Ack=1 Win=5840 Len=0 TSV=17639647 TSER=442800 SLE=0 SRE=1
Frame 6 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 106, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
7 0.008200 10.0.0.1 10.0.0.44 TCP www > 33126 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=442800 TSER=17639641 WS=0
Frame 7 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:0f:cb:c3:58:20, Dst: 00:0c:f6:11:87:31
Internet Protocol, Src Addr: 10.0.0.1 (10.0.0.1), Dst Addr: 10.0.0.44 (10.0.0.44)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33126 (33126), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
8 0.008222 10.0.0.44 10.0.0.1 TCP 33126 > www [ACK] Seq=106 Ack=1 Win=5840 Len=0 TSV=17639649 TSER=442800 SLE=0 SRE=1
Frame 8 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 106, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
9 0.010951 10.0.0.1 10.0.0.44 TCP www > 33126 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=442800 TSER=17639641 WS=0
Frame 9 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:0f:cb:c3:58:20, Dst: 00:0c:f6:11:87:31
Internet Protocol, Src Addr: 10.0.0.1 (10.0.0.1), Dst Addr: 10.0.0.44 (10.0.0.44)
Transmission Control Protocol, Src Port: www (80), Dst Port: 33126 (33126), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
10 0.010967 10.0.0.44 10.0.0.1 TCP 33126 > www [ACK] Seq=106 Ack=1 Win=5840 Len=0 TSV=17639652 TSER=442800 SLE=0 SRE=1
Frame 10 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 106, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
11 0.206730 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 11 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
12 0.612687 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 12 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
13 1.424569 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 13 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
14 3.048337 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 14 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
15 6.295826 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 15 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
16 12.790837 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 16 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
17 25.780863 10.0.0.44 10.0.0.1 HTTP GET /index.html HTTP/1.0
Frame 17 (171 bytes on wire, 171 bytes captured)
Ethernet II, Src: aa:aa:03:00:00:00, Dst: 00:0f:cb:c3:58:20
Internet Protocol, Src Addr: 10.0.0.44 (10.0.0.44), Dst Addr: 10.0.0.1 (10.0.0.1)
Transmission Control Protocol, Src Port: 33126 (33126), Dst Port: www (80), Seq: 1, Ack: 1, Len: 105
Hypertext Transfer Protocol
--
Stephan Henningsen