先决条件–路由器简介和路由类型
1.控制平面:
在路由控制平面中,是指所有功能和过程,这些功能和过程确定要使用哪个路径发送数据包或帧。控制平面负责填充路由表,绘制网络拓扑,转发表,从而启用数据平面功能。意味着路由器在此做出决定。可以说在一行中,它负责如何转发数据包。
2.数据平面:
在路由数据平面中,是指基于控制平面逻辑将数据包/帧从一个接口转发到另一接口的所有功能和过程。路由表,转发表和路由逻辑构成数据平面函数。数据平面数据包通过路由器,并且帧的输入和输出都是根据控制平面逻辑完成的。用单行表示可以说它负责将数据包从源移动到目的地。也称为转发平面。
控制平面和数据平面之间的区别:
S.No. | CONTROL PLANE | DATA PLANE |
---|---|---|
01. | Control plane refers to the all functions and processes that determine which path to use to send the packet or frame. | Data plane refers to all the functions and processes that forward packets/frames from one interface to another based on control plane logic. |
02. | It is responsible for building and maintaining the IP routing table. | It is responsible for forwarding actual IP packet. |
03. | Control plane responsible about how packets should be forwarded. | Data plane responsible for moving packets from source to destination. |
04. | Control plane performs its task independently. | Data plane performs its task depending on data plane. |
05. | In general we can say in control plane it is learned what and how it can be done. | In general we can say in data plane the actual task is performed based on what is learned. |
06. | Control plane packets are processed by router to update the routing table. | The forwarding plane/data plane forwards the packets based on the built logic of control plane. |
07. | It includes Spanning Tree Protocol (STP), Address Resolution Protocol (ARP), Routing Information Protocol (RIP), Dynamic Host Configuration Protocol (DHCP) etc. |
It includes decrementing Time To Live (TTL), recomputing IP header checksum etc. |
08. | Control plane packets are locally originated by the router itself. | Data plane packets go through the router. |
09. | Control plane acts as a decision maker in data forwarding. | Data plane acts as a decision implementer in data forwarding. |
10. | Routing is performed in the control plane. | Switching is performed in the data plane. |