5G networks are not only the next mobile generational networks but, the future networks of “everything” which are expected to offer new services and business opportunities on universal level through improved performance, and flexibility. These networks will combine various access technologies such as wireless, mobile, satellite, and fixed optical access networks to offer reliable performance and improve network coverage. SDN and NFV are the key enabling technologies for 5G. This paper describes use Programmable Protocol-independence Processors (P4) as the main language for programming the forwarding plane in SDN and NFV.