tcp ip

40
TCP/IP

Upload: muh-kemal

Post on 15-Aug-2015

32 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: TCP IP

TCP/IP

Page 2: TCP IP

TCP/IP Transmission Control

Protocol/Internet Protocol (TCP/IP) Developed by the Defence

Advanced Research Projects Agency (DARPA).

Advanced Research Projects Agency (ARPA). 1969

Now the de facto standard for internetwork communications

Page 3: TCP IP

TCP/IP

PROCESS/APPLICATION

TRANSPORT

INTERNET

NETWORKACCESS

UPPER LAYER

LOWER LAYER

Page 4: TCP IP

TCP/IP AND OSI LAYER

PROCESS/APPLICATION

TRANSPORT

INTERNET

NETWORKACCESS

Presentation

Session

Transport

Network

Data Link

Application

Physical

Page 5: TCP IP

TCP/IP

PROCESS/APPLICATION

TRANSPORT

INTERNET

NETWORKACCESS

TELNET FTP LPD SNMP TFTP SMTP NFS XWINDOWS

TCP UDP

ICMP ARP RARPIP

ETHERNET FAST ETHERNET TOKEN RINGFDDI

Page 6: TCP IP

APPLICATION LAYER Telnet File transfer Protocol (FTP) Trivial File Transfer Protocol (TFTP) Network File Sharing (NFS) Line Printer Daemon (LPD) X Window Simple Network Management Protocol (SNMP) Domain Name Service (DNS) Dynamic Host Configuration Protocol (DHCP) BootP (Bootstrap Protocol)

Page 7: TCP IP

FTP APPLICATION

Page 8: TCP IP

Telnet application

Page 9: TCP IP

SNMP MANAGEMENT SERVICE

Page 10: TCP IP

TRANSPORT LAYER

Ensure that segment divered will be acknowledged to the sender

Provide for retransmission of any segment that are not acknowledged

Put segment back into their correct sequence at the destination

Provide congestion avoidance and control

Page 11: TCP IP

TRANSPORT LAYER

Transmission Control Protocol (TCP) - Connection-Oriented

User Datagram Protocol (UDP) - Connection-less

Page 12: TCP IP

Transmission Control Protocol (TCP)

TCP is a connection-oriented transport layer protocol that provides data transmission

connection is established between both ends before the transfer of information can begin

Page 13: TCP IP

Transmission Control Protocol (TCP)

Flow Control…

Page 14: TCP IP

PROCESS/APPLICATION

TRANSPORT

Page 15: TCP IP

Establishing a Connection with a Peer System

Page 16: TCP IP

Transmission Control Protocol (TCP) FLOW CONTROL

Page 17: TCP IP

Transmission Control Protocol (TCP) Three way hand shake

Page 18: TCP IP

Transmission Control Protocol (TCP)

Page 19: TCP IP

Transmission Control Protocol (TCP)

Windowing

Page 20: TCP IP

Transmission Control Protocol (TCP)

TCP Sequence and Acknowledgment

Page 21: TCP IP

Transmission Control Protocol (TCP)

TCP SEGMENT FORMAT

Page 22: TCP IP

Transmission Control Protocol (TCP)

Source port – Number of the port that sends data Destination port – Number of the port that receives data Sequence number – Number used to ensure the data

arrives in the correct order Acknowledgment number – Next expected TCP octet HLEN – Number of 32-bit words in the header Reserved – Set to zero Code bits – Control functions, such as setup and termination

of a session Window – Number of octets that the sender will accept Checksum – Calculated checksum of the header and data

fields Urgent pointer – Indicates the end of the urgent data Option – One option currently defined, maximum TCP

segment size Data – Upper-layer protocol data

Page 23: TCP IP

The following protocols use TCP: - FTP - HTTP - SMTP - Telnet - ICMP

Transmission Control Protocol (TCP)

Page 24: TCP IP

USER DATAGRAM PROTOCOL (UDP)

UDP is a simple protocol that exchanges datagrams without guaranteed delivery

UDP does not use windows or ACKs

UDP is designed for applications that do not need to put sequences of segments together

Page 25: TCP IP

USER DATAGRAM PROTOCOL (UDP)

UDP SEGMENT

Page 26: TCP IP

USER DATAGRAM PROTOCOL (UDP)

Source port – Number of the port that sends data

Destination port – Number of the port that receives data

Length – Number of bytes in header and data

Checksum – Calculated checksum of the header and data fields

Data – Upper-layer protocol data

Page 27: TCP IP

USER DATAGRAM PROTOCOL (UDP)

The following protocols use UDP:

- TFTP - SNMP - DHCP - DNS

Page 28: TCP IP

TRANSPORT LAYER

Page 29: TCP IP

INTERNET LAYER

IP (Internet Protocol) ARP/RARP (Address Resolution

Protocol)/(Reverse Address Resolution Protocol)

ICMP (Internet Control Message Protocol )

Page 30: TCP IP

ICMP (Internet Control Message Protocol )

Page 31: TCP IP

ICMP (Internet Control Message Protocol )

Page 32: TCP IP

IP (Internet Protocol)

IP Public

IP Private

Page 33: TCP IP

IP (Internet Protocol)

IP Public

Page 34: TCP IP

IP (Internet Protocol)

IP Private

Class A 10.0.0 – 10.255.255.255Class B 172.16.0.0 –

172.31.255.255Class C 192.168.0.0 –

192.168.255.255

Page 35: TCP IP

ARP/RARP

ARP (Address Resolution Protocol)

RARP (Address Resolution Protocol)

Page 36: TCP IP

NETWORK ACCESS LAYER

FDDI ETHERNET FAST ETHERNET FRAME RELAY

Page 37: TCP IP

192.168.30.0/24

255.255.255.0 1111111.11111111.1111111.11000000

1= network ID0= HOST

Page 38: TCP IP

NO IP RANGE

NETWORK ID BROADCAST

0 1-62 0 63

1 65-126 64 127

2 129-190 128 191

3 192-254 192 255

Network 1 Network 2

/24/26

255.255.255.192

Page 39: TCP IP

192.168.20.0/24KEBUTUHAN 5 NETWORK

1. 1. 1. 0. 0.0.0.0128.64.32.16.8.4.2.0

/27

255.255.255.224

Page 40: TCP IP

NO IP RANGE

NETWORK ID BROADCAST

0 1-30 0 31

1 33-62 32 63

2 65-94 64 95

3 97-126 96 127

4 129-158 128 159

5 161-190 160 191

6 193-222 192 223

7 225-254 224 255