24
Chapter 3 TCP and IP 1 Chapter 3 Chapter 3 TCP and IP

Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Embed Size (px)

DESCRIPTION

Chapter 3 TCP and IP 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

Citation preview

Page 1: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP1

Chapter 3Chapter 3TCP and IP

Page 2: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP2

Introduction Introduction Transmission Control Protocol (TCP)User Datagram Protocol (UDP)Internet Protocol (IP)IPv6

Page 3: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP3

TCPTCPRFC 793, RFC 1122Outgoing data is logically a stream of

octets from userStream broken into blocks of data, or

segmentsTCP accumulates octets from user until

segment is large enough, or data marked with PUSH flag

User can mark data as URGENT

Page 4: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP4

Similarly, incoming data is a stream of

octets presented to userData 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

Page 5: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP5

Checksum FieldChecksum FieldApplied to data segment and part of the

headerProtects against bit errors in user data and

addressing informationFilled in at sourceChecked at destination

Page 6: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP6

OptionsOptionsMaximum segment sizeWindow scale factorTimestamp

Page 7: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP7

Figure 2.1Figure 2.1

Page 8: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP8

UDPUDPRFC 768Connectionless, unreliableLess overheadSimply adds port addressing to IPChecksum is optional

Page 9: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP9

Appropriate Uses of UDPAppropriate Uses of UDPInward data collectionOutward data disseminationRequest-responseReal-time applications

Page 10: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP10

IPIPRFC 791Field 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)

Page 11: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP11

Figure 2.2Figure 2.2

Page 12: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP12

Figure 3.1Figure 3.1

Page 13: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP13

Fragmentation and ReassemblyFragmentation 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

Page 14: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP14

Figure 3.2Figure 3.2

Page 15: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP15

Type of Service TOS SubfieldType of Service TOS SubfieldSet by source systemRouters may ignore TOSRouter may respond to requested TOS

value through:– Route selection– Subnetwork service– Queuing discipline

Page 16: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP16

Table 3.1Table 3.1

Page 17: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP17

Type of Service Precedence Type of Service Precedence SubfieldSubfieldIndicates degree of urgency or priorityLike TOS subfield, may be ignored and

there are 3 approaches to respondingIntended to affect queuing discipline at

router– Queue service– Congestion control

Page 18: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP18

IPv4 OptionsIPv4 OptionsSecuritySource routingRoute recording timestamping

Page 19: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP19

IPv6IPv6Increase IP address from 32 bits to 128Accommodate higher network speeds, mix

of data streams (graphics, video, audio)Fixed size 40-octet header, followed by

optional extension headersLonger header but fewer fields (8 vs 12),

so routers should have less processing

Page 20: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP20

IPv6 HeaderIPv6 HeaderVersionTraffic classFlow labelPayload lengthNext headerHop limitSource addressDestination address

Page 21: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP21

IPv6 AddressesIPv6 Addresses128 bitsLonger addresses can have structure that

assists routing3 types:

– Unicast– Anycast– multicast

Page 22: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP22

Figure 3.3Figure 3.3

Page 23: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP23

Optional Extension HeadersOptional Extension HeadersHop-by-hop optionsRoutingFragmentAuthenticationEncapsulating security payloadDestination options

Page 24: Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control…

Chapter 3 TCP and IP24

Figure 3.4Figure 3.4