Skip to content

Commit

Permalink
article: simplify http3 packets diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrehtrb committed Aug 9, 2024
1 parent b88f108 commit 0c34793
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/posts/2024/03/http2-and-http3-explained.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,18 @@ To solve TCP's head-of-line blocking, QUIC decided to use UDP for its transport
```mermaid
sequenceDiagram
rect rgb(255, 179, 217)
Client->>Server: req1: #9993;1/1<br>+<br>req2: #9993;1/1<br>+<br>req3: #9993;1/1
Client->>Server: req1: #9993;1/1<br>+<br>req2: #9993;1/1
end
rect rgb(179, 205, 230)
Server--xClient: res1: #9993;1/2<br>+<br>res2: #9993;1/2
Server--xClient: res1: #9993;1/2
end
Note over Client,Server: lost QUIC packet<br>doesn't block sending<br>other packets
rect rgb(179, 205, 230)
Server-->>Client: res1: #9993;2/2<br>+<br>res2: #9993;2/2<br>+<br>res3: #9993;1/1
Server-->>Client: res1: #9993;2/2<br>+<br>res2: #9993;1/1
end
Note over Client,Server: resending lost packet.<br>res3 wasn't delayed
Note over Client,Server: resending lost packet.<br>res2 wasn't delayed
rect rgb(179, 205, 230)
Server-->>Client: res1: #9993;1/2<br>+<br>res2: #9993;1/2
Server-->>Client: res1: #9993;1/2
end
```

Expand Down
10 changes: 5 additions & 5 deletions src/posts/2024/03/http2-e-http3-explicados.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,18 @@ Para resolver o bloqueio de cabeça de fila do TCP, o QUIC opta por utilizar o U
```mermaid
sequenceDiagram
rect rgb(255, 179, 217)
Cliente->>Servidor: req1: #9993;1/1<br>+<br>req2: #9993;1/1<br>+<br>req3: #9993;1/1
Cliente->>Servidor: req1: #9993;1/1<br>+<br>req2: #9993;1/1
end
rect rgb(179, 205, 230)
Servidor--xCliente: res1: #9993;1/2<br>+<br>res2: #9993;1/2
Servidor--xCliente: res1: #9993;1/2
end
Note over Cliente,Servidor: pacote QUIC perdido<br>não bloqueia outros pacotes
rect rgb(179, 205, 230)
Servidor-->>Cliente: res1: #9993;2/2<br>+<br>res2: #9993;2/2<br>+<br>res3: #9993;1/1
Servidor-->>Cliente: res1: #9993;2/2<br>+<br>res2: #9993;1/1
end
Note over Cliente,Servidor: reenvio do pacote perdido.<br>res3 não foi afetado
Note over Cliente,Servidor: reenvio do pacote perdido.<br>res2 não foi afetado
rect rgb(179, 205, 230)
Servidor-->>Cliente: res1: #9993;1/2<br>+<br>res2: #9993;1/2
Servidor-->>Cliente: res1: #9993;1/2
end
```

Expand Down

0 comments on commit 0c34793

Please sign in to comment.