Protocols
Upcoming SlideShare
Loading in...5
×
 

Protocols

on

  • 1,172 views

 

Statistics

Views

Total Views
1,172
Views on SlideShare
1,171
Embed Views
1

Actions

Likes
1
Downloads
75
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Protocols Protocols Presentation Transcript

    •  
    • Network Protocols Dean (3 rd ), Chapter 4
    • Protocols
      • Rules that govern network communications
      • Voluntary
      • Standards organizations:
        • IETF: Internet Engineering Task Force
        • ICANN: Internet Corporation For Assigned Names and Numbers
        • ISO – Information Technology Committee
    • TCP/IP
      • Provides suite of conventions and utilities used on Internet
      • Transmission Control Protocol (TCP)
      • Internet Protocol (IP)
      • Governed by voluntary compliance with Requests for Comments (RFCs)
        • RFC 1 issued 7-Apr-1969 on Host Software by Steve Crocker of UCLA
        • Latest RFC: 3994 Indication of Message Composition for Instant Messaging. H. Schulzrinne. January 2005. (Format: TXT=27472 bytes) (Status: PROPOSED STANDARD).
        • Not all RFCs are serious--include poetry (1121) and April fools jokes (1605, 2795)
    • TCP/IP and OSI TCP/IP Model OSI Model Applications Presentation Session Transport Network Data Link Physical Transport —TCP, UDP Internet —IP, ARP, ICMP local network protocol Applications Telnet, FTP, TFTP, NTP, PING, BOOTP, DHCP, HTTP
    • TCP/IP Data Encapsulation
      • TCP
        • Segments and sequences data
        • Determines ports
      • IP
        • Packages segment in datagram
        • Determines logical addresses
      • Local network protocol
        • Creates transmission frame
        • Determines physical addresses
      app TCP segment IP datagram LAN frame . . bits . . app TCP segment IP datagram LAN frame
    • TCP Segment
      • Connection oriented: ports, handshaking
      • Provides reliable delivery of data: sequence, checksum, ack
      • Source port—port number at source node
      • Destination port—port number at destination node
      • Sequence number—segment’s position in stream of data
      • ACK number—used to acknowledge receipt of segment
      • Header length—number of 32-bit words in header
      • Reserved for later use—no used
      • Flags: Urgent, ACK, no buffering, reset, synchronization, last segment
      • Window size—receivers buffer size
      • Checksum—used to determine corruption
      • Urgent pointer—DoD field pointer
      • Options and padding—complete header
      Source Port Destination Port Sequence Number Acknowledgement Window Size Checksum Urgent pointer Padding Options Data flags Lng Rsv
    • Establishing TCP Connection (Handshaking)
      • Request for connection
      • Acknowledge connection
      • Response
      • Connection established
      SYN SYN/ACK ACK
    • UDP
      • User Datagram Protocol
      • Transport level protocol
        • Alternative to TCP
      • Connectionless
      • Does not assure delivery
      • Used for steaming media and other transfers where speed is more important than accuracy
    • IP Datagram
      • Connectionless
      • Addressing and routing
      • Version—IPv4 or IPv6
      • Header length
      • Services—priority info for router
      • Total length in bytes
      • Identification—message ID
      • Flags—is message fragment
      • Fragment offset
      • Time to live—number hops left
      • Protocol—TCP or UDP
      • Header checksum
      • Source IP address
      • Destination IP address
      • Options—routing/timing info
      • Padding—fill out multiple 32-bits
      • TCP (or UDP) segment
      Identification Total Length Header Checksum Source IP Address Destination IP Address Data – TCP or UDP Segment Services Padding Protocol TTL Options Flgs Vers IHL Frag. offset
    • ICMP
      • Internet Control Message Protocol
      • Used to control message transfers
        • Handshaking
        • Report success or failure of packet transfers
        • Announces TTL delivery errors
        • Troubleshooting information
    • ARP
      • Address Resolution Protocol
      • Internet (OSI Network) layer protocol
      • Maintains table of IP (logical) addresses and MAC (physical) addresses
      • Looks up MAC address using IP address
      • Reverse Address Resolution Protocol (RARP) looks up IP using MAC
    • IP Addressing
      • Internet Protocol (IP)
      • Internet (OSI Network) layer protocol
      • Logical address used by routers
      • Each node must have unique IP address
      • Two versions
        • 32-bit (IPv4)
        • 128-bit (IPv6)
    • IPv4 Notation
      • IP addresses are bit patterns
      • IPv4 uses hexadecimal or dot notation to specify four bytes in address
      • Dana’s IP address:
        • 86 72 8A 02 – hexadecimal
        • 134.114.138.2 – dot notation
      • “ nslookup” utility for looking up IPv4 address
    • Special IP Addresses
      • Classes:
        • A: 1-126--126 networks and 16,777,214 hosts
        • B: 128-191-- >16,000 networks and 65,534 hosts per network
        • C: 192-223-- >2,000,000 networks and 256 hosts per network
      • IP addresses for private networks:
        • 10.0.0.0 - 10.255.255.255
        • 172.16.0.0 - 172.31.255.255
        • 192.168.0.0 - 192.168.255.255
      • Reserved IP addresses
        • Loopback: 127.0.0.1
        • Broadcast: 255.255.255.255, x.255.255.255, x.x.255.255, x.x.x.255
        • Network use only: 0.0.0.0 – usually DHCP failed to assign address
        • Network coordination: x.0.0.0, x.x.0.0, x.x.x.0
    • Subnet Mask
      • IP address has network part and host part
      • Network part determined by subnet mask
        • Class A: 255.0.0.0
        • Class B: 255.255.0.0
        • Class C: 255.255.255.0
      • ipconfig (WinNT) or ifconfig (Unix) display subnet mask information
    • Assigning IP Addresses
      • Each node must have unique IP address
      • Static IP assigned manually or with script
      • Dynamic IP assigned
        • BOOTP—assigns based on MAC addresses
        • Dynamic Host Control Protocol (DHCP)—assigns next available
    • Sockets and Ports
      • Transport layer function
      • Port: number associated with process on machine
      • Socket: combination of IP address and port
        • Dana telnet: 134.114.138.2:23
        • CBA Web: 134.114.80.216:80
    • Commonly Known Ports Secure implementation of HTTP TCP HTTPS 444 Border Gateway Protocol TCP BGP 179 Simple Network Management Protocol UDP SNMP 161 Internet Message Access Protocol TCP IMAP 143 Post Office Protocol 3 TCP POP3 110 NIC Host Name Server TCP and UDP HOSTNAME 101 World Wide Web HTTP TCP and UDP HTTP 80 Trivial File Transfer Protocol UDP TFTP 69 Bootstrap Protocol Client UDP BOOTPC 68 Bootstrap Protocol Server UDP BOOTPS 67 Domain Name System TCP and UDP DNS 53 Simple Mail Transfer Protocol TCP SMTP 25 Telnet TCP TELNET 23 File transfer control TCP FTP 21 File transfer data TCP FTP-DATA 20 Echo TCP and UDP ECHO 7 Description Protocol Used Process Name Port Number
    • IPv6
      • 128-bit (8-bytes) addresses
      • Increases number of IP addresses available
      • Uses colons (:) to separate bytes
      • Bytes specified using hexadecimal
      • “dig” utility for looking up addresses under IPv6
    • DNS
      • Domain Name System (DNS)—converts between FQN and IP address
      • Domain names—used instead of IP address
      • Fully qualified host name
        • Network name: ucc.nau.edu
        • Host name: dana
        • FQN: dana.ucc.nau.edu
      • Top-level domains
        • arpa, com, edu, gov, org, net, int, mil, biz, info, aero, coop, museum, name, pro
        • ICANN country codes
    • Host Files vs DNS
      • Host files were used when all nodes on Internet were known to all users of internet
      • DNS has servers dedicated
        • Each top level domain
        • Each layer below top level domain
        • Layers know each other and immediate subordinates
      • Example
        • edu domain server knows nau
        • nau knows cba and bus.cba
        • cba knows all cba and bus.cba nodes
    • TCP/IP Applications
      • Telnet – remote terminal application
      • FTP – file transfer
      • TFTP – trivial file transfer
      • NTP – network time protocol
      • PING – Packet INternet Groper
    • Other Protocols
      • IPX/SPX – Novell
      • NetBIOS and NetBEUI – Microsoft
      • WINS – Windows Internet Naming Service – handles NetBIOS name to IP address conversion
      • AppleTalk – Apple
    • Summary
      • Protocols are rules that govern connections
      • TCP/IP suite of protocols used by Internet
      • TCP – Transport layer protocol that segments, sequences, and checks data and determines port to use
      • IP – Network layer protocol that does logical addressing and provides routing information
      • DNS – Domain name system that allows use of names rather than IP addresses
    • Questions?