1.Primary use of GRE was to carry non-IP protocols over IP network.
2.GRE is stateless and offers no flow-control mechanism. As long as the tunnel destination is routable, traffic can flow through it; no reliability or sequencing is provided.
3.A GRE tunnel encapsulates the original IP (or non-IP) packet inside of an outer shell.
4.GRE adds atleast 24 bytes of overhead, including 20 bytes of IP header. Meaning, a GRE header is a minimum 4 bytes without options.
5.GRE allows IP multicasting and routing protocols to travel though the tunnel.
6.GRE is non-secure.
GRE Header-
At the minimum, a GRE header has 4 bytes; first two bytes are Flags field and second two bytes are Protocol Type field.
C - Checksum Present (bit 0)-
If the Checksum Present bit is set to 1, the Checksum field (4 bytes) contains valid information.
R – Routing Present (bit 1)-
If the Routing Present bit is set to 1, the Routing field (variable bytes) contains valid information.
K – Key Present (bit 2)-
If the Key Present bit is set to 1, the Key field (4 bytes) contains valid information.
S – Sequence Number Present (bit 3)-
If the Sequence Number Present bit is set to 1, then it indicates that Sequence Number field (4 bytes) is present.
s – Strict Source Route (bit 4)-
This bit should be set to 1 only if all of the routing information consists of Strict Source Routes.
Recursion Control (bits 5-7)-
Recursion Control contains a three bit unsigned integer which contains the number of additional encapsulations which are permissible. This should be set to 0 by default.
Version Number (bits 13-15)-
The Version number field should be set to 0 by default.
Protocol Type (2 bytes)-
The Protocol Type field contains the protocol type of the payload packet. For IP, it is 0800.
Checksum (2 bytes)-
The Checksum field contains the IP checksum of the GRE header and the payload packet.
Offset (2 bytes)-
The Offset field indicates the octet offset from the start of the Routing field to the first octet of the active Source Route Entry to be examined.
Key (4 bytes)-
The Key field contains a four byte number which can be configured manually. It is used by the receiver to authenticate the source of the packet.
Routing (variable)-
The Routing field is a list of Source Route Entries (SREs). The SRE contains Address-family (which indicates the syntax and semantics of the Routing Information field), SRE offset, SRE length and Routing Information field (which contains data which may be used in routing the packets).
Packet encapsulation in GRE:
2.GRE is stateless and offers no flow-control mechanism. As long as the tunnel destination is routable, traffic can flow through it; no reliability or sequencing is provided.
3.A GRE tunnel encapsulates the original IP (or non-IP) packet inside of an outer shell.
4.GRE adds atleast 24 bytes of overhead, including 20 bytes of IP header. Meaning, a GRE header is a minimum 4 bytes without options.
5.GRE allows IP multicasting and routing protocols to travel though the tunnel.
6.GRE is non-secure.
GRE Header-
At the minimum, a GRE header has 4 bytes; first two bytes are Flags field and second two bytes are Protocol Type field.
C - Checksum Present (bit 0)-
If the Checksum Present bit is set to 1, the Checksum field (4 bytes) contains valid information.
R – Routing Present (bit 1)-
If the Routing Present bit is set to 1, the Routing field (variable bytes) contains valid information.
K – Key Present (bit 2)-
If the Key Present bit is set to 1, the Key field (4 bytes) contains valid information.
S – Sequence Number Present (bit 3)-
If the Sequence Number Present bit is set to 1, then it indicates that Sequence Number field (4 bytes) is present.
s – Strict Source Route (bit 4)-
This bit should be set to 1 only if all of the routing information consists of Strict Source Routes.
Recursion Control (bits 5-7)-
Recursion Control contains a three bit unsigned integer which contains the number of additional encapsulations which are permissible. This should be set to 0 by default.
Version Number (bits 13-15)-
The Version number field should be set to 0 by default.
Protocol Type (2 bytes)-
The Protocol Type field contains the protocol type of the payload packet. For IP, it is 0800.
Checksum (2 bytes)-
The Checksum field contains the IP checksum of the GRE header and the payload packet.
Offset (2 bytes)-
The Offset field indicates the octet offset from the start of the Routing field to the first octet of the active Source Route Entry to be examined.
Key (4 bytes)-
The Key field contains a four byte number which can be configured manually. It is used by the receiver to authenticate the source of the packet.
Routing (variable)-
The Routing field is a list of Source Route Entries (SREs). The SRE contains Address-family (which indicates the syntax and semantics of the Routing Information field), SRE offset, SRE length and Routing Information field (which contains data which may be used in routing the packets).
Packet encapsulation in GRE:
0 comments:
Post a Comment