美文网首页
tcp ip basics

tcp ip basics

作者: landon30 | 来源:发表于2020-11-12 18:33 被阅读0次

TCP

Format

TCP Message (Segment) Format

tib-1.png

Connection

TCP Connection Establishment Process: The "Three-Way Handshake"

tib-2.png

TCP Connection Termination Process: The "Four-Way Handshake"

tip-3.png

TCP Connection Establishment and Termination

tip-4.png

Basic

  • TCP Sequence and Acknowledgment Numbers
  • TCP Sliding Windows, with Flow Control, and Congestion Control

Reference

Features

  • Ordered data transfer — the destination host rearranges according to sequence number
  • Retransmission of lost packets — any cumulative stream not acknowledged is retransmitted
  • Error-free data transfer
  • Flow control — limits the rate a sender transfers data to guarantee reliable delivery. The receiver continually hints the sender on how much data can be received (controlled by the sliding window). When the receiving host's buffer fills, the next acknowledgment contains a 0 in the window size, to stop transfer and allow the data in the buffer to be processed.
  • Congestion control

UDP

Format

UDP Message Format

tip-5.png

UDP vs. TCP

TCP

  • Connection based
  • Guaranteed reliable and ordered
  • Automatically breaks up your data into packets for you
  • Makes sure it doesn’t send data too fast for the internet connection to handle (flow control)
  • Easy to use, you just read and write data like its a file

UDP

  • Easy to use, you just read and write data like its a file
  • No guarantee of reliability or ordering of packets, they may arrive out of order, be duplicated, or not arrive at all!
  • You have to manually break your data up into packets and send them
  • You have to make sure you don’t send data too fast for your internet connection to handle
  • If a packet is lost, you need to devise some way to detect this, and resend that data if necessary

Reliable UDP

  • UDT(UDP-based Data Transfer Protocol)
  • RUDP(Reliable User Datagram Protocol)

相关文章

  • tcp ip basics

    TCP Format TCP Message (Segment) Format Connection TCP Co...

  • C1 了解Web及网络基础

    KeyWords: 诞生,网络基础TCP/IP,TCP/IP协议族,TCP/IP的分层管理,TCP/IP通信传输流...

  • TCP协议

    TCP/IP协议分层详解TCP/IP协议详解通俗易懂网络协议(TCP/IP概述)什么是TCP/IP协议?

  • TCP HTTPS专题

    TCP HTTPS专题 TCP协议 TCP/IP协议分层 TCP/IP 协议族里重要的一点就是分层。 TCP/IP...

  • 《图解HTTP》

    网络基础TCP/IPTCP/IP协议族说法一:TCP/IP是指TCP和IP两种协议说法二:TCP/IP是在IP协议...

  • TCP 和 UDP 的区别

    写在开头: TCP UDP 都属于 TCP/IP 协议簇 , TCP/IP 协议包括了TCP,UDP,IP,FTP...

  • 图解HTTP 学习笔记一

    网络基础:TCP/IP TCP/IP 首先,借用原书的图TCP/IP协议族 按照书中的定义,所谓TCP/IP就是与...

  • (二)TCP/IP四层模型

    1、基本介绍 TCP/IP协议,也称TCP/IP协议族或TCP/IP协议栈,其中: TCP:Transmissio...

  • HTTP和HTTPS详解

    TCP/IP协议族 TCP/IP 的分层管理 TCP/IP 协议族里重要的一点就是分层。TCP/IP 协议族按层次...

  • 计算机网络

    一、tcp/http 1、TCP首部。 IP数据报(IP首部+TCP报文段(TCP首部+TCP数据)) TCP首部...

网友评论

      本文标题:tcp ip basics

      本文链接:https://www.haomeiwen.com/subject/gxeebktx.html