why osi model has 7 layers?
The ISO decided that 7 layers was adequate to create the reference model they wanted! If the OSI model had more or less layers, it wouldn't mean that the protocols or software created would have extra or less functionality of what they have today, because as we already said, this is a reference model.