We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byTheresa Yoe
Modified over 2 years ago
Lecture 1 Overview of Socket Programming Erick Pranata © Sekolah Tinggi Teknik Surabaya 1
» Hosts and Routers » Communication Channel » Packets » Protocol » TCP/IP as Protocol Suite ˃Internet Protocol (IP) ˃Transmission Control Protocol (TCP) ˃User Datagram Protocol (UDP) 2 © Sekolah Tinggi Teknik Surabaya
3 David Makofske, Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C#: Practical Guide for Programmers, Morgan Kaufmann, 2004, p. 3
GUI being Displayed Application TCP UDP Transport Internet Protocol Datagram Service Internet Routing Network Interface 4 © Sekolah Tinggi Teknik Surabaya
» Datagram Service ˃Each IP packet has destination address ˃Best-effort Protocol +May lose +Needs to be reordered +Duplicate packets » TCP and UDP utilize Port Numbers » TCP and UDP are called end-to-end transport » TCP provides error recovery on host-to- host channel ˃UDP doesn’t 5 © Sekolah Tinggi Teknik Surabaya
» Internet Address (IP) ˃32-bit (e.g. 10.1.2.3, dotted-quad notation): IPv4 ˃128-bit: IPv6 » Port Number (TCP and UDP) ˃16-bit unsigned binary (1 to 65.535) 6 © Sekolah Tinggi Teknik Surabaya
» Example: host.example.com » IP deals with numerical addresses, not names » TCP/IP doesn’t need names ˃It requires extra work to resolve name into address » Advantages: ˃Easier to remember ˃Insulates users from IP address changes » Name-resolution Service ˃DNS ˃Local Configuration Database 7 © Sekolah Tinggi Teknik Surabaya
» Client program initiates communication » Server program ˃Waits passively ˃Responds to clients that contact it » Example: ˃Database Application ˃Web Application ˃Directory Services 8 © Sekolah Tinggi Teknik Surabaya
» Client needs to know server’s address and port, not vice versa » Server’s address: through name or IP Address » Server’s port number ˃Convention (Internet Assigned Number Authority) +21: FTP +80: HTTP ˃Custom port number 9 © Sekolah Tinggi Teknik Surabaya
» An abstraction which allow an application to send and receive data » Different types of socket correspond with different types of protocol suites » TCP/IP Sockets: ˃Stream Sockets (TCP) ˃Datagram Sockets (UDP) 10 © Sekolah Tinggi Teknik Surabaya
11 © Sekolah Tinggi Teknik Surabaya David Makofske, Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C#: Practical Guide for Programmers, Morgan Kaufmann, 2004, p. 7
» David Makofske, Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C#: Practical Guide for Programmers, Morgan Kaufmann, 2004 12 © Sekolah Tinggi Teknik Surabaya
MCT620 – Distributed Systems
PJC CCNA Semester 2 Ver. 3.0 by William Kelly
Computer Networks TCP/IP Protocol Suite.
Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
IPv4 to IPv6 Network Address Translation. Introduction 4 What is the current internet addressing scheme and what limitations does it face. 4 A new addressing.
Introduction to TCP/IP
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA TCP/IP Protocol Suite and IP Addressing Halmstad University Olga Torstensson
TCP/IP MODEL Maninder Kaur
1 Ports and IPv6. 2 Ports Transmission Control Protocol (TCP) or the User Datagram Protocol (UDP), used for communication Generally speaking, a computer.
Lecture 2b Sockets Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
CPSC 441: Intro, UDP1 Transport Layer Instructor: Carey Williamson Office: ICT Class Location:
Skills: Concepts: layered protocols, transport layer functions, TCP and UDP protocols, isochronous applications This work is licensed under a Creative.
TCP/IP: the transport layer Skills: none IT concepts: layered protocols, transport layer functions, TCP and UDP protocols, isochronous applications This.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Networking Support In Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Vocabulary URL = uniform resource locator: web address protocol –set of rules that networked computers follow in order to share data and coordinate communications.
Chapter Overview TCP/IP Protocols IP Addressing.
Lecture 8 Modeling & Simulation of Communication Networks.
TCP/IP Sockets in Java: Practical Guide for Programmers Kenneth L. Calvert Michael J. Donahoo.
© 2017 SlidePlayer.com Inc. All rights reserved.