学习笔记(2)Stanford CS144 Introduction to Computer Internet

1. TCP

TCP, universally because it provides reliable end to end bidirectional byte stream service that almost all applications want

three-way handshake
Tear down
Propeties
TCP:Port Demultiplexing

Ayana Port Numbers

TCP三次握手中SYN,ACK,Seq含义

  • PSH tells TCP layer delivers message immediately upon arrival, useful sending short segment data which is time critical such as a key stroke

TCP的三次握手与四次挥手理解及面试题(很全面)

2. UDP

UDP
  • checksum has IPv4 message because it helps to check

3. ICMP

IP协议以及ICMP、Ping
ICMP协议详解

Ping

4. End-to-End Principle

End-to-End Principle
Error Detection
  • D has some bugs in memory, thus when it receives data from C and transmit to E, some of the data will be lost
  • So the correct position for error detection should be in the application layer, rather than link layer.

端对端原则的思考及反思

5. Error Detection: 3 chemes

Error Detection: 3 chemes
Checksum
CRC

6. Finite State Machine

Finite State Machine

Finite State Machine

7. Reliable Communication

7.1 Stop and Wait

Stop and Wait
  • How to detect duplicates?

use 1-bit counter

Problem

7.2 Sliding Window

Sliding Window

Sliding Window Sender
Sliding Window Receiver
  • cumulative acks: If 4 is lost, the receiver will send ack 3 until time out, so the sender will retransmit 4
Sequence Space

7.3 Retransmission Strategies

Retransmission Strategies
Go-back-N
Quiz
  • because receiver window if 1, so it can not buffer any other packets

7.4 TCP Header

TCP Header
  • sequence number: first byte of sliding window

TCP数据报首部

7.5 TCP set up and tear down

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1,网络传输三大问题:packet reordering, packet duplication, and pac...
    码农崛起阅读 491评论 0 0
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,513评论 0 13
  • Chapter 1 In the year 1878, I took my degree of Doctor of...
    foxgti阅读 3,807评论 0 6
  • 好运健谈分享 2018年4月9号 今天在微信上有一个咨询者说,她不能和她的儿子好好说话,俩人一说话就掐!很...
    好运健谈阅读 1,065评论 0 6
  • 张清的日精进第686天 领导力 判断一个人是否具备领导的资格,主要是检验他的凝聚力。给他带新人,如果他带一个死掉一...
    kiyoi2017阅读 96评论 0 0