Escolar Documentos
Profissional Documentos
Cultura Documentos
Objectives
After completing this module the participants will be able to:
Describe the protocols in the TCP/IP stack Describe IP addresses Explain address resolution
Why TCP/IP?
De facto standard for the Internet
ITU and ISO issues de jure standards
Most popular protocol for data transport Next-generation telecommunication networks are IPbased
History of TCP/IP
1969 ARPANET went into operation 1974 TCP/IP designed by Vinton G. Cerf and Robert E. Kahn 1979 IP version 4 documented
1979 The Internet Control and Configuration Board (ICCB) was formed
1979 BSD Unix with TCP/IP supplied to universities
1980 ARPA started converting machines to TCP/IP 1983 (January 1) IPv4 addresses were started to be given out 1986 NSFNET developed to replace ARPANET 1991 NSF decided to move backbone to a private company 1993 final NSF solicitations 1999 IPv6 addresses released
Internet Research Task Force (IRTF) Internet Engineering Task Force (IETF) Internet Assigned Numbers Authority (IANA) In 1999, IANA responsibilities was transferred to ICANN (Internet Corporation for Assigned Names and Numbers)
ARIN: American Registry for Internet Numbers RIPE: Reseaux IP European APNIC: Asia Pacific Network Information Center LACNIC: Latin America Network Information Center AFRINIC: Africa
Draft paper
RFC Specification
New RFCs takes new numbers IESG recommends promotion to Proposed Standard
3. 4. 5.
Internet Standards
STD RFC Number Name
2500
1700
Assigned Numbers
1122 1123
RFC Number
Name
5 6 7 8
959
Session Transport
Defines type of medium, transmission method, and transmission rates available for the network Cables
Most common:
Coaxial Cable
Fiber
Framing
Encapsulation Frame Formats Error detection (CRC, FCS) Error correction (Hamming distance) ARQ Sliding window
Error Control
Flow Control
Layer 2 devices:
Bridge (software-based) Switch (ASIC-based)
Cut-through
Frame
Frame Frame
Frame
Switch checks the first 64 bytes then immediately begins forwarding frame
Frame
Frame Relay Efficient Cost-effective Reliable Used in WAN connections PPP (Point-to-Point Protocol) Dial-up connections ATM (Asynchronous Transfer Mode)
Network
LLC (Logical Link Control) MAC (Media Access Control)
Physical
Physical
Logical addressing
10.130.42.27 (Dotted Decimal Notation) 00001010 10000010 00101010 00011011 (Binary) 0A 82 2A 1B (Hexadecimal)
Routing
Need a Router?
Routing
10.120.2.0 172.16.1.0
Routing (cont)
10.120.2.0 E0 172.16.1.0
S0
Exit Interface E0 S0
Routed Protocol: IP
Routing protocols
Link-state
Hybrid
172.16.1.0
S0
Exit Interface E0 S0 S1
172.17.3.0
AS 200
Autonomous System is a collection of networks under a common administrative domain.
Provides end-to-end data integrity and Quality of Service (QoS) Handles reliable delivery of messages Information flow control between applications
Sliding window protocol Buffering with Source Quench message
Transport Layer
Application Presentation Session Transport Network Data Link Physical Application (SMTP,FTP,Telnet, SNMP,DNS, DHCP, ) Host-to-Host (TCP and UDP) Internetwork (IP, ICMP, ARP, RARP, IGMP)
Network Interface
(LAN = Ethernet, FDDI, Token Ring) (WAN = Serial, Frame Relay, ATM)
TCP (cont)
TCP exchanges segments with the other end in order to :
Establish connection
Advertise window size Transfer data
No sequence numbers
No ACK Reliability is the responsibility of the application
Lower Layers
Application Presentation Session
Reliable or unreliable delivery Error correction before retransmit
EXAMPLES
TCP UDP
Transport
Network
Provide logical addressing which routers use for path determination Combines bits into bytes and bytes into frames Access to media using MAC address Error detection not correction Move bits between devices Specifies voltage, wire speed and pin-out cables
IP IPX
802.3 / 802.2 HDLC EIA/TIA-232 V.35
Data Link
Physical
Coordinates interaction between end-to-end application processes Responsible for enforcing rules of dialog
Examples:
RPC - Programming technique SQL - Database access NFS - Network File System
Layer 5 Functions
Service Reply
Converts code and reformats data Presents a readable format for the application Concerned with syntax and semantics of data being transmitted Examples: JPEG, GIF, PICT, TIFF MIDI, WAV, WMA MPEG
Layer 6 Functions
It provides services such as file access and transfer, peer-to-peer communication among applications, and resource sharing
Defines user-oriented applications
Applications that are not network-aware have Layer 7 components written by software developers Layer 7 examples: Telnet DNS DHCP HTTP
Layer 7 Example
An FTP server provides files that can be downloaded from the server and a place for files to be uploaded from the client.
Upper Layers
EXAMPLES
Application
User Interface
Telnet HTTP ASCII EBCDIC JPEG Operating System/ Application Access Scheduling
Session
Transport Layer Network Layer Data Link Physical
Encapsulation
Application
Presentation Upper Layer Data TCP Header Upper Layer Data Session
PDU
Segment
Transport
IP Header
Data
Network
Packet
LLC Header
Data
FCS
Data Link
Frame
MAC Header
Data
FCS
0101110101001000010
Physical
Bits
De-encapsulation
Application
Presentation
Session
Transport
Upper Layer Data
Network
TCP+ Upper Layer Data
Data Link
LLC Header + IP + TCP + Upper Layer Data
Physical
0101110101001000010
Internet Protocol
OSI vs TCP/IP
Application Presentation Session Transport Network Data Link Physical Application (SMTP,FTP,Telnet, SNMP,DNS, DHCP, ) Host-to-Host (TCP and UDP) Internetwork (IP, ICMP, ARP, RARP, IGMP)
Network Interface
(LAN = Ethernet, FDDI, Token Ring) (WAN = Serial, Frame Relay, ATM)
IP Addressing
32 bits
Dotted Decimal Maximum
Network
Host
255
255
255
255
IP Address Format
32-bit address 4 8-bit fields called octets Usually represented in dotted decimal notation
193.160.1.5
Host ID
Host ID
Host ID
Traditional IP Addresses
Networks Hosts per Network
1st Octet
1-127 128-191 192-223 224-239
192.168.0.0- 192.168.255.254
169.254.0.0. - 169.254.255.254
Subnet Mask
Contiguous 1s
Mask A: 11111111 11110000 00000000 00000000 Mask B: 11111111 11111111 11111111 11000000 Wrong : 11111111 11111101 11110000 00000000
Blocks out a portion of the IP address to distinguish Network ID from Host ID Specifies whether the destination IP address is located on a local network or on a remote network
Source IP [Binary AND] Subnet Mask Destination IP [Binary AND] Subnet Mask
Default Masks
255.0.0.0 or /8
255.255.0.0 or /16
255.255.255.0 or /24
Addressing Guidelines
Network ID cannot be 127
127 is reserved for loopback Network ID and Host ID cannot be 255 (all bits set to 1)
LAN Topology
Subnets
Subnetting
Why do we need subnets?
Optimize network traffic Reduce wasted address space Separate networks based on geography or location Create smaller broadcast domains
172.16.0.0
172.16.3.0
172.16.4.0
172.16.1.0
172.16.2.0
Subnet Addressing
172.16.2.200 172.16.2.2 172.16.2.160 172.16.3.1 E1 E0 172.16.2.1 172.16.3.5 172.16.3.100 172.16.3.150
Broadcast Address
172.16.3.0
172.16.4.0
X X
Subnetting Example
IP address : 192.170.16.0 (a) 4 subnets
Exercise
(a) 192.168.254.0
(b) 130.5.64.0 (c) 150.30.128.0/20
50 subnets
6 subnets 500 computers
______________
Used when there is a need for unequal-sized subnets Routing protocol used MUST support VLSM Supports VLSM:
EIGRP IS-IS (Intermediate System-to-Intermediate System) OSPF (Open Shortest Path First) RIP version 2
TCP/IP Applications
Internet addresses are hard for humans to remember, but easy for protocol software to work with
Converts URL into IP address Example: yahoo.com -> 10.120.5.6 For GPRS:
Routing Area (RA) update Roaming PDP Context Activation (assigning which GGSN to use for the APN)
DNS (cont)
Used by Microsoft for Peer-to-Peer networking Converts NetBIOS into IP address Example: My_pc into 10.102.100.134 Can be used in tandem with DNS to resolve local names My_pc.smart.com.ph
RFC 826
A source must know a destinations hardware address (MAC address) before it can send an IP packet to it.
ARP is the mechanism that maps IP to MAC address
ARP (cont)
ARP uses local broadcast (Layer 2) to obtain a hardware address dynamically ARP stores mapping for future use
ARP (cont)
I need the Ethernet address of 172.16.3.2 I heard that broadcast, that is me. Here is my Ethernet address.
172.16.3.13 Arp a
172.16.3.2
Ipconfig /all
Ethernet
ICMP - Ping
Network Layer
Traceroute
Traceroute (cont)
Traceroute (3)
Cebu
IP address allocation:
Manual
Automatic
Similar to manual allocation Mapping is allocated during initialization Once IP address is assigned to client, it cannot be returned to the address pool without intervention
IP address allocation:
Dynamic:
Lease Time
Allows addresses no longer needed to be automatically re-used or returned to the pool Clients attempt to renew lease when 50% of lease time has expired
DHCP Operation
1.
2.
DHCPOFFER
3.
DHCPREQUEST
4.
DHCPACK
IP-in-IP Encapsulation
Gn interface (between SGSN and GGSN) using GTP (GPRS Tunneling Protocol)
Ga interface (between SGSN/GGSN and Charging Gateway) using GTP
RFC 1701
IPX
XNS
VINES AppleTalk
IP
Used for applications that require real-time processing such as video, audio
Has mechanisms to support real-time processing: timestamp, etc Used by H.323 and SIP Used by VoIP (Voice over IP) for media transport
IPv6
IP Version 6 (IPv6)
Why IPv6?
Rapid IPv4 address depletion NAT is only an interim solution Security features
IP Version 6 (IPv6)
2128 = 340,282,366,920,938,463,463,374,607,431,768,211,456 possible addresses
OR
655,570,793,348,866,943,898,599 IPv6 addresses for every
square meter of Earths surface
IP Version 6 (IPv6)
Address auto-configuration
Anycast address
IPv6 Addressing
69DC:8864:0000:0000:0000:0003:0045:8C0A
69DC:8864:0:0:0:3:45:8C0A
69DC:8864::3:45:8C0A
Like IPv4, IPv6 assigns a unique address for each device There are three types of IPv6 address
Loopback Unspecified
Compatibility Addresses
IPv4-compatible address
Used by IPv6/IPv4 nodes IPv6 is encapsulated with IPv4 header and sent through IPv4 infrastructure ::w.x.y.z where w.x.y.z is the IPv4 address
IPv4-mapped address
IPv4-translated address
6-to-4 address
2002::/16 prefix Added with the IPv4 WWXX:YYZZ address representation of w.x.y.z to form a 2002:WWXX:YYZZ::/48 prefix Used to represent a site when using the automatic tunneling mechanism (RFC 3056)
Transition to IPv6
Dual TCP/UDP layer
Application
TCP/UDP
IPv6
IPv4
Network Interface
Microsoft implementation
Application
TCP/UDP IPv6 TCP/UDP IPv4
Network Interface
Thank you