This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange Network Behavior


Hi,

Iâm trying to port some application to eCos. I want to use networking so I started with network tests provided with eCos network package.

I have started with the server test. Everything was looking good, until the time, when I wanted to connect to the server task from another computer. I have received on the host computer âDestination Host unreachableâ, so go down to ping test, to see, if the problem is in my network settings or in something else.

Ping test was working perfectly, even in the time, when what during the time, the test was running I was able to ping the board where eCos is running from another computer.

So I made a third test. Iâm running a program with two threads. In first thread I wait 15 seconds, then run ping test and then wait 15 seconds, in the second I run server test.

 If I try connecting to server during the first 15 seconds, I receive âDestination Host unreachableâ, during the time, when the ping test was running works everything OK. During the last 15 second I received also âDestination Host unreachableâ.

Does anybody have any explanation for such behavior? Did I omit something important? This is my very first experience with egos, so maybe I donât understand the way, how the networking is working there.

Iâm using Arcom Viper board (ARM Xscale architecture with SMSC LAN91C110 Ethernet controller, Redboot) if it helps. I also add outputs from the board and host computer with comments.
Thank for any help.
Tomas


Output from the board, where the eCos is running.
-------------------------------------------------------------------------
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'lan91cxx_eth0'
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x00442490)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x00441fa8)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
Start PING test
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
BOOTP[eth0] op: REQUEST
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x6042dcc3
        secs: 9
       flags: 0x80
       hw_addr: 00:80:66:10:dc:c3
     client IP: 0.0.0.0
         my IP: 192.168.0.239
     server IP: 192.168.0.101
    gateway IP: 0.0.0.0
  options:
        DHCP message: 3 REQUEST
        DHCP server id: 192.168.0.101
        DHCP time 51: 11600
        DHCP time 58: 5800
        DHCP time 59: 10150
        subnet mask: 255.255.255.0
            gateway: 192.168.0.4
      domain server: 195.113.0.13
        domain name: tydlin.cz
       IP broadcast: 192.168.0.255
        DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
        DHCP option: 39/57.2: 576
        DHCP requested ip: 192.168.0.239
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
Running Test for ETH0
(Waiting for  15 seconds..)
0..., 1..., 2..., 3..., 4..., 5..., 6..., 7..., 8..., 9..., 10..., 11..., 12..., 13..., 14...,
 PING server 192.168.0.101
â.
3799 bytes from 192.168.0.101: icmp_seq=251, time=600ms
â.
connection from 192.168.0.101:60584
No reply - timed out
â.
3799 bytes from 192.168.0.101: icmp_seq=258, time=600ms
â.

Sent 256 packets, received 253 OK, 0 bad
(Waiting for  15 seconds..)
0..., 1..., 2..., 3..., 4..., 5..., 6..., 7..., 8..., 9..., 10..., 11..., 12..., 13..., 14...,
End of packet ping_host
PASS:<Ping test OK>
EXIT:<done>
Output from the host computer:
Ping output
...
From 192.168.0.101 icmp_seq=9 Destination Host Unreachable
From 192.168.0.101 icmp_seq=10 Destination Host Unreachable
From 192.168.0.101 icmp_seq=11 Destination Host Unreachable
64 bytes from 192.168.0.239: icmp_seq=12 ttl=64 time=2893 ms
64 bytes from 192.168.0.239: icmp_seq=13 ttl=64 time=1881 ms
...
64 bytes from 192.168.0.239: icmp_seq=27 ttl=64 time=21.7 ms
64 bytes from 192.168.0.239: icmp_seq=29 ttl=64 time=20.3 ms
From 192.168.0.101 icmp_seq=59 Destination Host Unreachable
From 192.168.0.101 icmp_seq=60 Destination Host Unreachable
....
telnet output during the test
tom@linux-tom:~> telnet 192.168.0.239 7734
Trying 192.168.0.239...
Connected to 192.168.0.239.
Escape character is '^]'.
Hello 192.168.0.101:60584
Connection closed by foreign host.


o0O0o.o00o.oOo.o..
__________________Tomas Pop
www.tydlin.cz

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]