SlideShare a Scribd company logo
Chapter 3
TCP and IP
Chapter 3 TCP and IP 1
Introduction
• Transmission Control Protocol (TCP)
• User Datagram Protocol (UDP)
• Internet Protocol (IP)
• IPv6
Chapter 3 TCP and IP 2
TCP
• RFC 793, RFC 1122
• Outgoing data is logically a stream of octets
from user
• Stream broken into blocks of data, or
segments
• TCP accumulates octets from user until
segment is large enough, or data marked with
PUSH flag
• User can mark data as URGENT
Chapter 3 TCP and IP 3
• Similarly, incoming data is a stream of octets
presented to user
• Data marked with PUSH flag triggers delivery
of data to user, otherwise TCP decides when
to deliver data
• Data marked with URGENT flag causes user to
be signaled
Chapter 3 TCP and IP 4
Checksum Field
• Applied to data segment and part of the
header
• Protects against bit errors in user data and
addressing information
• Filled in at source
• Checked at destination
Chapter 3 TCP and IP 5
Options
• Maximum segment size
• Window scale factor
• Timestamp
Chapter 3 TCP and IP 6
Figure 2.1
Chapter 3 TCP and IP 7
UDP
• RFC 768
• Connectionless, unreliable
• Less overhead
• Simply adds port addressing to IP
• Checksum is optional
Chapter 3 TCP and IP 8
Appropriate Uses of UDP
• Inward data collection
• Outward data dissemination
• Request-response
• Real-time applications
Chapter 3 TCP and IP 9
IP
• RFC 791
• Field highlights:
– Type of service, defined in RFC 1349, see Figure
3.1
– More bit
– Don’t fragment bit
– Time to live (similar to a hop count)
Chapter 3 TCP and IP 10
Figure 2.2
Chapter 3 TCP and IP 11
Figure 3.1
Chapter 3 TCP and IP 12
Fragmentation and Reassembly
• Networks may have different maximum
packet size
• Router may need to fragment datagrams
before sending to next network
• Fragments may need further fragmenting in
later networks
• Reassembly done only at final destination
since fragments may take different routes
Chapter 3 TCP and IP 13
Figure 3.2
Chapter 3 TCP and IP 14
Type of Service TOS Subfield
• Set by source system
• Routers may ignore TOS
• Router may respond to requested TOS value
through:
– Route selection
– Subnetwork service
– Queuing discipline
Chapter 3 TCP and IP 15
Table 3.1
Chapter 3 TCP and IP 16
Type of Service Precedence Subfield
• Indicates degree of urgency or priority
• Like TOS subfield, may be ignored and there
are 3 approaches to responding
• Intended to affect queuing discipline at router
– Queue service
– Congestion control
Chapter 3 TCP and IP 17
IPv4 Options
• Security
• Source routing
• Route recording
• timestamping
Chapter 3 TCP and IP 18
IPv6
• Increase IP address from 32 bits to 128
• Accommodate higher network speeds, mix of
data streams (graphics, video, audio)
• Fixed size 40-octet header, followed by
optional extension headers
• Longer header but fewer fields (8 vs 12), so
routers should have less processing
Chapter 3 TCP and IP 19
IPv6 Header
• Version
• Traffic class
• Flow label
• Payload length
• Next header
• Hop limit
• Source address
• Destination address
Chapter 3 TCP and IP 20
IPv6 Addresses
• 128 bits
• Longer addresses can have structure that
assists routing
• 3 types:
– Unicast
– Anycast
– multicast
Chapter 3 TCP and IP 21
Figure 3.3
Chapter 3 TCP and IP 22
Optional Extension Headers
• Hop-by-hop options
• Routing
• Fragment
• Authentication
• Encapsulating security payload
• Destination options
Chapter 3 TCP and IP 23
Figure 3.4
Chapter 3 TCP and IP 24

More Related Content

PPT
protocol and the TCP/IP suite Chapter 02
PDF
Tcp ip-ppt
PDF
Chapter 3 : User Datagram Protocol (UDP)
PPT
PDF
UDP - User Datagram Protocol
PPTX
TCP/IP Introduction
PPT
protocol and the TCP/IP suite Chapter 02
Tcp ip-ppt
Chapter 3 : User Datagram Protocol (UDP)
UDP - User Datagram Protocol
TCP/IP Introduction

What's hot (20)

PPTX
TCP/IP Protocols
PPT
TCP/IP Protocols With All Layer Description
PPTX
TCP-IP PROTOCOL
PPTX
TCP- Transmission Control Protocol
PDF
TCP/IP Introduction
PPT
TCP / IP Services and Standards
PPTX
TCP/IP and UDP protocols
PPT
02 protocols and tcp-ip
PPT
TCP/IP Basics
PDF
TCP - IP Presentation
PPT
Tcpip services and applications
PPT
TCP Model
PPTX
Understanding TCP/IP
PPTX
TCP/IP model
PDF
TCP - Transmission Control Protocol
PPTX
Remote Login and File Transfer Protocols
PDF
TCP Theory
PPT
User Datagram protocol For Msc CS
PPTX
Transmission control protocol
TCP/IP Protocols
TCP/IP Protocols With All Layer Description
TCP-IP PROTOCOL
TCP- Transmission Control Protocol
TCP/IP Introduction
TCP / IP Services and Standards
TCP/IP and UDP protocols
02 protocols and tcp-ip
TCP/IP Basics
TCP - IP Presentation
Tcpip services and applications
TCP Model
Understanding TCP/IP
TCP/IP model
TCP - Transmission Control Protocol
Remote Login and File Transfer Protocols
TCP Theory
User Datagram protocol For Msc CS
Transmission control protocol
Ad

Similar to TCP and IP Chapter 03 (20)

PPT
Chapter03.ppt Advance network concept chapter3
PPTX
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
PPT
TCPIP in brief and working operation.ppt
PPTX
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
PPT
Networking and data communication IP.ppt
PPTX
Networking essentials lect3
PPT
Learn TransportLayer of the OSI model to day with me.
PPTX
Computer networks transport layer
PPT
Transport protocols
PPTX
User Datagram Protocol
PPT
I pv4 format
PPTX
Ip and icmp
PPTX
10 coms 525 tcpip - internet protocol - ip
PDF
The Internet Protocol version 4 (IPv4)
PPT
Tcp Udp Icmp And The Transport Layer
PPT
Transport Layer
PPT
tcp ip protocols.ppt
PPTX
19 Network Layer Protocols
Chapter03.ppt Advance network concept chapter3
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
TCPIP in brief and working operation.ppt
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
Networking and data communication IP.ppt
Networking essentials lect3
Learn TransportLayer of the OSI model to day with me.
Computer networks transport layer
Transport protocols
User Datagram Protocol
I pv4 format
Ip and icmp
10 coms 525 tcpip - internet protocol - ip
The Internet Protocol version 4 (IPv4)
Tcp Udp Icmp And The Transport Layer
Transport Layer
tcp ip protocols.ppt
19 Network Layer Protocols
Ad

More from daniel ayalew (12)

PPT
Traffic and Congestion Control in ATM Networks Chapter 13
PPT
Protocol for QoS Support Chapter 18
PPT
Integrated and Differentiated services Chapter 17
PPT
Exterior Routing Protocols And Multi casting Chapter 16
PPT
Interior Routing Protocols Chapter 15
PPT
Overview of Graph Theory and Least-Cost Paths Chapter 14
PPT
TCP Traffic Control Chapter12
PPT
Link-Level Flow and Error Control Chapter11
PPT
Congestion Control in Data Networks And Internets Chapter 10
PPT
high-Speed LANs Chapter06
PPT
Asynchronous Transfer mode Chapter 05
PPT
Frame Relay Chapter 04
Traffic and Congestion Control in ATM Networks Chapter 13
Protocol for QoS Support Chapter 18
Integrated and Differentiated services Chapter 17
Exterior Routing Protocols And Multi casting Chapter 16
Interior Routing Protocols Chapter 15
Overview of Graph Theory and Least-Cost Paths Chapter 14
TCP Traffic Control Chapter12
Link-Level Flow and Error Control Chapter11
Congestion Control in Data Networks And Internets Chapter 10
high-Speed LANs Chapter06
Asynchronous Transfer mode Chapter 05
Frame Relay Chapter 04

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Geodesy 1.pptx...............................................
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Welding lecture in detail for understanding
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Well-logging-methods_new................
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
additive manufacturing of ss316l using mig welding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Digital Logic Computer Design lecture notes
Operating System & Kernel Study Guide-1 - converted.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
Geodesy 1.pptx...............................................
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
573137875-Attendance-Management-System-original
Welding lecture in detail for understanding
UNIT 4 Total Quality Management .pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Lesson 3_Tessellation.pptx finite Mathematics
Well-logging-methods_new................
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CYBER-CRIMES AND SECURITY A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
additive manufacturing of ss316l using mig welding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

TCP and IP Chapter 03

  • 1. Chapter 3 TCP and IP Chapter 3 TCP and IP 1
  • 2. Introduction • Transmission Control Protocol (TCP) • User Datagram Protocol (UDP) • Internet Protocol (IP) • IPv6 Chapter 3 TCP and IP 2
  • 3. TCP • RFC 793, RFC 1122 • Outgoing data is logically a stream of octets from user • Stream broken into blocks of data, or segments • TCP accumulates octets from user until segment is large enough, or data marked with PUSH flag • User can mark data as URGENT Chapter 3 TCP and IP 3
  • 4. • Similarly, incoming data is a stream of octets presented to user • Data marked with PUSH flag triggers delivery of data to user, otherwise TCP decides when to deliver data • Data marked with URGENT flag causes user to be signaled Chapter 3 TCP and IP 4
  • 5. Checksum Field • Applied to data segment and part of the header • Protects against bit errors in user data and addressing information • Filled in at source • Checked at destination Chapter 3 TCP and IP 5
  • 6. Options • Maximum segment size • Window scale factor • Timestamp Chapter 3 TCP and IP 6
  • 7. Figure 2.1 Chapter 3 TCP and IP 7
  • 8. UDP • RFC 768 • Connectionless, unreliable • Less overhead • Simply adds port addressing to IP • Checksum is optional Chapter 3 TCP and IP 8
  • 9. Appropriate Uses of UDP • Inward data collection • Outward data dissemination • Request-response • Real-time applications Chapter 3 TCP and IP 9
  • 10. IP • RFC 791 • Field highlights: – Type of service, defined in RFC 1349, see Figure 3.1 – More bit – Don’t fragment bit – Time to live (similar to a hop count) Chapter 3 TCP and IP 10
  • 11. Figure 2.2 Chapter 3 TCP and IP 11
  • 12. Figure 3.1 Chapter 3 TCP and IP 12
  • 13. Fragmentation and Reassembly • Networks may have different maximum packet size • Router may need to fragment datagrams before sending to next network • Fragments may need further fragmenting in later networks • Reassembly done only at final destination since fragments may take different routes Chapter 3 TCP and IP 13
  • 14. Figure 3.2 Chapter 3 TCP and IP 14
  • 15. Type of Service TOS Subfield • Set by source system • Routers may ignore TOS • Router may respond to requested TOS value through: – Route selection – Subnetwork service – Queuing discipline Chapter 3 TCP and IP 15
  • 16. Table 3.1 Chapter 3 TCP and IP 16
  • 17. Type of Service Precedence Subfield • Indicates degree of urgency or priority • Like TOS subfield, may be ignored and there are 3 approaches to responding • Intended to affect queuing discipline at router – Queue service – Congestion control Chapter 3 TCP and IP 17
  • 18. IPv4 Options • Security • Source routing • Route recording • timestamping Chapter 3 TCP and IP 18
  • 19. IPv6 • Increase IP address from 32 bits to 128 • Accommodate higher network speeds, mix of data streams (graphics, video, audio) • Fixed size 40-octet header, followed by optional extension headers • Longer header but fewer fields (8 vs 12), so routers should have less processing Chapter 3 TCP and IP 19
  • 20. IPv6 Header • Version • Traffic class • Flow label • Payload length • Next header • Hop limit • Source address • Destination address Chapter 3 TCP and IP 20
  • 21. IPv6 Addresses • 128 bits • Longer addresses can have structure that assists routing • 3 types: – Unicast – Anycast – multicast Chapter 3 TCP and IP 21
  • 22. Figure 3.3 Chapter 3 TCP and IP 22
  • 23. Optional Extension Headers • Hop-by-hop options • Routing • Fragment • Authentication • Encapsulating security payload • Destination options Chapter 3 TCP and IP 23
  • 24. Figure 3.4 Chapter 3 TCP and IP 24