用netstat -nupl查看出来的一个问题

########$ netstat -nupl

(Not all processes could be identified,non-owned process info

 willnot be shown, you would have to be root to see it all.)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

udp       0      0 127.0.0.1:53            0.0.0.0:*                           -              

udp       0      0 0.0.0.0:68              0.0.0.0:*                           -              

udp  229632      0 0.0.0.0:7000            0.0.0.0:*                           9820/simbsphytx

udp       0      0 0.0.0.0:7002            0.0.0.0:*                           9817/simuephy  

udp       0      0 0.0.0.0:7004            0.0.0.0:*                           9817/simuephy  

udp       0      0 0.0.0.0:6000            0.0.0.0:*                           9822/simbsphy  

udp       0      0 0.0.0.0:6002            0.0.0.0:*                           9840/lt-uemac  

udp       0      0 0.0.0.0:6010            0.0.0.0:*                           9840/lt-uemac  

udp       0      0 0.0.0.0:54657           0.0.0.0:*                           -              

udp       0      0 0.0.0.0:5000            0.0.0.0:*                           9837/simbsapp  

udp       0      0 0.0.0.0:5010            0.0.0.0:*                           9856/simueapp  

udp       0      0 0.0.0.0:5050            0.0.0.0:*                           9823/lt-bsmac  

udp       0      0 0.0.0.0:5060            0.0.0.0:*                           9823/lt-bsmac  

udp       0      0 0.0.0.0:5353            0.0.0.0:*                           -              

udp6      0      0 :::5353                 :::*                                -              

udp6      0      0 :::54550                :::*                                -

调试程序的时候发现ue侧收报显示的特别慢,1s发一次包,但是感觉10s才收到一次,用netstat -nupl查看udp端口收发包情况,发现simbsphytx程序有堆积,看代码发现在while循环里有一个20次的循环里面有个sleep(1),于是改成用两个线程来处理,一个线程专门放20次循环,问题解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值