They are both IP packets; both TCP and UDP use IP as their basis. TCP is used to create a channel with flow control, UDP just sends single packets that may get lost.
8.5m questions
11.2m answers