Saltar al contenido ForoHackers

TCP/IP: start here

TCP/IP
#3171 · · Citar · Denunciar

TCP/IP is the pair of protocols that carries almost everything on the internet. IP moves individual packets between addresses with no promises; TCP, on top of it, turns that into a reliable, ordered stream between two programs. Understanding them explains most "the network is slow" mysteries.

Key concepts

  • IP addressing: IPv4 and IPv6 addresses, subnets, prefixes and the idea of a network versus a host.
  • Packets and fragmentation: IP delivers best effort; packets can be lost, duplicated, reordered or too big for a link (MTU).
  • TCP connection: a three-way handshake opens it; sequence numbers and acknowledgements make delivery reliable.
  • Flow and congestion control: the receiver's window and the sender's congestion window decide how fast data flows.
  • UDP: the other transport, with no connection and no guarantees, used when speed or control matters more.

Vocabulary

  • Port: a number that tells the host which program gets the data.
  • Socket: the programming interface to a connection, defined by addresses and ports.
  • NAT: rewriting addresses at a boundary so many hosts share one public address.
  • ICMP: the protocol of error and diagnostic messages, behind ping and traceroute.
  • RTT: round-trip time, the floor under every request.

What to study, in order

  1. Binary, subnets and CIDR notation: split a network by hand.
  2. Use ping, traceroute and ss or netstat on your own machines, and explain each output line.
  3. Capture a TCP handshake and a close in Wireshark and label every field.
  4. Write a TCP echo server and client with sockets; then the same with UDP.
  5. Study slow start, retransmission timers and congestion control, and reproduce loss on a lab link.

Related tags

#protocols #routing #dns #network-administration #protocol-analysis

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder