這個STUN (Simple Traversal UDP NATs)是用來測試網關NAT |
|
conundrum
尊榮會員 發表:893 回覆:1272 積分:643 註冊:2004-01-06 發送簡訊給我 |
這個STUN (Simple Traversal UDP NATs)是用來測試閘道NAT(Network Address Translation)
類型的伺服器和用戶端。可以用來對,網路類型測試,P2P網路分析,網路故障排除,穿越閘道可行性
測驗,等多種應用。
STUN Server 這個STUN (Simple Traversal UDP NATs)是用來測試網關NAT(Network Address Translation) 類型的服務器和客戶端。可以用來對,網絡類型測試,P2P網絡分析,網絡故障排除,穿越網關可行性 測驗,等多種應用。其工作原理如圖Stun.jpg所示。 我已將這個STUN Server做成DLL,其應用方式有示例說明。這是一個Open Source程序,你可以 將DLL任意使用,任意修改其源代碼。改好後能給你一份嗎:P 在這裡說明其5種Nat類型: 1.Full Cone: A full cone NAT is one where all requests from the same internal IP address and port are mapped to the same external IP address and port. Furthermore, any external host can send a packet to the internal host, by sending a packet to the mapped external address. 2.Restricted Cone: A restricted cone NAT is one where all requests from the same internal IP address and port are mapped to the same external IP address and port. Unlike a full cone NAT, an external host (with IP address X) can send a packet to the internal host only if the internal host had previously sent a packet to IP address X. 3.Port Restricted Cone: A port restricted cone NAT is like a restricted cone NAT, but the restriction includes port numbers. Specifically, an external host can send a packet, with source IP address X and source port P, to the internal host only if the internal host had previously sent a packet to IP address X and port P. 4.Symmetric Nat: 5.Symmetric Firewall : A symmetric NAT is one where all requests from the same internal IP address and port, to a specific destination IP address and port, are mapped to the same external IP address and port. If the same host sends a packet with the same source port, but to a different destination, a different mapping is used. Furthermore, only the external host that receives a packet can send a UDP packet back to the internal host. 出處: http://www.ietf.org/internet-drafts/draft-simu-midcom-stun-aware-nat-00.txt http://www.jdrosen.net/papers/draft-rosenberg-midcom-stun-00.txt Copyright (c) 2003 ybeetle 作者 陳華堯 主頁 http://hp.xilu.com/~maomao/AI/ E-mail: 6b6@21cn.com |
conundrum
尊榮會員 發表:893 回覆:1272 積分:643 註冊:2004-01-06 發送簡訊給我 |
|
johnson_zhang
一般會員 發表:0 回覆:1 積分:0 註冊:2004-10-02 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |