# Define and recognize the purpose and interaction of Layer 4 (Transport) protocols in an IP network. — Practice reading

Exam: HPE6-A86 — HPE Network Switching Associate Exam
Knowledge domain: Identify, describe, and apply foundational networking architectures and technologies.
HTML: https://learningpathx.com/learning-path/HPE6-A86/learn/735

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: TCP and UDP transport

A file-transfer application must send a continuous byte stream in order and recover from individual lost segments. The service may still reject or fail to process a completed transfer. Which transport and validation plan best fits these requirements?

### Options

**A**

Use TCP, then check the application's completion response for the transfer.

**B**

Use TCP, then treat an established connection as proof that the transfer completed.

**C**

Use UDP, then check the application's completion response for the transfer.

**D**

Use UDP, then treat a completed send call as proof that the transfer completed.

Correct answer: A

### Explanation

TCP supplies the required ordered byte stream and transport retransmission. Even if TCP delivers bytes, the application can reject or fail to process the transfer, so a separate service-level completion response is needed.

## Question 2

Type: single\_choice
Knowledge point: TCP and UDP transport

A discovery client sends one small request to each nearby agent and accepts each response as an independent datagram. It needs no ordered stream, and an occasional missing response can be handled by an application timeout and another request. Which transport choice and expectation best fit this exchange?

### Options

**A**

Use UDP and assume its transport guarantees every discovery response arrives.

**B**

Use TCP and treat connection setup as confirmation that every agent responded.

**C**

Use UDP and let the application time out or retry when a response is absent.

**D**

Use TCP and rely on its ordered stream to identify every agent that never replied.

Correct answer: C

### Explanation

Independent discovery request and response datagrams do not need a byte stream. UDP fits that exchange but has no built-in delivery guarantee, so the client must interpret missing responses and retry or time out at the application level.

## Question 3

Type: single\_choice
Knowledge point: TCP and UDP transport

A client completes the TCP handshake to a reporting service and sends a report request. The connection stays open, but the service returns an error response and no report. The same client can reach the service port again. Which next investigation tests the part of this transaction that remains unproven?

### Options

**A**

Repeat the TCP handshake and check whether the service port can be reached.

**B**

Read the service response and check the client's authorization for that report.

**C**

Change the route to the service before examining the returned response.

**D**

Check whether the TCP session remains open, then use that alone to judge report completion.

Correct answer: B

### Explanation

The completed handshake and open connection establish transport reachability to the service, while the returned error and missing report show the application transaction has not succeeded. The response details and the client's authorization are the next evidence to inspect.

## Question 4

Type: single\_choice
Knowledge point: TCP and UDP transport

A telemetry sender numbers its UDP readings. In one capture, readings 103 and 105 reach the collector, but 104 does not. In a second capture, the collector stores 105 twice after the sender retries it because an application acknowledgment was lost. Assume the loss is transient and later retries can reach the collector. The collector must eventually keep one stored copy of every reading. Which application recovery plan addresses both observations while retaining UDP?

### Options

**A**

Track sequence gaps and request missing readings, then append each received reading as a new record.

**B**

Acknowledge stored sequence numbers and suppress repeats, then discard each sender copy when it is transmitted.

**C**

Cache and deduplicate received datagrams, then rely on UDP to redeliver any missing sequence number.

**D**

Acknowledge numbered readings, retry missing or unacknowledged ones, and store each sequence number only once.

Correct answer: D

### Explanation

The missing 104 shows that a sent UDP datagram can require application detection and retry. The twice-stored 105 shows that retry after a lost acknowledgment can deliver a reading already stored. Under the stated transient-loss assumption, application acknowledgments and retries recover missing readings, while storing by sequence number prevents repeated arrivals from creating duplicate records.

