Breno de MedeirosFlorida State University Fall 2005 The IP, TCP, UDP protocols A quick refresher.

Slides:



Advertisements
Similar presentations
Introduction 1 Lecture 13 Transport Layer (Transmission Control Protocol) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer.
Advertisements

CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Computer Security and Penetration Testing
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
CCNA – Network Fundamentals
Transmission Control Protocol (TCP)
CISCO NETWORKING ACADEMY PROGRAM (CNAP)
Fundamentals of Computer Networks ECE 478/578 Lecture #20: Transmission Control Protocol Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
Transport Layer3-1 TCP. Transport Layer3-2 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data flow in same connection.
1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July A note on the use.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
1 Transport Layer Lecture 9 Imran Ahmed University of Management & Technology.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
1 CS 4396 Computer Networks Lab Transmission Control Protocol (TCP) Part I.
Instructor: Sam Nanavaty TCP/IP protocol. Instructor: Sam Nanavaty Version – Allows for the evolution of the protocol IHL (Internet header length) – Length.
Communication Protocols II Ninth Meeting. TCP/IP family.
Transmission Control Protocol (TCP) Basics
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Chapter 7 – Transport Layer Protocols
1 Transport Control Protocol. 2 Header Identifies the port number of a source application program. Used by the receiver to reply. (16-bit). Identifies.
CSE 461: Transport Layer Connections. Naming Processes/Services  Process here is an abstract term for your Web browser (HTTP), servers (SMTP),
TCP/IP Network and Firewall. IP Packet Protocol  1 ICMP packet  6 TCP packet  17 UDP packet.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
1 ELEN 602 Lecture 15 More on IP TCP. 2 byte stream Send buffer segments Receive buffer byte stream Application ACKs Transmitter Receiver TCP Streams.
Chapter 4 OSI Transport Layer
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
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.
6.1. Transport Control Protocol (TCP) It is the most widely used transport protocol in the world. Provides reliable end to end connection between two hosts.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_b Transport Protocols - TCP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
TCP Lecture 13 November 13, TCP Background Transmission Control Protocol (TCP) TCP provides much of the functionality that IP lacks: reliable service.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
Breno de MedeirosFlorida State University Fall 2005 Network Intrusion Detection Systems Beyond packet filtering.
 network appliances to filter network traffic  filter on header (largely based on layers 3-5) Internet Intranet.
CSE 461 Section. Let’s learn things first! Joke Later!
2.8. Data Communication The data that flows on a connection may be thought of as a stream of octets. The sending user indicates in each SEND call whether.
1 15. Transport Protocols. Prof. Sang-Jo Yoo 2 Contents  Transport protocol  Transport Service  Protocol for reliable network service  Protocol for.
Interfaces and Services Each layer provides a service to the layer above it. A service is a set of primitive operations. Under UNIX, primitives are implemented.
Networking Basics CCNA 1 Chapter 11.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
01_NF_Ch04 – OSI Transport Layer ( 傳輸層 ) Source: CCNA Exploration.
© 2002, Cisco Systems, Inc. All rights reserved..
Transport Layer1 TCP Connection Management Recall: TCP sender, receiver establish “connection” before exchanging data segments r initialize TCP variables:
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
IP packet filtering Breno de Medeiros. Florida State University Fall 2005 Packet filtering Packet filtering is a network security mechanism that works.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
09-Transport Layer: TCP Transport Layer.
Fast Retransmit For sliding windows flow control we waited for a timer to expire before beginning retransmission of a packet TCP uses an additional mechanism.
Process-to-Process Delivery
TCP.
© 2003, Cisco Systems, Inc. All rights reserved.
TCP - Part I Karim El Defrawy
The IP, TCP, UDP protocols
Figure 3-23: Transmission Control Protocol (TCP) (Study Figure)
CSC Advanced Unix Programming, Fall 2015
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transport Layer 9/22/2019.
TCP Connection Management
Attacks on TCP.
Presentation transcript:

Breno de MedeirosFlorida State University Fall 2005 The IP, TCP, UDP protocols A quick refresher

Breno de MedeirosFlorida State University Fall 2005 IP protocol Defines a uniform mechanism to access resources between internets –Enables networking across networks that are not connected at level 2 (data-link). –Defines IP addresses and how to route network packets to a destination address. IP v.4, addresses: 4 octets, organized hierarchically –Single host: or –Class C network: x, also written /24 –Class B network: x.x., also written /16 –Class A network: 10.x.x.x, or /8

Breno de MedeirosFlorida State University Fall 2005 IP v.6 16 octet addresses, also hierarchical Represented by eight 4-digit hexadecimal values (one string of 0’s can be omitted) –Single host: 1080:0:0:0:0:800:0:417A or 1080::800:0:417A Internet routing is performed only on the 64 left bits (the remaining is for internal routing to hosts) Blocks of addresses denoted using the / notation. –12AB::CD30:0:0:0:0/60 indicates a 68-bit wide space, from 12AB:0:0:CD30:0:0:0:0 to 12AB:0:0:CD3F:FFFF:FFFF:FFFF:FFFF –(all addresses starting with prefix 12AB:0:0:CD3)

Breno de MedeirosFlorida State University Fall 2005 IP packet

Breno de MedeirosFlorida State University Fall 2005 TCP/UDP Layer 4 (transport layer) protocols, run over IP –TCP and UDP packets are encapsulated into IP packets Use their own control information, stored in packet headers –Port numbers (indicate consuming program in the destination host) TCP is connection-oriented, and provides for reliable, order-preserving transmission of data UDP is not connection-oriented, does not guarantee data arrival, or proper ordering of arriving data

Breno de MedeirosFlorida State University Fall 2005 TCP header flags: URG (urgent), ACK (acknowledg- ment), PSH (push function), RST (close the connection), SYN (synchronize sequence numbers), FIN (end of data from sender)

Breno de MedeirosFlorida State University Fall 2005 TCP state diagram TCP new connection: 3-way handshake, by TCP packets with SYN, SYN & ACK, and ACK flags set. TCP close connection: Via RST, without ACK Via FIN, ACK, FIN, ACK (4 way teardown)

Breno de MedeirosFlorida State University Fall 2005 TCP SYN-flood attack An adversarial client can spoof many IP addresses and send large numbers of SYN-packets, requesting new TCP connections to the server. The server responds with SYN-ACK packets, and keeps record of the requested connections (in state SYN-received), waiting on each a period (timeout) for an ACK-packet that will never arrive. If the adversary’s rate of requests is large enough, the server’s resources (memory buffers) for handling pending connections will fill up quickly (well before timeout). The server will no longer be able to handle legitimate service requests. Moreover, it can result in OS instability and crashing.

Breno de MedeirosFlorida State University Fall 2005 TCP SYN Cookies Enable servers to continue to accept and serve legitimate connections even after its resources to handle pending connections (in SYN- received state) have been exhausted. Requires no modification of clients, can be unilaterally adopted by servers without modifying the underlying behavior of the IP protocol. Change the generation of server sequence numbers. –Of the 32-bit sequence counter, use the top 5 bits for a counter t than increases every 64 seconds. Use the bottom 24 bits to encode a secret function of the server and client IP addresses and port numbers, and of t. When out of resources, server just sends SYN-ACK as if ok. When the ACK is received, re-compute the secret function and verify if the ACK is a possible reply to an (unrecorded) SYN-ACK packet. Use the information in the ACK to re-create the connection table.

Breno de MedeirosFlorida State University Fall 2005 UDP