Why is UDP needed?
gojericho0
Member Posts: 1,059 ■■■□□□□□□□
in Off-Topic
I got to thinking of this when I was doing some packet captures. Why is UDP header used with a unique port number instead of just assigning each application a unique ID in the IP header?
Wouldn't this still allow application multiplexing and allow less packet overhead?
Wouldn't this still allow application multiplexing and allow less packet overhead?
Comments
-
UnixGuy Mod Posts: 4,570 ModI thought each UDP (or TCP) packet has the port number of the application it's destined to ?
-
tiersten Member Posts: 4,505The IP protocol field is only 8 bits. Most of them have been preassigned in RFC790.
You'll end up with nasty hacks and special cases because you're overloading the field and not using it for its intended purpose. The layers are split for a reason. IP is for routing. -
tiersten Member Posts: 4,505I thought each UDP (or TCP) packet has the port number of the application it's destined to ?
-
gojericho0 Member Posts: 1,059 ■■■□□□□□□□The IP protocol field is only 8 bits. Most of them have been preassigned in RFC790.
You'll end up with nasty hacks and special cases because you're overloading the field and not using it for its intended purpose. The layers are split for a reason. IP is for routing.
Thanks! this cleared things up greatly.