Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

OSPF encapsulates directly into IP

Hello,

I have a query regarding encapsulation of OSPF & EIGRP packets into IP packet.As we know that RIP use UDP and BGP use TCP so we call them application layer routing protocols. My question is that in which layer OSPF & EIGRP lies and what is the format of encapsulted OSPF & EIGRP packets ? What is the difference in encapsulation process of these protocols as compare to RIP & BGP.

Regards,

Mujeeb

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: OSPF encapsulates directly into IP

Mujeeb

Yes OSPF data (and EIGRP data) travel as the payload of their IP packets. And OSPF packets and EIGRP packets do not contain UDP or TCP.

There are a number of situations where IP packets going through the network do not have TCP or UDP transport layer. For example protocol 47 is for GRE packets which do not use either UDP or TCP. And protocol 50 is for ESP (part of IPSec) which does not use UDP or TCP.

These protocols (including OSPF) do not need the services provided by the traditional transports of UDP or TCP.

HTH

Rick

7 REPLIES
Silver

Re: OSPF encapsulates directly into IP

RIP and BGP use already existing transport protocols UDP/TCP. e.g. BGP can rely on all the features already provided by TCP such as ACKed packets.

OSPF is a protocol on IP:protocol value = 89. Other values can be found at:

http://www.iana.org/assignments/protocol-numbers

OSPF packets are carried by IP without TCP/UDP headers. Packet formats can be found at: ftp://ftp.rfc-editor.org/in-notes/rfc2328.txt

Thanks.

Hall of Fame Super Silver

Re: OSPF encapsulates directly into IP

Mujeeb

Rais gives a good answer in terms of OSPF and much the same thing can be said for EIGRP. The designers of RIP and of BGP decided to utilize existing transport protocols to carry their routing traffic. The developers of OSPF and of EIGRP decided that there were advantages in not using an existing transport layer protocol and just encapsulating their content directly in IP. Part of the advantage of this is that it simplifies the formatting of the packet and simplifies the processing of the packet when it is received (rather than passing the data from layer 3 IP to layer 4 UDP or TCP which will look at the data and determine that it needs to be sent to the routing protocol, the data goes directly from layer 3 IP to the routing protocol.

HTH

Rick

New Member

Re: OSPF encapsulates directly into IP

Hello Rick,

It means that OSPF packet travel in payload field of an IP packet and that IP packet does not contain UDP/TCP in it so where will be transport layer come into play.EIGRP use RTP as transport layer protocol , is there no need of transport layer function for OSPF ?

Regards,

Mujeeb

Hall of Fame Super Silver

Re: OSPF encapsulates directly into IP

Mujeeb

Yes OSPF data (and EIGRP data) travel as the payload of their IP packets. And OSPF packets and EIGRP packets do not contain UDP or TCP.

There are a number of situations where IP packets going through the network do not have TCP or UDP transport layer. For example protocol 47 is for GRE packets which do not use either UDP or TCP. And protocol 50 is for ESP (part of IPSec) which does not use UDP or TCP.

These protocols (including OSPF) do not need the services provided by the traditional transports of UDP or TCP.

HTH

Rick

New Member

Re: OSPF encapsulates directly into IP

Hello Rick,

I got your point , thanks for the response.

Regards,

Mujeeb

Hall of Fame Super Silver

Re: OSPF encapsulates directly into IP

Mujeeb

I am glad that we were able to clarify that point. Thank you for using the rating system to indicate that your question was answered satisfactorily (and thanks for the rating). It helps make the forum more useful when people can read a question and can know that they will read a good answer to the question. I encourage you to continue your participation in the forum.

HTH

Rick

Bronze

Re: OSPF encapsulates directly into IP

Hi

OSPF is relies on IP packet for delivery of routing information.OSPF information is carried inside IP packet .

it is using protocol number 89 .

-minu

192
Views
9
Helpful
7
Replies