1 / 27

TCP/UDP

TCP/UDP. 指導教授:吳坤熹 演講者:黃驛翔 Class : IP Telephony. Outline. Introduction Linking to Application Layer Packetization and Reassembly Protocol Data Units TCP Header UDP Header Establishing connection (virtual) TCP technique UDP technique. Outline (Con.). Service Primitives TCP vs. UDP

totie
Download Presentation

TCP/UDP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TCP/UDP 指導教授:吳坤熹 演講者:黃驛翔 Class:IP Telephony

  2. Outline • Introduction • Linking to Application Layer • Packetization and Reassembly • Protocol Data Units • TCP Header • UDPHeader • Establishing connection (virtual) • TCP technique • UDP technique

  3. Outline (Con.) • Service Primitives • TCP vs. UDP • References

  4. Introduction • Transport layer • Responsible for end-to-end delivery of messages • Responsible for segmentation and reassembly • Two Protocols: • TCP (Transmission Control Protocol) • UDP (User Datagram Protocol)

  5. Introduction • Transport Layer Functions • Linking to Application Layer • Packetization and Reassembly • Establishing connection (virtual) • Connect oriented • Connectionless • Quality of Service (QoS)

  6. Linking to Application Layer • TCP may serve several Application at the same time • User identified by port number or service access point (SAP)

  7. Packetization and Reassembly

  8. Protocol Data Units (PDU) • At each layer, protocols are used to communicate • Control information is added to user data at each layer (PDU = Control + Data) • Transport layer may fragment user data • Transport layer may fragment user data • Each fragment has a transport header added • Destination SAP (port) • Sequence number • Error detection code

  9. TCP Header

  10. UDPHeader

  11. Establishing connection ─ TCP • Connection-oriented • Establishment • Maintenance • Termination • Reliability • Data confirm • Error correction • Flow control

  12. Connection-oriented-Establishment • 3-Way Handshaking

  13. Connection-oriented–Termination uSeq:X, ACK: Y. ACK..FIN • Seq:Y, ACK: X+1, ACK • Seq:Y, ACK: X+1, ACK..FIN xSeq:X+1, ACK: Y+1, ACK

  14. Reliable – Data confirm

  15. Reliable – Error correction

  16. Reliable – Error correction

  17. Flow control • Sliding Window

  18. The usage of TCP

  19. Establishing connection ─ UDP • Connection-less • No acks (Unconfirmed Service) • high rate of transmission • But unreliable • No flow control

  20. Connection-less • Sending packets individually without a virtual circuit • Each packet is sent independently • It will be routed separately, following different routes and arriving at different time

  21. The consideration of using UDP • Reduce the requirement of computer resources • The checking scheme has provided completely by the application program • When using the Multicast or Broadcast to transfer • The transmission of Real-time packets

  22. The usage of UDP • Trivial File Transfer Protocol,TFTP • Simple Network Management Protocol,SNMP • Dynamic Host Configuration Protocol,DHCP • Domain Name System,DNS • Routing Information Protocol,RIP • Real-Time Transport Protocol,RTP

  23. Service Primitives • Primitives specify function to be performed for the transport layer • Four Primitive types • Confirmed service:TCP • Nonconfirmed service:UDP

  24. Primitive Types

  25. Timing Sequence for Service Primitives

  26. TCP vs. UDP TCP UDP connection-oriented connectionless confirmed service unconfirmed service (request, indication, (request, indication) response, confirm) high overhead low overhead (header 20 octets) (header 8 octets) flow control no flow control

  27. References • J. FitzGerald and A. Dennis, “Business Data Communications and Networking”, (9th Ed. 2007), John Wiley & Sons Inc., U.S.A. • J. F. Hurose and K. W. Ross, “computer Networking”, (4th Ed. 2006), Peason Addison-Wesley Inc., U.S.A. • 吳坤熹 教授,”The PowerPoint of IP Telephony class”, 2008 • 陳彥錚 副教授,” The PowerPoint of Computer Networking class, Ch2,Ch6”, 2008 • William Stallings, Computer Networking with Internet Protocols and Technology, Prentice Hall, 2008

More Related