Networking issue

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This problem is a but undefined but I will try to decribe it here:

I have a bord with two networking connections. One is a ppp0 connecteion over a gprs module. The other is a usb0 connection using the g_ether module.

After beeing left on and running for som hours somthing strange happends. I will describe the behaivour of the two interfaces.

USB0: This networking interface can be pinged from both sides. But I cant connect with SSH or FTP. The connection times out.

PPP0: Here I cant ping anything. Nothing works and the communication link states to be up but nothing works.

/etc # ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:46.67.64.89  P-t-P:192.168.202.0  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:16238 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17046 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:856518 (836.4 KiB)  TX bytes:16095189 (15.3 MiB)

usb0      Link encap:Ethernet  HWaddr 06:05:36:E1:AB:BC
          inet addr:192.168.205.1  Bcast:192.168.205.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62310 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3858825 (3.6 MiB)  TX bytes:17981987 (17.1 MiB)

Can anyone help me with what to do, what processes to reset?

/etc # ps
  PID USER       VSZ STAT COMMAND
    1 root       868 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW   [rcu_kthread]
    7 root         0 SW<  [khelper]
   68 root         0 SW   [sync_supers]
   70 root         0 SW   [bdi-default]
   71 root         0 SW<  [kblockd]
   92 root         0 SW<  [kondemand]
  100 root         0 SW   [khungtaskd]
  101 root         0 SW   [kswapd0]
  153 root         0 SW   [fsnotify_mark]
  156 root         0 SW<  [aio]
  161 root         0 SW<  [crypto]
  179 root         0 SW   [mtdblock0]
  184 root         0 SW   [mtdblock1]
  189 root         0 SW   [mtdblock2]
  194 root         0 SW   [mtdblock3]
  199 root         0 SW   [mtdblock4]
  205 root         0 SW   [mtdblock5]
  239 root         0 SW   [kworker/0:1]
  240 root         0 SW   [kworker/u:2]
  242 root         0 SWN  [jffs2_gcd_mtd1]
  273 root         0 SWN  [jffs2_gcd_mtd3]
  276 root       864 S    /sbin/syslogd
  279 root       864 S    /sbin/klogd
  356 root         0 SW   [ubi_bgt0d]
  372 daemon     464 S    portmap
  378 root         0 SW   [ubifs_bgt0_0]
  401 root       568 S    /usr/sbin/dnsmasq
  403 root       864 S    /usr/sbin/telnetd -l /bin/sh
  408 root       868 S    /usr/sbin/inetd
  413 root       868 S    /usr/sbin/httpd -h /www
  424 root       716 S    /usr/sbin/dropbear
  428 nobody    1044 S    proftpd: (accepting connections)
  436 root       872 S    /bin/sh ./runspp
  441 root       864 S    sh -c ./MyApp.elf -t5 >>log.txt 2>&1
  444 root       896 S    -/bin/sh
  481 root      1008 S    /usr/sbin/pppd file /etc/ppp/options
  747 root       864 S    klogd -c 8
  749 root       864 S    klogd
 3055 root       736 S    /usr/sbin/dropbear
 3059 root       736 S    /usr/sbin/dropbear
 3060 nobody    1044 S    proftpd: connected: 192.168.205.202 (192.168.205.202:
 3063 root       868 R    ps

In the PS list you can see the ftp is trying to connect but is unsucsessfull.

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

/var/log/message

daemon.info dnsmasq[401]: DHCPINFORM(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPACK(usb0) 192.168.205.202 b2:81:43:aa:95:dd wpreaaq2
authpriv.info dropbear[3055]: Child connection from 192.168.205.202:1056
authpriv.info dropbear[3059]: Child connection from 192.168.205.202:1272
daemon.warn dnsmasq[401]: Ignoring domain curvus.local for DHCP host name wpreaaq2
daemon.info dnsmasq[401]: DHCPREQUEST(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPACK(usb0) 192.168.205.202 b2:81:43:aa:95:dd dhcp-202
daemon.warn dnsmasq[401]: Ignoring domain curvus.local for DHCP host name wpreaaq2
daemon.info dnsmasq[401]: DHCPREQUEST(usb0) 192.168.205.202 b2:81:43:aa:95:dd
deemon.info dnsmasq[401]: DHCPACK(usb0) 192.168.205.202 b2:81:43:aa:95:dd dhcp-202
emon.warn dnsmasq[401]: Ignoring domain curvus.local for DHCP host name wpreaaq2
emon.info dnsmasq[401]: DHCPREQUEST(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPACK(usb0) 192.168.205.202 b2:81:43:aa:95:dd dhcp-202
daemon.info dnsmasq[401]: DHCPDISCOVER(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPOFFER(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPDISCOVER(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPOFFER(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPDISCOVER(usb0) 192.168.205.202 b2:81:43:aa:95:dd
daemon.info dnsmasq[401]: DHCPOFFER(usb0) 192.168.205.202 b2:81:43:aa:95:dd

I tried:

/etc # ifconfig usb0 down
/etc # rmmod g_ether
/etc # modprobe g_ether
/etc # ifconfig usb0 up

But no luck. Restulting in log entry:

daemon.warn dnsmasq[401]: no address range available for DHCP request via usb0

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also got this when I tried to reboot.

The system is going down NOW!
Sending SIGTERM to all processes
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
TCP: too many of orphaned sockets
Sending SIGKILL to all processes
Requesting system reboot
Flash device refused suspend due to active operation (state 0)
Restarting system.

Could this message be related to my problems?

Edit: tcp_max_orphans is set to 512

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hm.. i get a lot of

tcp  1  0 77.17.nn.nn:51202  213.236.nn.nn:1883 CLOSE_WAIT
tcp  3  0 77.17.nn.nn:51197  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:51203  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:51200  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:44982  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:51206  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:51199  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:51196  213.236.nn.nn:1883 CLOSE_WAIT
tcp  1  0 77.17.nn.nn:44983  213.236.nn.nn:1883 CLOSE_WAIT

This could be the reson for the halting system. But how do I get rid of these. Trying to check is my client program is not closing these correctly, but have found the reson yet. But can I overside and close these sockets?

Edit: If I restart my application these goes away.

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It was an library from IBM that could not handle sending of multiple files in succession without a close after each file. All fine now :D

Life's to short for waiting on slow CPU's