Is RIP layer 3 protocol or layer 7 protocol?

I think the routing protocols are layer 3 protocol,but RIP has PORT 520 in layer 4 ,Only upper protocols can have PORT number.
i am confused and please help me!
Who is Participating?

Improve company productivity with a Business Account.Sign Up

bsadlickConnect With a Mentor Commented:
The routing application operates at higher than layer 3; it controls layer 3 forwarding. UDP port 520 is open for RIP updates to the routing daemon. Remember that routing is a computer program, just like most others.
Yes, routing is basically software that looks at the source and destination address of a packet and forwards the packet accordingly. Try not to use ports for a distinction as I can send any information down almost any port as long as both ends will communicate on the same port.
bitsnakeAuthor Commented:
so all the routing protocol rip,igrp,eigrp are layer 7 protocols?in the ccna 2.0's student book,rip is considered as layer 7 protocols on the other hand igrp is not mentioned.

is the rip different from other routing protocol?is rip special?i couldn't find igrp's port number less than 1024  in layer 4.

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Yes again. Routing protocols are software applications, making them layer 7, but they work at layer 3 of the OSI model. There is nothing special about RIP compared to other protocols. RIP is actually a lower end routing protocol compared to EIGRP and OSPF.

This will help you to understand them.
Hmmm, I actually would say that not every routing protocol goes above layer 4.  IGRP (and consequently EIGRP) and EGP for example have their own IP type values, which means they are sitting directly above IP and do not use UDP or TCP services.  This is not to say that they carry out the functions of a layer 4 protocol.  Its kind of hairy.  I would agree that all routing processes are of an application nature.  However, when I think of an application protocol, I immediately think "anything above layer 4", since the top 3 layers are traditionally application based and named the application layers.  This means that an application can be "socket based".  However, there is no socket if there are no layer 4 port values to be used.

What bitsnake is finding is interesting, since traditionally, books put all routing protocols as a sub-section of layer 3, since they control layer 3 forwarding.  However, technically they are all application based to one degree or another, although they fit into different layers above layer 3.
I think that we are all trying to say the same thing. Routing protocols are applications that may utilize the upper layers, but are used to control layer 3 forwarding.

IGRP and EGP may not use TCP or UDP, but if the data that they are trading is contained within the data portion of the IP datagram, then technically I would say that they are using layer 4 to transport routing information.
Agreed.  My point was that in order to say "they are all layer 7" with or without layers 5 and 6 being used, I think it needs to be above layer 4 first.  However, you could easily call that being picky :).
Steve JenningsIT ManagerCommented:
Wait a minute . . .  follow this link and then tell me RIP is an application.

I think that part of the problem in trying to pigeon hole things like routing protocols into the OSI model is the underlying assumption that _ IF_ TCP/IP or IP addressing is involved _THEN_ the process will fit neatly into the OSI model definition. Think about SNMP. It's a little easier to see how this fits into the model . . . there's a presentation layer, albeit crude, a session control layer (HELO, QUIT) . . . but RIP and EIGRP don't fit neatly into the model. It's an interesting if only academic question. Like mikecr said, selection of a transport and derivatively a socket doesn't imply an application.

Good luck on your exam.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.