# Transport Protocols

TCP/IP, Which indicates that TCP protocol runs over an IP network.

TCP is responsible for the transport of packets, while IP is responsible for the logical addressing when sending information over TCP.

1. A sequence number (32-bit) is sent by tcp client, indicating how much data has been sent for the session.
2. An acknowledgement number is sent by the TCP server, indicating that it has received the data and is ready for the next segment.&#x20;

TCP flag is a control bit on the data packet that indicates different connection states and/or information about how the packet should be handled.

Flags are SYN, ACK and FIN

![](/files/-Mfgyp_DvcFgK5T_drW2)

UDP:

connection less protocol.

server Fire and forget.

![](/files/-MfgzBrzolMWSSVpuBdp)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://modi-arun91.gitbook.io/penetration-testing/important-concepts/networking/transport-protocols.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
