The physical aspect of networking ports

1

I stumbled across this article which, unlike any ambiguous article I've read, states that my

"pencil-thin network cable (or wireless network adapter) at the back of your computer contains 65,536 microscopic pathways inside it."

I've always been told that a port is just a number (not a wire) used to distinguish different virtual connections from each other, so how can these two explanations co-exist?

  • Also, this can't mean that some of the network cable isn't being used to transfer signals when a port isn't being used does it?

The article also said that

packets are required to stop at each network node and:

  1. Find an open port,
  2. Pass the identification test that will allow it through that port, and if not,
  3. Move to the next port and try again, until it is allowed to pass through the toll.
  • I thought packets contained a specific destination port, so why would they search for a new open port?
  • Finally, what does it take to pass an identification test?

Griffin

Posted 2012-01-29T22:49:29.600

Reputation: 326

1The article makes no sense at all. Ports are in no way physical, and creating cables with that many strands would be rediculously expensive to make.

Ports simply act as a way to direct traffic to the correct application once it has reached the client system. Other than torrents (which are designed specifically to use a range of ports) most common applications listen in on specific ports and wouldn't work. Torrents get slowed down since it would find it harder to find seeds, but would still work. – Journeyman Geek – 2012-01-29T23:20:23.673

Answers

4

I've always been told that a port is just a number (not a wire) used to distinguish different virtual connections from each other, so how can these two explanations co-exist?

The paragraph you quoted is heavy with metaphors. At transport layer, ports are just numbers in packets; they are not physical.

The physical, or 'link', layer, does not know anything about TCP/UDP ports, nor about IP addresses – it only transfers series of bits from one end to another.

Also, this can't mean that some of the network cable isn't being used to transfer signals when a port isn't being used does it?

No. The cable is being used exactly the same way, whether you have one connection or twenty. In wired Ethernet networks, there are only four pairs of wires – two pairs in older cables; definitely not 65536; all of them are used at the same time.

The article also said that <...> . I thought packets contained a specific destination port, so why would they search for a new open port?

At this point, the article is slowly crossing the line between "metaphor" and "bullsh "nonsense".

TCP port numbers are assigned when the connection is made, and only used by the two ends of that connection. Meanwhile, routing happens at the 'internet' layer, using only IP addresses and not paying any attention to the data contained in IP packets or modifying it in any way.

(The only exception is when NAPT is being performed – for example, by your home router, to make multiple computers share a single IP address. In this case, packets received by your computer may bave different TCP or UDP port numbers than those originally sent.)

The identification test might be a reference to network firewalls. But then, packets blocked by a firewall rule would not "go searching for the next port"; they would simply be discarded.

user1686

Posted 2012-01-29T22:49:29.600

Reputation: 283 655

1+1 for "the article is slowly crossing the line between "metaphor" and <s>"bullsh</s> "nonsense". – soandos – 2012-01-29T23:48:19.490

4

That article is terribly written. It's using metaphorical language and "popular knowledge" to try explaining networking concepts. There are 65,536 addressable ports, but they don't exist as a physical fiber optic strand, or whatever the heck the article was trying to describe. The number of available ports are somewhat arbitrarily derived (a 16-bit integer probably made sense back in the day), and are probably standardized in an RFC.

I'm no networking expert, but I'm pretty sure that the network hardware (switches, etc) use firewall-type rules to determine if traffic on a particular port should be forwarded along the line (for example, your ISP can block traffic on the port used by Bittorrent, or your home router can block the port for ping).

Bigbio2002

Posted 2012-01-29T22:49:29.600

Reputation: 3 804

1

"pencil-thin network cable (or wireless network adapter) at the back of your computer contains 65,536 microscopic pathways inside it."

TCP is responsible for keeping traffic separated by port on both ends and partly abstracting the notion of one of many multiplexed "connections" on a serial medium. TCP uses the notion of a "socket" which is a source IP+port and a destination IP+port. Multiple sockets may exist on the same medium but the TCP/IP stack on the other end will sort them out, and traffic on two sockets will not mix with one another. So it is, in a sense, a pathway.

TCP and UDP use the notion of ports and sockets. Other protocols, such as the lower-level IP, do not. Not everything going out of a network interface needs to be TCP or UDP.

packets are required to stop at each network node and:

Find an open port, Pass the identification test that will allow it through that port, and if not, Move to the next port and try again, until it is allowed to pass through the toll.

This doesn't make sense to me. Normally, when an application opens a socket, it can specify a port (and the socket open attempt will fail if the port is in use) or take one assigned by the kernel (servers usually specify a port number and clients to a server usually take a random kernel-assigned port).

Perhaps the above is describing part of a higher layer protocol. I would need more context to understand fully the above statement.

LawrenceC

Posted 2012-01-29T22:49:29.600

Reputation: 63 487