12-29-2008 10:23 PM - edited 03-04-2019 03:16 AM
I'm just learning GRE tunneling right now. I'm a little confused about how a GRE tunnel is supposed to work to get a packet to the destination. Does IP encapsulate a GRE tunnel with the IP address of the destination? If so, how does this work. It seems that a packet is already handed down from the Network to the Data Link layer, and there the tunnel is added, which is where GRE is added. How then if the packet is already down at the data link layer does IP encapsulate it? And if IP doesn't, could someone explain it to me so that I better understand how GRE works from end to end. Thank you,
J.D.
12-29-2008 10:40 PM
Hi Edmond,
With GRE,
GRE is the encapsulation protocol
Lets say a packet (eg :IPV4 packet) needs to be delivered, which is often referred to as a payload. GRE encapsulates this payload with appropriate protocol type indicating that IPV4 packet is the payload. GRE in turn is encapsulated in other protocol such as IP with tunnel destination as destination address etc.
When the packet reaches the tunnel destination, the GRE packet is decapsulated and IPV4 payload is forwarded just like a normal IPV4 packet.
Consider reading the RFCs to get a better understanding of GRE.
http://www.faqs.org/rfcs/rfc2784.html
HTH
Lejoe
12-30-2008 12:28 AM
Thanks Lejoe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide