You are on page 1of 5

Hi Martin, i was Reading about you and I think that you can help me with a

problem.
I am doing a Webserver through PPP over serial. For this, i have a STM32F429 +
LWIP (webserver) + Freertos + PPPOS + Ubunto 14.4 (PPP Server)
The PPP works fine as show below. Log taken from terminal ubunto.
root@ubuntu:/etc/ppp# ./ppp-on
using channel 31
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x52181044> <pcomp>
<accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x26f5aa6d>
<pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x52181044> <pcomp>
<accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x26f5aa6d>
<pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0xa0000> <magic 0x26f5aa6d>
<pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x26f5aa6d]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.88.1>]
rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 00> <ms-dns1
0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP EchoRep id=0x0 magic=0x52181044]
rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.168.88.1>]
rcvd [IPCP ConfReq id=0x2 <addr 0.0.0.0> <compress VJ 0f 00>]
sent [IPCP ConfNak id=0x2 <addr 192.168.88.2>]
rcvd [IPCP ConfReq id=0x3 <addr 192.168.88.2> <compress VJ 0f 00>]
sent [IPCP ConfAck id=0x3 <addr 192.168.88.2> <compress VJ 0f 00>]
local IP address 192.168.88.1
remote IP address 192.168.88.2
Script /etc/ppp/ip-up started (pid 5676)
Script /etc/ppp/ip-up finished (pid 5676), status = 0x0
IP STM32F429 is 192.168.88.2
the next step is open the browser and write
http://192.168.88.2/STM32F4x7TASKS.html
The page load is very slow. We can see in the image that the send begin well
but in the packet number 9, wait for 10 seconds for send the next packet. This
continues to do to load the whole page.
Can you said me, what is the problem??? Why wait 10 seconds??

Logs Package Wireshark


No.
Time
Source
Destination
Protocol Length Info
1 0.000000000 192.168.88.1
192.168.88.2
TCP
76
55776
> http [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1
TSval=102693 TSecr=0 WS=128
Frame 1: 76 bytes on wire (608 bits), 76 bytes captured (608 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
0, Len: 0
No.
Time
Source
Destination
Protocol Length Info
2 0.196872000 192.168.88.2
192.168.88.1
TCP
60
http >
55776 [SYN, ACK] Seq=0 Ack=1 Win=2920 Len=0 MSS=1460
Frame 2: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.2 (192.168.88.2), Dst:
192.168.88.1 (192.168.88.1)
Transmission Control Protocol, Src Port: http (80), Dst Port: 55776 (55776), Seq:
0, Ack: 1, Len: 0
No.
Time
Source
Destination
Protocol Length Info
3 0.196905000 192.168.88.1
192.168.88.2
TCP
56
55776
> http [ACK] Seq=1 Ack=1 Win=29200 Len=0
Frame 3: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture

Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:


192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
1, Ack: 1, Len: 0
No.
Time
Source
Destination
Protocol Length Info
4 0.197058000 192.168.88.1
192.168.88.2
HTTP
360
GET /STM32F4x7.html HTTP/1.1
Frame 4: 360 bytes on wire (2880 bits), 360 bytes captured (2880 bits) on
interface 0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
1, Ack: 1, Len: 304
Hypertext Transfer Protocol
No.
Time
Source
Destination
Protocol Length Info
5
0.369699000 192.168.88.2
192.168.88.1
TCP
1516 [TCP
segment of a reassembled PDU]
Frame 5: 1516 bytes on wire (12128 bits), 1516 bytes captured (12128 bits) on
interface 0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.2 (192.168.88.2), Dst:
192.168.88.1 (192.168.88.1)
Transmission Control Protocol, Src Port: http (80), Dst Port: 55776 (55776), Seq:
1, Ack: 305, Len: 1460
No.
Time
Source
Destination
Protocol Length Info
6 0.369729000 192.168.88.1
192.168.88.2
TCP
56
55776
> http [ACK] Seq=305 Ack=1461 Win=32120 Len=0
Frame 6: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
305, Ack: 1461, Len: 0
No.
Time
Source
Destination
Protocol Length Info
7
0.493937000 192.168.88.2
192.168.88.1
TCP
1516 [TCP
segment of a reassembled PDU]
Frame 7: 1516 bytes on wire (12128 bits), 1516 bytes captured (12128 bits) on
interface 0
Linux cooked capture

Internet Protocol Version 4, Src: 192.168.88.2 (192.168.88.2), Dst:


192.168.88.1 (192.168.88.1)
Transmission Control Protocol, Src Port: http (80), Dst Port: 55776 (55776), Seq:
1461, Ack: 305, Len: 1460
No.
Time
Source
Destination
Protocol Length Info
8
0.493962000 192.168.88.1
192.168.88.2
TCP
56
55776
> http [ACK] Seq=305 Ack=2921 Win=35040 Len=0
Frame 8: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
305, Ack: 2921, Len: 0
No.
Time
Source
Destination
Protocol Length Info
9 10.491775000 192.168.88.1
192.168.88.2
TCP
56
[TCP
Keep-Alive] 55776 > http [ACK] Seq=304 Ack=2921 Win=35040 Len=0
Frame 9: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
304, Ack: 2921, Len: 0
No.
Time
Source
Destination
Protocol Length Info
10 10.971115000 192.168.88.2
192.168.88.1
HTTP
1356
HTTP/1.0 200 OK (text/html)
Frame 10: 1356 bytes on wire (10848 bits), 1356 bytes captured (10848 bits)
on interface 0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.2 (192.168.88.2), Dst:
192.168.88.1 (192.168.88.1)
Transmission Control Protocol, Src Port: http (80), Dst Port: 55776 (55776), Seq:
2921, Ack: 305, Len: 1300
[3 Reassembled TCP Segments (4220 bytes): #5(1460), #7(1460), #10(1300)]
Hypertext Transfer Protocol
Line-based text data: text/html
No.
Time
Source
Destination
Protocol Length Info
11 10.980068000 192.168.88.1
192.168.88.2
TCP
56
55776
> http [FIN, ACK] Seq=305 Ack=4222 Win=37960 Len=0
Frame 11: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0

Linux cooked capture


Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
305, Ack: 4222, Len: 0
No.
Time
Source
Destination
Protocol Length Info
12 11.568353000 192.168.88.1
192.168.88.2
TCP
56
[TCP
Retransmission] 55776 > http [FIN, ACK] Seq=305 Ack=4222 Win=37960
Len=0
Frame 12: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
305, Ack: 4222, Len: 0
No.
Time
Source
Destination
Protocol Length Info
13 12.748212000 192.168.88.1
192.168.88.2
TCP
56
[TCP
Retransmission] 55776 > http [FIN, ACK] Seq=305 Ack=4222 Win=37960
Len=0
Frame 13: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.1 (192.168.88.1), Dst:
192.168.88.2 (192.168.88.2)
Transmission Control Protocol, Src Port: 55776 (55776), Dst Port: http (80), Seq:
305, Ack: 4222, Len: 0
No.
Time
Source
Destination
Protocol Length Info
14 12.759616000 192.168.88.2
192.168.88.1
TCP
56
[TCP
Previous segment not captured] http > 55776 [ACK] Seq=5682 Ack=306
Win=2615 Len=0
Frame 14: 56 bytes on wire (448 bits), 56 bytes captured (448 bits) on interface
0
Linux cooked capture
Internet Protocol Version 4, Src: 192.168.88.2 (192.168.88.2), Dst:
192.168.88.1 (192.168.88.1)
Transmission Control Protocol, Src Port: http (80), Dst Port: 55776 (55776), Seq:
5682, Ack: 306, Len: 0

You might also like