UDP packet not sent

Joel Sherrill joel.sherrill at OARcorp.com
Wed Nov 12 11:14:44 UTC 2003


Rolf Schroedter wrote:

> gregory.menke at gsfc.nasa.gov wrote:
>
>> Ah, I see- thats a different problem.  In your udpclose function, you
>> call the various rtems_ info functions.  If you call them before and
>> after the packets are lost, are the lost packets being properly
>> counted?
>>
>> Its not inconceivable theres a bug in the driver, but I would not
>> suspect one in the IP stack itself.
>>
> Hallo Gregory,
> unfortunately I'm not able to reply to you from home.
> Your gsfcrelay4.gsfc.nasa.gov blocks my web.de
>
> Here is the log with printed RTEMS network statistics
> and marked lost packets (not shown in ETHEREAL).
> BTW, my network configuration is simple:
> - A Linux-PC and a LEON-board (RTEMS) connected with a crossed cable.

Are you trying to run at 100 Mbits?  Jiri Gaisler mentioned to me that 
the OpenCores
NIC is not 100% perfect at 100 Mbits. 

> - No hub/switch
> - Packets are sent very slowly with a 100 msec delay.
>
> Log output:
> ############
> My name is leon (192.168.0.100)
> open_eth: driver attached, PHY config : 0x0000
> UDP: Writing UDP packets to addr=192.168.0.1 port=50001 ...
> === #0 32 x 1040, 12 x 960 ===
> write: bytes=0x20 size=1040 result=1040
> write: bytes=0x21 size=1040 result=1040
> write: bytes=0x22 size=1040 result=1040
> write: bytes=0x23 size=1040 result=1040
> write: bytes=0x24 size=1040 result=1040
> write: bytes=0x25 size=1040 result=1040
> write: bytes=0x26 size=1040 result=1040
> write: bytes=0x27 size=1040 result=1040
> write: bytes=0x28 size=1040 result=1040
> write: bytes=0x29 size=1040 result=1040
> write: bytes=0x2A size=1040 result=1040
> write: bytes=0x2B size=1040 result=1040
> write: bytes=0x2C size=1040 result=1040
> write: bytes=0x2D size=1040 result=1040
> write: bytes=0x2E size=1040 result=1040
> write: bytes=0x2F size=1040 result=1040
> write: bytes=0x30 size=1040 result=1040
> write: bytes=0x31 size=1040 result=1040
> write: bytes=0x32 size=1040 result=1040
> write: bytes=0x33 size=1040 result=1040
> write: bytes=0x34 size=1040 result=1040
> write: bytes=0x35 size=1040 result=1040
> write: bytes=0x36 size=1040 result=1040
> write: bytes=0x37 size=1040 result=1040
> write: bytes=0x38 size=1040 result=1040
> write: bytes=0x39 size=1040 result=1040
> write: bytes=0x3A size=1040 result=1040
> write: bytes=0x3B size=1040 result=1040
> write: bytes=0x3C size=1040 result=1040
> write: bytes=0x3D size=1040 result=1040
> write: bytes=0x3E size=1040 result=1040
> write: bytes=0x3F size=1040 result=1040    ### all packets sent ###
> ====================================================================
> ************ MBUF STATISTICS ************
> mbufs:1024    clusters: 128    free: 112
> drops:   0       waits:   0  drains:   0
>       free:1007          data:17          header:0           socket:0
>        pcb:0           rtable:0           htable:0           atable:0
>     soname:0           soopts:0           ftable:0           rights:0
>     ifaddr:0          control:0          oobdata:0
>
> ************ INTERFACE STATISTICS ************
> ***** open_eth1 *****
> Address:192.168.0.100   Broadcast Address:192.168.0.255
> Flags: Up Broadcast Running Simplex
> Send queue limit:50   length:0    Dropped:0
>          Rx Packets:1             Rx Interrupts:1 
> Length:0              Non-octet:0
>             Bad CRC:0                Overrun:0                   
> Miss:0              Collision:0
>       Tx Interrupts:0               Deferred:0        Missed Hearbeat:0
>          No Carrier:0       Retransmit Limit:0         Late Collision:0
>            Underrun:0        Raw output wait:0
>
> ************ IP Statistics ************
>     total ip packets generated here          32
>
> ====================================================================
> write: bytes=0x40 size=960 result=960    ### lost ###
> write: bytes=0x41 size=960 result=960    ### lost ###
> write: bytes=0x42 size=960 result=960    ### lost ###
> write: bytes=0x43 size=960 result=960    ### lost ###
> write: bytes=0x44 size=960 result=960    ### lost ###
> write: bytes=0x45 size=960 result=960    ### lost ###
> write: bytes=0x46 size=960 result=960    ### lost ###
> write: bytes=0x47 size=960 result=960    ### lost ###
> write: bytes=0x48 size=960 result=960    ### lost ###
> write: bytes=0x49 size=960 result=960    ### lost ###
> write: bytes=0x4A size=960 result=960    ### lost ###
> write: bytes=0x4B size=960 result=960    ### lost ###
> ====================================================================
> ************ MBUF STATISTICS ************
> mbufs:1024    clusters: 128    free: 112
> drops:   0       waits:   0  drains:   0
>       free:1007          data:17          header:0           socket:0
>        pcb:0           rtable:0           htable:0           atable:0
>     soname:0           soopts:0           ftable:0           rights:0
>     ifaddr:0          control:0          oobdata:0
>
> ************ INTERFACE STATISTICS ************
> ***** open_eth1 *****
> Address:192.168.0.100   Broadcast Address:192.168.0.255
> Flags: Up Broadcast Running Simplex
> Send queue limit:50   length:0    Dropped:0
>          Rx Packets:1             Rx Interrupts:1 
> Length:0              Non-octet:0
>             Bad CRC:0                Overrun:0                   
> Miss:0              Collision:0
>       Tx Interrupts:0               Deferred:0        Missed Hearbeat:0
>          No Carrier:0       Retransmit Limit:0         Late Collision:0
>            Underrun:0        Raw output wait:0
>
> ************ IP Statistics ************
>     total ip packets generated here          44
>
> ====================================================================
> write: bytes=0x4C size=480 result=480    ### lost ###
> write: bytes=0x4D size=240 result=240
> write: bytes=0x4E size=120 result=120
> write: bytes=0x4F size=60 result=60
> ====================================================================
> ************ MBUF STATISTICS ************
> mbufs:1024    clusters: 128    free: 112
> drops:   0       waits:   0  drains:   0
>       free:1007          data:17          header:0           socket:0
>        pcb:0           rtable:0           htable:0           atable:0
>     soname:0           soopts:0           ftable:0           rights:0
>     ifaddr:0          control:0          oobdata:0
>
> ************ INTERFACE STATISTICS ************
> ***** open_eth1 *****
> Address:192.168.0.100   Broadcast Address:192.168.0.255
> Flags: Up Broadcast Running Simplex
> Send queue limit:50   length:0    Dropped:0
>          Rx Packets:1             Rx Interrupts:1 
> Length:0              Non-octet:0
>             Bad CRC:0                Overrun:0                   
> Miss:0              Collision:0
>       Tx Interrupts:0               Deferred:0        Missed Hearbeat:0
>          No Carrier:0       Retransmit Limit:0         Late Collision:0
>            Underrun:0        Raw output wait:0
>
> ************ IP Statistics ************
>     total ip packets generated here          48
>
> ====================================================================
> === #1 32 x 1040, 12 x 960 ===
> write: bytes=0x50 size=1040 result=1040    ### lost ###
> write: bytes=0x51 size=1040 result=1040    ### lost ###
> write: bytes=0x52 size=1040 result=1040    ### lost ###
> write: bytes=0x53 size=1040 result=1040    ### lost ###
> write: bytes=0x54 size=1040 result=1040    ### lost ###
> write: bytes=0x55 size=1040 result=1040    ### lost ###
> write: bytes=0x56 size=1040 result=1040    ### lost ###
> write: bytes=0x57 size=1040 result=1040    ### lost ###
> write: bytes=0x58 size=1040 result=1040    ### lost ###
> write: bytes=0x59 size=1040 result=1040    ### lost ###
> write: bytes=0x5A size=1040 result=1040    ### lost ###
> write: bytes=0x5B size=1040 result=1040    ### lost ###
> write: bytes=0x5C size=1040 result=1040    ### lost ###
> write: bytes=0x5D size=1040 result=1040
> write: bytes=0x5E size=1040 result=1040
> write: bytes=0x5F size=1040 result=1040
> write: bytes=0x60 size=1040 result=1040    ### lost ###
> write: bytes=0x61 size=1040 result=1040    ### lost ###
> write: bytes=0x62 size=1040 result=1040    ### lost ###
> write: bytes=0x63 size=1040 result=1040    ### lost ###
> write: bytes=0x64 size=1040 result=1040    ### lost ###
> write: bytes=0x65 size=1040 result=1040    ### lost ###
> write: bytes=0x66 size=1040 result=1040    ### lost ###
> write: bytes=0x67 size=1040 result=1040    ### lost ###
> write: bytes=0x68 size=1040 result=1040    ### lost ###
> write: bytes=0x69 size=1040 result=1040    ### lost ###
> write: bytes=0x6A size=1040 result=1040    ### lost ###
> write: bytes=0x6B size=1040 result=1040    ### lost ###
> write: bytes=0x6C size=1040 result=1040    ### lost ###
> write: bytes=0x6D size=1040 result=1040
> write: bytes=0x6E size=1040 result=1040
> write: bytes=0x6F size=1040 result=1040
> ====================================================================
> ************ MBUF STATISTICS ************
> mbufs:1024    clusters: 128    free: 112
> drops:   0       waits:   0  drains:   0
>       free:1007          data:17          header:0           socket:0
>        pcb:0           rtable:0           htable:0           atable:0
>     soname:0           soopts:0           ftable:0           rights:0
>     ifaddr:0          control:0          oobdata:0
>
> ************ INTERFACE STATISTICS ************
> ***** open_eth1 *****
> Address:192.168.0.100   Broadcast Address:192.168.0.255
> Flags: Up Broadcast Running Simplex
> Send queue limit:50   length:0    Dropped:0
>          Rx Packets:1             Rx Interrupts:1 
> Length:0              Non-octet:0
>             Bad CRC:0                Overrun:0                   
> Miss:0              Collision:0
>       Tx Interrupts:0               Deferred:0        Missed Hearbeat:0
>          No Carrier:0       Retransmit Limit:0         Late Collision:0
>            Underrun:0        Raw output wait:0
>
> ************ IP Statistics ************
>     total ip packets generated here          80
>
> ====================================================================
> write: bytes=0x70 size=960 result=960    ### lost ###
> write: bytes=0x71 size=960 result=960    ### lost ###
> write: bytes=0x72 size=960 result=960    ### lost ###
> write: bytes=0x73 size=960 result=960    ### lost ###
> write: bytes=0x74 size=960 result=960    ### lost ###
> write: bytes=0x75 size=960 result=960    ### lost ###
> write: bytes=0x76 size=960 result=960    ### lost ###
> write: bytes=0x77 size=960 result=960    ### lost ###
> write: bytes=0x78 size=960 result=960    ### lost ###
> write: bytes=0x79 size=960 result=960    ### lost ###
> write: bytes=0x7A size=960 result=960    ### lost ###
> write: bytes=0x7B size=960 result=960    ### lost ###
> ====================================================================
> ************ MBUF STATISTICS ************
> mbufs:1024    clusters: 128    free: 112
> drops:   0       waits:   0  drains:   0
>       free:1007          data:17          header:0           socket:0
>        pcb:0           rtable:0           htable:0           atable:0
>     soname:0           soopts:0           ftable:0           rights:0
>     ifaddr:0          control:0          oobdata:0
>
> ************ INTERFACE STATISTICS ************
> ***** open_eth1 *****
> Address:192.168.0.100   Broadcast Address:192.168.0.255
> Flags: Up Broadcast Running Simplex
> Send queue limit:50   length:0    Dropped:0
>          Rx Packets:1             Rx Interrupts:1 
> Length:0              Non-octet:0
>             Bad CRC:0                Overrun:0                   
> Miss:0              Collision:0
>       Tx Interrupts:0               Deferred:0        Missed Hearbeat:0
>          No Carrier:0       Retransmit Limit:0         Late Collision:0
>            Underrun:0        Raw output wait:0
>
> ************ IP Statistics ************
>     total ip packets generated here          92
>
> ====================================================================
> write: bytes=0x7C size=480 result=480    ### lost ###
> write: bytes=0x7D size=240 result=240
> write: bytes=0x7E size=120 result=120
> write: bytes=0x7F size=60 result=60
> ====================================================================
> ************ MBUF STATISTICS ************
> mbufs:1024    clusters: 128    free: 112
> drops:   0       waits:   0  drains:   0
>       free:1007          data:17          header:0           socket:0
>        pcb:0           rtable:0           htable:0           atable:0
>     soname:0           soopts:0           ftable:0           rights:0
>     ifaddr:0          control:0          oobdata:0
>
> ************ INTERFACE STATISTICS ************
> ***** open_eth1 *****
> Address:192.168.0.100   Broadcast Address:192.168.0.255
> Flags: Up Broadcast Running Simplex
> Send queue limit:50   length:0    Dropped:0
>          Rx Packets:1             Rx Interrupts:1 
> Length:0              Non-octet:0
>             Bad CRC:0                Overrun:0                   
> Miss:0              Collision:0
>       Tx Interrupts:0               Deferred:0        Missed Hearbeat:0
>          No Carrier:0       Retransmit Limit:0         Late Collision:0
>            Underrun:0        Raw output wait:0
>
> ************ IP Statistics ************
>     total ip packets generated here          96
>
> ====================================================================
> packets sent: 64 x 1040, 24 x 960, 8 x 960/2^n  errors=0
> UDP: Closing connection
>






More information about the users mailing list