########$ 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次循环,问题解决。