[問答] udp傳輸終止原理

看板Network作者 (鴆羅)時間12年前 (2011/09/20 00:57), 編輯推噓1(108)
留言9則, 3人參與, 最新討論串1/1
這是節錄課本的 The source increments the TTL field for each datagram it sends. Thus, one of the datagrams will eventually make it all the way to the destination host. Because thie datagram contains a UDP segment with an unlikely port number, the distination host sends a port unreachable ICMP message. 想請問的是 Thus 後面開始有點不太懂 為什麼port number會跟前面送的segment不一樣? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.140.175

09/20 23:08, , 1F
這段敘述看起來像是traceroute by udp packet的陳述
09/20 23:08, 1F

09/20 23:09, , 2F
udp本身並沒有什麼特殊的傳輸控制方法在
09/20 23:09, 2F

09/20 23:10, , 3F
使用一個不服務的port 很自然地會傳送出icmp回應
09/20 23:10, 3F

09/20 23:12, , 4F
藉以達成traceroute的目的囉...另一種trace by icmp packet
09/20 23:12, 4F

09/20 23:31, , 5F
所以接收端已經收滿 就把接收用的port關掉 所以之後收到
09/20 23:31, 5F

09/20 23:31, , 6F
的packet上的port就是不服務的port?
09/20 23:31, 6F

09/21 00:11, , 7F
這跟收滿沒有關係, 而是故意選用一個應該沒在用的 port
09/21 00:11, 7F

09/21 00:12, , 8F
udp traceroute +1
09/21 00:12, 8F

09/21 00:37, , 9F
有點懂了 謝謝:)
09/21 00:37, 9F
文章代碼(AID): #1ETtI3ZM (Network)