introduction to network security security
play

Introduction to Network Security Security Chapter 7 Transport - PDF document

Introduction to Network Security Security Chapter 7 Transport Layer Protocols Dr. Doug Jacobson - Introduction to 1 Network Security - 2009 Topics TCP Layer Responsible for reliable end-to-end transfer of application data.


  1. Introduction to Network Security Security Chapter 7 Transport Layer Protocols Dr. Doug Jacobson - Introduction to 1 Network Security - 2009 Topics • TCP Layer – Responsible for reliable end-to-end transfer of application data. transfer of application data. • TCP vulnerabilities • UDP • UDP vulnerabilities • DNS Dr. Doug Jacobson - Introduction to 2 Network Security - 2009

  2. TCP Services Multiplexing: • A process within a host using TCP service is • A process within a host using TCP service is identified with a port . A port, when concatenated with an internet address, forms a Socket , which is unique throughout the internet. Service provided by TCP is provided by means of a logical connection between a pair of sockets. Dr. Doug Jacobson - Introduction to 3 Network Security - 2009 Multiplexing service Application Application Application Application 1 2 3 N Source Source Source Source Port 1 Port 2 Port 3 Port N Other TCP Layer Transport Protocols Protocol type = 17 (TCP) IP Layer Dr. Doug Jacobson - Introduction to 4 Figure 7.1 TCP Multiplexing Network Security - 2009

  3. TCP port numbers 5 RJE 68 Bootstrap Protocol Client 7 echo 69 Trivial FTP 9 Discard 75 any private dialout service 11 Active Users 77 any Private RJE service 13 daytime 79 FINGER 15 Who is up 101 NIC host name server 17 Quote of the day 17 Quote of the day 102 102 ISO-TSAP ISO-TSAP 19 Character Generator 103 X.400 20 FTP (default data) 104 X.400-SND 21 FTP (control) 105 CSnet Name server 23 TELNET 109 Post Office Protocol Ver 2 25 SMTP 113 Authentication Service 37 Time 115 Simple FTP 42 Host name service 119 NNTP 53 Domain name server 123 NTP 67 BOOTP 161 SNMP agent 162 SNMP management station Dr. Doug Jacobson - Introduction to 5 Network Security - 2009 TCP Connection Management Consists of three services: • Connection Establishment: Allow two TCP users to setup a logical connection between their respective sockets. A connection may be setup if: • No connection between the two sockets currently exists. From a given socket, it is possible to simultaneously maintain more than one connection, but only one connection to any specific remote socket at a time is permitted. – Internal TCP resources are sufficient. – Both users have agreed to the connection. Dr. Doug Jacobson - Introduction to 6 Network Security - 2009

  4. TCP Connection Management • Connection Maintenance service provides for the exchange of data between the two sockets and supports the data transport (described in the next slide). (described in the next slide). • Connection Termination may be either abrupt or graceful. With abrupt termination, data in transit may be lost. A graceful termination prevents either side from shutting down until all data have been received. Dr. Doug Jacobson - Introduction to 7 Network Security - 2009 TCP Data Transport • Full Duplex: Both users may transmit at once. • Timely: The user may request timely delivery of data by associating a timeout with data submitted for transmission. If TCP detects a timeout the connection is abruptly terminated. TCP detects a timeout the connection is abruptly terminated. • Ordered: TCP is stream oriented. TCP guaranteed that the stream of data presented by one user to TCP will be delivered in the same order to the destination user. • Labeled: TCP establishes a connection only if the security designation provided by both users match. • Flow Control: Used to prevent internal TCP congestion • Error Control: TCP uses a simple checksum. Dr. Doug Jacobson - Introduction to 8 Network Security - 2009

  5. TCP • Stream Orientation - When two application processes transfer large volumes of data, we can think of the as a stream of bits divided into 8-bit bytes The stream service on the destination passes the same sequence of octets to the receiver that the the same sequence of octets to the receiver that the sender passed to the source machine. Data are not treated as packets but as a stream of data that is passed to the transport entity. The transport entity will divide the data into packets for transmission to the destination. The destination transport entity will pass the data to the user as a stream. Dr. Doug Jacobson - Introduction to 9 Network Security - 2009 TCP Stream Dr. Doug Jacobson - Introduction to 10 Network Security - 2009

  6. TCP Special Capabilities TCP supports two special capabilities associated with the transfer of data • Data Stream Push: Used to force the delivery of all data waiting to be sent. data waiting to be sent. • Urgent Data Signaling: Provides a means of informing the destination TCP user that urgent data is in the incoming data stream. Dr. Doug Jacobson - Introduction to 11 Network Security - 2009 TCP Error Reporting • TCP will report service failure stemming from catastrophic conditions Dr. Doug Jacobson - Introduction to 12 Network Security - 2009

  7. TCP Services • Unspecified Passive open • Fully Specified Passive Open • Active Open • Active Open with data • Send • Deliver • Allocate • Close • Abort • Terminate • Error Dr. Doug Jacobson - Introduction to 13 Network Security - 2009 TCP Protocol Connection Establishment: • TCP uses a three handshake for • TCP uses a three handshake for connection establishment. We will see TCP defines only one packet format that contains flags to indicate what type of packet it is. The connection packets have the SYN flag set. Dr. Doug Jacobson - Introduction to 14 Network Security - 2009

  8. TCP 3-way Handshake Client Server SYN - ISN = 3000 SYN+ACK - ISN = 4000, ACK = 3001 SYN+ACK ISN = 4000, ACK = 3001 ACK - SSN = 3001, ACK = 4001 Figure 7.3 TCP Connection Establishment Dr. Doug Jacobson - Introduction to 15 Network Security - 2009 TCP Protocol Data Transfer: • Sequence numbers are used for data • Sequence numbers are used for data transfer. The sequence numbers represent the number of bytes not the number of packets. Flow control is handled by using a credit allocation scheme as describe earlier. Dr. Doug Jacobson - Introduction to 16 Network Security - 2009

  9. TCP Data Transfer Dr. Doug Jacobson - Introduction to 17 Network Security - 2009 TCP Connection Termination Connection Termination: • The connection is terminated by sending a packet with the FIN flag set. sending a packet with the FIN flag set. This packet contains the number of the last packet sent. Dr. Doug Jacobson - Introduction to 18 Network Security - 2009

  10. TCP Connection termination Server Client FIN - SN = A , ACK = B FIN+ACK - SN = B, ACK = A+1 ACK - SN = A, ACK = B+1 Figure 7.5 TCP Graceful Termination Dr. Doug Jacobson - Introduction to 19 Network Security - 2009 TCP Header Format Source Port Destination Port Sequence Number Acknowledgement Number Hdr-Len Reserved Flags Window Size Checksum Urgent Pointer Options Flags URG ACK PSH RST SYN FIN Flag Function URG Packet contains urgent data ACK Acknowledgment number is valid PSH Data should be pushed to the application RST Reset Packet SYN Synchronize packet FIN Finish packet Figure 7.6 TCP Header Format Dr. Doug Jacobson - Introduction to 20 Network Security - 2009

  11. Header Based • There have been several attacks using invalid flag combinations. • Most have been fixed, however this is now used to help determine the type of now used to help determine the type of operating system – Probing attacks • Invalid header responses • Initial values – sequence numbers – Window size Dr. Doug Jacobson - Introduction to 21 Network Security - 2009 Protocol Based • Syn flood • Reset Packets • Session Hijacking • Session Hijacking Dr. Doug Jacobson - Introduction to 22 Network Security - 2009

  12. SYN Flood Attacker A1 Attacker A2 Attacker A3 Attacker A3 Victim Attacker A4 Internet Attacker A5 Valid User Dr. Doug Jacobson - Introduction to 23 Network Security - 2009 SYN Flood Dr. Doug Jacobson - Introduction to 24 Network Security - 2009

  13. Reset Shutdown Dr. Doug Jacobson - Introduction to 25 Network Security - 2009 Session Hijacking Victim Attacker Server Router Internet Network where the attacker can see the traffic between the Victim and the Server Dr. Doug Jacobson - Introduction to 26 Network Security - 2009

  14. Session Hijacking Victim Server Attacker SYN SYN + ACK ACK DATA RST DATA DATA DATA + ACK DATA + ACK DATA + ACK Dr. Doug Jacobson - Introduction to 27 Network Security - 2009 Passive Network Filter User Filter Server Router Internet Network where the filter can see the traffic between the user and the server Dr. Doug Jacobson - Introduction to 28 Network Security - 2009

  15. Passive Network Filter Dr. Doug Jacobson - Introduction to 29 Network Security - 2009 Mitigation • Encryption can fix Session hijacking • Reset is harder • Syn flood is hard • Syn flood is hard Dr. Doug Jacobson - Introduction to 30 Network Security - 2009

  16. Authentication Based • No authentication in TCP • Ports might be considered an authentication of the application Dr. Doug Jacobson - Introduction to 31 Network Security - 2009 Traffic Based • Flooding (using all of the TCP resources) • QOS • Sniffing Dr. Doug Jacobson - Introduction to 32 Network Security - 2009

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend