SlideShare ist ein Scribd-Unternehmen logo
1 von 42
Copyright 2011
1
Module 5
TCP/IP
(The Transport and
Internetworking Layer Protocol)
By Dr. Percy Dias
Copyright 2011
2
History and Future of TCP/IP
• The U.S. Department of
Defense (DoD) created
the TCP/IP reference
model because it
wanted a network that
could survive any
conditions.
• Some of the layers in
the TCP/IP model have
the same name as
layers in the OSI model.
Copyright 2011
3
Internet Layer
The purpose of the Internet layer is to send
packets from a network node and have them
arrive at the destination node independent of the
path taken.
Internet Protocol (IP)
Internet Control Message Protocol (ICMP)
Address Resolution (ARP)
Reverse Address Resolution Protocol (RARP)
Dynamic Host Configuration Protocol (DHCP)
Copyright 2011
4
Internet Layer Protocols
• IP performs the following operations
– Defining a packet and an addressing scheme
– Transferring data between the Internet Layer
and the Network Access Layer
– Routing packets to remote hosts
• IP is sometimes referred to as an
unreliable protocol
– Provides connectionless, best-effort delivery
routing of packets
Copyright 2011
Network Layer Protocols and Internet Protocol (IP)
Copyright 2011
Network Layer Protocols and Internet Protocol (IP)
Copyright 2011
Transport Layer Role and Services
• Supporting Reliable Communication
7
Copyright 2011
8
Transport Layer Perspective
Copyright 2011
9
The Transport Layer Functions
Five basic services:
• Segmenting upper-layer application data
• Establishing end-to-end operations
• Sending segments from one end host to
another end host
• Ensuring data reliability provided by
sequence numbers and acknowledgments
• Ensuring flow control provided by sliding
windows
Copyright 2011
10
Reliable Data Transport
• Ensure that segments delivered will be
acknowledged to the sender
• Provide for retransmission of any
segments that are not acknowledged
• Put segments back into their correct
sequence at the destination
• Provide congestion avoidance and control
Copyright 2011
11
Connectionless and Connection-
Oriented Protocols
• Connection-oriented protocol
– A protocol either that requires an exchange of
messages before data transfer begins or that
has a required pre-established correlation
between two endpoints
• Connectionless protocol
– A protocol that does not require an exchange
of messages and that does not require a pre-
established correlation between two
endpoints
Copyright 2011
Connectionless Communication
Copyright 2011
13
Three-way Handshake
• TCP is connection-oriented, so it requires
connection establishment before data transfer
begins
• For a connection to be established, two hosts
must synchronize on each other’s initial
sequence numbers (ISNs)
• Initial Sequence numbers are actually large
random numbers chosen by each host
• Connection establishment refers to the process
of initializing sequence and acknowledgement
fields and agreeing to the port numbers used.
Copyright 2011
14
Three-Way Handshake
Copyright 2011
15
TCP Connection Establishment
Copyright 2011
16
Windowing
• Flow-control mechanism requiring that source
device receive an acknowledgment from the
destination
• TCP uses expectational acknowledgments
(Forward Acknowledgment)
• Window size determines the amount of data can
transmit at one time before receiving an
acknowledgment
• Larger window sizes increase communication
efficiency.
• Window field implies the maximum number of
unacknowledged bytes allowed outstanding at any
instance in time.
Copyright 2011
17
Window Size
Larger window sizes increase
communication efficiency.
Copyright 2011
18
Window Size
• TCP window sizes are variable during the
lifetime of a connection.
• The window “Slides” up and down based on
network performance, so it is called sliding
window.
Copyright 2011
19
Flow Control
Copyright 2011
20
TCP Dynamic Sliding Windows
Copyright 2011
21
TCP Dynamic Sliding Windows
Copyright 2011
22
Acknowledgment
• Sender keeps a record of each data
packet that it sends and expects an
acknowledgment.
• Sender starts a timer when it sends a
segment, and it retransmits if the timer
expires before an acknowledgment
(transmission rate should be slowed)
• Each Acknowledgement contains a
window advertisement that indicates the
number of bytes receiver can accept
Copyright 2011
23
Segmentation, Reassembly, and
In-Order Delivery
• TCP on the receiving computer reassembles
data into its original form
• The data is put in the correct order
– If segments of a file are assembled out-of-
order, the file is useless
– TCP provides a guarantee of in-order delivery
Copyright 2011
24
Segmentation, Reassembly, and
In-Order Delivery
• Due to IP routing, a TCP receiver can receive
data out of order
• If multiple routes exist between a source and a
destination, routers can load-balance over
several routes
• Packets can arrive out of order
Copyright 2011
25
TCP Providing In-Order Delivery
Copyright 2011
26
Port Numbers
Copyright 2011
27
TCP and UDP Port Numbers
• Internet layer delivers data (packets) from one computer
to another, but it does not think about which application
sent the data or which application on the receiving
computer needs the data.
• For example, if you have five web-browser windows
open, the internet layer delivers the data to the
computer, but the transport layer works to ensure that
each browser gets the data destined for it and not one of
the others.
• TCP and UDP use port numbers to pass information to
the upper layers
• Port numbers use to keep track of different
conversations crossing the network at the same time
(Enables the receiving computer to know which
application to give the data to).
Copyright 2011
28
Using Port Numbers to Identify the Correct
Application Process
Copyright 2011
29
Identifying Application Processes Using
Port Numbers
• In previous slide, the application was
assigned a dynamic port number by the
host computer
– A host typically dynamically allocates port
numbers of value 1024 (210
) through 65,535
(216
- 1).
– When a host starts a new application process,
it allocates a dynamic port number that is not
already in use by another process.
– By each process having its own port number,
a PC can have multiple conversations with
other PCs (sometimes called multiplexing).
Copyright 2011
30
Identifying Application Processes Using
Port Numbers
• Connection to Servers: Well-Known Ports
– Most TCP/IP applications use a client/server model
for communications.
– Servers cannot use dynamic port numbers because
clients must know ahead of time what port numbers
servers use.
– Numbers below 1024 are considered well-known port
numbers.
– well-known port numbers are used by Servers, other
port numbers used by clients.
– Each client on the same host uses a different port
number, but a server uses a same port number for all
connections.
– Well-Know Port Numbers are controlled by Internet
Assigned Number Authority (IANA).
Copyright 2011
31
Client Connecting to Well-Known Port of a
Web Server (80)
Copyright 2011
32
Popular Well-Known Port Numbers
Copyright 2011
33
TCP Sequence and Acknowledgment
Copyright 2011
34
TCP
• Connection Establishment and
Termination
• Reliable (Error recovery – consume more
bandwidth and use more processing
cycles)
• Divides outgoing messages into segments
• Reassembles messages at the destination
station
Copyright 2011
35
TCP
• Flow control using sliding windows
• Multiplexing using port numbers
• TCP relies on IP for end-to-end delivery of
data
• At the receiving station, TCP reassembles
the segments into a complete message
using sequence numbers. TCP must
recover data that is damaged, lost or
delivered out of order.
Copyright 2011
UDP Protocol
36
Copyright 2011
UDP Protocol
37
Copyright 2011
38
UDP
• Connectionless
• Unreliable ( No error recovery – use less
bandwidth and fewer processing cycle.)
• Does not reassemble incoming messages
• Uses no acknowledgments
• Provides no flow control
• Less overhead than TCP
•
Copyright 2011
39
TCP Function Summary
Function Description
Multiplexing Function that allows receiving hosts to
decide the correct application for
which the data is destined, based on
the port number
Error recovery
(reliability)
Process of numbering and
acknowledging data with Sequence
and Acknowledgment header fields
Flow control using
windowing
Process that uses window sizes to
protect buffer space
Copyright 2011
40
Comparing TCP and UDP
Copyright 2011
41
Cisco Academy 3 References
Slide 2 CCNA1 9.1.1
Slide 3-4 CCNA1 9.1.4
Slide 9-10 CCNA1 11.1.1
Slide 11 CCNA1 10.1.4
Slide 13-15 CCNA1 11.1.4
Slide 16-18 CCNA1 11.1.5-11.1.6
Slide 19 CCNA1 11.1.2-11.1.3
Slide 20-22,33 CCNA1 11.1.5-11.1.6
Slide 26-27,30,32 CCNA1 11.1.9
Slide 34-35,38-39 CCNA1 11.1.7-11.1.8
Copyright 2011
42
Cisco Academy 4 Exploration
Reference
Networking Fundamentals
Slide 2-4 5.1.1-5.1.5
Slide 8-10 4.1.1
Slide 11 4.2.1
Slide 13-14 4.2.3-4.2.4
Slide 16-18 4.3.2
Slide 19 4.3.4
Slide 20-22 4.3.4
Slide 32 4.1.4
Slide 38 4.4.1-4.4.3
Slide 40 4.1.4

Weitere ähnliche Inhalte

Was ist angesagt?

User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
Mohd Arif
 
Circuit and packet_switching
Circuit and packet_switchingCircuit and packet_switching
Circuit and packet_switching
hoanv
 

Was ist angesagt? (20)

TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Overview of TCP IP
Overview of TCP IPOverview of TCP IP
Overview of TCP IP
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
 
How BGP Works
How BGP WorksHow BGP Works
How BGP Works
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
DHCP basics
DHCP basicsDHCP basics
DHCP basics
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Trace route
Trace routeTrace route
Trace route
 
Traceroute- A Networking Tool
Traceroute- A Networking ToolTraceroute- A Networking Tool
Traceroute- A Networking Tool
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Point to-point protocol (ppp)
Point to-point protocol (ppp)Point to-point protocol (ppp)
Point to-point protocol (ppp)
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11
 
Circuit and packet_switching
Circuit and packet_switchingCircuit and packet_switching
Circuit and packet_switching
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 

Ähnlich wie TCP/IP(networking)

Лекц 7
Лекц 7Лекц 7
Лекц 7
Muuluu
 
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
Piero Fraternali
 
Transmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksTransmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer Networks
Manimaran A
 
chapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhjchapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhj
AmitDeshai
 

Ähnlich wie TCP/IP(networking) (20)

TCP /IP
TCP /IPTCP /IP
TCP /IP
 
Transport protocols
Transport protocolsTransport protocols
Transport protocols
 
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptx
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
Tcp ip presentation
Tcp ip presentationTcp ip presentation
Tcp ip presentation
 
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesREMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Lecture set 7
Lecture set 7Lecture set 7
Lecture set 7
 
lecturer3.pptx
lecturer3.pptxlecturer3.pptx
lecturer3.pptx
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunications
 
Лекц 7
Лекц 7Лекц 7
Лекц 7
 
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
 
Transmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer NetworksTransmission Control Protocol_ Computer Networks
Transmission Control Protocol_ Computer Networks
 
Tcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocessTcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocess
 
Unit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxUnit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptx
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptx
 
chapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhjchapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhj
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
 

Mehr von welcometofacebook

Quantitative exercise-toasty oven
Quantitative exercise-toasty ovenQuantitative exercise-toasty oven
Quantitative exercise-toasty oven
welcometofacebook
 
EVC exercise-novel motor oil
EVC exercise-novel motor oilEVC exercise-novel motor oil
EVC exercise-novel motor oil
welcometofacebook
 
cltv calculation-calyx corolla
cltv calculation-calyx corolla cltv calculation-calyx corolla
cltv calculation-calyx corolla
welcometofacebook
 
competing in a global market(4210)
competing in a global market(4210)competing in a global market(4210)
competing in a global market(4210)
welcometofacebook
 
distribution strategies calyx and corolla(4210)
distribution strategies calyx and corolla(4210)distribution strategies calyx and corolla(4210)
distribution strategies calyx and corolla(4210)
welcometofacebook
 
distribution strategies(4210)
distribution strategies(4210)distribution strategies(4210)
distribution strategies(4210)
welcometofacebook
 
product and brand strategies(4210)
product and brand strategies(4210)product and brand strategies(4210)
product and brand strategies(4210)
welcometofacebook
 
overview of marketing strategy(4210)
overview of marketing strategy(4210)overview of marketing strategy(4210)
overview of marketing strategy(4210)
welcometofacebook
 
Class+3+ +quantitative+analysis+exercise+answer+key
Class+3+ +quantitative+analysis+exercise+answer+keyClass+3+ +quantitative+analysis+exercise+answer+key
Class+3+ +quantitative+analysis+exercise+answer+key
welcometofacebook
 

Mehr von welcometofacebook (20)

Quantitative exercise-toasty oven
Quantitative exercise-toasty ovenQuantitative exercise-toasty oven
Quantitative exercise-toasty oven
 
EVC exercise-novel motor oil
EVC exercise-novel motor oilEVC exercise-novel motor oil
EVC exercise-novel motor oil
 
jones blair calculations
jones blair calculationsjones blair calculations
jones blair calculations
 
EVC exercise-odi case
EVC exercise-odi caseEVC exercise-odi case
EVC exercise-odi case
 
cltv calculation-calyx corolla
cltv calculation-calyx corolla cltv calculation-calyx corolla
cltv calculation-calyx corolla
 
consumer behavior(4210)
consumer behavior(4210)consumer behavior(4210)
consumer behavior(4210)
 
competing in a global market(4210)
competing in a global market(4210)competing in a global market(4210)
competing in a global market(4210)
 
promotion strategies(4210)
promotion strategies(4210)promotion strategies(4210)
promotion strategies(4210)
 
pricing strategies(4210)
pricing strategies(4210)pricing strategies(4210)
pricing strategies(4210)
 
Pharmasim
PharmasimPharmasim
Pharmasim
 
distribution strategies calyx and corolla(4210)
distribution strategies calyx and corolla(4210)distribution strategies calyx and corolla(4210)
distribution strategies calyx and corolla(4210)
 
distribution strategies(4210)
distribution strategies(4210)distribution strategies(4210)
distribution strategies(4210)
 
the birth of swatch(4210)
the birth of swatch(4210)the birth of swatch(4210)
the birth of swatch(4210)
 
product and brand strategies(4210)
product and brand strategies(4210)product and brand strategies(4210)
product and brand strategies(4210)
 
stp case jones blair(4210)
stp case jones blair(4210)stp case jones blair(4210)
stp case jones blair(4210)
 
stp(4210)
stp(4210)stp(4210)
stp(4210)
 
situational analysis(4210)
situational analysis(4210)situational analysis(4210)
situational analysis(4210)
 
quantitative analysis(4210)
quantitative analysis(4210)quantitative analysis(4210)
quantitative analysis(4210)
 
overview of marketing strategy(4210)
overview of marketing strategy(4210)overview of marketing strategy(4210)
overview of marketing strategy(4210)
 
Class+3+ +quantitative+analysis+exercise+answer+key
Class+3+ +quantitative+analysis+exercise+answer+keyClass+3+ +quantitative+analysis+exercise+answer+key
Class+3+ +quantitative+analysis+exercise+answer+key
 

Kürzlich hochgeladen

➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
amitlee9823
 
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Naicy mandal
 
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
amitlee9823
 
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
ahmedjiabur940
 
CHEAP Call Girls in Mayapuri (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Mayapuri  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Mayapuri  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Mayapuri (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
drmarathore
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
uodye
 
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 

Kürzlich hochgeladen (20)

➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
 
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
 
SM-N975F esquematico completo - reparación.pdf
SM-N975F esquematico completo - reparación.pdfSM-N975F esquematico completo - reparación.pdf
SM-N975F esquematico completo - reparación.pdf
 
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men  🔝Deoghar🔝   Escorts...
➥🔝 7737669865 🔝▻ Deoghar Call-girls in Women Seeking Men 🔝Deoghar🔝 Escorts...
 
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
 
Call Girls Kothrud Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Kothrud Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Kothrud Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Kothrud Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
 
CHEAP Call Girls in Mayapuri (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Mayapuri  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Mayapuri  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Mayapuri (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
 
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
 
(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...
(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...
(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
 
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
 
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 

TCP/IP(networking)

  • 1. Copyright 2011 1 Module 5 TCP/IP (The Transport and Internetworking Layer Protocol) By Dr. Percy Dias
  • 2. Copyright 2011 2 History and Future of TCP/IP • The U.S. Department of Defense (DoD) created the TCP/IP reference model because it wanted a network that could survive any conditions. • Some of the layers in the TCP/IP model have the same name as layers in the OSI model.
  • 3. Copyright 2011 3 Internet Layer The purpose of the Internet layer is to send packets from a network node and have them arrive at the destination node independent of the path taken. Internet Protocol (IP) Internet Control Message Protocol (ICMP) Address Resolution (ARP) Reverse Address Resolution Protocol (RARP) Dynamic Host Configuration Protocol (DHCP)
  • 4. Copyright 2011 4 Internet Layer Protocols • IP performs the following operations – Defining a packet and an addressing scheme – Transferring data between the Internet Layer and the Network Access Layer – Routing packets to remote hosts • IP is sometimes referred to as an unreliable protocol – Provides connectionless, best-effort delivery routing of packets
  • 5. Copyright 2011 Network Layer Protocols and Internet Protocol (IP)
  • 6. Copyright 2011 Network Layer Protocols and Internet Protocol (IP)
  • 7. Copyright 2011 Transport Layer Role and Services • Supporting Reliable Communication 7
  • 9. Copyright 2011 9 The Transport Layer Functions Five basic services: • Segmenting upper-layer application data • Establishing end-to-end operations • Sending segments from one end host to another end host • Ensuring data reliability provided by sequence numbers and acknowledgments • Ensuring flow control provided by sliding windows
  • 10. Copyright 2011 10 Reliable Data Transport • Ensure that segments delivered will be acknowledged to the sender • Provide for retransmission of any segments that are not acknowledged • Put segments back into their correct sequence at the destination • Provide congestion avoidance and control
  • 11. Copyright 2011 11 Connectionless and Connection- Oriented Protocols • Connection-oriented protocol – A protocol either that requires an exchange of messages before data transfer begins or that has a required pre-established correlation between two endpoints • Connectionless protocol – A protocol that does not require an exchange of messages and that does not require a pre- established correlation between two endpoints
  • 13. Copyright 2011 13 Three-way Handshake • TCP is connection-oriented, so it requires connection establishment before data transfer begins • For a connection to be established, two hosts must synchronize on each other’s initial sequence numbers (ISNs) • Initial Sequence numbers are actually large random numbers chosen by each host • Connection establishment refers to the process of initializing sequence and acknowledgement fields and agreeing to the port numbers used.
  • 16. Copyright 2011 16 Windowing • Flow-control mechanism requiring that source device receive an acknowledgment from the destination • TCP uses expectational acknowledgments (Forward Acknowledgment) • Window size determines the amount of data can transmit at one time before receiving an acknowledgment • Larger window sizes increase communication efficiency. • Window field implies the maximum number of unacknowledged bytes allowed outstanding at any instance in time.
  • 17. Copyright 2011 17 Window Size Larger window sizes increase communication efficiency.
  • 18. Copyright 2011 18 Window Size • TCP window sizes are variable during the lifetime of a connection. • The window “Slides” up and down based on network performance, so it is called sliding window.
  • 20. Copyright 2011 20 TCP Dynamic Sliding Windows
  • 21. Copyright 2011 21 TCP Dynamic Sliding Windows
  • 22. Copyright 2011 22 Acknowledgment • Sender keeps a record of each data packet that it sends and expects an acknowledgment. • Sender starts a timer when it sends a segment, and it retransmits if the timer expires before an acknowledgment (transmission rate should be slowed) • Each Acknowledgement contains a window advertisement that indicates the number of bytes receiver can accept
  • 23. Copyright 2011 23 Segmentation, Reassembly, and In-Order Delivery • TCP on the receiving computer reassembles data into its original form • The data is put in the correct order – If segments of a file are assembled out-of- order, the file is useless – TCP provides a guarantee of in-order delivery
  • 24. Copyright 2011 24 Segmentation, Reassembly, and In-Order Delivery • Due to IP routing, a TCP receiver can receive data out of order • If multiple routes exist between a source and a destination, routers can load-balance over several routes • Packets can arrive out of order
  • 25. Copyright 2011 25 TCP Providing In-Order Delivery
  • 27. Copyright 2011 27 TCP and UDP Port Numbers • Internet layer delivers data (packets) from one computer to another, but it does not think about which application sent the data or which application on the receiving computer needs the data. • For example, if you have five web-browser windows open, the internet layer delivers the data to the computer, but the transport layer works to ensure that each browser gets the data destined for it and not one of the others. • TCP and UDP use port numbers to pass information to the upper layers • Port numbers use to keep track of different conversations crossing the network at the same time (Enables the receiving computer to know which application to give the data to).
  • 28. Copyright 2011 28 Using Port Numbers to Identify the Correct Application Process
  • 29. Copyright 2011 29 Identifying Application Processes Using Port Numbers • In previous slide, the application was assigned a dynamic port number by the host computer – A host typically dynamically allocates port numbers of value 1024 (210 ) through 65,535 (216 - 1). – When a host starts a new application process, it allocates a dynamic port number that is not already in use by another process. – By each process having its own port number, a PC can have multiple conversations with other PCs (sometimes called multiplexing).
  • 30. Copyright 2011 30 Identifying Application Processes Using Port Numbers • Connection to Servers: Well-Known Ports – Most TCP/IP applications use a client/server model for communications. – Servers cannot use dynamic port numbers because clients must know ahead of time what port numbers servers use. – Numbers below 1024 are considered well-known port numbers. – well-known port numbers are used by Servers, other port numbers used by clients. – Each client on the same host uses a different port number, but a server uses a same port number for all connections. – Well-Know Port Numbers are controlled by Internet Assigned Number Authority (IANA).
  • 31. Copyright 2011 31 Client Connecting to Well-Known Port of a Web Server (80)
  • 33. Copyright 2011 33 TCP Sequence and Acknowledgment
  • 34. Copyright 2011 34 TCP • Connection Establishment and Termination • Reliable (Error recovery – consume more bandwidth and use more processing cycles) • Divides outgoing messages into segments • Reassembles messages at the destination station
  • 35. Copyright 2011 35 TCP • Flow control using sliding windows • Multiplexing using port numbers • TCP relies on IP for end-to-end delivery of data • At the receiving station, TCP reassembles the segments into a complete message using sequence numbers. TCP must recover data that is damaged, lost or delivered out of order.
  • 38. Copyright 2011 38 UDP • Connectionless • Unreliable ( No error recovery – use less bandwidth and fewer processing cycle.) • Does not reassemble incoming messages • Uses no acknowledgments • Provides no flow control • Less overhead than TCP •
  • 39. Copyright 2011 39 TCP Function Summary Function Description Multiplexing Function that allows receiving hosts to decide the correct application for which the data is destined, based on the port number Error recovery (reliability) Process of numbering and acknowledging data with Sequence and Acknowledgment header fields Flow control using windowing Process that uses window sizes to protect buffer space
  • 41. Copyright 2011 41 Cisco Academy 3 References Slide 2 CCNA1 9.1.1 Slide 3-4 CCNA1 9.1.4 Slide 9-10 CCNA1 11.1.1 Slide 11 CCNA1 10.1.4 Slide 13-15 CCNA1 11.1.4 Slide 16-18 CCNA1 11.1.5-11.1.6 Slide 19 CCNA1 11.1.2-11.1.3 Slide 20-22,33 CCNA1 11.1.5-11.1.6 Slide 26-27,30,32 CCNA1 11.1.9 Slide 34-35,38-39 CCNA1 11.1.7-11.1.8
  • 42. Copyright 2011 42 Cisco Academy 4 Exploration Reference Networking Fundamentals Slide 2-4 5.1.1-5.1.5 Slide 8-10 4.1.1 Slide 11 4.2.1 Slide 13-14 4.2.3-4.2.4 Slide 16-18 4.3.2 Slide 19 4.3.4 Slide 20-22 4.3.4 Slide 32 4.1.4 Slide 38 4.4.1-4.4.3 Slide 40 4.1.4