TCP/IP Concepts. Internet 概念 m 使用 TCP/IP 通訊協定 m 全球性的網路 Internet TCP/IP UNIX 主機.

Slides:



Advertisements
Similar presentations
Introduction to TCP/IP
Advertisements

OSI Model Discuss the major influences of user requirements on network evolution Identify at least 3 reasons why the industry uses a layered network.
1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
Interconnecting Networks with TCP/IP
Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
Chapter 5: TCP/IP and OSI Business Data Communications, 5e.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
TRANSPORT LAYER  Session multiplexing  Segmentation  Flow control (TCP)  Connection-oriented (TCP)  Reliability (TCP)
OSI Model Overview Application (Upper) Layers Session Presentation Application.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 2: Internet Protocols.
Chapter 4 : TCP/IP and OSI Business Data Communications, 4e.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Introduction To Networking
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Bob Baker Communications Bob Baker September 1999.
1 Version 3.0 Module 9 TCP/IP Protocol and IP Addressing.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
Chapter 3 Review of Protocols And Packet Formats
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Gursharan Singh Tatla Transport Layer 16-May
CS 356 Systems Security Spring Dr. Indrajit Ray
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Chapter 1 Overview Review Overview of demonstration network
Chapter 9.
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
Semester 2v2 Chapter 9:  TCP/IP.
Huda AL_Omairl - Network 71 Protocols and Network Software.
TCP/IP Overview. 2 Upon completion of this chapter you will be able to perform the following tasks: Describe how the TCP/IP implementation relates to.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 4 TCP/IP Overview Connecting People To Information.
TCP/IP Basic Theory V1.2. Course Outline OSI model and layer function TCP/IP protocol suite Transfer Control Protocol Internet Protocol Address Resolution.
1 OSI Reference Model. 2 Agenda The Layered Model Layers 1 & 2: Physical & Data Link Layers Layer 3: Network Layer Layers 4–7: Transport, Session, Presentation,
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
Addressing Through the Layers  Data Link Layer Address  Network Layer Address.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
Instructor & Todd Lammle
Cisco Networking Academy S2 C9 TCP/IP. ensure communication across any set of interconnected networks Stack components such as protocols to support file.
Physical and Data Link Layers Chapter 2 Connecting People To Information.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
Cisco Certified Network Associate Exam Objectives  To be able to install and configure Cisco routers.  To have a working knowledge of TCP/IP.
Chapter 2 - Page 1 Infogem Institute of Technology CCNA Course TCP/IP Protocol Suite TCP/IP PROTOCOL SUITE Chapter 3 Sybex, Chapter 9 Exam Cram.
Chapter 4 : TCP/IP and OSI Business Data Communications, 4e.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
SWICHING & ROUTING.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
Network Basics CS490 - Security in Computing Copyright © 2005 by Scott Orr and the Trustees of Indiana University.
The OSI Model An overview of the media layer (Physical, Data Link, Network) By Luke Shiffner.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
1 OSI Reference Model Benefits Standardizes interfaces Facilitates modular engineering Ensures interoperable technology Accelerates evolution Simplifies.
Communication Networks NETW 501 Tutorial 2
Data Communications Data Link Layer.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI data link layer CCNA Exploration Semester 1 Chapter 7.
Introduction to TCP/IP networking
What the OSI Protocol Layers Do
© 2003, Cisco Systems, Inc. All rights reserved.
TCP/IP Transmission Control Protocol / Internet Protocol
TCP/IP Protocol Suite and IP Addressing
OSI Reference Model Unit II
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Transport Layer 9/22/2019.
Presentation transcript:

TCP/IP Concepts

Internet 概念 m 使用 TCP/IP 通訊協定 m 全球性的網路 Internet TCP/IP UNIX 主機

什麼是 TCP/IP ? Transmission Control Protocol/Internet Protocol TCP/IP Model Application Layer Host-to-Host Transport Layer Internet Layer Network Access Layer

Application Layer Data Header Data Transport Layer DataHeader Internet Layer DataHeader Send Receive Network Access Layer 什麼是 TCP/IP ? (Cont.) 資料打包

Application Layer Transport Layer Internet Layer Network Access Layer message UDP stream segment datagram frame TCP packet datagram frame 資料結構 什麼是 TCP/IP ? (Cont.)

TCP/IP 協定 v.s.OSI 協定 OSI Reference Model TCP/IP Conceptual Layers Application Presentation Session Transport Network Data Link Physical Application Transport Internet Network Interface Ethernet, 802.3, 802.5,FDDI, etc.

TCP/IP Protocol Stack Application UDPTCP Network Interface Internet ARP,RARP ICMP

TCP/IP Protocol Stack Application Transport Internet Network Interface Host A Host B Identical message Identical paclet Identical datagram Identical frame Physical Net 1Physical Net 2 Gateway G

TCP/IP Protocol Stack Application Transport Internet Network Interface Conceptual Layer Hardware Objects Passed Between Layers Messages or Streams Transport Protocol Packets IP Datagrams Network-Specific Frames

Application Layer 簡介 Application Transport Internet Network Interface File Transfer -TFTP* -FTP -NFS -SMTP Remote Login -Telnet* -rlogin Network Management -SNMP* * Used by the router

Transport Layer 簡介 Application Transport Internet Network Interface Transmission Control Protocol (TCP) User Datagram Protocol(UDP )

Internet Layer 簡介 Application Transport Internet Network Interface Internet Protocol ( IP) Address Resolution Protocol ( ARP ) Reverse Address Resolution Protocol ( RARP ) Internet Control Message Protocol ( ICMP )

Network Interface Layer 簡介 Application Transport Internet Network Interface Ethernet/IEEE802.3 Token Ring/IEEE802.5 FDDI

網路存取層介紹

Physical and Data Link Standards Separate physical and data link layers for LAN and WAN Data Link ( frames ) physical ( bits, signals, clocking) LLC EthernetEthernet FDDIFDDI Dial on Demand SDLC HDLC X.25 Link Frame Relay ISDN PPP V.24 EIA/TIA-232 G.703 V.35 EIA/TIA-449 EIA-530 HSSI

LAN Data Link Sublayers Network LLC Data Link Physical MAC Logical Link Control Media Access Control MAC Frame LLC Packet or Datagram LLC refers upward to higher-layer software functions MAC refers downward to lower-layer hardware functions

Media Access Control (MAC) Vendor Code Serial Number 24 bits ROM RAM c MAC address is burned into ROM on a network interface card

區域網路的技術 Ethernet / IEEE802.3 Token Ring / IEEE802.5 FDDI

Ethernet / IEEE 網路拓撲 : Bus topology 存取方法 : CSMA / CD

Physical Layer : Ethernet/802.3 Hub PC Sun Mac Host 10BaseT - Twisted Pair 10Base2 - Thin Ethernet 10Base5 - Thick Ethernet

Ethernet /802.3 Operation Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical A A B B C C D D D D B and C

Ethernet / Broadcast Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical ABCD

Common WAN Technologies SDLC HDLC LAPB PPP X.25 Frame Relay ISDN

Physical Layer : WAN DSU/CSU RS-232 V.35 X.21 HSSI others (Modem) DTE Data Terminal Equipment End of the users device on the WAN link DCE Data Circuit-terminating Equipment End of the WAN providers side of the communication facility

Data Link Layer : WAN Protocols SDLC-Synchronous Data Link Control For IBM SNA networks;primary and secondary roles on link HDLC-High-level Data Link Control Default for Cisco Router-common WAN data link LAPB-Link Access Protocol,Balanced DTE-to-DCE data link for x.25;either side initiates a link Frame Relay-Simplified version of HDLC framing for higher speed,unacknowledged data communications PPP-Point-to-Point Protocol Part of TCP/IP stack for WAN links;can support ISDN (Modem) DSU/CSU

LAN-to-LAN Routing E1 Routing Table E0 Host Net 2,Host 5 Destination Network Outgoing Interface E0 T0 E Net 2,Host 5 Token Ring Host 5 to LANFrom LAN Network 1 T0 Network3 Network2

LAN-to-WAN Routing Token Ring Frame Relay From LAN to WAN to LAN Data Data Data Token Ring Data Data Frame Relay Data Data Ethernet Data A B

Layer Decapsulation telnettelnet FtpFtp SmtpSmtp tftptftp TCPUDP 617 IP Packets Frames Bits A TCP/IP Example UPPER LAYERS TRANSPORT NETWORK DATA LINK PHYSICAL Port Number Protocol Number TYPE,SAP,or Control Info MAC or WAN addressing

IP 協定介紹

TCP/IP Address Overview Unique addressing allows communication between end stations Path choice is based upon location Location is represented by an address Unix Host Company A

IP Addressing 32 Bits Network Host Bits 8Bits 8Bits 8Bits

IP Addresses  Class A:  Class B:  Class C: N H H H N N N H N N H H N = Network number assigned by NIC H = Host number assigned by network administrator

IP Addresses (cont.) # Bits network # host # 1 0 network # host # network # host # Class A: Class B: Class C:

Recognizing Classes in IP Addresses (First Octet Rule) High Order Octet in Address Bits Decimal Class A B C

Broadcast Addresses (Directed broadcast) (Local network broadcast)

IP Datagram

HLEN: IP packet header 長度 Total length: IP packet 總長度 ( 包含表頭和資料區 ) Identification:IP packet 編號 Time to Live:IP packet 在網路上存留時間 ( 以秒為單位 ) Protocol: 上層的協定 17 ==> UDP 6 ==> TCP 1 ==> ICMP Padding: 補足未滿 32 位元的 IP header IP Datagram (Cont.)

Protocol Field TCP UDP 6 17 Transport Layer Internet Layer IP Protocol Numbers m Determines destination upper-layer protocol

ARP/RARP 協定介紹

m Map IP Ethernet m Local ARP I need the Ethernet address of I heard that broadcast, that’s me. Here is my Ethernet Address. IP : = ??? IP: = Ethernet: Address Resolution Protocol (ARP)

Host Y Broadcast ARP Request Host Z MAC ? Host Z Host z Broadcast ARP Request Host Z MAC ? Host Z Host Y MAC ARP Request Host Z MAC ? Host Y MAC ARP Request Router MAC ? Router A Example 1 : TCP/ IP destination local Example 2 : TCP/ IP destination local not local ARP finds the MAC address to use for a data link connection

Reverse ARP (RARP) m Map Ethernet IP m ARP and RARP are implemented directly on top of the data link layer Ethernet = IP = ??? Ethernet= IP = What is my IP address? I heard that broadcast. IP address is

TCP 協定介紹

Transport: 連線建立 RECEIVERSENDER Connection Established Synchronize Negotiate Connection Synchronize Acknowledge Data Transfer (Send Segments)

Send Segments with Flow Control RECEIVER SENDER Transmit Not Ready Ready Resume Transmission Stop Go Buffer full Process Segments Buffer OK

TCP Three-Way Handshake/Open Connection Host B Host A Receive SYN(seq = x) Send SYN (seq=y, ack=x+1) Receove ACK (ack=y+1) Send SYN (seq = x ) Receive SYN( seq=y, ack=x+1 ) Send ACK (ack = y+1)

TCP Segment 格式 #Bits 16 Source Port Dest Sequence Acknowledgment HLEN Reserved Code Port # # Bits Window Check- Urgent Option Data….. sum Pointer

TCP Port Numbers ……... SP DP Telnet Z Source Dest …. Port Port Host A Host Z Dest. port=23 Send packet to my Telnet application

TCP Sequence and Acknowledgment Numbers Source Dest. Sequence Acknowledgment Port Port # #... Source Dest. Seq. Ack Source Dest. Seq. Ack Source Dest. Seq. Ack I just sent # 10. I just got #10, now I need #11.

Port Numbers F T P T S D T S E M N F N L T S T M N P P P E T Application Layer TCP UDP Port Numbers Transport Layer

Currently assigned TCP port numbers

Bit (left to right) TCP Header Code field Meaning if bit set to 1 URG ACK PSH RST SYN FIN Urgent pointer field is valid Acknowledgement field is valid This segment requests a push Rest the connection Synchronize sequence numbers Sender has reaches end of its bye stream

TCP Simple Acknowledgment  Window size = 1 Send 1 Receive ACK 2 Send 2 Receive ACK 3 Send 3 Receive ACK 4 Receive 1 Send ACK 2 Receive 2 Send ACK 3 Receive 3 Send ACK 4 SenderReceiver

TCP Sliding Window Send 1 Send 2 Send 3 Receive ACK 4 Send 4 Send 5 Send 6 Receive ACK 7  Window size = 3 Receive 1 Receive 2 Receive 3 Send ACK 4 Receive 4 Receive 5 Receive 6 Send ACK 7 Sender Receiver

Transport: Windowing SENDER RECEIVER Receive 1 Ack2 Receive 2 Ack3 Send 1 Send 2 Send 1 Send 2 Send 3 Receive 1 Receive 2 Receive 3 Ack4 Send 4 . Window size = 1 . Window size = 3

UDP 協定介紹

UDP Segment 格式 Source Destination Length Check- Data… Port Port sum # Bits mNo sequence or acknowledgement fields

A UDP datagram encapsulated in an IP datagram UDP HEADER UDP DATA AREA IP HEADER UDP DATA AREA FRAME HEADER FRAME DATA AREA

Currently assigned UDP ports