路由协议混乱

发布于 2024-11-15 02:58:24 字数 211 浏览 1 评论 0原文

在阅读套接字编程时出现一个问题,到目前为止,我已经阅读了 RIP、OSPF、eBGP 和 iBGP 等路由协议。 RIP 和 OSPF 在自治系统内部工作,对于两个不同自治系统的连接,我们使用 eBGP。但它说 iBGP 也可以在自治系统内部工作,

那么,

iBGP 协议与 RIP 和 OSPF 相同吗?

预先感谢您的任何澄清,

Krio

A question arises while reading about socket programming, So far I have read routing protocols such RIP,OSPF,eBGP and iBGP. Where RIP and OSPF does work inside an autonomous system, And for connectivity of two different autonomous system we are using eBGP. But it says iBGP works inside an autonomous system as well,

so,

Is iBGP protocol is same as RIP and OSPF?

Thanks in advance for any clarification,

Krio

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

吹梦到西洲 2024-11-22 02:58:24

我认为 iBGP 与其他内部路由协议(如 RIP 和 OSPF)具有相同的用途。但与每个协议相关的特性和功能主义者有所不同。
RIP 和 BGP 是距离矢量路由协议,而 OSPF 是链路状态路由协议。
每个协议用于计算路径成本的度量是不同的。 RIP 使用跳数,OSPF 使用带宽,BGP 使用下一跳、管理权重、本地优先级、路由源、路径长度、源代码、度量和其他属性。

I think that iBGP serves the same purpose as the other interior routing protocols like RIP and OSPF. But feature and functionalists associated with each protocol differ.
RIP and BGP is a distance vector routing protocol where as OSPF is link state routing protocol.
The metric used for calculating the path cost is different is each protocol. RIP used hop count, OSPF uses bandwidth and BGP uses next hop, administrative weights, local preference, route origin, path length, origin code, metric, and other attributes.

对你而言 2024-11-22 02:58:24

当您谈论路由协议时,您可以认为它们提供了一种方法,使路由器能够计算特定对象(数据包、单元、服务等)的路由,同时将它们从源传送到目标。

具体来说,对于要路由的对象,它们携带诸如源、目标、大小、服务等级(CoS)等信息。

对于路由器来说,它携带诸如接口类型、与其他路由器的连接性等信息。
以及整个网络,它涵盖了特定对象要路由的拓扑信息。

为了进行路由过程,路由器决定如何路由数据包。该决策基于对网络可达性信息的了解。

为了建立可达性信息,路由器需要相互通信以传达它们如何与其他路由器连接。

你与其他路由器交谈什么,如何与其他路由器交谈,你应该与哪种类型的路由器交谈,以及路由器如何根据这些信息做出路由决策,构成了路由协议的基础。

对于大型网络,为了使其可管理,网络被进一步分组为不同的层次结构,例如自治系统(AS)、区域、子区域。

现在回答你的问题,

iBGP 与 OSPF 和 RIP 的不同之处在于它们如何分发路由信息以及它们分发的信息类型,以及它们如何计算和做出路由决策。

When you talk about routing protocols, you can think about they are providing a way to enable the routers to calculate the route for specific object(packet, cell, services etc.) while delivery them from the source to the target.

Specifically, for the object to be routed, they carrying information such as source,target,size, Class of Service (CoS).

For router, it carrying information such as interface type, connectivity to other routers.
And the network as a whole, which covering the topology information over which the specific object is to be routed.

To make the routing process happen, the router make decision about how to route a packet. The decision is based on the knowledge of the network reachability information.

To build up the reachability informaiton, the router needs to talk with each other to communicate how they connected with the other routers.

What you talk to the other router, how you talk to the other routers, and which type of router should you talk to, and how the routers make routing decision based on these information form the basis of the routing protocols.

For large network, to make it admin-able, the network is furthered grouped into different hierarchies, such as Autonomos System (AS), Areas, sub Area.

Now come to your question,

iBGP different from the OSPF and RIP in how they distribute the routing informaiton and the type of information they distributed, and also how they calculate and make routing decisions.

归属感 2024-11-22 02:58:24

RIP、OSPF 和 BGP 的工作方式完全不同。尽管目的相同,但寻找新路由并构建网络拓扑。这些是动态路由协议。然而,所使用的原理却截然不同。
无 iBGP 与 RIP 或 OSPF 不同。
主要区别是BGP建立tcp连接来交换信息,而Rip使用UDP,而ospf本身是一个单独的协议,其值在ip数据包的协议字段中为89。一旦骨干或边界路由器与其他自治系统建立连接,在收到通告后,它就会在 AS 内部的路由内创建另一个 tcp 会话。 RIP 使用距离矢量协议。 RIP 使用度量来猜测它与下一跳之间的距离。 OSPF 使用链路状态协议。每个路由器通过覆盖整个拓扑来检查与拓扑中其他路由器的连通性。现在它绘制图表并应用 dijkstra 的最短距离算法。
现在这是 iBGP 所做的事情,因为骨干路由器已经有了到其 AS 中所有路由器的路由,这是在 RIP、OSPF 的帮助下找到的,现在它将通过端口 179 与 AS 中的路由器发起 tcp 连接。现在由 AS 决定,使路由器能够接受或阻止端口 179。如果不这样做,BGP 将无法工作。

RIP, OSPF and BGP work completely different. Although purpose is same, finding new routes and building network topology. These are dynamic routing protocols. However principals used are quite different.
No iBGP is not as same as RIP or OSPF.
major difference is BGP establishes the tcp connection for exchanging information, where as Rip uses UDP and ospf itself is separate protocol whose value is 89 in the protocol filed of ip packet. As soon as backbone or boundary router establishes the connection with other autonomous system, after receiving advertisement, it creates and another tcp session within routes inside AS. RIP uses distance vector protocol. RIP guess the distance between it and next hop using metrics. OSPF using link state protocol. Each router checks the connectivity with other router in topology there by covering entire topology. Now it plots the graph and apply dijkstra's shortest distance algorithm.
Now here is what iBGP does, since the backbone router has already has routes to all routers in its AS, which was found with help of RIP, OSPF now it will initiate tcp connection with the routers in AS though port 179. Now it's upto AS, to enable routers to accept or block port 179. If they don't BGP works else not.

留蓝 2024-11-22 02:58:24

RIP和OSPF用于分配内部前缀,即教导AS中的每个路由器如何到达同一AS中的其他路由器。

IGBP 用于分发外部前缀,即一旦一台AS 边界路由器获知如何到达外部前缀(使用EBGP),IBGP 就用于将该信息分发给同一AS 中的其他AS 边界路由器。

RIP and OSPF are used to distribute internal prefixes, i.e. to teach every router in the AS how to reach the other routers in the same AS.

IGBP is used to distribute external prefixes, i.e. once one AS-border router has learned how to reach an external prefix (using EBGP), IBGP is used to distribute this information to the other AS-border routers in the same AS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文