31.07.2015 Views

network protocols handbook.pdf

network protocols handbook.pdf

network protocols handbook.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

111Protocols GuideSecurity and VPN - Secured Routing ProtocolsProtocol NameGRE: Generic Routing EncapsulationProtocol DescriptionGeneric Routing Encapsulation (GRE) is a protocol for encapsulationof an arbitrary <strong>network</strong> layer protocol over another arbitrary<strong>network</strong> layer protocol.In the most general case, a system has a packet, which is calledpayload, which needs to be encapsulated and delivered to somedestination. The payload is first encapsulated in a GRE packet.The resulting GRE packet can then be encapsulated in someother protocol and then forwarded. This outer protocol is calledthe delivery protocol.When IPv4 is being carried as the GRE payload, the ProtocolType field MUST be set to 0x800. When a tunnel endpoint decapsulatesa GRE packet which has an IPv4 packet as the payload,the destination address in the IPv4 payload packet headerMUST be used to forward the packet and the TTL of the payloadpacket MUST be decremented. Care should be taken when forwardingsuch a packet, since if the destination address of thepayload packet is the encapsulator of the packet (i.e., the otherend of the tunnel), looping can occur. In this case, the packetMUST be discarded. The IPv4 protocol 47 is used when GREpackets are encapsulated in IPv4.Security in a <strong>network</strong> using GRE should be relatively similar tosecurity in a normal IPv4 <strong>network</strong>, as routing using GRE followsthe same routing that IPv4 uses natively. Route filtering will remainunchanged. However packet filtering requires either that afirewall look inside the GRE packet or that the filtering is doneat the GRE tunnel endpoints. In those environments in whichthis is considered to be a security issue it may be desirable toterminate the tunnel at the firewall.Protocol StructureIn DiffServ, a replacement header field, called the DS field, is defined,which is intended to supersede the existing definitions ofthe IPv4 TOS octet and the IPv6 Traffic Class octet. The formatof the header as follows:the 16 bit words in the GRE header and the payloadpacket.Related <strong>protocols</strong>IPv4Sponsor SourceGRE is defined by IETF (http://www.ietf.org) in RFC 2784.Referencehttp://www.javvin.com/protocol/rfc2784.<strong>pdf</strong>Generic Routing Encapsulation (GRE)1 13 16 32bitC Reserved 0&1 Ver Protocol typeChecksum (optional)Reserved• C – Checksum Present.• Reserved 0 & 1 – reserved for future use.• Ver – version number; must be zero.• Protocol Type - contains the protocol type of the payloadpacket.• Checksum - contains the IP checksum sum of the all

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!