青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

 P2P communication across middleboxes(翻譯3)

原文版權(quán):Copyright (C) The Internet Society (2003).All Rights Reserved.

原文地址:http://midcom-p2p.sourceforge.net/draft-ford-midcom-p2p-01.txt



3.3.2. Peers behind the same NAT  客戶端都處于相同的NAT之后



Now consider the scenario in which the two clients (probably unknowingly) happen to reside behind the same NAT, and are therefore located in the same private IP address space.  Client A has established a UDP session with server S, to which the common NAT has assigned public port number 62000.  Client B has similarly established a session with S, to which the NAT has assigned public port number 62001.



現(xiàn)在讓我們來考慮一下兩個客戶端(很有可能不知不覺的就會)同時位于相同的NAT之后,而且是在同一個子網(wǎng)內(nèi)部的情況, Client A與S之間的會話使用了NAT的62000端口,Client B與S之間的會話使用了62001端口,如下圖所示:


   Suppose that A and B use the UDP hole punching technique as outlined above to establish a communication channel using server S as an introducer.  Then A and B will learn each other's public IP addresses and port numbers as observed by server S, and start sending each other messages at those public addresses.The two clients will be able to communicate with each other this way as long as the NAT allows hosts on the internal network to open translated UDP sessions with other internal hosts and not just with external hosts. We refer to this situation as "loopback translation," because packets arriving at the NAT from the private network are translated and then "looped back" to the private network rather than being passed through to the public network.  For example, when A sends a UDP packet to B's public address, the packet initially has a source IP address and port number of 10.0.0.1:124 and a destination of 155.99.25.11:62001.  The NAT receives this packet, translates it to have a source of  155.99.25.11:62000 (A's public address) and a destination of 10.1.1.3:1234, and then forwards it on to B.  Even if loopback translation is supported by the NAT, this translation and forwarding   step is obviously unnecessary in this situation, and is likely to add latency to the dialog between A and B as well as burdening the NAT.

   

我們假設(shè),Client A 和 Client B 要使用上一節(jié)我們所描述的 “UDP打洞技術(shù)”,并通過服務(wù)器S這個“媒人”來認(rèn)識,這樣Client A 和Client B首先從服務(wù)端S得到了彼此的公網(wǎng)IP地址和端口,然后就往對方的公網(wǎng)IP地址和端口上發(fā)送消息。在這種情況下,如果NAT 僅僅允許在 內(nèi)部網(wǎng)主機(jī)與其他內(nèi)部網(wǎng)主機(jī)(處于同一個NAT之后的網(wǎng)絡(luò)主機(jī))之間打開UDP會話通信通道,而內(nèi)部網(wǎng)主機(jī)與其他外部網(wǎng)主機(jī)就不允許的話,那么Client A 和Client B就可以通話了。我們把這種情形叫做“l(fā)oopback translation”(“回環(huán)轉(zhuǎn)換”),因?yàn)閿?shù)據(jù)包首先從局域網(wǎng)的私有IP發(fā)送到NAT轉(zhuǎn)換,然后“繞一圈”,再回到局域網(wǎng)中來,但是這樣總比這些數(shù)據(jù)通過公網(wǎng)傳送好。舉例來說,當(dāng) Client A發(fā)送了一個UDP數(shù)據(jù)包到 Client B的公網(wǎng)IP地址,這個數(shù)據(jù)包的報頭中就會有一個源地址10.0.0.1:124和一個目標(biāo)地址155.99.25.11:62001。NAT接收到這個包以后,就會(進(jìn)行地址轉(zhuǎn)換)解析出這個包中有一個公網(wǎng)地址源地址155.99.25.11:62000和一個目標(biāo)地址10.1.1.3:1234,然后再發(fā)送給B,雖說NAT支持“l(fā)oopback translation”,我們也發(fā)現(xiàn),在這種情形下,這個解析和發(fā)送的過程有些多余,并且這個Client A 和Client B 之間的對話可能潛在性地給NAT增加了負(fù)擔(dān)。



The solution to this problem is straightforward, however. When A and B initially exchange address information through server S, they should include their own IP addresses and port numbers as "observed" by themselves, as well as their addresses as observed by S.The clients    then simultaneously start sending packets to each other at each of the alternative addresses they know about, and use the first address that leads to successful communication. If the two clients are behind the same NAT, then the packets directed to their private addresses are likely to arrive first, resulting in a direct communication channel not involving the NAT.  If the two clients are behind different NATs, then the packets directed to their private addresses will fail to reach each other at all, but the clients will hopefully establish connectivity using their respective public addresses. It is important that these packets be authenticated in some way, however, since in the case of different NATs it is entirely possible for A's messages directed at B's private address to reach some other, unrelated node on A's private network, or vice versa.



其實(shí),解決這個問題的方案是顯而易見的。當(dāng) Client A和ClientB 最初通過服務(wù)器S交換彼此的地址信息時,他們也就應(yīng)該“發(fā)現(xiàn)”了自己的IP地址和端口——也就是服務(wù)器S所發(fā)現(xiàn)的。兩個客戶端同時的發(fā)送 數(shù)據(jù)包 到對方的公網(wǎng)地址和私有地址上,然后選擇首先使得通信成功的那個地址就可以了。如果兩個客戶端都位于同一個NAT之后,那么發(fā)往私有地址的數(shù)據(jù)包應(yīng)該先于發(fā)往公網(wǎng)地址的數(shù)據(jù)包到達(dá),這樣就建立了一個不包括NAT的直連通信通道。如果兩個客戶端位于不同NAT之后,雖然發(fā)送到對方私有地址的數(shù)據(jù)包會毫無疑問的發(fā)送失敗,但還是很有可能使用他們各自的公網(wǎng)IP地址來建立一條通信通道的。所以檢測這些數(shù)據(jù)包的方法和工作就變得非常重要,不論如何,只要雙方都處于不同NAT之后,就完全有可能 Client A 想發(fā)送到 Client B 的信息會被發(fā)到別的無關(guān)的地方去,反之亦然(Client B 想發(fā)送到 Client A的消息也會被發(fā)到別的無關(guān)的地方去)。



(最后一句“unrelated node on A's private network”沒有完全理解是什么意思,總之,放到整個語境中,應(yīng)該就是說,Client A 瞄準(zhǔn) Client B的私有地址端口的信息會被NAT轉(zhuǎn)發(fā)到別的地方去,因?yàn)閮烧咛幱诓煌腘AT之后,NAT A 如果在 內(nèi)部網(wǎng)絡(luò) 找到了一個擁有與Client B相同的私有地址的電腦,就會把信息發(fā)送過去,這樣,就根本不會發(fā)送到 Client B 上去)

Posted on 2006-01-12 14:22 艾凡赫 閱讀(424) 評論(1)  編輯 收藏 引用 所屬分類: P2P

Feedback

# re: P2P communication across middleboxes(翻譯3)  回復(fù)  更多評論   

2009-04-21 15:52 by 星綻紫輝
非常不錯~~~感謝作者~~
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            韩日精品中文字幕| 欧美性事在线| 亚洲日本视频| 亚洲综合精品自拍| 久久精品国产精品亚洲精品| 国产亚洲激情在线| 媚黑女一区二区| 欧美国产亚洲精品久久久8v| 这里是久久伊人| 欧美一区二区私人影院日本| 亚洲大片免费看| 亚洲国产成人久久综合| 欧美精品一级| 久久精品导航| 欧美精品成人在线| 久久精品一区中文字幕| 你懂的视频欧美| 午夜精品久久久| 久久午夜国产精品| 亚洲一区二区免费在线| 欧美一区二区三区四区夜夜大片 | 亚洲性感美女99在线| 国产在线视频欧美| 亚洲精品国产系列| 国模 一区 二区 三区| 亚洲激情网址| 国产自产精品| 一区二区三区精密机械公司| 精品成人国产| 亚洲免费在线视频一区 二区| 在线免费观看一区二区三区| 艳女tv在线观看国产一区| 怡红院精品视频在线观看极品| 最新国产の精品合集bt伙计| 国产欧美精品一区二区色综合| 欧美电影在线免费观看网站| 国产精品实拍| 日韩视频在线一区二区| 在线播放日韩| 亚洲尤物视频网| 国产精品99久久久久久久久久久久 | 久久一区二区三区四区| 欧美激情亚洲另类| 久久资源av| 国产欧美亚洲一区| 亚洲视频一二| 一区二区免费在线播放| 麻豆精品视频在线| 久久亚洲综合色一区二区三区| 国产精品免费区二区三区观看| 亚洲精品一区二区三区在线观看| 亚洲国产精品ⅴa在线观看| 欧美一区二区三区视频免费播放 | 亚洲精品国产精品国自产观看| 欧美一区免费| 久久久亚洲欧洲日产国码αv | 欧美精品一区二区三| 欧美激情精品久久久久| 在线观看亚洲视频| 久久精品夜色噜噜亚洲a∨ | 99精品免费视频| 亚洲区在线播放| 牛夜精品久久久久久久99黑人| 久久九九久久九九| 国产一二三精品| 午夜久久一区| 麻豆精品网站| 最新日韩在线| 欧美视频一区在线观看| 亚洲天堂成人| 午夜在线播放视频欧美| 国产欧美一区二区精品秋霞影院 | 美女在线一区二区| 亚洲第一页在线| 欧美成人网在线| 亚洲黄色在线观看| 亚洲一区精彩视频| 国产日韩专区| 久久影视精品| 亚洲欧洲精品一区二区精品久久久| 一区二区不卡在线视频 午夜欧美不卡在| 欧美v日韩v国产v| 日韩视频久久| 久久国产福利| 亚洲人成在线观看一区二区| 欧美日本不卡视频| 西西裸体人体做爰大胆久久久| 久久亚裔精品欧美| 日韩网站免费观看| 国产精品美女久久久免费| 久久久999| aa成人免费视频| 久久久久久久欧美精品| 亚洲精品乱码久久久久久黑人 | 一区二区亚洲| 欧美日韩国产在线| 久久国产精品色婷婷| 亚洲电影免费观看高清完整版在线观看| 中文日韩欧美| 精品动漫3d一区二区三区免费版 | 欧美视频免费看| 久久都是精品| 亚洲桃色在线一区| 欧美成人综合网站| 校园春色综合网| 亚洲精品一品区二品区三品区| 国产精品一区二区三区乱码 | 亚洲男人的天堂在线| 欧美成在线视频| 久久成人一区二区| 99国产精品自拍| 亚洲高清不卡av| 国产婷婷一区二区| 欧美亚州韩日在线看免费版国语版| 久久精品国产综合| 亚洲欧美国产毛片在线| 亚洲伦理中文字幕| 亚洲国产精品激情在线观看 | 亚洲黄色成人| 一区在线观看视频| 国内一区二区在线视频观看| 久久精品三级| 香港久久久电影| 一区二区三区四区蜜桃| 亚洲国产精品毛片| 老鸭窝91久久精品色噜噜导演| 午夜精品一区二区三区在线视| 亚洲精品中文字幕女同| 亚洲电影免费| 狠狠88综合久久久久综合网| 国产精品区二区三区日本| 欧美午夜国产| 欧美视频在线观看视频极品 | 亚洲欧美中文另类| 99精品热视频| 亚洲区国产区| 亚洲乱码精品一二三四区日韩在线 | 亚洲午夜一区| 亚洲亚洲精品三区日韩精品在线视频 | 美脚丝袜一区二区三区在线观看 | 欧美成人午夜影院| 久久天天狠狠| 暖暖成人免费视频| 欧美二区视频| 欧美日韩的一区二区| 欧美日韩一区二区三区免费看| 欧美母乳在线| 欧美性淫爽ww久久久久无| 国产精品区二区三区日本 | 久久精品亚洲精品| 久久综合久久综合久久综合| 久久婷婷人人澡人人喊人人爽| 久久理论片午夜琪琪电影网| 久久三级福利| 欧美日韩人人澡狠狠躁视频| 欧美日韩在线看| 国产嫩草一区二区三区在线观看| 国产亚洲aⅴaaaaaa毛片| 国产一区观看| 亚洲免费观看| 欧美一区二区网站| 久久亚洲捆绑美女| 91久久国产自产拍夜夜嗨| 亚洲欧洲另类| 欧美一区二区精品久久911| 久久婷婷久久一区二区三区| 欧美激情2020午夜免费观看| 国产精品va在线播放| 黑人操亚洲美女惩罚| 亚洲毛片视频| 欧美一区二区视频在线观看| 免费成人性网站| 一本色道久久| 免费观看一区| 国产精品一区免费观看| 亚洲国产成人在线视频| 亚洲欧美999| 欧美第十八页| 午夜国产精品视频免费体验区| 久久亚裔精品欧美| 欧美午夜免费电影| 亚洲黄色av一区| 久久久精品日韩| aa级大片欧美三级| 久久日韩粉嫩一区二区三区| 国产精品第一区| 亚洲国产日韩欧美在线动漫| 欧美一区二区三区久久精品茉莉花| 亚洲第一在线综合网站| 亚洲欧美制服另类日韩| 欧美日韩激情小视频| 黄色国产精品| 国产精品99久久久久久久久久久久| 欧美国产高清| 久久高清国产| 国产精品日韩精品| 这里只有视频精品| 免费日韩av片| 久久国产精品久久w女人spa| 国产精品久久久久毛片大屁完整版|