cellular network NAT traversal
Asked Answered
S

0

6

I tried to implement UDP hole punching algorithm for my application. When both peers contacted the server revealing their public IP the 3G cellular NAT assigned constant external port for the same internal UDP port,however, the 3G cellular NAT changed the internal->external port mapping depending on destination.

Hence, for example, if C is the static IP server A->C was mapped to port 1234 whereas A->B was mapped to port 5678. This way UDP hole punching failed.

As those cellular NATs use CGN, there is no UPnP/NAT-PMP support. I have read about PCP for CGN with functionality similar to these, however, I didn't find any protocol information on PCP.

Does anybody know if there is a way to overcome this destination-variable port mapping issue?

Either by port forwarding(like PCP) or traversal(PREFFERED).

One last thing. There are proofs of concept like skype, viber and MOST IMPORTANTLY torrent downloaders like those that depend on vuze-core(frostwire) that work on android over 3G and other cellular networks. So they obviously must have found a solution for that...

Thanks in advance!

Shep answered 14/4, 2014 at 12:39 Comment(2)
You have not told us what B is. Also, I'm assuming C is a STUN server. I'm interested in proposing solutions to your question but need the clarification.Numerical
@Numerical Thank you, yes C is indeed a STUN server, B is a client presumably on a mobile device(3G/LTE/EDGE...). more accurately A,B are both mobile devices on cellular data.Shep

© 2022 - 2024 — McMap. All rights reserved.