Introduction to Networking and TCP/IP J. H. Wang Jun. 8, 2005.

Slides:



Advertisements
Similar presentations
Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
Advertisements

Network Services Networking for Home & Small Business.
Socket Programming.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 2: Internet Protocols.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Introduction to Transport Layer. Transport Layer: Motivation A B R1 R2 r Recall that NL is responsible for forwarding a packet from one HOST to another.
CLIENT / SERVER ARCHITECTURE AYRİS UYGUR & NİLÜFER ÇANGA.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
I NTRODUCTION OF S OCKET P ROGRAMMING L.Aseel AlTurki King Saud University.
Chapter Overview TCP/IP Protocols IP Addressing.
1 TCP/IP architecture A set of protocols allowing communication across diverse networks Out of ARPANET Emphasize on robustness regarding to failure Emphasize.
CS 350 Chapter-6. A brief history of TCP/IP 1983 TCP/IP came to ARPAnet ARPAnet and MILNET dissolved in 1990 BSD UNIX.
Chapter Eleven An Introduction to TCP/IP. Objectives To compare TCP/IP’s layered structure to OSI To review the structure of an IP address To look at.
CHAPTER 2 PCs on the Internet Suraya Alias. The TCP/IP Suite of Protocols Internet applications – client/server applications The client requested data.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Lesson 24. Protocols and the OSI Model. Objectives At the end of this Presentation, you will be able to:
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
Chapter 9.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
Network Communications Technology Chapter 19 Internet Architecture and TCP/IP.
TCP/IP and the Internet ARPANET (1969) –R&D network funded by DARPA. –Packet Switching Survive nuclear war. –Experimental to operational (1975). –Not suitable.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Network Services Networking for Home & Small Business.
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
Component 9 – Networking and Health Information Exchange Unit 1-1 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
Chapter 4 TCP/IP Overview Connecting People To Information.
TCP/IP fundamentals Unit objectives Discuss the evolution of TCP/IP Discuss TCP/IP fundamentals.
TCP/IP Transport and Application (Topic 6)
Introduction to Network Programming with Sockets Network Programming Kansas State University at Salina.
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
1 UDP : User Datagram Protocol Computer Network System Sirak Kaewjamnong.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Data Communications and Networks
TCP/IP MODEL   Short overview for OSI model;  What is TCP/IP model?;  How is divided;  The TCP/IP structure;  The Application Layer;  The Transport.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 3: TCP/IP Architecture.
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.
TCP =Transmission Control Protocol IP = Internet Protocol TCP/IP Protocol.
Socket Programming.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Network Programming By J. H. Wang Nov. 21, Outline Introduction to network programming Socket programming –BSD Socket –WinSock –Java Socket Exercises.
Cisco Discovery Semester 1 Chapter 6 JEOPADY RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
Transmission Control Protocol (TCP) Internet Protocol (IP)
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
Chapter Overview of TCP/IP.
Fall 2004FSU CIS 5930 Internet Protocols1 TCP/IP Protocol Suite Reading: Chapter 13.
Network Basics CS490 - Security in Computing Copyright © 2005 by Scott Orr and the Trustees of Indiana University.
TCP/IP Protocol Suite ©Richard L. Goldman September 25, 2002.
Midterm Review. Chapter 1 Internet Concepts Applications, End-hosts, Routers, Switches, Communication Links Overall architecture How they are organized.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
1 Network Communications A Brief Introduction. 2 Network Communications.
Lecture 4 : Network Architectures (cont..) 1. 2 Summary of OSI Layers.
Client-server communication Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
SOCKET PROGRAMMING Presented By : Divya Sharma.
Introduction to Networks
Networking Based Applications
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Introduction to Networks
Introduction to TCP/IP
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.
27.
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Presentation transcript:

Introduction to Networking and TCP/IP J. H. Wang Jun. 8, 2005

Outline Networking Basics Sockets Remote Procedure Call

Networking Layering –ISO OSI 7-layer model Physical, data link, network, transport, session, presentation, application –TCP/IP model Link, network, transport, application

TCP/IP Layering (cont.) Network Layer Transport Layer Application Layer Link Layer ARP IP TCP/UDP HTTP/FTP/SMTP TCP/IP protocol stack Demultiplexing Encapsulation Ethernet app

Common Protocols in TCP/IP Protocol Stack ARP: Address Resolution Protocol IP: Internet Protocol (RFC 791) UDP: User Datagram Protocol (RFC 768) TCP: Transmission Control Protocol (RFC 793)

Encapsulation

Protocol Headers Ethernet header –MAC (Ethernet) addresses IP header –IP addresses, protocol TCP/UDP header –Port numbers

ARP X AB Ethernet (CSMA/CD) Where is X? X is here. IP address  Ethernet address

Ethernet Header

IP Header

UDP Header

TCP Header

Demultiplexing

IP Addresses IPv4 address –Dotted decimal: Unicast, broadcast, and multicast Private address space – (10/8 prefix) – (172.16/12 prefix) – ( /16 prefix) Class A, B, C, D, E

IP Addresses (cont.)

Port Numbers Well-known ports: –HTTP: 80 –SMTP: 25 –Telnet: 23 –FTP: 21 (control), 20 (data) Others –Gnutella: 6346, 6347 Client vs. server ports

Useful Tools Packet sniffer or analyzer –Tcpdump –Ethereal –NetXRay Packet generator –Socket programming Packet capture libraries –Libpcap & WinPcap

Example Scenario: Web Browsing Client Server ( , 80)

Example Scenario: Web Browsing Client Server ( , 80) DNS Server

Example Scenario: Web Browsing Client connect( , 80) Server ( , 80)

DNS Name Resolution X ADNS Ethernet (CSMA/CD) Where is X is hostname  IP address

ARP (Revisited) X AB Ethernet (CSMA/CD) Where is ? is 00:C0:EB:00:8B:68 IP address  Ethernet address :C0:EB:00:8B:68

Sockets ARP: Ethernet (hardware, MAC) address IP: IP address TCP/UDP: port number Port vs. service Sockets: {IP src, port src, IP dest, port dest }

Socket Connection Client connect( , 80) Server ( , 7890) ( , 80)

Socket Programming UNIX: BSD Socket API (in C) –socket(), bind(), listen(), accept(), connect(), send(), recv(), sendto(), recvfrom(), select(), … Java Socket API –java.net.Socket Perl, Python, …

Remote Procedure Call RFC 1831 – RPC v2 RFC XDR: External Data Representation Standard –A machine-independent representation of data Local vs. remote procedure calls

RPC UDP/TCP transport –RPC/UDP: connectionless, fast –RPC/TCP: connection-oriented, slower Portmap service (or portmapper ) –Port 111 –RFC 1833

RPC

RPC Portmapping Client connect( , 111) Server P 25 Port P connect( , P)

RPC Programming rpcgen Applications: NFS (Network File System), …

Programming Exercises Packet sending/receiving FTP client/server –FTP (File Transfer Protocol): RFC 959 HTTP (Web) client/server –HTTP (HyperText Transfer Protocol) 1.1: RFC 2616 Mail client/server –SMTP (Simple Mail Transfer Protocol): RFC 2821 –POP3 (Post Office Protocol Version 3): RFC 1939 –IMAP4 (Internet Message Access Protocol – Verison 4rev1): RFC 3501 –MIME, … …

Further Readings W. Richard Stallings, B. Fenner, A. M. Rudolf, UNIX Network Programming, Vol. 1: the Sockets Networking API, 3rd ed., Addison-Wesley, E. R. Harold, Java Network Programming, 3rd ed., O’Reilly, RFCs (Request for Comments),