Port Number Uses

What is use of port number.

  1. Well Known Port.
  2. Registered Port.
  3. Dynamic Port.

with the help of port numbers we define which packet we should handover to which application.
means if you don’t assign port numbers it will be impossible to identify for which application the packet is .