<mxfile host="app.diagrams.net" agent="network-lab-pkt generator">
  <diagram id="d1" name="TCP vs UDP: reliable conversation or fire-and-forget">
    <mxGraphModel dx="1360" dy="1130" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1360" pageHeight="1130" background="#FBFCFE" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <mxCell id="1" parent="0"/>
        <mxCell id="c2s0" value="" style="rounded=0;fillColor=#2F6FE0;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s1" value="" style="rounded=0;fillColor=#7C4DDB;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="272" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s2" value="" style="rounded=0;fillColor=#D63F8C;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="544" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s3" value="" style="rounded=0;fillColor=#E8890C;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="816" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s4" value="" style="rounded=0;fillColor=#1E9A63;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="1088" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c3" value="&lt;div style=&quot;font-size:32px;line-height:40px;font-weight:700;font-family:Helvetica;color:#1F2A44;&quot;&gt;TCP vs UDP: reliable conversation or fire-and-forget&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="28.0" width="1060.0" height="40" as="geometry"/></mxCell>
        <mxCell id="c4" value="&lt;div style=&quot;font-size:17px;line-height:24px;font-family:Helvetica;color:#5B6677;&quot;&gt;Both ride on IP and use ports; TCP adds a handshake, acknowledgements and retransmission, UDP adds almost nothing&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="72.0" width="1060.0" height="24" as="geometry"/></mxCell>
        <mxCell id="c5" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#FFFFFF;letter-spacing:1.2px;&quot;&gt;STAGE 09 · TRANSPORT&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#3932A5;strokeWidth=2;fontColor=#FFFFFF;fillColor=#4F46E5;gradientColor=#443CC5;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=30.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1117.6" y="30.0" width="198.4" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c6" value="TCP · connection-oriented · reliable" style="swimlane;startSize=38;horizontal=1;rounded=1;arcSize=12;html=1;collapsible=0;fillColor=#2F6FE0;gradientColor=#285FC1;swimlaneFillColor=#E8F1FF;strokeColor=#4C8DF6;strokeWidth=2.5;fontColor=#FFFFFF;fontStyle=1;fontSize=17;align=left;spacingLeft=14;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="44" y="130" width="716" height="640" as="geometry"/></mxCell>
        <mxCell id="c6t" value="IP protocol 6" style="text;html=1;align=right;verticalAlign=middle;fontColor=#FFFFFF;fontFamily=Courier New;fontSize=13;" vertex="1" parent="1"><mxGeometry x="460" y="130" width="282" height="38" as="geometry"/></mxCell>
        <mxCell id="c7" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;Client&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;port 51000&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=2;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="70.0" y="188.0" width="190.0" height="64.0" as="geometry"/></mxCell>
        <mxCell id="c8" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;Server&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;port 443&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#34B27B;strokeWidth=2;fontColor=#11603E;fillColor=#E4F7EC;gradientColor=#C8ECDA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="544.0" y="188.0" width="190.0" height="64.0" as="geometry"/></mxCell>
        <mxCell id="c9" value="" style="html=1;strokeColor=#B8C0CC;strokeWidth=2;rounded=1;dashed=1;dashPattern=10 7;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="165.0" y="252.0" as="sourcePoint"/><mxPoint x="165.0" y="750.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c10" value="" style="html=1;strokeColor=#B8C0CC;strokeWidth=2;rounded=1;dashed=1;dashPattern=10 7;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="639.0" y="252.0" as="sourcePoint"/><mxPoint x="639.0" y="750.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c11" value="" style="html=1;strokeColor=#2F6FE0;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="165.0" y="316.0" as="sourcePoint"/><mxPoint x="639.0" y="316.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c12" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;SYN  seq=100&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="339.6" y="291.0" width="124.8" height="21" as="geometry"/></mxCell>
        <mxCell id="c13" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;“Can we talk?”&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="335.4" y="322.0" width="133.2" height="21" as="geometry"/></mxCell>
        <mxCell id="c14" value="" style="html=1;strokeColor=#1E9A63;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="639.0" y="392.0" as="sourcePoint"/><mxPoint x="165.0" y="392.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c15" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;SYN-ACK  seq=300 ack=101&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="289.2" y="367.0" width="225.6" height="21" as="geometry"/></mxCell>
        <mxCell id="c16" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;“Yes — and can we?”&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="315.9" y="398.0" width="172.2" height="21" as="geometry"/></mxCell>
        <mxCell id="c17" value="" style="html=1;strokeColor=#2F6FE0;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="165.0" y="468.0" as="sourcePoint"/><mxPoint x="639.0" y="468.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c18" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;ACK  ack=301&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="339.6" y="443.0" width="124.8" height="21" as="geometry"/></mxCell>
        <mxCell id="c19" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;“Yes.”  → ESTABLISHED&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="308.1" y="474.0" width="187.8" height="21" as="geometry"/></mxCell>
        <mxCell id="c20" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;1&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=2;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;ellipse;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="69.0" y="301.0" width="30.0" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c21" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;2&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=2;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;ellipse;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="69.0" y="377.0" width="30.0" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c22" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;3&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=2;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;ellipse;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="69.0" y="453.0" width="30.0" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c23" value="" style="html=1;strokeColor=#2F6FE0;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="165.0" y="560.0" as="sourcePoint"/><mxPoint x="639.0" y="560.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c24" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;DATA  seq=101 len=100&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="301.8" y="535.0" width="200.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c25" value="" style="html=1;strokeColor=#1E9A63;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="639.0" y="620.0" as="sourcePoint"/><mxPoint x="165.0" y="620.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c26" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;ACK  ack=201&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="339.6" y="595.0" width="124.8" height="21" as="geometry"/></mxCell>
        <mxCell id="c27" value="" style="html=1;strokeColor=#D93F3F;strokeWidth=3.5;rounded=1;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="165.0" y="690.0" as="sourcePoint"/><mxPoint x="365.0" y="690.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c28" value="" style="html=1;strokeColor=#D93F3F;strokeWidth=5;rounded=1;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="366.0" y="676.0" as="sourcePoint"/><mxPoint x="394.0" y="704.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c29" value="" style="html=1;strokeColor=#D93F3F;strokeWidth=5;rounded=1;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="366.0" y="704.0" as="sourcePoint"/><mxPoint x="394.0" y="676.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c30" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#8E1B1B;&quot;&gt;DATA seq=201 — lost!&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="415.0" y="666.0" width="192.0" height="21" as="geometry"/></mxCell>
        <mxCell id="c31" value="" style="html=1;strokeColor=#E8890C;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="165.0" y="730.0" as="sourcePoint"/><mxPoint x="639.0" y="730.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c32" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#7A4300;&quot;&gt;retransmit seq=201 (no ACK in time)&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="243.0" y="705.0" width="318.0" height="21" as="geometry"/></mxCell>
        <mxCell id="c33" value="UDP · connectionless · best effort" style="swimlane;startSize=38;horizontal=1;rounded=1;arcSize=12;html=1;collapsible=0;fillColor=#E8890C;gradientColor=#C8760A;swimlaneFillColor=#FFF0DC;strokeColor=#F5A524;strokeWidth=2.5;fontColor=#FFFFFF;fontStyle=1;fontSize=17;align=left;spacingLeft=14;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="800" y="130" width="516" height="640" as="geometry"/></mxCell>
        <mxCell id="c33t" value="IP protocol 17" style="text;html=1;align=right;verticalAlign=middle;fontColor=#FFFFFF;fontFamily=Courier New;fontSize=13;" vertex="1" parent="1"><mxGeometry x="1016" y="130" width="282" height="38" as="geometry"/></mxCell>
        <mxCell id="c34" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;Client&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;port 49152&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=2;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="826.0" y="188.0" width="170.0" height="64.0" as="geometry"/></mxCell>
        <mxCell id="c35" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;DNS server&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;port 53&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#34B27B;strokeWidth=2;fontColor=#11603E;fillColor=#E4F7EC;gradientColor=#C8ECDA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1120.0" y="188.0" width="170.0" height="64.0" as="geometry"/></mxCell>
        <mxCell id="c36" value="" style="html=1;strokeColor=#B8C0CC;strokeWidth=2;rounded=1;dashed=1;dashPattern=10 7;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="911.0" y="252.0" as="sourcePoint"/><mxPoint x="911.0" y="750.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c37" value="" style="html=1;strokeColor=#B8C0CC;strokeWidth=2;rounded=1;dashed=1;dashPattern=10 7;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1205.0" y="252.0" as="sourcePoint"/><mxPoint x="1205.0" y="750.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c38" value="" style="html=1;strokeColor=#2F6FE0;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="911.0" y="330.0" as="sourcePoint"/><mxPoint x="1205.0" y="330.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c39" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;datagram 1  (query)&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="966.2" y="305.0" width="183.6" height="21" as="geometry"/></mxCell>
        <mxCell id="c40" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;no handshake first&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="975.8" y="336.0" width="164.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c41" value="" style="html=1;strokeColor=#1E9A63;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1205.0" y="420.0" as="sourcePoint"/><mxPoint x="911.0" y="420.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c42" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;datagram 2  (answer)&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="962.0" y="395.0" width="192.0" height="21" as="geometry"/></mxCell>
        <mxCell id="c43" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;no ACK needed&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="995.3" y="426.0" width="125.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c44" value="" style="html=1;strokeColor=#D93F3F;strokeWidth=3.5;rounded=1;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="911.0" y="520.0" as="sourcePoint"/><mxPoint x="1071.0" y="520.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c45" value="" style="html=1;strokeColor=#D93F3F;strokeWidth=5;rounded=1;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1073.0" y="506.0" as="sourcePoint"/><mxPoint x="1101.0" y="534.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c46" value="" style="html=1;strokeColor=#D93F3F;strokeWidth=5;rounded=1;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1073.0" y="534.0" as="sourcePoint"/><mxPoint x="1101.0" y="506.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c47" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#8E1B1B;&quot;&gt;datagram 3 — lost&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="1116.0" y="494.0" width="166.8" height="21" as="geometry"/></mxCell>
        <mxCell id="c48" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#8E1B1B;&quot;&gt;Nobody retransmits for you&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;The application decides: retry (DNS) or skip the&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;missing frame (live video, voice, games)&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#EF5B5B;strokeWidth=2;fontColor=#8E1B1B;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="832.0" y="560.0" width="460.0" height="84.0" as="geometry"/></mxCell>
        <mxCell id="c49" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#7A4300;&quot;&gt;Why bother?  Speed and simplicity&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;8-byte header, no waiting, works with broadcast&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;and multicast, perfect for small request/response&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#F5A524;strokeWidth=2;fontColor=#7A4300;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="832.0" y="664.0" width="460.0" height="84.0" as="geometry"/></mxCell>
        <mxCell id="c50" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#2B2D8F;letter-spacing:1.2px;&quot;&gt;HEADERS — HOW MUCH EACH PROTOCOL ADDS&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="800.0" width="317.0" height="17" as="geometry"/></mxCell>
        <mxCell id="c51" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#1C3F94;&quot;&gt;Src port&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=1.8;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="836.0" width="89.5" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c52" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#1C3F94;&quot;&gt;Dst port&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=1.8;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="133.5" y="836.0" width="89.5" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c53" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#4B2A9A;&quot;&gt;Seq number&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#9B6CF0;strokeWidth=1.8;fontColor=#4B2A9A;fillColor=#F1E9FE;gradientColor=#E3D5FC;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="223.0" y="836.0" width="149.2" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c54" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#4B2A9A;&quot;&gt;Ack number&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#9B6CF0;strokeWidth=1.8;fontColor=#4B2A9A;fillColor=#F1E9FE;gradientColor=#E3D5FC;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="372.2" y="836.0" width="149.2" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c55" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#8E1B1B;&quot;&gt;Flags&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#EF5B5B;strokeWidth=1.8;fontColor=#8E1B1B;fillColor=#FDE8E8;gradientColor=#FBD1D1;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="521.3" y="836.0" width="119.3" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c56" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#2F3846;&quot;&gt;Window&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1.8;fontColor=#2F3846;fillColor=#F1F3F6;gradientColor=#E1E4E9;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="640.7" y="836.0" width="119.3" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c57" value="&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;TCP header: 20+ bytes — sequence and ack numbers enable ordering, retransmission and flow control&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="890.0" width="679.7" height="18" as="geometry"/></mxCell>
        <mxCell id="c58" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#1C3F94;&quot;&gt;Src port&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=1.8;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="800.0" y="836.0" width="154.8" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c59" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#1C3F94;&quot;&gt;Dst port&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=1.8;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="954.8" y="836.0" width="154.8" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c60" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#7A4300;&quot;&gt;Length&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#F5A524;strokeWidth=1.8;fontColor=#7A4300;fillColor=#FFF0DC;gradientColor=#FDE4BF;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1109.6" y="836.0" width="103.2" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c61" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#2F3846;&quot;&gt;Checksum&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1.8;fontColor=#2F3846;fillColor=#F1F3F6;gradientColor=#E1E4E9;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1212.8" y="836.0" width="103.2" height="48.0" as="geometry"/></mxCell>
        <mxCell id="c62" value="&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;UDP header: 8 bytes — ports, length, checksum. That&#x27;s all.&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="800.0" y="890.0" width="416.1" height="18" as="geometry"/></mxCell>
        <mxCell id="c63" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=1;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="930.0" width="180.0" height="38.0" as="geometry"/></mxCell>
        <mxCell id="c64" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;TCP — use when every byte must arrive&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=1;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="224.0" y="930.0" width="530.0" height="38.0" as="geometry"/></mxCell>
        <mxCell id="c65" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;UDP — use when speed beats perfection&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=1;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="754.0" y="930.0" width="562.0" height="38.0" as="geometry"/></mxCell>
        <mxCell id="c66" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#2F3846;&quot;&gt;Examples&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1;fontColor=#2F3846;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="968.0" width="180.0" height="38.0" as="geometry"/></mxCell>
        <mxCell id="c67" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#2F3846;&quot;&gt;HTTP/HTTPS · SSH · email · file transfer · databases&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1;fontColor=#2F3846;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="224.0" y="968.0" width="530.0" height="38.0" as="geometry"/></mxCell>
        <mxCell id="c68" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#2F3846;&quot;&gt;DNS · DHCP · VoIP · video calls · online games · QUIC&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1;fontColor=#2F3846;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=8;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="754.0" y="968.0" width="562.0" height="38.0" as="geometry"/></mxCell>
        <mxCell id="c69" value="" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#E6C229;strokeWidth=2;fontColor=#5F4C00;fillColor=#FFF8D6;gradientColor=#FBEFBA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=32;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="1024.0" width="1272.0" height="78.0" as="geometry"/></mxCell>
        <mxCell id="c70" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#FFFFFF;letter-spacing:1.2px;&quot;&gt;REMEMBER&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#A76309;strokeWidth=2;fontColor=#FFFFFF;fillColor=#E8890C;gradientColor=#C8760A;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=30.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="60.0" y="1048.0" width="97.4" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c71" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#5F4C00;&quot;&gt;TCP = SYN, SYN-ACK, ACK, then numbered data with ACKs and retransmits.  UDP = just send it.&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="177.4" y="1039.0" width="788.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c72" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#5F4C00;&quot;&gt;Neither is &#x27;better&#x27;: pick reliability (TCP) or low latency (UDP) based on what the application can tolerate losing.&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="177.4" y="1063.0" width="990.0" height="21" as="geometry"/></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
