UDP User Datagram Protocol. User Datagram Protocol (UDP) UDP is the protocol available to network programmers who wish to send datagrams UDP datagrams.

Slides:



Advertisements
Similar presentations
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
Advertisements

Introduction 1-1 Chapter 3 Transport Layer Intro and Multiplexing Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
IP Protocol - Introduction Dr. Farid Farahmand. Introduction TDM transport networks are not sufficient for data communications Low utilization TDM networks.
Chapter 3: Transport Layer
1 Java Networking – Part I CS , Spring 2008/9.
Transport Layer3-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
Java Socket Support Presentation by: Lijun Yuan Course Number: cs616.
Lecture 8 Chapter 3 Transport Layer
Some slides are in courtesy of J. Kurose and K. Ross Review of Previous Lecture Electronic Mail: SMTP, POP3, IMAP DNS Socket programming with TCP.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
8-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer m flow.
Gursharan Singh Tatla Transport Layer 16-May
Lecture 8 Modeling & Simulation of Communication Networks.
What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host IP treats a computer as an endpoint of communication Best.
Process-to-Process Delivery:
Review: –What is AS? –What is the routing algorithm in BGP? –How does it work? –Where is “policy” reflected in BGP (policy based routing)? –Give examples.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
TCP/IP: Basics1 User Datagram Protocol (UDP) Another protocol at transport layer is UDP. It is Connectionless protocol i.e. no need to establish & terminate.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Mukesh N. Tekwani Elphinstone College Mumbai
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
1 IP: putting it all together Part 1 G53ACC Chris Greenhalgh.
TCP/IP Transport and Application (Topic 6)
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Transport Layer1 Ram Dantu (compiled from various text books)
1. I NTRODUCTION TO N ETWORKS Network programming is surprisingly easy in Java ◦ Most of the classes relevant to network programming are in the java.net.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Marwan Al-Namari Week 5. Responsible for delivering packets between endpoints over multiple links Physical Link Network Transport Application.
Data Communications and Networks
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
1. Layered Architecture of Communication Networks: TCP/IP Model
MULTIPLEXING/DEMULTIPLEXING, CONNECTIONLESS TRANSPORT.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
UDP & TCP BS IT 4 th Semester By: Muhammad Hanif User Datagram Protocol & Transmission Control Protocol.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
Introduction 1-1 source application transport network link physical HtHt HnHn M segment HtHt datagram destination application transport network link physical.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
Communication Networks NETW 501 Tutorial 2
Lecture 4 : Network Architectures (cont..) 1. 2 Summary of OSI Layers.
2: Transport Layer 11 Transport Layer 1. 2: Transport Layer 12 Part 2: Transport Layer Chapter goals: r understand principles behind transport layer services:
UDP: User Datagram Protocol. What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an.
Chapter 5 Network and Transport Layers
The Transport Layer Implementation Services Functions Protocols
Chapter 3 outline 3.1 Transport-layer services
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
A quick intro to networking
Network Architecture Introductory material
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Review of Important Networking Concepts
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Process-to-Process Delivery:
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
TCP/IP Protocol Suite: Review
Networking Theory (part 2)
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Process-to-Process Delivery: UDP, TCP
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Networking Theory (part 2)
Networking Theory (part 2)
Presentation transcript:

UDP User Datagram Protocol

User Datagram Protocol (UDP) UDP is the protocol available to network programmers who wish to send datagrams UDP datagrams are called user datagrams, since they allow user-level creation & transmission of datagrams Other IP datagrams are used for implementation of connection-based transport (TCP), error control (ICMP), or inter-router communication (BGP, RIP, OSPF) UDP has a small, fixed-size (8 byte) header

Connectionless Service In connectionless service, a host just sends packets No connection needs to be established No virtual circuit needs to be created A connectionless socket can send messages to multiple recipients

UDP Applications UDP can be used for: Instant messaging (e.g. ICQ) Multicast messaging UDP is best suited for applications which have: Sporadic messaging Long periods of delay between messages

User Datagrams BytesNameDescription 2Source PortThe port used to send the message 2Dest. PortThe port to be used to receive the message 2LengthThe length of the data in the message 2ChecksumThe checksum of the message data ?DataThe data of the message 8 bytes

Ports Ports represent portals where information may be transmitted or received by a network-enabled machine One port may be used to send ICQ messages to other ICQ users Another port may be used to send requests to mail servers (such as SMTP servers) Without ports, messages from the SMTP server or an ICQ user will be indistinguishable

Ports It is important to note (and often overlooked) that all datagrams contain 2 ports: One for the source The port that was used to send the message One for the destination The port that was used to receive the message

Ports Some ports were associated with specific network functions to make port numbers unnecessary in those domains: 25: SMTP (used for sending ) 80: HTTP (used for handling web requests) 90: SHTTP (used for handling secure web requests) Some others are listed on p.205 & p.244 These reserved ports are both UDP and TCP ports

Ports M2 80 Web 25 SMTP 8080 Tomcat M1 Web 80 Web 90 ICQ ICQ Ext Ext 16403

User Datagrams UDP datagrams are encapsulated inside IP datagrams The normal IP headers are present The data portion of the IP datagram contains the UDP headers (port numbers, etc.) and the message data

UDP Message Encapsulation User DataUDP Header IP DataIP Header Frame DataFrame Header Network Frame

UDP Layering Application User Datagram Protocol (UDP) Internet Protocol (IP) Network Interface Hardware

UDP Programming // in Java DatagramSocket socket = new DatagramSocket(16789); String msg = "hello"; String IP = " "; InetAddress address = InetAddress.getByName(IP); DatagramPacket outputPacket = new DatagramPacket(msg.getBytes(), msg.length(), address, 12465); socket.send(outputPacket);

UDP Programming // in Java DatagramSocket socket = new DatagramSocket(16789); byte[] data = byte[256]; DatagramPacket inputPacket = new DatagramPacket(data, 256); socket.receive(inputPacket);

UDP Summary UDP is a transport-level protocol Which means that UDP deals with message delivery UDP is a connectionless protocol built on top of IP, which is already connectionless Therefore, UDP is essentially direct IP datagram transmission UDP does not provide a reliable service UDP uses ‘best effort’ delivery If messages do not arrive, the application layer (i.e. the application itself) must determine if and when to retransmit the message