Re: about TURN MAGIC-COOKIE

Kenneth Ho <[email protected]> Tue, 30 Nov 2004 11:33:10 -0800
Newsgroups gmane.ietf.midcom
Message-ID <[email protected]>
Toshihiro Sonoda wrote:

>> Toshihiro Sonoda wrote:
>>
>>> Why can a server disambiguate a TURN Request from a data packet by
>>> looking for the MAGIC-COOKIE attribute, as described in Section 7.2.3.
>>>
>>> Can it guarantee that UDP packets of non-TURN Packets doesn't have
>>> same value as MAGIC-COOKIE.
>>>
>>>
>> My take is a TURN client library would need to inspect every packet
>> before sending them to a TURN server.
>> If a packet happens to have something resembling a magic-cookie, the
>> library would have to wrap it in a SEND request.
>
>
> If a packet from client to turn server happens to have something
> resembling a magic-cookie, then the packet would have to be wrapped
> using SEND request.
> I understand that.
>
> but, if a packet form turn server to client happens to have something
> resembling a
> magic-cookie, then should turn server wrap the packet using any
> turn-request or response?

You could wrap that packet in a DATA indication to client.

>
>
> _______________________________________________
> midcom mailing list
> [email protected]
> https://www1.ietf.org/mailman/listinfo/midcom
>