1 / 12

MN&FA encapsulation/ decapsulation

MN&FA encapsulation/ decapsulation. Outline. Introduction Encapsulation/Decapsulation FA decapsulation MN decapsulation. Introduction. 在 MIPv4 機制中,當 CN 傳送 packet 到 MN 所在的 home network 時,若 MN 當時在 home network 底下, HA 會直接將 packet forward 給 MN

Download Presentation

MN&FA encapsulation/ decapsulation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MN&FA encapsulation/ decapsulation

  2. Outline • Introduction • Encapsulation/Decapsulation • FA decapsulation • MN decapsulation

  3. Introduction • 在MIPv4機制中,當CN傳送packet到MN所在的home network時,若MN當時在home network底下,HA會直接將packet forward給MN • 當MN在Foreign network底下時,會發出BU通知HA目前新的位置,並且讓HA負責代為轉送封包

  4. Introduction • 當HA要負責轉送封包時,會將要傳送給MN的封包透過IP-in-IP tunnel的方式將packet封裝之後再送出(Encapsulate) • Decapsulate主要是將HA封裝過後的packet做解封的動作,根據執行的對象可以分為 • FA decapsulate:由FA負責解開封包 • MN decapsulate:由MN自己負責解開封包

  5. HA encapsulation • HA要負責轉送封包給MN的時候必須做一件事情始封包可以正確無誤的傳送到MN • 透過IP-in-IP tunnel的方式將封包封裝 • 我們定義此動作為 Encapsulation

  6. FA decapsulation • 負責解開tunnel封包的如果是FA,則HA會將Encapsulate之後的packet forward給FA • FA收到packet之後,會將外層tunnel所使用的IP拿掉,作decapsulate的動作,並且根據實際封包裡的IP位置,將此packet傳送給位於Foreign network底下的MN

  7. MN decapsulation • 負責解開tunnel封包的如果是MN,則HA會將封裝後的封包直接傳送給MN • MN收到封包之後,一樣會將外層tunnel所使用的IP去掉,作decapsulate動作,並且查看實際封包裡的IP位置,是否和當初註冊的HoA位置相同

  8. Care of address • 根據兩種不同的decapsulate方式,MN所取得的CoA也有兩種不同的稱呼 • 如果是FA decapsulate模式時,此時MN的IP稱為Foreign agent care-of address(FA-CoA) • 也就是由foreign agent去分配在foreign network上的暫時性的IP位址。 • 如果是MN decapsulate模式時,此時MN的IP稱為Co-located CoA • care-of address的取得是經由DHCP通訊協定,動態的去取得一個IP位址。

  9. 基於MIP機制下傳送封包的流程

  10. Packet decapsulation FA-CoAor Co-located CoA 封包後半段紅色框框部分,是原本的MIP封包 前面藍色框框部分是經過encapsulate之後的ip header 當FA or MN作decapsulate時,會將前面的ip header拿掉

  11. MIPv6 解封包機制 • 在MIPv6機制中,原本FA的角色被IPv6的路由器所取代 • 因為FA已經不存在了,所以原本在MIPv4中的兩種模式,到了MIPv6只剩下MN decapsulate模式

  12. 參考資料 • Rfc-3344: MIPv4 • http://www.ietf.org/rfc/rfc3344.txt • RFC-3775: MIPv6 • http://www.ietf.org/rfc/rfc3775.txt

More Related