Я загрузил клиент оглушения с http://www.stunprotocol.org/ и пытался определить тип NAT. командой stunclient --mode full stun.stunprotocol.org --verbosity 9, и я получил ответ ниже.
config.fBehaviorTest = true
config.fFilteringTest = true
config.timeoutSeconds = 0
config.uMaxAttempts = 0
config.addrServer = 52.86.10.164:3478
socketconfig.addrLocal = 0.0.0.0:0
Sending message to 52.86.10.164:3478
Got response (68 bytes) from 52.86.10.164:3478 on inter
Other address is 52.201.75.212:3479
Sending message to 52.201.75.212:3478
Got response (68 bytes) from 52.201.75.212:3478 on inte
Sending message to 52.201.75.212:3479
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.201.75.212:3479
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Binding test: success
Local address: 10.64.60.58:58841
Mapped address: 125.19.34.60:24604
Behavior test: fail
Filtering test: success
Nat filtering: Address and Port Dependent Filtering
Я работаю на предприятии, и поэтому по соображениям безопасности тип NAT «Фильтрация, зависящая от адреса и порта» кажется жизнеспособным.
Но как общее явление, мне кажется, что для одноранговых соединений большую часть времени тип NAT будет «Фильтрация, зависящая от адреса и порта», и, следовательно, для любой медиа-коммуникации требуется сервер очереди.
Однако поиск webrtc в Google показывает, что 90% однорангового взаимодействия устанавливается через сам сервер оглушения (путем пробивания отверстий и т. Д.). Это означает, что тип NAT в этом случае полностью поддерживается для установления соединения.
Есть ли у экспертов какие-либо мнения об аналитике типа NAT, которые следует учитывать при одноранговой коммуникации?