Ya-Wen Jeng
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # MIT6: IP and Mobility - **Extend of mobility** - **Intra-cell mobility:** - PHY layer - **Inter-cell but Intra-network mobility: (micro mobility)** - local routing / switching - No change of IP - **Inter-network mobility: (macro mobility)** - change of IP - handled by special mobility signaling protocols ## Mobile IP (MIP) - TCP/IP: developed for non-mobile, single-homed host - IP: location, identity - *no secure* $\Rightarrow$ Mobility: mobile IP $\Rightarrow$ Security: IPSec - **Mobility** - IP: determines physical subnet - routing tables not scalable - IP changes $\Rightarrow$ breaks transport layer connections - **Requirement** - *Transparency:* mobile device keeps IP - *compatibility:* No change in existing routing / devices - *Security:* authenticated - *Efficiency and scalability* > *Concepts:* $\text{basic ID + location ID}$ - **components** - **Mobile Node(MN)** - **Home Agent (HA)** - home network router - manages MN - tunnels IP packets to this locatoin (COA) - **Foreign Agent (FA)** - foreign network router - forwarding tunneled IP packet to MN - provides COA - **Care-of Address (COA)** - valid address of MN - managed by FA - assigned by MN (co-located COA) (via DHCP) - **Correspondent Node (CN)** - **CN$\rightarrow$ MN** - CN$\rightarrow$ HA $\xrightarrow[to\ COA]{\text{encapsulation}}$ FA $\rightarrow$ MN - **MN$\rightarrow$ CN** - MN $\rightarrow$ FA $\rightarrow$ CN - **Network Integration** - *Agent Advertisement:* HA, FA periodically announce their existence - *Registration:* MN $\xrightarrow[\text{via FA}]{\text{COA}}$ HA (protected by anthentication) - *Local Advertisement:* HA $\xrightarrow[\text{as its own addr.}]{\text{IP addr. of MN}}$ access router - packet to MN: sent to HA - independent of changes in COA - HA $\xrightarrow[]{\text{packet}}$ COA $\Rightarrow$ simpler interaction - **Encapsulation:** - $(\text{2}^{\text{nd}} \text{ payload}(\text{1}^{\text{st}} \text{ packet}))$ - **IP-in-IP-encapsulation** - tunnel between HA and COA - **minimal encapsulation** - avoid repetition of identical fields - only for unfragmented packets - **most flexible encapsulation** - **Optimization of Data Path** - **Problem: Triangular Routing** - CN $\xrightarrow[]{\text{all packets}}$ HA $\rightarrow$ MN - especially: MN $\leftrightarrow$ MN - **Solution: Change of FA** - CN learns (from HA) current location of MN (*route optimization*) - (MN registers to new FA new COA) New FA informs old FA about new COA - old FA: forwards packets, can delete the MN's registration information - **Further problem** 1. **firewall** - often enforce topologically correct addresses 2. **multicast** - MN cannot answer 3. **TTL** - TTL varies from different locations 4. **security** - CN can learn address of FA - CN can track MN - **Solution: Reverse Tunneling** MN$\rightarrow$ FA $\require{extpfeil}\Newextarrow{\xRightarrow}{5,5}{0x21D2}\xRightarrow[]{\text{encapsulation}}$ HA $\rightarrow$ CN - Solves Problems 1.2.3. - new problems: - double triangular routing - Security: FA intrudes home network - **Mobile IP and IPv6** - IPv6 can **simplify mobility** support - Security - *Automatic path optimization:* - IPv6 extension headers - *"Soft" handover* - without packet loss - **IPv6 extension header** - Routing - Destination - **Route optimization is mandatory in MIPv6** - CN, MN: *binding update* > **MIP is designed to deal with user mobility** > but security, performance ## Host Identity Protocol (HIP) - **MIP v.s. HIP** - **MIP:** - support for un-modified CN - insfrastructure support (FA,HA) - *indirect mobility management* - *Triangular routing* - **HIP:** - *end-to-en* association - HIP-aware end-host - *direct mobility management* - *Authentication, end-to-end security* - no infrastructure support needed - **HIP:** - **Signaling and key exchange protocol** $\text{control channel + payload channel}$ - **namespace:** cryptographic $\Rightarrow$ mobility, multi-homing - **Identifier / locator split** - *Problem:* tight coupling between network / transport layers $\Rightarrow$ **seperation of location (IPv4, IPv6) and identity (HIP)** - applications see stable identity - routing: locator - $$\text{IP}\xleftarrow[control]{\text{IP}}\text{HIP}\xrightarrow[payload]{\text{HI}}\text{TCP/UDP}$$ - IP can change - HI (Host Identity) is static - Network changes hidden from TCP layer - **Cryptographic namespace** - *Host authentication* - Self-generate *private / public key pair* - HI: public key - **Globally unique / locally unique Identifiers** - **Host Identity Tag (HIT)** - $\text{HIT = hash (HI)}$ - IPv6 - **Local Scope Identity (LSI)** - $\text{LSI = Last digits (HIT)}$ - IPv4 - Restricted to local scope ### IPSec: Internet Protocol Security - **Encryption** - Encapsulated Security Payload (ESP) - Authentication Header (AH) - **mode** - Transport mode - Tunnel mode - **replay protection:** sequence number - No key exchange protocol - **IPSec transport mode with ESP** - end-to-end - create secure tunnel between two hosts - **ESP header:** - **Security Parameter Index (SPI):** required for multiplexing - suquence number - **IPSec tunnel mode with ESP** - gateways - possible to combine with HIP - Inner header: communiting end-hosts Outer header: tunnel end-points - **IPSec Bound End-to-end Tunnel (BEET) mode with ESP** - IPSec mode + HIP - Syntactics (表面上): transport mode Semantics (意義上): tunnel mode - **address translation defined by HIP** - Inner IP: HIP host ID - Outer IP: routable IP address - *Mobility $\leftrightarrow$ Security*  - authentication - re-authentication - DoS $\rightarrow$ careful protocol design - **Information in HIP message** - Host Identity - Sig - Diffie-Hellman - HMAC - IPSec info - **Puzzle:** cryptographic puzzle parameter ### Update 1. Ubtain new IP address 2. Transmit new address to peers 3. Peer varifies routability 4. Peers adjust IPSec tunnel 5. Payload uses adjusted tunnel > IPSec rekeying, mobility, multi-homing - **Locator:** generalization of a network address - **Credit-based authentication** - Mobility $\rightarrow$ redirection-based flooding attacks $\Rightarrow$ Credit-based authentication (CBA) - Idea: limit data rate - credit = number of bytes received from IP address of the peer - only send packet if credit suffices - credit aging decreases ### Multi-homing - extension of mobility - host connected through **two or more interfaces** - multi-homing $\xrightarrow[]{corresponds}$ mobility signaling - inform peers locator parameter - peer runs reachability check - Multi-homed host can also send locator during BEX - **Infrastructure:** - Original: Direct - **middleboxes:** indirect - NAT: compensation for lack of IPv4 addresses - Firewall: security - QoS and Proxy: performance - **Legacy Middleboxes and HIP** - Strong (theoretical) advantage of HIP architecture $\Rightarrow$ But middleboxes can **affect HIP packet delivery** - support only limited set of protocols $\Rightarrow$ need to create support for *lagacy middlebox traversal* - **HIP strategy for lagacy middlebox traversal** - **UDP encapsulation for HIP and payload** - UDP understood by majority of middleboxes $\Rightarrow$ but header overhead, more complex solutions needed ### PISA - **WiFi drawback** - Threats to mobile node: - AP MITM attacks, eavesdropping - Threats to AP: - illegal mobile node - Access AP's LAN - No roaming between APs - WiFi: trust relations - Transitive trust relation - Mobile guest - Community Operator - Host AP > Home AP not included - **PISA: Peer-to-peer-based Wi-Fi Internet Sharing Architecture** - *Securely relocate internet access $\rightarrow$ MN's home* $$\text{AP provider}\require{extpfeil}\Newextarrow{\xLeftrightarrow} {5,5}{0x21D4}\xLeftrightarrow[]{\text{encrypted tunnel}}\text{mobile guest}$$ - security, privacy - transparent moibility support - Solve legal liability (法律責任) problem - Scalable, decentralized solution - **Global mobility and security by** - HIP - Indirection via "Trusted host" - Encrypted tunnel - **PISA: trust relations** - $\text{community}\require{mhchem}\ce{<=>[\text{trust}][\text{attest membership (certificate)}]}\xRightleftharpoons[\text{trust}]{\text{attest membership (certificate)}}\text{Host AP}$ - $\text{Host AP}\require{extpfeil}\Newextarrow{\xLeftrightarrow} {5,5}{0x21D4}\xLeftrightarrow[\text{trust}]{\text{transitive}}\text{Home AP}$ - $\text{Home AP}\require{extpfeil}\Newextarrow{\xLeftrightarrow} {5,5}{0x21D4}\xLeftrightarrow[\text{trust}]{\text{strong}}\text{Mobile guest}$ - $\text{Host AP}\dashrightarrow\text{Mobile guest}$ No trust necessary between Host AP and Mobile guest $\Rightarrow$ data encryption - **Authentication of Trust Point** - $\text{Initiator}\require{extpfeil}\Newextarrow{\xLeftrightarrow} {5,5}{0x21D4}\xLeftrightarrow[\text{Authentication}]{\text{Mutual}}\text{Responder}$ - PISA extends HIP handshake - no seperate handshake protocol - fewer packet, low latency, less complexity - **Mobility with PISA** - PISA extends HIP mobility - Authentication towards TP - Host AP can *inject nonce and puzzle* to enforce Home AP to proof its identification - **Roaming $\Rightarrow$ Delay** - AP discovery - DHCP - authentication - mobility signaling - **Parallel scanning $\Rightarrow$ detecting APs on adjacent channels** - **Neighbour detection and coordination** - Handover optimization - Load balancing - Channel assignments - **Pre-authentication / Pre-configuration** - Neighbour APs - Enable TP and AP to assist handovers - **MOBIKE** - Mobility and Multihoming extension for IKEv2 - VPN: remotely connect to home network, protected by IPSec in tunnel mode - **Problem:** change of access network $\Rightarrow$ change of IPSec SAs - **Solution:** MOBIKE

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully