What you should know about P4 programming language& P4 programmable switch
What is P4 programming language? P4 is a domain-specific programming language used to describe how a programmable forwarding hardware processes packets, which can be an ASIC, a FPGA or a NIC and so on. The full mane P4 is Programming Protocol-independent Packet Processors . P4 originally designed for programmable switches (especially for the ASIC), now P4 has expanded to many scenarios. In P4, the term “target” is used to refer to the hardware. A network device usually includes a control plane and a data forwarding plane. P4 is designed to be used to programming the target’s data plane. The foll o wing picture shows the difference between a traditional switch and a P4 programmable switch: In a traditional switch, ASIC determines what functions its data plane can support, the control plane is responsible for processing packets (such as routing protocol packets), processing asynchronous events (such as port up/down), etc. Its purpose is to control the forwarding behavior by correctl...