作者RZAddict (鴆羅)
看板Network
標題[問答] udp傳輸終止原理
時間Tue Sep 20 00:57:35 2011
這是節錄課本的
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
1F:推 sssxyz:這段敘述看起來像是traceroute by udp packet的陳述 09/20 23:08
2F:→ sssxyz:udp本身並沒有什麼特殊的傳輸控制方法在 09/20 23:09
3F:→ sssxyz:使用一個不服務的port 很自然地會傳送出icmp回應 09/20 23:10
4F:→ sssxyz:藉以達成traceroute的目的囉...另一種trace by icmp packet 09/20 23:12
5F:→ RZAddict:所以接收端已經收滿 就把接收用的port關掉 所以之後收到 09/20 23:31
6F:→ RZAddict:的packet上的port就是不服務的port? 09/20 23:31
7F:→ birdy590:這跟收滿沒有關係, 而是故意選用一個應該沒在用的 port 09/21 00:11
8F:→ birdy590:udp traceroute +1 09/21 00:12
9F:→ RZAddict:有點懂了 謝謝:) 09/21 00:37