First we create a network topology which consists of 50 mobile nodes, 2 fog nodes and 2 cloud nodes. And then we perform the data transmission via fog nodes. Data classifictaion using honey badger optimization algorithm process. Finally we plot a graph for throughtput, end to end delay, and packet delivery ratio.