1 / 25

mobiwan

mobiwan. 報告者:潘楷方 696430066. Mobile IP. Mobile IP 機制,可以讓 Mobile Node (MN) 在不同的子網路換手時,可以保留原本的 IP 。 HOW?. 藉由固定的 HoA 和變動的 CoA ( 三個步驟:取得,註冊,傳送 ). Care-of-Address - Foreign Agent 指定 - DHCP Binding 包含三個元素 - Home address - Care-of-address - Registration Lifetime. Binding Update

Download Presentation

mobiwan

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. mobiwan 報告者:潘楷方 696430066

  2. Mobile IP • Mobile IP機制,可以讓Mobile Node (MN)在不同的子網路換手時,可以保留原本的IP。 • HOW? 藉由固定的HoA和變動的CoA ( 三個步驟:取得,註冊,傳送 )

  3. Care-of-Address - Foreign Agent指定 - DHCP • Binding包含三個元素 - Home address - Care-of-address - Registration Lifetime

  4. Binding Update Data Transmission Mobile IPv4 (MIP) Corresponded Node (CN) Foreign Agent (FA) Home Agent (HA) Mobile Node (MN) Home Network Foreign Network

  5. Tunneling to the Care-of-Address • Encapsulate - IP-within-IP (RFC2003) - Minimal Encapsulation (RFC2004) • 在packet前加上新的header,但是原本的標頭維持不變。這樣子,就可以使用原本IP層傳送封包的方法

  6. 三角路由(Triangular Routing of Data ) 每次要傳送資料時,都必須透過FA和HA

  7. MIP to MIPv6 • 取消了Foreign Agent,並將其功能融入IPv6路由器之中。 • CoA改由AR分配 • 路由最佳化

  8. Binding Update Data Transmission Mobile IPv6 (MIPv6) Corresponded Node (CN) Access Router (AR) Home Agent (HA) Mobile Node (MN) Home Network Foreign Network

  9. HoACoA HoACoA Binding Table Binding Table • MIPv4 (MIP) • MIPv6

  10. Mobiwan簡介 • MobiWAN 來自 Motorola 巴黎實驗室,MobiWAN 主要進行了下面幾點的延伸: • 提供了 mipv6 協定的支援 • 提供了 TopoGen TopoMan 這些生成拓撲結構的工具 • MobiWAN 目前支援 MIPv6,而不支援 HMIPv6/FMIPv6。

  11. 安裝Mobiwan in NS • 若ns版本是2.26或2.27,可在http://www.ti-wmc.nl/mobiwan2/ 下載patch檔 • 若是2.28,可直接下載 http://www.kolonianet.pl/przemac/ns/ns-228-mobiwan-102.diff.gz patch檔

  12. 安裝步驟 • 安装patch前先不要install ns ,只要先將原本的ns-allinone-2.2x解壓縮即可。 • 拷貝patch檔並放到ns-2.2x資料夾之中 • 執行 $zcat -f filenameofpatch |patch -p1 • 安裝完ns2之後,在bashrc設定路徑

  13. http://www.ti-wmc.nl/mobiwan2/simple-mipv6.tcl.txt 執行上面連結的範例檔,若出現 >-------------------- NS Addressing --------------------< Domains (domain_num) : 2 Clusters (cluster_num) : 1 5 Nodes (nodes_num) : 1 1 3 1 1 1 >-------------------------------------------------------< 31.902 get_coa for BS 1.2.0:4198400 Simulation finished 則代表安裝成功

  14. 注意,在安裝mobiwan之後,將無法執行MIPv4的tcl,最好將mobiwan裝在新的資料夾。注意,在安裝mobiwan之後,將無法執行MIPv4的tcl,最好將mobiwan裝在新的資料夾。

  15. MobiWAN in TCL - I • 建立MN:宣告 Agent/MIPv6/MN • 建立HA:宣告Agent/MIPv6/BS • [$MN_ set regagent_] check-beacon 1.0 ; #設定beacon_ interval 1s MN探測RA的頻率 • [$HA_ set regagent_] beacon-period 0.3; #設定beacon_ interval 300ms 會影響RA頻率

  16. MobiWAN in TCL - II • set mobile_ [create-mobile 1.1.1 1.1.0 100 100 0 1 0.04] ; home_addr = 1.1.1 (the home address of mobile_) ha_addr = 1.1.0 (the address of mobile_'s home agent) X = 500 Y = 500 Z = 0 random = 1 (0 means "random-motion" off; 1 means "random-motion" on) args = 0.04 (the time when "random-motion" should start)

  17. MobiWAN in TCL - III • set HA_ [create-base-station 1.1.0 1.0.0 1 2 0] #後面參數和MN相同 • Dump the Binding Update List of MN and Binding Cache of HA [[$MN_ set ha_] set regagent_] dump [$MN_ set regagent_] dump

  18. Packet type • PT_RADS:Advertisement from other BSs • PT_BU:Home Registration • PT_BACK:Binding ACK from the BS(MN only) • PT_BREQ:BINDING REQUEST from other MNs • PT_SOL:Solicitations from MN

  19. The Foreign network The Home network The new entry The old entry

  20. MN_registration: - 若MN的CoA和HoA相同,則取消route 反之,增加route - 會在此處發送binding ACK給MN

  21. Update_bcache: - 尋找該CoA是否有在bcache中出現過, 若有,則取出該entry資料,反之,建立一個新的entry - 會在這邊呼叫encap/delete route - 會將目前時間,還有重新設定的lifetime 寫到entry之中

  22. Insert entry: - 若update_bcache中用到的是新建立的 entry,則將該entry插入到bcache中 (插入到head) - 反之,如果update_bcache時是更新原本就存在於bcache中的entry,則會呼叫 Update_entry

  23. Encap / Delete route:

  24. New BS Old BS Not Expired Expired

  25. Add bs:在bcache中增加一個新的entry 用來紀錄新的bs,並在之後的reg向這個 bs註冊一個新的CoA • Update entry:檢查目前使用的CoA是否到期,若已經到期,則會切換目前的CoA 反之,啟動BU_TIMER來定時發出BU

More Related