TCP/IP_Mobile IP

silups·2024년 12월 11일
0

TCP/IP

목록 보기
8/12

Mobile IP

  • IP address의 일부는 연결되어 있는 Network address가 포함됨
    - IP address는 위치가 고정된 host에게 적합하게 설계됨(문제점)

ex) 노트북, 스마트폰

  • 이를 해결 하기 위해, Mobile IP는 home address와 care-of address를 가짐
  • home address: 영구적인 고정 IP
  • care-of address: host의 위치에 따라 변하는 IP

Agents

  • home agent: home address를 할당해줌

  • foreign agent: 새롭게 Network에 들어온 host에게 care-of address를 할당

  • agent는 보통 router가 그 역할을 하지만 host자체가 foreign agent의 역할을 할 수도 있음

    • 이 경우 할당된 address를 colocated care-of address라고 함

Three phases

mobile host와 remote host의 통신 과정

1. agent discovery

  • agent 위치 찾기 (address 할당)

1) host가 agent를 찾기 위한 agent solicitation message를 보냄
2) agnet는 이에 대한 응답으로 agent advertisement message를 보내며 home/care-of(IP) address를 할당함.

agent advertisement

  • ICMP의 router advertisement packet에 agent advertisement message를 추가하여 사용 (solicitation message도 마찬가지)
  • 할당할 care-of message가 포함됨

code 값

code 0: 등록
code 1: 등록 받지 않음(agent 바쁨)
code 2: home agent로 작동
code 3: foreign agent로 작동
code 4: minimal encapsulation 사용
code 5: generic routing encapsulation 사용
code 6: header를 압축하여 전송
code 7: 사용 안함

2. registration

  • home address 등록

1) foreign host가 foreign agent에게 registration request message 전송
- 자신의 기존 home address를 알려주기 위함
2) foreign agent가 home agent에게 registration request message 전송
- home agent에게 host의 위치를 알려주기 위함
3) 등록 완료 시, registration reply 메시지가 돌아옴

registration request

flag 값

code 0: 이전의 care-of address를 가지고 있음
code 1: tunneling 기법 사용
code 2: colocated care-of address를 가지고 있음
code 3: minimal encapsulation 사용
code 4: generic routing encapsulation 사용
code 5: header 압축
code 6, 7: 사용 안함

registration reply

  • registration request, reply message는 UDP의 well-known port 434를 사용

3. data transfer

  • 데이터 교환

1) remote host는 home address로 data 전송
2) home agent가 foreign agent에게 전송 (tunneling 기법)
3) foreign agent가 mobile host에게 전송
4) mobile host는 remote host에게 바로 전송 가능

Inefficiency in mobile IP

  • mobile IP는 현재 표준만 정해져있고 실용화 되지는 않음

mobile IP의 비효율성 2가지

Double crossing

  • remote host와 mobile host가 같은 network에 있을 때, remote host는 mobile host의 위치를 알지 못하기 때문에 비효율성이 발생

해결법

  • home agent가 remote host에게 주소 바인딩 message를 보냄
    • mobile host가 같은 network에 있음을 알려줌
      • 이는 protocol을 새롭게 개발해야 가능

Triangle routing

  • 바로 mobile host에게 보낼 수 있음에도 Home agent로 보냄
  • 해결법 없음
profile
NDBT

0개의 댓글