The development of the Internet of Things (IoT) has increased the interconnectivity of many IoT devices. Cloud computing is an ingenious way to process and store massive amounts of data in a simpler way, but using cloud computing seems to have some annoying problems, such as lack of location awareness, lack of geographic location distribution, lack of support for mobility, in addition to high latency and delay in response time. Developed another computing platform called Fog Computing as a supplement to the cloud solution, because it extends the computing range of the fog part and cloud services to the edge of the system, thereby making the processing, connection, retention, and storage functions more Proximity to this device solves the deficiencies faced by cloud computing. In addition, many issues related to protection, privacy, and security have appeared in the fog computing platform. Network defenses must be developed in a high-performance manner, detecting abnormal activity, monitoring all input and output communications in real-time, and developing new models for appropriate fog network portals to identify new attack families from the edge.