UDP – How to Send Raw IP Packets Over UDP

layer4udp

Can we send raw IP packets over UDP?

What are raw IP Packets?

UDP is a connectionless and unreliable protocol, is it?

Best Answer

IP packets are layer 3. UDP is layer 4. That means that UDP packets are encapsulated inside IP packets, not the other way around.

Now, it is possible to tunnel IP packets, in which case you would have IP inside UDP inside another IP, but that is a special case. For learning about the protocols, you can ignore that for now