Help--------wap gateway Redirect

Help--------wap gateway Redirect SearchSearch
Author Message
rodneyxiao
New member
Username: Xxlin110

Post Number: 6
Registered: 11-2003
Posted on Tuesday, November 25, 2003 - 08:20 am:   

when i Send wap connect pdu(9201)-->
then received Redirect response,the flag is 0x40 and include the redirect ip address,
port(49201).
because the flag is 0x40,so when i
receive the redirect pdu ,i use current session.
Send get method to the redirect address and port, without resend the connect pdu.
in this condition,when i invoke one little content,i can receive the content quickly,but when i invoke one large content,the gateway will abort my session with the error number of E6(Maximum receive unit size exceed),so it seems that the capability negotiation not work,how can i excute capability nogotiation in this process
3X!
yanxh
New member
Username: Yanxh

Post Number: 4
Registered: 11-2003
Posted on Wednesday, November 26, 2003 - 02:24 am:   

Hi,rodneyxiao,
I can't understand you without detail data. would you put your invoke package and connect pdu here?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1232
Registered: 10-2002
Posted on Wednesday, November 26, 2003 - 02:35 am:   

Posting the detail data is a good idea.

But my 2p ... if you receive a redirect response from a connect request, you don't have a session. You haven't negotiated a session.

The 0x40 flag that you are talking about refers to "security session". My interpretation is that it is talking about WTLS. If you have performed a WTLS handshake, and you then issue a connect request ... and you get a redirect response with this flag set, then it is not necessary to perform another WTLS handshake.

I can understand the confusion however. The WAP specifications can be very difficult to understand in spots for a non-native English reader.

Of particular confusion here is the terminology "security session". The WSP spec says:


quote:

If the Reuse Security
Session flag is set, the client MAY use the current security session when requesting a session from the server it is being
redirected to.




But nowhere does it define what security session means. Performing a search against all WAP 2.0 specs, this phrase is only encountered in one other specification, and in a completely unrelated context. (WAP-187-TransportE2ESec refers to "security session" as being an attribute that is displayed to the user as a familiar "lock icon" in a desktop browser.)

So I can understand the confusion. But my read of WAP-230-WSP is that "security session" in this context is talking about WTLS. Bottom line, if you receive a redirect response to a connect request, you still need to issue a connect request. I'd put particular emphasis on the text "when requesting a session from the server it is being redirected to" ... that suggests that you still need to request a session (i.e., perform a WSP connect).
rodneyxiao
New member
Username: Xxlin110

Post Number: 7
Registered: 11-2003
Posted on Wednesday, November 26, 2003 - 03:35 am:   

1.first condition
send connect pdu (to 9201)
--> 0x0a 0x00 0x01 02 0x01 0x10 0x13 0x39 0x04 0x80....
<--redirect pdu
0x12 0x80 0x01 0x03 0x40 0xc4 0x00 0xc0 0x31
0xd2 0xf1 0xc7 0xc7
-->resend connect pdu(as last time) to the redirect address and port(49201,redirect address)
there is no response received any more.
2.second condition
send connect pdu (to 9201)
--> 0x0a 0x00 0x01 02 0x01 0x10 0x13 0x39 0x04 0x80....
<--redirect pdu
0x12 0x80 0x01 0x03 0x40 0xc4 0x00 0xc0 0x31
0xd2 0xf1 0xc7 0xc7

-->send ack 18 00 01
-->send get method
at this time,though there is session was created,i send get pdu
--> 0a 00 02 12 40 .....
then i receive invoke content
<--10 80 02 04 20 81...(is a wml)
can you explain it to me?


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1283
Registered: 10-2002
Posted on Monday, December 01, 2003 - 09:45 am:   

In the first condition, are you sure that you have decoded the redirect address correctly? If you are not receiving a response back, I am suspicious that you are not sending to the correct redirect address? 210.241.199.199


For the second condition, you are recieving a result WTP PDU, with a Reply WSP PDU. Maybe the content includes some error text?
Anonymous
 
Posted on Friday, December 12, 2003 - 01:21 am:   

can you explain how to get "210.241.199.199" data from redirect pdu?


rodneyxiao
New member
Username: Xxlin110

Post Number: 13
Registered: 11-2003
Posted on Friday, December 12, 2003 - 02:57 am:   

bearer type 00 ipv4

0xd2 0xf1 0xc7 0xc7 就是redirect ip address
rodneyxiao
New member
Username: Xxlin110

Post Number: 14
Registered: 11-2003
Posted on Friday, December 12, 2003 - 05:34 am:   

hello bryce:

i can confirm i get the redirect ip addres is
210.241.199.199 the redirect port number is 49201
i paste the pdu of the all progress :
1.first case
send connect pdu
0a 00 01 02 01 10 13 39 04 80 8c 9a 40 04 81 8c 9a 40 02 82 48 02 83 0a 02 84 01 80 80 a9 ...
....
receive 12 80 01 03 40 c4 00 c0 30 d2 f1 c7 c7

so i send connnect pdu to the redirect address and port ,but no response received any more.
send: 0a 00 02 02 01 10 ....
2.second case
send connect pdu
0a 00 01 02 01 10 13 39 04 80 8c 9a 40 04 81 8c 9a 40 02 82 48 02 83 0a 02 84 01 80 80 a9 ...
....
receive 12 80 01 03 40 c4 00 c0 30 d2 f1 c7 c7

i send the method invoke to the redirect addr&port
0a 00 02 12 40 18 68.... encoded url & accept header.
Received:
98 80 02 19 00
10 80 02 04 20 81 1f 03 94 81 ea ......psn=0 result
32 80 02 01 74 70 .... psn=1 result
Send:
98 00 02 19 01

but when i invoke large message, i receive abort
pdu with E6,in this way ,where can i make capability negotiation ?
thanks


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1396
Registered: 10-2002
Posted on Monday, December 15, 2003 - 10:52 pm:   

Rodney,

I haven't seen this type of behaviour before. I'm wondering if there might be something unusual in the format of your connect request.

We always perform a new connect after a redirect. So far I haven't seen a situation like you describe.

-bn