lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] PPP - TCP


From: Norberto R. de Goes Jr.
Subject: Re: [lwip-users] PPP - TCP
Date: Fri, 22 Jan 2016 08:59:43 -0200

Hi Syilvain.
Sorry but my result is different... Please see my screen outputs below:

===================================================
====  echo client (original) : =============================
===================================================
...
address@hidden:/media/sf_CompartilhamentoVirtualBox/rds/apps$ ./echoClientOriginal 
Socket created
Connected

Enter message : test_00      
Server reply :
test_00
Enter message : test_01
Server reply :
test_01
Enter message : test_02
Server reply :
test_02
Enter message : test_03

>>>>>  blocking here, no output more...

===================================================
====  echo server (lwip/simhost side) : =====================
===================================================
...
ip_input: iphdr->dest 0x157ba8c0 netif->ip_addr 0x157ba8c0 (0x157ba8c0, 0x157ba8c0, 0x0)
ip_input: packet accepted on interface pp
ip_input: 
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |        40     | (v, hl, tos, len)
+-------------------------------+
|    41141      |010|       0   | (id, flags, offset)
+-------------------------------+
|   64  |    6  |    0x22a0     | (ttl, proto, chksum)
+-------------------------------+
|  192  |  168  |  123  |   20  | (src)
+-------------------------------+
|  192  |  168  |  123  |   21  | (dest)
+-------------------------------+
ip_input: p->len 40 p->tot_len 40
TCP header:
+-------------------------------+
|    47179      |        7      | (src port, dest port)
+-------------------------------+
|           2795943939          | (seq no)
+-------------------------------+
|           0000006532          | (ack no)
+-------------------------------+
|  5 |   |010000|     29200     | (hdrlen, flags (ACK 
), win)
+-------------------------------+
|    0x95c8     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK 
-+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 29200
tcp_receive: slow start cwnd 1792
tcp_receive: ACK for 6532, unacked->seqno 6525:6533
tcp_receive: pcb->rttest 51 rtseq 6525 ackno 6532
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 milliseconds)
tcp_output: nothing to send ((nil))
tcp_output: snd_wnd 29200, cwnd 1792, wnd 1792, seg == NULL, ack 6532
State: ESTABLISHED
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_output: nothing to send ((nil))
tcp_output: snd_wnd 29200, cwnd 1792, wnd 1792, seg == NULL, ack 6532
tcp_slowtmr: processing active pcb
tcp_slowtmr: rtime 3 pcb->rto 3
tcp_slowtmr: cwnd 256 ssthresh 896
tcp_output: snd_wnd 29200, cwnd 256, wnd 256, effwnd 0, seq 6525, ack 6532
Assertion "RST not expected here!" failed at line 1037 in ../../../../../lwip/src/core/tcp_out.c
Aborted (core dumped)


>>>>  Sometimes, the lwip stack report "tcp_receive: duplicate seqno" and the  simhost 
continues running (no abort), the "log_duplicate.txt" attached file contains all log 
for this case (please find "duplicate" inside that).
 
===================================================
===================================================

I do not know what to do more... Do you have any suggestion?
Thank you very much!
Norberto


2016-01-21 17:34 GMT-02:00 Sylvain Rochet <address@hidden>:
Hi Norberto,

On Thu, Jan 21, 2016 at 12:07:08PM -0200, Norberto R. de Goes Jr. wrote:
> Hi Sylvain, all rigth? I am here again...
>
> Sorry, but the problem continues. Please but I have a suspicion. First I
> explain you the status.
>
> 1) My setup is very simillar to your. I have two VM´s (Ubuntu) in a Win-7
> host. Serial
> using the "Host pipe" VirtualBox method.
>
> 2) Today (jan/21/2016), I updated my lwip and lwip-contrib git-repos
> changing just the two files sent to you (lwipopts.h and simhost.c) in the
> ".../lwip-contrib/ports/unix/proj/unixsim" directory. Master branch.
>
> 3) In the VM#1, I run the pppd (linux), passive mode. Just after, the
> "simhost" app is executed in VM#2.  The link ppp is established, with no
> problem. I think that validates the serial and PPP connections.
>
> The problem is with TCP mode. Today I use also the netcat tool like you. No
> problem (example in client side:   echo "TEST" | nc 192.168.123.21 7).
>
> I have a suspicion when the client opens and uses the same connection to
> exchange several echo messages different from "netcat" behavior. I think.
> Thus I picked up a echo-client int the internet (thank to Silver Moon).
> When I use this "original client" the problem happens after 3 or plus echo
> messages like in my implementation.
>
> But when I use the "changed client" (open and close socket for each echo
> message/prompt), no problem, all works fine.
>
> Please, could you test the two attached clients files in your setup (on
> pppd server host) ? Is there sense in my suspicion?
>
> OBS:
>    > gcc echo_client_original.c -o echoClientOriginal
>    > gcc echo_client_changed.c -o echoClientChanged

Well, they both work for me :-)

# ./echo_client_original
Socket created
Connected

Enter message : test0
Server reply :
test0
Enter message : test1
Server reply :
test1
Enter message : test2
Server reply :
test2
Enter message : test3
Server reply :
test3
Enter message : test4
Server reply :
test4
Enter message : test5
Server reply :
test5
Enter message : test6
Server reply :
test6
Enter message : test7
Server reply :
test7
Enter message : test8
Server reply :
test8
Enter message : test9
Server reply :
test9


# ./echo_client_changed
Socket created
Connected

Enter message : test0
Server reply :
test0
Socket created
Connected

Enter message : test1
Server reply :
test1
Socket created
Connected

Enter message : test2
Server reply :
test2
Socket created
Connected

Enter message : test3
Server reply :
test3
Socket created
Connected

Enter message : test4
Server reply :
test4
Socket created
Connected

Enter message : test5
Server reply :
test5
Socket created
Connected

Enter message : test6
Server reply :
test6
Socket created
Connected

Enter message : test7
Server reply :
test7
Socket created
Connected

Enter message : test8
Server reply :
test8
Socket created
Connected

Enter message : test9
Server reply :
test9
Socket created
Connected




Sylvain

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



--
Norberto R. de Goes Jr.
CPqD - DRC
Tel.: +55 19 3705-4241 / Fax: +55 19 3705-6125
address@hidden
www.cpqd.com.br


Attachment: log_duplicate.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]