'ipip'에 해당되는 글 1건

  1. 2006.08.11 IP Tunneling
engineering/Network Eng.2006. 8. 11. 13:45

rfc2004

Minimal Encapsulation for IP


  The format of the minimal forwarding header is as follows:

   0                   1                   2                   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   Protocol    |S|  reserved   |        Header Checksum        |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                 Original Destination Address                  |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  :            (if present) Original Source Address               :
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

rfc2784

The GRE packet header has the form:

   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |C|       Reserved0       | Ver |         Protocol Type         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Checksum (optional)      |       Reserved1 (Optional)    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


저놈들이 ip within ip와 gre의 packet header form입니다.

ip within ip는 말그대로 ip만을 위한 것입니다. ip header위에 그대로 또다른 ip address를 하나 더 가지고 있는것입니다.

하지만 gre는... 좀 다르죠... protocol type이라는 field가 있습니다.

여러 프로토콜을 보내고자 하는 목적지로 마음대로 보낼수가 있다는게 gre의 특징입니다.

ipip는 mobile네트웍 환경에서 많이 쓰인다고 합니다. 추축컨데.. unicast를 이용한 anycast를 흉내내기 위한 방법으로 사용이 될거 같네요..

그리고 gre는.... 광범위하죠... 말 그대로 routing encapsulation도 가능하고...


출처.

네트워크 전문가 따라잡기. - skullq 님의 답변

Posted by theYoungman