Skip to content

Commit 8fd6ac1

Browse files
Chris WuChris Wu
Chris Wu
authored and
Chris Wu
committed
no message
1 parent 0d91f0b commit 8fd6ac1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,22 @@ If you are new or know nothing about data structures and algorithms, I recommend
185185

186186
# Knowledge Base Question
187187
1. [Session vs Cookie](https://medium.com/@chriswrite/session-vs-cookie-software-engineer-top-asked-question-1-9bdbc0766739)
188-
2. [Token Authentication](https://medium.com/@chriswrite/token-authentication-software-engineer-top-asked-question-2-76dd2ed7c2d5)
188+
2. [Token Authentication](https://medium.com/@chriswrite/token-authentication-software-engineer-top-asked-question-2-76dd2ed7c2d5)
189+
3. [TCP/UDP](https://www.youtube.com/watch?v=Vdc8TCESIg8)
190+
* Transport Layer
191+
* Application Layer (HTTP, FTP)
192+
* Transport Layer (UDP/TCP, Slice data to small packages)
193+
* Network Layer (IP)
194+
* Link Layer (Wifi)
195+
* Physical Layer (Coaxial Ethernet Cable)
196+
* UDP has smaller package size (8 bytes), while TCP needs 20 bytes due to it has larger header.
197+
* UDP are not order guaranteed. TCP are in order.
198+
* They both have error messages, but TCP will resent it again, UDP does not.
199+
* TCP needs a three-way handshake to initiate a connection between ports. It’s like a phone call. While UDP is like a mail.
200+
* In short, UDP is smaller and faster while TCP is reliable and ordered.
201+
* UDP example, video streaming, DNS lookups.
202+
4. [HTTPS, CA, PKI](https://www.youtube.com/watch?v=i-rtxrEz_E8)
203+
5. HTTP, [Socket](https://www.youtube.com/watch?v=Y0g3M4VG6Ns), [WebSocket](https://www.youtube.com/watch?v=i5OVcTdt_OU), [HTTP KeepAlive](https://www.youtube.com/watch?v=j8lgFaIajko), HTTP2
189204
...
190205

191206

0 commit comments

Comments
 (0)