2.11. Defining the Function of TCP/UDP Ports

If we performed only one task at a time with each computer, we might not need ports, but the fact is that computers can perform many tasks at one time. Therefore, we need a way to identify packets so that they will be processed by the computer in the correct manner. By identifying each packet with a port number, we ensure that the computer will direct the packet to the right area within it where the appropriate processes can be performed.

TCP and UDP port numbers are used to identify packets in regard to the services that they require. You can also filter traffic using these port numbers to restrict only specific types of traffic from a network. You should understand how TCP and UDP ports can be used ...

Get Network+™ Fast Pass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.