Module12 tcpudp v2
Upcoming SlideShare
Loading in...5

Module12 tcpudp v2






Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    Module12 tcpudp v2 Module12 tcpudp v2 Presentation Transcript

    • Transport ProtocolsRelates to Lab 5. An overview of the transport protocols of the TCP/IPprotocol suite. Also, a short discussion of UDP. 1
    • Orientation• We move one layer up and look at the transport layer. User User User User Application Process Process Process Process Layer TCP UDP Transport Layer ICMP IP IGMP Network Layer Hardware ARP RARP Link Layer Interface Media 2
    • Orientation• Transport layer protocols are end-to-end protocols• They are only implemented at the hosts HOST HOST Application Application Transport Transport Network Network Network Data Link Data Link Data Link Data Link 3
    • Transport Protocols in the Internet• The two major transport protocols of the Internet are UDP - User Datagram Protocol TCP - Transmission Control• datagram oriented Protocol• unreliable, connectionless • stream oriented• simple • reliable, connection-oriented• unicast and multicast • complex• useful only for few applications, • only unicast e.g., multimedia applications • used for most Internet• used a lot for services applications: – network management – web (http), email (smtp), file (SNMP), routing (RIP), transfer (ftp), terminal (telnet), naming (DNS), etc. etc. 4
    • UDP Format IP header UDP header UDP data 20 bytes 8 bytes Source Port Number Destination Port Number UDP message length Checksum DATA 0 15 16 31• Port numbers identify sending and receiving applications (processes).Maximum port number is 216-1= 65,535• Message Length is at least 8 bytes (I.e., Data field can be empty) and atmost 65,535• Checksum is for header (of UDP and some of the IP header fields) 5
    • Format of TCP segments• TCP segments have a min. 20 byte header with ≥ 0 bytes of data. IP header TCP header TCP data 20 bytes 20 bytes 0 15 16 31 Source Port Number Destination Port Number Sequence number (32 bits) 20 bytes Acknowledgement number (32 bits) header length 0 Flags window size TCP checksum urgent pointer Options (if any) DATA 6
    • Port Numbers• UDP (and TCP) use port numbers to identify applications• A globally unique address for applications consists of <IP address, type of protocol, port number>• 65,535 ports per protocol User User User User User User Process Process Process Process Process Process Demultiplex based on TCP UDP port number Demultiplex based on IP Protocol field in IP header 7
    • UDP - User Datagram Protocol• UDP is supports unreliable transmissions of datagrams• UDP merely extends the host-to-to-host delivery service of IP datagram to an application-to-application service• The only thing that UDP adds to IP datagrams is multiplexing and demultiplexing (by adding port numbers) Applications Applications UDP UDP IP IP IP IP IP 8
    • New Transport Protocols• New Transport Protocols were added: – DCCP (2006): Datagram Congestion Control Protocol – SCTP (2000): Stream Control Transmission Protocol 9
    • DCCP and SCTP• Provide more service than UDP, but less than TCP SCTP DCCP “TCP for datagrams” “UDP with congestion control”• connection-oriented (full duplex) “TCP without reliable byte stream”• more delivery options than TCP• Message-oriented • connection-oriented – preserves message boundaries • message-oriented• Supports multiple flows (“streams” per • unreliable connection) • unordered• unreliable or reliable • congestion control• ordered or partially ordered• congestion control • Intended for applications that transfer• support for multi-homing large volumes of data• Used for signaling in telephone networks 10
    • SCTP Format • Many different chunk types – Data chunks – Control chunks • Each chunk has a type- dependent header 11
    • DCCP Format 12