F5F Stay Refreshed Power Users Networks BGP operates at layer 7 of the OSI model... discuss it.

BGP operates at layer 7 of the OSI model... discuss it.

BGP operates at layer 7 of the OSI model... discuss it.

Pages (2): 1 2 Next
_
__FLESH__
Member
137
02-25-2016, 07:22 AM
#1
ChatGPT claims it's layer 4 due to TCP usage, but Wikipedia states it's layer 3 because it follows IP routing standards. I counter that it's layer 7 since it's an application. BGP Peers communicate over TCP like any other layer 7 service, and BGP doesn't control how its messages travel—it relies on TCP/IP. The impact of delivered messages on routing tables is secondary. For a detailed discussion, feel free to share your thoughts.
_
__FLESH__
02-25-2016, 07:22 AM #1

ChatGPT claims it's layer 4 due to TCP usage, but Wikipedia states it's layer 3 because it follows IP routing standards. I counter that it's layer 7 since it's an application. BGP Peers communicate over TCP like any other layer 7 service, and BGP doesn't control how its messages travel—it relies on TCP/IP. The impact of delivered messages on routing tables is secondary. For a detailed discussion, feel free to share your thoughts.

K
Kzgash
Member
56
02-25-2016, 10:09 AM
#2
BGP functions similarly to a Layer 7 service, just like other routing protocols.
K
Kzgash
02-25-2016, 10:09 AM #2

BGP functions similarly to a Layer 7 service, just like other routing protocols.

D
DoodyMon
Member
55
02-27-2016, 02:32 PM
#3
This discussion wasn't what I anticipated. Over the last twenty years, the IETF has issued an RFC clarifying that certain aspects don't strictly fit within the OSI or TCP/IP models. BGP functions as a routing protocol and is classified as an application layer service, which places it in the L7 tier. While semantic debates exist, most people aren't concerned about whether it's labeled L3 or L7. Technically speaking, since it operates at the application layer, it aligns with L4.
D
DoodyMon
02-27-2016, 02:32 PM #3

This discussion wasn't what I anticipated. Over the last twenty years, the IETF has issued an RFC clarifying that certain aspects don't strictly fit within the OSI or TCP/IP models. BGP functions as a routing protocol and is classified as an application layer service, which places it in the L7 tier. While semantic debates exist, most people aren't concerned about whether it's labeled L3 or L7. Technically speaking, since it operates at the application layer, it aligns with L4.

U
UNIKAT
Junior Member
31
03-03-2016, 04:56 AM
#4
It's true that BGP needs an application to handle routing and interpret configuration details. What matters most is the capabilities it provides, not who implements it. This means different applications can work as long as they adhere to the standards, while the underlying protocol must remain compatible backward. In essence, the protocol layer appears clearer and more defined than the application itself. On one side you have the protocol operating at the network level, and on the other, an application leveraging that protocol. Ultimately, I question the need for a rigid division in such a complex setting—trying to strictly separate them often leads to exceptions.
U
UNIKAT
03-03-2016, 04:56 AM #4

It's true that BGP needs an application to handle routing and interpret configuration details. What matters most is the capabilities it provides, not who implements it. This means different applications can work as long as they adhere to the standards, while the underlying protocol must remain compatible backward. In essence, the protocol layer appears clearer and more defined than the application itself. On one side you have the protocol operating at the network level, and on the other, an application leveraging that protocol. Ultimately, I question the need for a rigid division in such a complex setting—trying to strictly separate them often leads to exceptions.

A
anthonyyy388
Member
184
03-04-2016, 05:36 PM
#5
When considering at which layer information is applied, yes, I agree. Ethernet MAC addresses help layer-2 switches decide which port to use. IP addresses guide layer-3 routers in selecting the proper next hop. TCP facilitates communication between sender and receiver, ensuring data arrives correctly and not too fast. BGP messages serve as the network payload, carrying information across the network. OSPF and EIGRP are interchangeable routing protocols that rely on TCP for transport, depending on the router administrator's configuration. Similarly, you could employ SFTP, SMB, or NFS to transfer files.
A
anthonyyy388
03-04-2016, 05:36 PM #5

When considering at which layer information is applied, yes, I agree. Ethernet MAC addresses help layer-2 switches decide which port to use. IP addresses guide layer-3 routers in selecting the proper next hop. TCP facilitates communication between sender and receiver, ensuring data arrives correctly and not too fast. BGP messages serve as the network payload, carrying information across the network. OSPF and EIGRP are interchangeable routing protocols that rely on TCP for transport, depending on the router administrator's configuration. Similarly, you could employ SFTP, SMB, or NFS to transfer files.

J
Jaws_01
Member
60
03-05-2016, 12:46 AM
#6
All routing protocols operate at layer 7.
J
Jaws_01
03-05-2016, 12:46 AM #6

All routing protocols operate at layer 7.

A
AlexZimmerman
Junior Member
11
03-07-2016, 04:30 PM
#7
We’re aligned on this. The phrase "routing protocol" has often caused confusion. Although it’s technically defined, the term can be unclear. Someone new to networking might think of "IP" because it plays a big role in routing. My Cisco instructor used to spend time explaining how "routing protocol" differs from "routed protocol," which felt like a confusing discussion. These similar-sounding names can easily mislead. I think using terms like "route exchange protocol" or "dynamic router protocol" would reduce misunderstandings. For someone handling Layer 3 routing, the details after the IP header aren’t important—they just pass along. Also, "payload" could work for "routed protocol" since it carries data beyond headers. In the TCP/IP model, layer 4 is the application layer; it’s a different concept than OSI’s layer 7. The point I disagree with is that not everything fits perfectly into these categories. BGP messages clearly fit layer 7, yet they’re often discussed as if they’re layer 4. SSL is another case—it feels like layer 7 but interacts heavily with layer 4. Its purpose sits somewhere between layers 4 and 5, which the OSI model didn’t originally design for. BGP itself is straightforward.
A
AlexZimmerman
03-07-2016, 04:30 PM #7

We’re aligned on this. The phrase "routing protocol" has often caused confusion. Although it’s technically defined, the term can be unclear. Someone new to networking might think of "IP" because it plays a big role in routing. My Cisco instructor used to spend time explaining how "routing protocol" differs from "routed protocol," which felt like a confusing discussion. These similar-sounding names can easily mislead. I think using terms like "route exchange protocol" or "dynamic router protocol" would reduce misunderstandings. For someone handling Layer 3 routing, the details after the IP header aren’t important—they just pass along. Also, "payload" could work for "routed protocol" since it carries data beyond headers. In the TCP/IP model, layer 4 is the application layer; it’s a different concept than OSI’s layer 7. The point I disagree with is that not everything fits perfectly into these categories. BGP messages clearly fit layer 7, yet they’re often discussed as if they’re layer 4. SSL is another case—it feels like layer 7 but interacts heavily with layer 4. Its purpose sits somewhere between layers 4 and 5, which the OSI model didn’t originally design for. BGP itself is straightforward.

V
vincentnele
Member
223
03-09-2016, 03:31 PM
#8
BGP and RIP/RIPv2 rely solely on TCP/UDP, while OSPF, OSPFv3, EIGRP and similar protocols operate without using TCP/UDP—just L2/L3 and their headers. This makes them genuine "true" protocols. I strongly disagree. The discussion often hinges on whether soft-state or hard-state protocols should be included, with some focusing on message-based keepalives versus reliable transport. BGP and LDP use TCP for reliability, which raises questions about where they truly belong. It's reasonable to argue they shift into a different layer, though opinions remain divided. Most agree it should sit at L7, but the debate continues around adjacent routing protocols.
V
vincentnele
03-09-2016, 03:31 PM #8

BGP and RIP/RIPv2 rely solely on TCP/UDP, while OSPF, OSPFv3, EIGRP and similar protocols operate without using TCP/UDP—just L2/L3 and their headers. This makes them genuine "true" protocols. I strongly disagree. The discussion often hinges on whether soft-state or hard-state protocols should be included, with some focusing on message-based keepalives versus reliable transport. BGP and LDP use TCP for reliability, which raises questions about where they truly belong. It's reasonable to argue they shift into a different layer, though opinions remain divided. Most agree it should sit at L7, but the debate continues around adjacent routing protocols.

U
UnicornCracker
Senior Member
663
03-11-2016, 02:53 AM
#9
Absolutely, I was mistaken about the TCP aspect. That’s why I love discussing this topic—I realize over time some of my knowledge might have shifted or gotten a bit mixed up. I still firmly believe OSPF operates at layer 7. Yes, it functions directly on top of IP rather than relying on TCP, and the fact that it doesn’t depend on a transport protocol doesn’t alter the overall perspective. I think when people say “true” protocol, they usually mean it has its own IP address, which is accurate, though “protocol” isn’t always used correctly elsewhere. HTTP is another example—it’s a defined protocol but isn’t an IP protocol and doesn’t have an IP number. I don’t grasp your point about using L2/L3 headers; in reality, it operates on IP just like TCP, GRE, or IPSec do, without directly manipulating Ethernet frames to bypass IP. We can probably agree we differ here. Not every protocol is layer 7—Ethernet, IP, TCP, and many others aren’t—but every protocol that enables communication between software applications on systems is considered L7. BGP and OSPF, for instance, use message syntax focused on exchanging data between software designed to manage routing decisions. I get that software can run on a router, which adds some complexity, but I see it as an extended management service running atop the router’s operating system—not a fundamental part of its L3 routing duties. Imagine a Linux server linked to a router with BGP active; the router handles the core routing, while the BGP software operates in Linux, managing static routes via console commands. It’s possible (though unusual) for a Linux machine to run such a script and keep routing tables accurate. That’s just a hypothetical, but it shows how flexible protocol execution can be. In summary, I was incorrect about OSPF and EIGRP using TCP, yet I still maintain its layer 7 classification. Its purpose is to manage router operations through software, not the router itself. So, like any other network communication tool, it functions at layer 7.
U
UnicornCracker
03-11-2016, 02:53 AM #9

Absolutely, I was mistaken about the TCP aspect. That’s why I love discussing this topic—I realize over time some of my knowledge might have shifted or gotten a bit mixed up. I still firmly believe OSPF operates at layer 7. Yes, it functions directly on top of IP rather than relying on TCP, and the fact that it doesn’t depend on a transport protocol doesn’t alter the overall perspective. I think when people say “true” protocol, they usually mean it has its own IP address, which is accurate, though “protocol” isn’t always used correctly elsewhere. HTTP is another example—it’s a defined protocol but isn’t an IP protocol and doesn’t have an IP number. I don’t grasp your point about using L2/L3 headers; in reality, it operates on IP just like TCP, GRE, or IPSec do, without directly manipulating Ethernet frames to bypass IP. We can probably agree we differ here. Not every protocol is layer 7—Ethernet, IP, TCP, and many others aren’t—but every protocol that enables communication between software applications on systems is considered L7. BGP and OSPF, for instance, use message syntax focused on exchanging data between software designed to manage routing decisions. I get that software can run on a router, which adds some complexity, but I see it as an extended management service running atop the router’s operating system—not a fundamental part of its L3 routing duties. Imagine a Linux server linked to a router with BGP active; the router handles the core routing, while the BGP software operates in Linux, managing static routes via console commands. It’s possible (though unusual) for a Linux machine to run such a script and keep routing tables accurate. That’s just a hypothetical, but it shows how flexible protocol execution can be. In summary, I was incorrect about OSPF and EIGRP using TCP, yet I still maintain its layer 7 classification. Its purpose is to manage router operations through software, not the router itself. So, like any other network communication tool, it functions at layer 7.

J
JabbaD4Hut
Junior Member
29
03-14-2016, 11:01 AM
#10
I agree, but this moves away from the core idea and goal of the OSI and TCP/IP framework. These are simply guidelines, not rigid rules like RFCs aren't standards. What matters is how functions align with the layers they operate on—whether over the transmission path or in routing decisions. What I was expressing points toward my next point. I emphasized that "almost every protocol" applies, not just a few specific ones you highlighted (like Eth, IP/ISO, TCP/UDP). I referenced L2/L3 headers because the model focuses on forwarding rather than encapsulation. Once you strip away those headers and consider the software handling the payload, most protocols land in the L7 layer. Every control or routing protocol ultimately runs in software, so ignoring its role in forwarding makes it seem like L7 regardless of where it actually resides. This reasoning circles back to why I kept arguing from a forwarding perspective. The model becomes meaningful only when viewed through that lens; otherwise, it loses practical value. That’s the essence of my argument. A router or switch has both control and forwarding components. The Forwarding Plane (FP) is just software managing traffic without the underlying control logic. If any protocol you run must be seen as L7, even at Layer 2, STP or ARP still involve software communication, reinforcing this view.
J
JabbaD4Hut
03-14-2016, 11:01 AM #10

I agree, but this moves away from the core idea and goal of the OSI and TCP/IP framework. These are simply guidelines, not rigid rules like RFCs aren't standards. What matters is how functions align with the layers they operate on—whether over the transmission path or in routing decisions. What I was expressing points toward my next point. I emphasized that "almost every protocol" applies, not just a few specific ones you highlighted (like Eth, IP/ISO, TCP/UDP). I referenced L2/L3 headers because the model focuses on forwarding rather than encapsulation. Once you strip away those headers and consider the software handling the payload, most protocols land in the L7 layer. Every control or routing protocol ultimately runs in software, so ignoring its role in forwarding makes it seem like L7 regardless of where it actually resides. This reasoning circles back to why I kept arguing from a forwarding perspective. The model becomes meaningful only when viewed through that lens; otherwise, it loses practical value. That’s the essence of my argument. A router or switch has both control and forwarding components. The Forwarding Plane (FP) is just software managing traffic without the underlying control logic. If any protocol you run must be seen as L7, even at Layer 2, STP or ARP still involve software communication, reinforcing this view.

Pages (2): 1 2 Next