What are the uses of software ports? 1. Connect client computer to server 2. Connect external devices to computer 3. Identify different services like email, file transfer 4. Connecting peripherals like cameras, scanners Select the answer using the code given below:
- (a)1 and 2
- (b)1 and 3
- (c)2 and 3
- (d)2 and 4
Correct — B, 1 and 3. The stem asks about software ports, and a software port is not a socket you can touch — it is a sixteen-bit number carried in the header of a TCP or UDP segment, identifying which process on a machine a packet belongs to. Because a single computer runs many network services at once behind one address, that number is the only thing that keeps them apart, and both true statements follow from it. Statement 1 holds because a client reaches a server by opening a connection to an address and a port together; without the port the packet would arrive at the machine with no way of knowing which program should receive it. Statement 3 holds because the well-known port numbers are exactly how services are identified — 25 for electronic mail sent by SMTP, 21 for the control channel of FTP, 80 for HTTP and 443 for HTTPS, all of them fixed by convention so that a client knows where to knock. Statements 2 and 4 describe something else entirely. Connecting external devices, and connecting peripherals such as cameras and scanners, is what physical ports do — USB, HDMI, Ethernet sockets and the rest — and those are hardware ports with pins and a plug, not numbers in a packet header.
- (a)1 and 2 — Keeps the correct client-to-server statement but pairs it with connecting external devices, which is the work of a physical connector rather than of a number in a protocol header.
- (c)2 and 3 — Keeps the correct service-identification statement but pairs it with attaching external devices. The two statements belong to different senses of the word 'port'.
- (d)2 and 4 — Picks both hardware statements and neither software one — the exact inverse of the answer, and the option a candidate lands on who reads 'port' as the socket on the back of a machine.
The word 'port' does two unrelated jobs in computing. A hardware port is a physical interface — a USB socket, an HDMI socket, an Ethernet jack — through which a device is plugged in. A software port is a logical endpoint: a number from 0 to 65535 written into a TCP or UDP header so that the operating system can hand an arriving packet to the right process. Ports 0 to 1023 are the well-known ports, reserved for standard services; 1024 to 49151 are registered ports; the rest are ephemeral, handed out temporarily to client programs for the duration of a connection. An address and a port together make a socket, and a connection is identified by the pair of sockets at its two ends.
The item is built on the ambiguity of the word, and the stem removes the ambiguity by saying 'software ports' — so the first move is to sort the four statements into the two senses rather than to judge whether each is true in the abstract. Statements 2 and 4 are both perfectly true of hardware ports, which is why they feel right and why the wrong options are tempting; they are simply answers to a question that was not asked. A useful check is to ask whether the statement mentions a physical object. 'External devices' and 'peripherals like cameras, scanners' both do; 'client computer to server' and 'services like email, file transfer' do not.
- A software port is a 16-bit number in the TCP or UDP header, ranging from 0 to 65535.
- Ports 0 to 1023 are the well-known ports — 21 for FTP control, 25 for SMTP, 53 for DNS, 80 for HTTP, 443 for HTTPS.
- An IP address together with a port number forms a socket, which is what a connection is identified by.
- Hardware ports are physical connectors — USB, HDMI, Ethernet, audio jacks — used to attach peripherals such as printers, cameras and scanners.
- A firewall's packet filtering rules are commonly written in terms of software port numbers, which is why the two topics turn up together.
- Reading 'port' as the socket on the back of the cabinet when the stem has said 'software port'.
- Assuming a statement is false because it is out of scope. Statements 2 and 4 are true of hardware ports and simply answer a different question.
- Confusing a port number with an IP address. The address finds the machine; the port finds the process on it.
As a statement-sorting item that mixes two senses of one technical word, or as a single-fact item asking which service uses a given port number.
What is "Virtual Private Network"?
- (a) It is a private computer network of an organization where the remote users can transmit encrypted information through the server of the organization.
- (b) It is a computer network across a public internet that provides users access to their organization's network while maintaining the security of the information transmitted.
- (c) It is a computer network in which users can access a shared pool of computing resources through a service provider.
- (d) None of the statements (a), (b) and (c) given above is a correct description of Virtual Private Network.
Answer(b) It is a computer network across a public internet that provides users access to their organization's network while maintaining the security of the information transmitted.
The same networking layer, and the same demand to keep close-sounding descriptions apart. A virtual private network is built by tunnelling traffic over the public internet, and the tunnel itself is addressed by a port on each end.
- practice — not a real PYQ
In the TCP/IP protocol suite, a port number is used primarily to
- (a)identify the physical network card of a computer
- (b)identify the process or service on a host that should receive a packet
- (c)encrypt the contents of a packet
- (d)determine the shortest route between two networks
Answer(b) identify the process or service on a host that should receive a packet — the IP address finds the machine, and the port number finds the program running on it.
- practice — not a real PYQ
Which one of the following is a hardware port rather than a software port?
- (a)Port 80
- (b)Port 443
- (c)A USB socket
- (d)Port 25
Answer(c) A USB socket — a physical connector for peripherals. The three numbered ports are logical endpoints used by HTTP, HTTPS and SMTP respectively.