線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:2504
推到 Plurk!
推到 Facebook!

這個STUN (Simple Traversal UDP NATs)是用來測試網關NAT

 
conundrum
尊榮會員


發表:893
回覆:1272
積分:643
註冊:2004-01-06

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-08-15 17:08:59 IP:61.221.xxx.xxx 未訂閱
這個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                                             
附加檔案:54815_STUN Server.rar
conundrum
尊榮會員


發表:893
回覆:1272
積分:643
註冊:2004-01-06

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-08-15 17:11:06 IP:61.221.xxx.xxx 未訂閱
http://delphi.ktop.com.tw/topic.php?TOPIC_ID=54429
johnson_zhang
一般會員


發表:0
回覆:1
積分:0
註冊:2004-10-02

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-10-02 23:09:22 IP:219.139.xxx.xxx 未訂閱
我需要你的帮助 我的MSN是dytszqj@hotmail.com请和我联系好吗?谢谢
系統時間:2024-05-18 19:49:04
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!