socket mqx 4.0.2 routing problem with new modem ADSL Telecom Italia

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

socket mqx 4.0.2 routing problem with new modem ADSL Telecom Italia

1,454 Views
manuelmoschin
Contributor II

Hi

i'm running the RTCS MQX 4.0.2 demos on a TWRK60 twrk60n512
and there are routing problems with new generation adsl modem:

adb broadcast modem adsl 2+ wi-fi TELECOM Italia.

with an old DLINK router the SMTP demo works and sends email correctly.

with the new router i'm NOT able to open a socket on SMTP port and send emails.

- all firewall are disabled, and set the default
configuration on router

- I tried on SMTP 576, and FTP, HTTP ports and the socket
connect fails too.

- I tried the NTP function and works correctly (the NTP
request is routed correctly and i received the sync and update
time)

Very starnge:

I connect an old windows 2000 pc in the same net and TELNET
port 25 correctly to the SMTP server

- looking with wireshark the pc packet mainly differs from
RTCS for the DON'T FRAGMENT flag SET

- I set the pc ip-address to TWR and switch cables: the SMTP
connection works, for a timeout of about 5 seconds... (NAT???)

- I have tried to enabling:

                #define RTCSCFG_ENABLE_VIRTUAL_ROUTES 1

                #define RTCSCFG_ENABLE_IGMP     1

                #define RTCSCFG_ENABLE_IPSEC    1

                and apply the patch to tcp_send.c found in
"connect socket mqx 4.0.2 problem" question

but the socket fails to connect

1) there are network protocols i have to add/enable in
RTCS?

2) it's possible to set/disable the fragment
option?

3) the router configuration is very simple: there are
particular services i have to check/disable?

4) any ideas for workaround?

this could be a router bug... but it's very strange, and this is the default TELECOM (italy) adsl router in business application

thank you

Manuel Moschin

Labels (1)
0 Kudos
6 Replies

658 Views
manuelmoschin
Contributor II

Telecom Italia told me that the problem can be the Window length that RTCS puts to 0.

Can we change this setting in RTCS?

Thank you

0 Kudos

658 Views
Martin_
NXP Employee
NXP Employee

Hello,

I don't think it's the RTCS that writes the window length zero. Maybe the field in the packet is cleared by the router itself ?

0 Kudos

658 Views
manuelmoschin
Contributor II

Hi Martin,

the packet sniffed with a passive switch is:

192.168.69.52 83.103.102.192 TCP 60 5000 > smtp [SYN] Seq=0 Win=0 Len=0

So it's RTCS that writes Win=0.

Thank you

Manuel

0 Kudos

657 Views
Martin_
NXP Employee
NXP Employee

Hi Manuel,

yes, it is RTCS. Seems there is no parameter to change the behavior, but as you have the source code, you can change on your own. Attached two files for MQX 4.0.2 RTCS that you can try. (note the tcp_send.c is modified to give window with SYN).

657 Views
butok
NXP Employee
NXP Employee

Hi  Manuel

Please try the fix from here:

connect socket mqx 4.0.2 problem

It must help.

0 Kudos

657 Views
manuelmoschin
Contributor II

Hi Andrey,

I've already patched the \rtcs\source\tcpip file (only SYN or PUSH flag, not together) but the problem persists.

The packet that we send is:

192.168.69.52 83.103.102.192 TCP 60 5000 > smtp [SYN] Seq=0 Win=0 Len=0

10 0d 7f 34 5a 4c 00 00  5e a8 45 34 08 00 45 00 

00 28 00 00 00 00 40 06  ba cc c0 a8 45 34 53 67

66 c0 13 88 00 19 20 bf  22 21 00 00 00 00 50 02

00 00 99 5d 00 00 00 00  00 00 00 00

0 Kudos