Transport Protocols: TCP and UDP – Grade 12 A/L ICT Notes 6.8

© 2026 schoolict.net (Ruwan Mangala Suraweera)

6.8 Transport Protocols: TCP and UDPප්‍රවාහන ප්‍රොටොකෝල: TCP සහ UDP

Grade 12 A/L ICT · Lesson 612 ශ්‍රේණිය A/L ICT · පාඩම 6

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • Ports select applications.පෝට්.
  • UDP = simple datagrams.UDP.
  • TCP = reliable streams.TCP.
  • DNS often UDP; web often TCP.DNS/වෙබ්.
  • Transport sits above IP.IP ඉහළින් ප්‍රවාහන.
Transport layerPortMultiplexingUDPTCPDatagramConnection

Notesසටහන්

Syllabus 6.8. IP delivers to a host; transport delivers to an application process using ports. UDP is simple; TCP is connection-oriented and reliable.විෂය නිර්දේශය 6.8. IP ධාරකයට; ප්‍රවාහන පෝට් මගින් යෙදුමට. UDP සරලයි; TCP විශ්වාසනීයයි.

1. Process to process1. ක්‍රියාවලි දෙකක්

Many apps share one IP. Port numbers multiplex conversations (e.g. 80/443 web, 53 DNS).එක් IP එකක යෙදුම් බොහෝ; පෝට් මගින් වෙන් කරයි.

2. UDP and TCP2. UDP සහ TCP

UDP: connectionless, low overhead, unreliable – DNS, some streaming. TCP: connection-oriented, reliable, ordered – HTTP, email, file transfer.UDP සරල/අවිශ්වාසනීය; TCP විශ්වාසනීය.

Transport: TCP vs UDPTCPconnection + ACKordered byte streamretransmit lost dataHTTP, email, file transferUDPno connectiondatagram packetsfast, may dropDNS, video, games
TCP reliable stream vs UDP datagramsTCP විශ්වාසනීය stream සහ UDP datagram
💡 IP = host; port = process/app endpoint.IP = ධාරක; පෝට් = යෙදුම.
🧮 Worked exampleවිසඳූ උදාහරණය DNS query → often UDP/53 (one packet). Web download → TCP/80 or 443 (ordered, retransmitted).DNS → බොහෝ විට UDP/53. වෙබ් බාගත කිරීම → TCP/80 හෝ 443.
UDP = fast, no connection. TCP = reliable byte stream.UDP = වේගවත්, සම්බන්ධතාවයක් නැත. TCP = විශ්වාසනීය byte stream.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. QUIC/HTTP3 over UDP is beyond the syllabus.QUIC/HTTP3 විභාගයෙන් ඔබ්බට.

Key Wordsප්‍රධාන පද

Transport layerප්‍රවාහන ස්ථරය
Process-to-process delivery.ක්‍රියාවලි-ක්‍රියාවලි.
Portපෝට්
Number identifying an endpoint.අන්ත ලක්ෂ්‍ය අංකය.
Multiplexingබහුකරණය
Many apps sharing one IP.එක් IP එකක යෙදුම් බොහෝ.
UDPUDP
Unreliable datagram transport.අවිශ්වාසනීය ඩේටාග්‍රෑම්.
TCPTCP
Reliable connection-oriented transport.විශ්වාසනීය සම්බන්ධතාමය.
Datagramඩේටාග්‍රෑම්
Independent UDP packet.ස්වාධීන UDP පැකට්.
Connectionසම්බන්ධතාව
TCP session setup.TCP සැසි සැකසුම.
Reliable deliveryවිශ්වාසනීය බෙදාහැරීම
TCP retransmits lost data.නැති දත්ත නැවත යවයි.
HTTPHTTP
Often uses TCP ports 80/443.බොහෝ විට TCP 80/443.
DNSDNS
Often uses UDP port 53.බොහෝ විට UDP 53.
Endpointඅන්ත ලක්ෂ්‍යය
IP + port pair.IP + පෝට්.
Overheadපොරොත්තු
Extra header/control cost.අමතර හෙඩර් පිරිවැය.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1Why ports?පෝට් ඇයි?

Answerපිළිතුර: Many processes share one IP.එක් IP එකක ක්‍රියාවලි බොහෝ.

2UDP properties?UDP?

Answerපිළිතුර: Connectionless, low overhead, unreliable.සම්බන්ධතා රහිත, අවිශ්වාසනීය.

3TCP properties?TCP?

Answerපිළිතුර: Connection-oriented, reliable, ordered.සම්බන්ධතාමය, විශ්වාසනීය.

4UDP app example?UDP උදා?

Answerපිළිතුර: DNS (often).DNS.

5TCP app example?TCP උදා?

Answerපිළිතුර: HTTP / email.HTTP / ඊමේල්.

6IP alone enough?IP පමණක්ද?

Answerපිළිතුර: No – need ports for apps.නැත – පෝට් අවශ්‍යයි.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1Ports identifyපෝට්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

App endpoints.යෙදුම් අන්ත.

2UDP isUDP

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Datagram.ඩේටාග්‍රෑම්.

3TCP isTCP

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Reliable stream.විශ්වාසනීය.

4DNS commonly usesDNS

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

UDP 53.UDP 53.

5Web HTTP commonly usesHTTP

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

TCP.TCP.

6Multiplexing meansබහුකරණය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Many apps.යෙදුම් බොහෝ.

7Without portsපෝට් නැතිව

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Which app?කුමන යෙදුමද?

8TCP retransmission helpsTCP

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Reliability.විශ්වාසනීයත්වය.

9Which term means: “Process-to-process delivery”?“ක්‍රියාවලි-ක්‍රියාවලි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Transport layer – Process-to-process delivery.ප්‍රවාහන ස්ථරය – ක්‍රියාවලි-ක්‍රියාවලි.

10Which term means: “Number identifying an endpoint”?“අන්ත ලක්ෂ්‍ය අංකය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Port – Number identifying an endpoint.පෝට් – අන්ත ලක්ෂ්‍ය අංකය.

11Which term means: “Many apps sharing one IP”?“එක් IP එකක යෙදුම් බොහෝ” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Multiplexing – Many apps sharing one IP.බහුකරණය – එක් IP එකක යෙදුම් බොහෝ.

12Which term means: “Unreliable datagram transport”?“අවිශ්වාසනීය ඩේටාග්‍රෑම්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

UDP – Unreliable datagram transport.UDP – අවිශ්වාසනීය ඩේටාග්‍රෑම්.

13Which term means: “Reliable connection-oriented transport”?“විශ්වාසනීය සම්බන්ධතාමය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

TCP – Reliable connection-oriented transport.TCP – විශ්වාසනීය සම්බන්ධතාමය.

14Which term means: “Independent UDP packet”?“ස්වාධීන UDP පැකට්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Datagram – Independent UDP packet.ඩේටාග්‍රෑම් – ස්වාධීන UDP පැකට්.

15Which term means: “TCP session setup”?“TCP සැසි සැකසුම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Connection – TCP session setup.සම්බන්ධතාව – TCP සැසි සැකසුම.

16Which term means: “TCP retransmits lost data”?“නැති දත්ත නැවත යවයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Reliable delivery – TCP retransmits lost data.විශ්වාසනීය බෙදාහැරීම – නැති දත්ත නැවත යවයි.

17Which term means: “Often uses TCP ports 80/443”?“බොහෝ විට TCP 80/443” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

HTTP – Often uses TCP ports 80/443.HTTP – බොහෝ විට TCP 80/443.

18Which term means: “Often uses UDP port 53”?“බොහෝ විට UDP 53” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

DNS – Often uses UDP port 53.DNS – බොහෝ විට UDP 53.

19Which term means: “IP + port pair”?“IP + පෝට්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Endpoint – IP + port pair.අන්ත ලක්ෂ්‍යය – IP + පෝට්.

20Which term means: “Extra header/control cost”?“අමතර හෙඩර් පිරිවැය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Overhead – Extra header/control cost.පොරොත්තු – අමතර හෙඩර් පිරිවැය.

MCQ answer keyMCQ පිළිතුරු

  1. D – App endpoints.යෙදුම් අන්ත.
  2. A – Datagram.ඩේටාග්‍රෑම්.
  3. D – Reliable stream.විශ්වාසනීය.
  4. E – UDP 53.UDP 53.
  5. E – TCP.TCP.
  6. D – Many apps.යෙදුම් බොහෝ.
  7. B – Which app?කුමන යෙදුමද?
  8. D – Reliability.විශ්වාසනීයත්වය.
  9. C – Transport layer – Process-to-process delivery.ප්‍රවාහන ස්ථරය – ක්‍රියාවලි-ක්‍රියාවලි.
  10. B – Port – Number identifying an endpoint.පෝට් – අන්ත ලක්ෂ්‍ය අංකය.
  11. C – Multiplexing – Many apps sharing one IP.බහුකරණය – එක් IP එකක යෙදුම් බොහෝ.
  12. A – UDP – Unreliable datagram transport.UDP – අවිශ්වාසනීය ඩේටාග්‍රෑම්.
  13. B – TCP – Reliable connection-oriented transport.TCP – විශ්වාසනීය සම්බන්ධතාමය.
  14. A – Datagram – Independent UDP packet.ඩේටාග්‍රෑම් – ස්වාධීන UDP පැකට්.
  15. C – Connection – TCP session setup.සම්බන්ධතාව – TCP සැසි සැකසුම.
  16. E – Reliable delivery – TCP retransmits lost data.විශ්වාසනීය බෙදාහැරීම – නැති දත්ත නැවත යවයි.
  17. C – HTTP – Often uses TCP ports 80/443.HTTP – බොහෝ විට TCP 80/443.
  18. B – DNS – Often uses UDP port 53.DNS – බොහෝ විට UDP 53.
  19. A – Endpoint – IP + port pair.අන්ත ලක්ෂ්‍යය – IP + පෝට්.
  20. E – Overhead – Extra header/control cost.පොරොත්තු – අමතර හෙඩර් පිරිවැය.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Explain process-to-process delivery.ක්‍රියාවලි-ක්‍රියාවලි. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
IP to host; ports to apps.IP ධාරකට; පෝට් යෙදුමට.

2Define multiplexing with ports.පෝට් බහුකරණය. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Apps distinguished by port numbers.පෝට් අංකවලින් වෙන්.

3UDP: properties + apps.UDP. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Connectionless/unreliable; DNS, streaming.සම්බන්ධතා රහිත; DNS.

4TCP: properties + apps.TCP. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Reliable connection; HTTP, email.විශ්වාසනීය; HTTP, ඊමේල්.

5Why both UDP and TCP?දෙකම ඇයි? (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Trade simplicity vs reliability.සරලත්වය vs විශ්වාසනීයත්වය.

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • Ports select applications.පෝට්.
  • UDP = simple datagrams.UDP.
  • TCP = reliable streams.TCP.
  • DNS often UDP; web often TCP.DNS/වෙබ්.
  • Transport sits above IP.IP ඉහළින් ප්‍රවාහන.

Downloadsබාගත කිරීම්

Full Lesson 6 PDFසම්පූර්ණ පාඩම 6 PDF: English · සිංහල

Next noteඊළඟ සටහන 6.9 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.