|
各位大虾我现在有一个问题,我采用同样的PPP协议栈,使用GPRS上网TCP UDP都可正常传输,但是采用有线modem及CDMA modem就发现TCP可以,余名解析也可以,但在应用程序发送UDP包时,服务器没有反应(设备和服务器都是同样的程序),是不是lcp协商的问题导致的,以下是我的CDMA连接过程
*** AT Stage: PPP
*** PPP Stage: None
*** PPP Stage: Starting
*** AT Stage: Disc 1
*** PPP Stage: Starting
*** PPP Stage: LCP Options
TX: Protocol: PPP_LCP [c021] Code:CREQ [1] ID:1 Len:14
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000101000000000
ID:948941806
3006-0-0
Reset GPS Task
TX: Protocol: PPP_LCP [c021] Code:CREQ [1] ID:1 Len:14
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000101000000000
ID:948941806
7011-0-0
RX: Protocol: PPP_LCP [c021] Code:CREQ [1] ID:1 Len:29
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000000000000000
type:3 len:5 AP: C223
type:5 len:6 MN: 1552180886
type:7 len:2 PFC
type:8 len:2 ACFC
we n-rejected auth-prot:C223 .. asking for PAP instead
TX: Protocol: PPP_LCP [c021] Code:CNAK [3] ID:1 Len:8
type:3 len:4 AP: C023
RX: Protocol: PPP_LCP [c021] Code:CACK [2] ID:1 Len:14
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000101000000000
Initialize GPS OK
RX: Protocol: PPP_LCP [c021] Code:CACK [2] ID:1 Len:14
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000101000000000
RX: Protocol: PPP_LCP [c021] Code:CREQ [1] ID:2 Len:28
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000000000000000
type:3 len:4 AP: C023
type:5 len:6 MN: 1552180886
type:7 len:2 PFC
type:8 len:2 ACFC
rejected:7
rejected:8
TX: Protocol: PPP_LCP [c021] Code:CREJ [4] ID:2 Len:8
type:7 len:2 PFC
type:8 len:2 ACFC
RX: Protocol: PPP_LCP [c021] Code:CREQ [1] ID:3 Len:24
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000000000000000
type:3 len:4 AP: C023
type:5 len:6 MN: 1552180886
accepted:1
accepted:2
accepted:3
accepted:5
TX: Protocol: PPP_LCP [c021] Code:CACK [2] ID:3 Len:24
type:1 len:41500
type:2 len:6 ACCM: 00000000000000000000000000000000
type:3 len:4 AP: C023
type:5 len:6 MN: 1552180886
LCP Success
*** PPP Stage: LCP Options
*** PPP Stage: Auth'ing
TX: Protocol: PPP_PAP [c023] Code:CREQ [1] ID:1 Len:14
ID:948941806
4005-0-0
RX: Protocol: PPP_PAP [c023] Code:CACK [2] ID:1 Len:5
They accepted our Auth'
*** PPP Stage: Auth'ing
*** PPP Stage: Sorting IP's
PAP Success
TX: Protocol: PPP_IPCP [8021] Code:CREQ [1] ID:1 Len:22
type:3 len:6 ip: 0.0.0.0
type:129 len:6 ip: 0.0.0.0
type:131 len:6 ip: 0.0.0.0
RX: Protocol: PPP_IPCP [8021] Code:CREQ [1] ID:4 Len:16
type:2 len:6 comp-prot: 002D
type:3 len:6 ip: 220.192.168.3
rejected:2
TX: Protocol: PPP_IPCP [8021] Code:CREJ [4] ID:4 Len:10
type:2 len:6 comp-prot: 002D
RX: Protocol: PPP_IPCP [8021] Code:CNAK [3] ID:1 Len:22
type:3 len:6 ip: 220.207.169.79
type:129 len:6 ip: 220.192.32.103
type:131 len:6 ip: 220.192.0.130
TX: Protocol: PPP_IPCP [8021] Code:CREQ [1] ID:2 Len:22
type:3 len:6 ip: 220.207.169.79
type:129 len:6 ip: 220.192.32.103
type:131 len:6 ip: 220.192.0.130
RX: Protocol: PPP_IPCP [8021] Code:CREQ [1] ID:5 Len:10
type:3 len:6 ip: 220.192.168.3
accepted:3
TX: Protocol: PPP_IPCP [8021] Code:CACK [2] ID:5 Len:10
type:3 len:6 ip: 220.192.168.3
RX: Protocol: PPP_IPCP [8021] Code:CACK [2] ID:2 Len:22
type:3 len:6 ip: 220.207.169.79
type:129 len:6 ip: 220.192.32.103
type:131 len:6 ip: 220.192.0.130
Tx Magic Num: 0
Rx Magic Num: 1552180886
Tx ACCM: 00000000000000000000101000000000
Rx ACCM: 00000000000000000000000000000000
Tx MRU: 1500
Rx MRU: 1500
n
Our IP: 220.207.169.79
Their IP: 220.192.168.3
DNS-1 IP: 220.192.32.103
DNS-2 IP: 220.192.0.130
|
|