PROGRAMMING ASSIGNMENTS 3 & 4 TAO

Size: px
Start display at page:

Download "PROGRAMMING ASSIGNMENTS 3 & 4 TAO"

Transcription

1 PROGRAMMING ASSIGNMENTS 3 & 4 TAO

2 INTRODUCTION Create network programs using Socket APIs Language is not limited C, Python, Java, Your program will interact with the CSE3300 server Server is hosted at tao.ite.uconn.edu, TCP/UDP, 3300/3301. There will also be a (simple) web interface, showing you the console output of server. Some parts require reversed connection (server will connect to you). It means: Your computer must have public IP address (mostly not true at your home, or inside a virtual machine) Easiest way to ensure is to use UConn network (wifi, ethernet, VPN: vpn.uconn.edu) DO NOT hard code your local address. Your program will be tested in a lab computer

3 Your computer tao.ite.uconn.edu Your program(s) CSE3300 Server program Only for debugging Server output Your browser Web service

4 OUTLINE Brief description Example Common mistakes

5 PROGRAMMING ASSIGNMENT 3 Exercise 0 (4-way handshake) Exercise 1 (Listening for a new connection)

6 EXERCISE 0 (4-WAY HANDSHAKE) Create a TCP outgoing connection Send and receive strings Construct strings Parse strings TCP Client CSE3300 Server

7 EXERCISE 0 (DETAILED) 1 - Send: (request type)(ws)(connection specifier)(ws)(usernum)(ws)(username)(newline) ex0 (server endpoint specifier)(ws)(client endpoint specifier) (dotted quad)-(port number) A random number you provide Your name (without space) \n ex I.M.Student\n

8 EXERCISE 0 (DETAILED) 2 - Recv: CSE 3300 Server Tue Feb 10 16:29:00 CDT 2005\n OK 4322 I.M.Student \n (usernum+1) (username) (servernum)

9 EXERCISE 0 (DETAILED) 3 - Send: (request type)(ws)(usernum+2)(ws)(servernum+1)(newline) ex \n

10 EXERCISE 0 (DETAILED) 4 Recv: CSE 3300 Server Tue Feb 10 16:29:02 CDT 2005 OK \n (servernum+2)

11 EXERCISE 0 (DETAILED) Where to get end-point specifier in 1 Send? (server endpoint specifier): after connect(), you can use getpeername() to get remote endpoint information, including IP address and Port number But is also fine if you hard code it in, since it doesn t change. (client endpoint specifier): after connect(), you can use getsockname() to get local endpoint information

12 EXAMPLE PSEUDO-CODE Socket() Connect() Getpeername(), getsockname() Sprintf() Send() Recv() Sscanf() Sprinf() Send() Recv(), maybe check the received string, if you want Close() String concatenates (+) String.split( \n ), split( ) or regex match String concatenates (+)

13 COMMON MISTAKES Wrong IP address (stuck at connect()) IP address of tao.ite.uconn.edu changed last year. (not as in the document) Either resolve name in your program or hardcode updated IP address (you can find out by ping) Endian Socket APIs use network endian big-endian, while most our systems uses little-endian Is common when specifying port number. Extra whitespaces, bad parsing Time syntax contains unknown whitespaces, make sure you only parse the second line

14 EXERCISE 1 (LISTENING FOR A NEW CONNECTION) Create an outgoing TCP connection Create an incoming TCP connection (Create a TCP server and accept) Send and receive strings on both TCP Server TCP Client CSE3300 Server Your (single) program

15 EXERCISE 1 (DETAILED) 1 - Send: (request type)(ws)(connection specifier)(ws)(usernum)(ws)(username)(newline) ex1 (server endpoint specifier)(ws)(your TCP server endpoint specifier) A random number you provide Your name (without space) \n ex I.M.Student\n

16 EXERCISE 1 (DETAILED) 2 - Recv: CSE 3300 Server Tue Feb 10 16:29:00 CDT 2005\n OK 4322 I.M.Student \n (usernum+1) (username) (servernum)

17 EXERCISE 1 (DETAILED) 3 Accept on server socket (it creates a incoming connection, new socket) 4 Recv on the new socket: CSE 3300 server calling (WS) (newservernum)(newline)

18 EXERCISE 1 (DETAILED) 5 Send, on new socket: (servernum+1)(ws)(newservernum+1)(newline)

19 EXERCISE 1 (DETAILED) 6 Recv: CSE 3300 Server Tue Feb 10 16:29:02 CDT 2005 OK \n

20 EXERCISE 1 (DETAILED) How to get your TCP server endpoint specifier? You must: Use getsockname() on the client socket, and get only the IP address The port number you get here is used by client socket, not server socket Use getsockname() on the server socket, and get only the port number The IP address is the bounded address, usually ( ) Combine 2 parts together to form your specifier

21 EXAMPLE PSEUDO-CODE (SINGLE THREAD) sock = socket(), psock= socket() psock.bind( :0 ), psock.listen() sock.connect() sock.getpeername(), sock.getsockname(), psock.getsockname() Construct string sock.send() newsock.recv() Parse strings Construct string newsock.send() sock.recv() sock.close, newsock.close(), psock.close() newsock = psock.accept() sock.recv()

22 COMMON MISTAKES Endian!! Incorrect (your) TCP server endpoint specifier (make sure it looks correct at least) Your TCP server is unreachable from CSE3300 server (firewall, NAT) Your TCP server is not listening when CSE3300 tries to connect

23 PROGRAMMING ASSIGNMENT 4 Exercise 0 (UDP client) Exercise 1 (UDP server) User input UDP Client SSN P.O. Box UDP Server

24 User input EXERCISE 0 (UDP CLIENT) UDP Client SSN P.O. Box CSE3300 Server Create a UDP connection (send/recv) Send and receive bytes / buffer / memory block (16 bytes) Not string anymore struct(c) / struct(python) / ByteBuffer (Java) Include manipulating bits Compute correct checksum Application checksum

25 PSEUDO-CODE (HIGH LEVEL PROCEDURE) User input Construct buffer without checksum (checksum field = 0) Compute checksum and fill in Send buffer Receive buffer Interpret received buffer and print the output

26 MINIMUM ACCESSIBLE SIZE Most languages don t provide bit access in those data structures Some fields must be combined: 16-bit, 8-bit, 8-bit 32-bit 32-bit 16-bit, 16-bit Bit access using bitwise operators AND(&), OR( ), NOT(~), XOR(^) Leftshift(<<, lsh), rightshift(>>, rsh)

27 COMMON MISTAKES Buffer Check by the actual sending size. It should be exactly 16 bytes Endian! Only 16-bit or 32-bit fields need conversion Checksum Overflow wraparound Checksum endian: don t overcorrect it! Bitwise operators

28 EXERCISE 1 (UDP SERVER) Create a server, functioning same as the CSE3300 Server (for UDP client) Dictionary lookup (Fully) interpret client request Identify possible errors Test your UDP server using your own UDP client Construct a type 1 request to ask CSE3300 server to test your User input UDP Client SSN P.O. Box (Your) UDP Server

29 PSEUDO-CODE (HIGH LEVEL PROCEDURE) Load database (from file) Create UDP socket Bind While True: Recvfrom Interpret message, Error checking locate SSN, P.O.Box, construct response Sendto

30 EXERCISE 1 (FINAL TEST) Function test CSE3300 Server SSN P.O. Box Test request (Your) UDP Server Type 1 requester Two programs can be separated

31 COMMON MISTAKES Error handling You can learn from what server tests you Checksum Network connectivity Make sure your UDP server is accessible from CSE3300 server, and you provided the correct address and port in type 1 requester

32 HOW TO ACCESS THESE SUBFIELDS Bitwise operators AND(&), OR( ), NOT(~), XOR(^) Leftshift(<<, lsh), rightshift(>>, rsh) 1 and 1 = 1, 0 and 1 = 0, 1 and 0 = 0, 0 and 0 = 0 1 << 3 = 8 (1000b) 8 >> 3 = 1

33 EXAMPLE: ENCODE (16 bits) 3300 = We want to set 1 at the 15 th bit = = Simplify: 1<<15 = 32768! (1 << 15) The decimal representation doesn t help now.

34 EXAMPLE: DECODE Bitmask 01 & 00 =? & 11 =? & 0011 = 0001 You get only lower 2 bits from 0101!

35 EXAMPLE: DECODE Get 3300 out of You know a number (3300) stores at lower 14 bits You create a bitmask, in decimal it is & =? & =? Simplify: =? = 1 << & ((1<<14)-1) =3300!

36 EXAMPLE: DECODE How to get highest bit out of Create a bitmask: (1<<15) & (1<<15) =? 1<<15 Doesn t matter. Zero or non-zero!

Overview. Setup and Preparation. Exercise 0: Four-way handshake

Overview. Setup and Preparation. Exercise 0: Four-way handshake Overview In this Lab assignment you will develop a simple client program written in Python(use a socket library) to interact with a CSE 3300 Server running on a remote machine. The server, running on the

More information

Overview. Exercise 0: Implementing a Client. Setup and Preparation

Overview. Exercise 0: Implementing a Client. Setup and Preparation Overview This Lab assignment is similar to the previous one, in that you will be implementing a simple clientserver protocol. There are several differences, however. This time you will use the SOCK_DGRAM

More information

Overview. Exercise 0: Implementing a Client. Setup and Preparation

Overview. Exercise 0: Implementing a Client. Setup and Preparation Overview This Lab assignment is similar to the previous one, in that you will be implementing a simple client server protocol. There are several differences, however. This time you will use the SOCK_DGRAM

More information

Internet Connectivity with

Internet Connectivity with Internet Connectivity with Introduction The purpose of this workshop is to help you g et acquainted with the basics of internet connectivity by leveraging ARM mbed tools. If you are not already familiar

More information

COMS3200/7201 Computer Networks 1 (Version 1.0)

COMS3200/7201 Computer Networks 1 (Version 1.0) COMS3200/7201 Computer Networks 1 (Version 1.0) Assignment 3 Due 8pm Monday 29 th May 2017. V1 draft (hopefully final) Note that the assignment has three parts Part A, B & C, each worth 50 marks. Total

More information

Using Kerberos from Python

Using Kerberos from Python Using Kerberos from Python Release 0.1 Fred L. Drake, Jr. and Roger E. Masse Copyright c 1998 by Corporation for National Research Initiatives. May 15, 1998 Corporation for National Research Initiatives

More information

A set of processes distributed over a network that communicate via messages. Processes communicate via services offered by the operating system

A set of processes distributed over a network that communicate via messages. Processes communicate via services offered by the operating system SOCKET Network applications A set of processes distributed over a network that communicate via messages Ex: Browser Web, BitTorrent, ecc Processes communicate via services offered by the operating system

More information

Socket Programming for TCP and UDP

Socket Programming for TCP and UDP CSCI4430 Data Communication and Computer Networks Socket Programming for TCP and UDP ZHANG, Mi Jan. 19, 2017 Outline Socket Programming for TCP Introduction What is TCP What is socket TCP socket programming

More information

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition ELEC / COMP 177 Fall 2014 Some slides from Kurose and Ross, Computer Networking, 5 th Edition Project #1 Starts in one week Is your Linux environment all ready? Bring your laptop Work time after quick

More information

Transport Layer (TCP/UDP)

Transport Layer (TCP/UDP) Transport Layer (TCP/UDP) Where we are in the Course Moving on up to the Transport Layer! Application Transport Network Link Physical CSE 461 University of Washington 2 Recall Transport layer provides

More information

4. The transport layer

4. The transport layer 4.1 The port number One of the most important information contained in the header of a segment are the destination and the source port numbers. The port numbers are necessary to identify the application

More information

Socket Programming. Omer Ozarslan

Socket Programming. Omer Ozarslan Socket Programming Omer Ozarslan omer@utdallas.edu 1 Outline Background Using TCP Example: hello_tcp Using UDP Example: hello_udp Blocking Calls and Threads Some Advises Code Examples Questions 2 Socket

More information

SOCKET. Valerio Di Valerio

SOCKET. Valerio Di Valerio SOCKET Valerio Di Valerio The Problem! Communication between computers connected to a network Network Network applications! A set of processes distributed over a network that communicate via messages!

More information

Cookie/TCP Protocol Specification

Cookie/TCP Protocol Specification CS 471G Computer Networks Spring 2013 Cookie/TCP Protocol Specification Version 1.3.0 11 April 2013 1 Overview This document specifies Version 1.3.0 of the Cookie Protocol, which runs over TCP. This toy

More information

A Client-Server Exchange

A Client-Server Exchange Socket programming A Client-Server Exchange A server process and one or more client processes Server manages some resource. Server provides service by manipulating resource for clients. 1. Client sends

More information

P2P Programming Assignment

P2P Programming Assignment P2P Programming Assignment Overview This project is to implement a Peer-to-Peer (P2P) networking project similar to a simplified Napster. You will provide a centralized server to handle cataloging the

More information

C 1. Recap: Finger Table. CSE 486/586 Distributed Systems Remote Procedure Call. Chord: Node Joins and Leaves. Recall? Socket API

C 1. Recap: Finger Table. CSE 486/586 Distributed Systems Remote Procedure Call. Chord: Node Joins and Leaves. Recall? Socket API Recap: Finger Table Finding a using fingers CSE 486/586 Distributed Systems Remote Procedure Call Steve Ko Computer Sciences and Engineering University at Buffalo N102" 86 + 2 4! N86" 20 +

More information

CSE 461 The Transport Layer

CSE 461 The Transport Layer CSE 461 The Transport Layer The Transport Layer Focus How do we (reliably) connect processes? This is the transport layer Topics Naming end points UDP: unreliable transport TCP: reliable transport Connection

More information

CSE 461 Module 11. Connections

CSE 461 Module 11. Connections CSE 461 Module 11 Connections This Time More on the Transport Layer Focus How do we connect processes? Topics Naming processes Connection setup / teardown Flow control Application Presentation Session

More information

UNIT IV- SOCKETS Part A

UNIT IV- SOCKETS Part A 1. Define sockets - SOCKETS Part A A socket is a construct to provide a communication between computers. It hides the underlying networking concepts and provides us with an interface to communicate between

More information

Network Security. Introduction to networks. Radboud University, The Netherlands. Autumn 2015

Network Security. Introduction to networks. Radboud University, The Netherlands. Autumn 2015 Network Security Introduction to networks Radboud University, The Netherlands Autumn 2015 What is a (computer) network Definition A computer network is two or more computers that are connected, so that

More information

NetCheck: Network Diagnoses from Blackbox Traces

NetCheck: Network Diagnoses from Blackbox Traces NetCheck: Network Diagnoses from Blackbox Traces Yanyan Zhuang *^, Eleni Gessiou *, Fraida Fund *, Steven Portzer @, Monzur Muhammad^, Ivan Beschastnikh^, Justin Cappos *! (*) New York University, (^)

More information

9th Slide Set Computer Networks

9th Slide Set Computer Networks Prof. Dr. Christian Baun 9th Slide Set Computer Networks Frankfurt University of Applied Sciences WS1718 1/49 9th Slide Set Computer Networks Prof. Dr. Christian Baun Frankfurt University of Applied Sciences

More information

How do we troubleshoot this? How does Esmeralda know how to fix this?

How do we troubleshoot this? How does Esmeralda know how to fix this? How do we troubleshoot this? How does Esmeralda know how to fix this? 2 Goal Find bugs in networked applications Large complex unknown applications!!! Large complex unknown networks!!! Understandable output

More information

(Refer Slide Time: 1:09)

(Refer Slide Time: 1:09) Computer Networks Prof. S. Ghosh Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecturer # 30 UDP and Client Server Good day, today we will start our discussion

More information

Peer to Peer Instant Messaging

Peer to Peer Instant Messaging Peer to Peer Instant Messaging Assignment in Computer Networks I, Department of Information Technology, Uppsala University. Overview In this assignment you will implement an instant messaging system that

More information

CS 417 9/18/17. Paul Krzyzanowski 1. Socket-based communication. Distributed Systems 03. Remote Procedure Calls. Sample SMTP Interaction

CS 417 9/18/17. Paul Krzyzanowski 1. Socket-based communication. Distributed Systems 03. Remote Procedure Calls. Sample SMTP Interaction Socket-based communication Distributed Systems 03. Remote Procedure Calls Socket API: all we get from the to access the network Socket = distinct end-to-end communication channels Read/write model Line-oriented,

More information

CptS 360 (System Programming) Unit 17: Network IPC (Sockets)

CptS 360 (System Programming) Unit 17: Network IPC (Sockets) CptS 360 (System Programming) Unit 17: Network IPC (Sockets) Bob Lewis School of Engineering and Applied Sciences Washington State University Spring, 2018 Motivation Processes need to talk to each other

More information

Distributed Systems. 03. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Fall 2017

Distributed Systems. 03. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Fall 2017 Distributed Systems 03. Remote Procedure Calls Paul Krzyzanowski Rutgers University Fall 2017 1 Socket-based communication Socket API: all we get from the OS to access the network Socket = distinct end-to-end

More information

Types (Protocols) Associated functions Styles We will look at using sockets in C Java sockets are conceptually quite similar

Types (Protocols) Associated functions Styles We will look at using sockets in C Java sockets are conceptually quite similar Socket Programming What is a socket? Using sockets Types (Protocols) Associated functions Styles We will look at using sockets in C Java sockets are conceptually quite similar - Advanced Data Communications:

More information

CSE 422 Jeopardy. Sockets TCP/UDP IP Routing Link $100 $200 $300 $400. Sockets - $100

CSE 422 Jeopardy. Sockets TCP/UDP IP Routing Link $100 $200 $300 $400. Sockets - $100 CSE 422 Jeopardy Sockets TCP/UDP IP Routing Link $100 $100 $100 $100 $100 $200 $200 $200 $200 $200 $300 $300 $300 $300 $300 $400 $400 $400 $400 $400 $500 $500 $500 $500 $500 Sockets - $100 True or False:

More information

Computer Systems and Networks

Computer Systems and Networks University of the Pacific LECTURE 12: PYTHON BYTES, TCP/IP (LAB 08) Computer Systems and Networks Dr. Pallipuram (vpallipuramkrishnamani@pacific.edu) Today s Agenda Python exercises to simulate network

More information

Distributed Systems 8. Remote Procedure Calls

Distributed Systems 8. Remote Procedure Calls Distributed Systems 8. Remote Procedure Calls Paul Krzyzanowski pxk@cs.rutgers.edu 10/1/2012 1 Problems with the sockets API The sockets interface forces a read/write mechanism Programming is often easier

More information

CSC 4900 Computer Networks: Transport Layer

CSC 4900 Computer Networks: Transport Layer CSC 4900 Computer Networks: Transport Layer Professor Henry Carter Fall 2017 Last Time... Sockets programming API TCP and UDP look different. Remember, there is no connect() in UDP - just start sending

More information

EECS122 Communications Networks Socket Programming. Jörn Altmann

EECS122 Communications Networks Socket Programming. Jörn Altmann EECS122 Communications Networks Socket Programming Jörn Altmann Questions that will be Addressed During the Lecture What mechanisms are available for a programmer who writes network applications? How to

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK UNIT 1

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK UNIT 1 CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK SUBJECT: NETWORK PROGRAMMING/MC9241 YEAR/ SEM: II /I V 1 CCET UNIT 1 1. What are the steps involved in obtaining a shared

More information

Distributed Systems. How do regular procedure calls work in programming languages? Problems with sockets RPC. Regular procedure calls

Distributed Systems. How do regular procedure calls work in programming languages? Problems with sockets RPC. Regular procedure calls Problems with sockets Distributed Systems Sockets interface is straightforward [connect] read/write [disconnect] Remote Procedure Calls BUT it forces read/write mechanism We usually use a procedure call

More information

Interprocess Communication

Interprocess Communication Interprocess Communication B.Ramamurthy CSE421 11/5/02 B.R 1 Topics Pipes (process level) Sockets (OS level) Distributed System Methods (Java s) Remote Method Invocation (PL Level) Other communication

More information

1. Purpose. 2. Description Run-Time Issues Overview

1. Purpose. 2. Description Run-Time Issues Overview 1. Purpose CPS 470/570: Computer Networks Assignment 4, due 11:55 PM, 4-19-2017 Receive an F for this course if dishonesty occurs Receive 5 bonus points if submit it without errors one day before the deadline

More information

CS 43: Computer Networks. 15: Transport Layer & UDP October 5, 2018

CS 43: Computer Networks. 15: Transport Layer & UDP October 5, 2018 CS 43: Computer Networks 15: Layer & UDP October 5, 2018 Reading Quiz Lecture 15 - Slide 2 Layer Moving down a layer. Current perspective: lication is the boss Usually executing within the OS kernel. The

More information

Z/TPF TCP/IP SOCK Driver 12/14/10. z/tpf TCP/IP SOCKET Driver Users Guide. Copyright IBM Corp. 2010

Z/TPF TCP/IP SOCK Driver 12/14/10. z/tpf TCP/IP SOCKET Driver Users Guide. Copyright IBM Corp. 2010 z/tpf TCP/IP SOCKET Driver Users Guide Copyright IBM Corp. 2010 1. 1.0 Introduction Z/TPF TCP/IP SOCK Driver 12/14/10 The socket driver consists of multiple DLMs that issue TCP/IP API calls to send and

More information

CS UDP: User Datagram Protocol, Other Transports, Sockets. congestion worse);

CS UDP: User Datagram Protocol, Other Transports, Sockets. congestion worse); CS314-26 UDP: User Datagram Protocol, Other Transports, Sockets! IP is an unreliable datagram protocol " congestion or transmission errors cause lost packets " multiple routes may lead to out-of-order

More information

Transport Layer. Chapter 3: Transport Layer

Transport Layer. Chapter 3: Transport Layer Transport Layer EECS 3214 Slides courtesy of J.F Kurose and K.W. Ross, All Rights Reserved 29-Jan-18 1-1 Chapter 3: Transport Layer our goals: understand principles behind layer services: multiplexing,

More information

Project 1: A Web Server Called Liso

Project 1: A Web Server Called Liso Project 1: A Web Server Called Liso 15-441/641 Computer Networks Kenneth Yang Viswesh Narayanan "What happens when you type google.com into your browser's address box and press enter?"... Establish a TCP

More information

CS 118 Project Phase 2 P2P Networking

CS 118 Project Phase 2 P2P Networking CS 118 Project Phase 2 P2P Networking Due Monday, March 15 th at 11:59pm Boelter Hall 4428, Box D3/C4 and via Electronic Submission Overview In this phase you will extend your work from Phase 1 to create

More information

Christian Tschudin (basierend auf einem Foliensatz von C. Jelger und T. Meyer) Departement Mathematik und Informatik, Universität Basel

Christian Tschudin (basierend auf einem Foliensatz von C. Jelger und T. Meyer) Departement Mathematik und Informatik, Universität Basel Internettechnologien (CS262) Socket Programming in C 4. März 2015 Christian Tschudin (basierend auf einem Foliensatz von C. Jelger und T. Meyer) Departement Mathematik und Informatik, Universität Basel

More information

COMP90015: Distributed Systems Assignment 1 Multi-threaded Dictionary Server (15 marks)

COMP90015: Distributed Systems Assignment 1 Multi-threaded Dictionary Server (15 marks) COMP90015: Distributed Systems Assignment 1 Multi-threaded Dictionary Server (15 marks) Problem Description Using a client-server architecture, design and implement a multi-threaded server that allows

More information

CSE 461 Connections. David Wetherall

CSE 461 Connections. David Wetherall CSE 461 Connections David Wetherall djw@cs.washington.edu Connections Focus How do we (reliably) connect processes? This is the transport layer Topics Naming processes TCP / UDP Connection setup / teardown

More information

CSE 461 Module 10. Introduction to the Transport Layer

CSE 461 Module 10. Introduction to the Transport Layer CSE 461 Module 10 Introduction to the Transport Layer Last Time We finished up the Network layer Internetworks (IP) Routing (DV/RIP, LS/OSPF, BGP) It was all about routing: how to provide end-to-end delivery

More information

CSE 333 Lecture server sockets

CSE 333 Lecture server sockets CSE 333 Lecture 15 -- server sockets Steve Gribble Department of Computer Science & Engineering University of Washington Administrivia HW3 out later this week We will have 2 exercises this week - today

More information

Cisco TelePresence Server on Virtual Machine

Cisco TelePresence Server on Virtual Machine Cisco TelePresence Server on Virtual Machine Printed Help 4.0 D15075 April 2014 Cisco TelePresence Server on Virtual Machine Printed Help (4.0) Page 1 of 77 Contents Introduction 4 Logging into the web

More information

Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Printable Help (4.0) Page 1 of 92

Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Printable Help (4.0) Page 1 of 92 Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Printable Help 4.0 D15072 April 2014 Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Printable Help (4.0) Page

More information

Hybrid of client-server and P2P. Pure P2P Architecture. App-layer Protocols. Communicating Processes. Transport Service Requirements

Hybrid of client-server and P2P. Pure P2P Architecture. App-layer Protocols. Communicating Processes. Transport Service Requirements Announcements CS 5565 Network Architecture and Protocols Lecture 5 Godmar Back Problem Set 1 due Feb 17 Project 1 handed out shortly 2 Layer The Layer Let s look at some s (in keeping with top-down) architectures:

More information

Tutorial on Socket Programming

Tutorial on Socket Programming Tutorial on Socket Programming Computer Networks - CSC 458 Department of Computer Science Hao Wang (Slides are mainly from Seyed Hossein Mortazavi, Monia Ghobadi, and Amin Tootoonchian, ) 1 Outline Client-server

More information

CS144 Lab 4 NAT. Feb., 2015

CS144 Lab 4 NAT. Feb., 2015 CS144 Lab 4 NAT Feb., 2015 Overview You re going to write a simplified NAT(+Router) Recall Lab 3 StaMc topology + StaMc roumng table IP RouMng + ICMP messages Lab 4 Take your Lab 3 NAT handling ICMP and

More information

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur QUESTION BANK SRM Nagar, Kattankulathur 603 203 IV SEMESTER MC7404 NETWORK PROGRAMMING Regulation 2013 Academic Year 2017 18 Prepared by Mr. M.Asan Nainar, Assistant Professor/MCA UNIT I - INTRODUCTION Overview of UNIX

More information

CSE 489/589 Recitation TCP Socket & Synchronous I/O Multiplexing

CSE 489/589 Recitation TCP Socket & Synchronous I/O Multiplexing Recitation TCP Socket & Synchronous I/O Multiplexing Wenjun Jiang Computer Sciences and Engineering University at Buffalo Information Instructor: Dr. Lu Su Office: 321 Davis Hall Email: lusu [at] buffalo.edu

More information

The Application Layer: Sockets Wrap-Up

The Application Layer: Sockets Wrap-Up Overview The Application Layer: Sockets Wrap-Up CSC 249 February 13, 2017 qreview the Socket API v Defined for UNIX v Used by most operating systems qreview TCP and UDP examples and flow charts q Methods

More information

History Page. Barracuda NextGen Firewall F

History Page. Barracuda NextGen Firewall F The Firewall > History page is very useful for troubleshooting. It provides information for all traffic that has passed through the Barracuda NG Firewall. It also provides messages that state why traffic

More information

Networked Applications: Sockets. End System: Computer on the Net

Networked Applications: Sockets. End System: Computer on the Net Networked Applications: Sockets Topics Programmer s view of the Internet Sockets interface End System: Computer on the Net Internet Also known as a host 2 Page 1 Clients and Servers Client program Running

More information

Presentation Services. Presentation Services: Motivation

Presentation Services. Presentation Services: Motivation Presentation Services need for a presentation services ASN.1 declaring data type encoding data types implementation issues reading: Tannenbaum 7.3.2 Presentation Services: Motivation Question: suppose

More information

ECE 435 Network Engineering Lecture 11

ECE 435 Network Engineering Lecture 11 ECE 435 Network Engineering Lecture 11 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 11 October 2018 Midterm on Tues Announcements 1 HW#4 Review maine.edu created? What is a

More information

Project-2 Continued. Subhojeet Mukherjee CSU Database and Security Research Group

Project-2 Continued. Subhojeet Mukherjee CSU Database and Security Research Group Project-2 Continued Subhojeet Mukherjee CSU Database and Security Research Group Storyboard IP: 129.82.34.24 IP: 129.62.14.90 IP: 219.65.74.90 IP: 219.62.21.91 I know what you did last summer from this

More information

ICS 451: Today's plan

ICS 451: Today's plan ICS 451: Today's plan ICMP ping traceroute ARP DHCP summary of IP processing ICMP Internet Control Message Protocol, 2 functions: error reporting (never sent in response to ICMP error packets) network

More information

CSE398: Network Systems Design

CSE398: Network Systems Design CSE398: Network Systems Design Instructor: Dr. Liang Cheng Department of Computer Science and Engineering P.C. Rossin College of Engineering & Applied Science Lehigh University February 7, 2005 Outline

More information

Operating Systems. 18. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Spring /20/ Paul Krzyzanowski

Operating Systems. 18. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Spring /20/ Paul Krzyzanowski Operating Systems 18. Remote Procedure Calls Paul Krzyzanowski Rutgers University Spring 2015 4/20/2015 2014-2015 Paul Krzyzanowski 1 Remote Procedure Calls 2 Problems with the sockets API The sockets

More information

The Application Layer: Sockets Wrap-Up

The Application Layer: Sockets Wrap-Up The Application Layer: Sockets Wrap-Up CSC 249 February 13, 2018 slides mostly from J.F Kurose and K.W. Ross,copyright 1996-2012 1 Overview qreview the Socket API vdefined for UNIX v Used by most operating

More information

User Datagram Protocol

User Datagram Protocol Topics Transport Layer TCP s three-way handshake TCP s connection termination sequence TCP s TIME_WAIT state TCP and UDP buffering by the socket layer 2 Introduction UDP is a simple, unreliable datagram

More information

Application Level Protocols

Application Level Protocols Application Level Protocols 2 Application Level Protocols Applications handle different kinds of content e.g.. e-mail, web pages, voice Different types of content require different kinds of protocols Application

More information

Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode

Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Printable Online Help Last Updated: April 2016 Software version:4.3 Cisco Systems, Inc. www.cisco.com 1 2 Contents Introduction 5 Logging

More information

SOCKETS. COMP750 Distributed Systems

SOCKETS. COMP750 Distributed Systems SOCKETS COMP750 Distributed Systems Sockets The Socket library is a traditional Application Program Interface (API) to the transport layer. Sockets were originally implemented in Unix systems and have

More information

Network Programming in Python. based on Chun, chapter 2; plus material on classes

Network Programming in Python. based on Chun, chapter 2; plus material on classes Network Programming in Python based on Chun, chapter 2; plus material on classes What is Network Programming? Writing programs that communicate with other programs Communicating programs typically on different

More information

Introduction to Python Network Programming for Network Architects and Engineers

Introduction to Python Network Programming for Network Architects and Engineers Introduction to Python Network Programming for Network Architects and Engineers Vince Kelly TSA Session ID: DEVNET-1040 Agenda Python Basics The Python Socket Module Security Higher Layer Protocols & APIs:

More information

Computer Security and Privacy

Computer Security and Privacy CSE P 590 / CSE M 590 (Spring 2010) Computer Security and Privacy Tadayoshi Kohno Thanks to Dan Boneh, Dieter Gollmann, John Manferdelli, John Mitchell, Vitaly Shmatikov, Bennet Yee, and many others for

More information

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin, Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin, ydlin@cs.nctu.edu.tw Chapter 1: Introduction 1. How does Internet scale to billions of hosts? (Describe what structure

More information

Application Rules - Allows the users to add or modify or remove Custom ruleset for firewall settings.

Application Rules - Allows the users to add or modify or remove Custom ruleset for firewall settings. Application Rules - Allows the users to add or modify or remove Custom ruleset for firewall settings. Step [1]: Go to Endpoint Manager> CONFIGURATION TEMPLATES > Profiles Step [2]: Click Create icon and

More information

Avro Specification

Avro Specification Table of contents 1 Introduction...2 2 Schema Declaration... 2 2.1 Primitive Types... 2 2.2 Complex Types...2 2.3 Names... 5 3 Data Serialization...6 3.1 Encodings... 6 3.2 Binary Encoding...6 3.3 JSON

More information

Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode

Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Cisco TelePresence Server 7010 and MSE 8710 in Remotely Managed Mode Printable Online Help Software version:4.2 Cisco Systems, Inc. www.cisco.com 1 2 Introduction This document contains the text of the

More information

Internet Technology. 06. Exam 1 Review Paul Krzyzanowski. Rutgers University. Spring 2016

Internet Technology. 06. Exam 1 Review Paul Krzyzanowski. Rutgers University. Spring 2016 Internet Technology 06. Exam 1 Review Paul Krzyzanowski Rutgers University Spring 2016 March 2, 2016 2016 Paul Krzyzanowski 1 Question 1 Defend or contradict this statement: for maximum efficiency, at

More information

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data ELEX 4550 : Wide Area Networks 2015 Winter Session UDP and TCP is lecture describes the two most common transport-layer protocols used by IP networks: the User Datagram Protocol (UDP) and the Transmission

More information

SELinux. Don Porter CSE 506

SELinux. Don Porter CSE 506 SELinux Don Porter CSE 506 MAC vs. DAC By default, Unix/Linux provides Discretionary Access Control The user (subject) has discretion to set security policies (or not) Example: I may chmod o+a the file

More information

Command Manual Network Protocol. Table of Contents

Command Manual Network Protocol. Table of Contents Table of Contents Table of Contents Chapter 1 IP Address Configuration Commands... 1-1 1.1 IP Address Configuration Commands... 1-1 1.1.1 display ip host... 1-1 1.1.2 display ip interface... 1-1 1.1.3

More information

CSEP 561 Connections. David Wetherall

CSEP 561 Connections. David Wetherall CSEP 561 Connections David Wetherall djw@cs.washington.edu Connections Focus How do we (reliably) connect processes? This is the transport layer Topics Naming processes Connection setup / teardown Sliding

More information

CSEP 561 Connections. David Wetherall

CSEP 561 Connections. David Wetherall CSEP 561 Connections David Wetherall djw@cs.washington.edu Connections Focus How do we (reliably) connect processes? This is the transport layer Topics Naming processes TCP / UDP Connection setup / teardown

More information

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk Date: January 17 th 2006 at 14:00 18:00 SOLUTIONS 1. General (5p) a) Draw the layered

More information

Foreword by Katie Moussouris... Acknowledgments... xvii. Introduction...xix. Chapter 1: The Basics of Networking... 1

Foreword by Katie Moussouris... Acknowledgments... xvii. Introduction...xix. Chapter 1: The Basics of Networking... 1 Brief Contents Foreword by Katie Moussouris.... xv Acknowledgments... xvii Introduction...xix Chapter 1: The Basics of Networking... 1 Chapter 2: Capturing Application Traffic... 11 Chapter 3: Network

More information

Managing External Identity Sources

Managing External Identity Sources CHAPTER 5 The Cisco Identity Services Engine (Cisco ISE) integrates with external identity sources to validate credentials in user authentication functions, and to retrieve group information and other

More information

External Data Representation (XDR)

External Data Representation (XDR) External Data Representation (XDR) Prof. Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Taipei, TAIWAN NTUT, TAIWAN 1 Introduction This chapter examines

More information

CSE 333 Lecture server sockets

CSE 333 Lecture server sockets CSE 333 Lecture 18 -- server sockets Hal Perkins Department of Computer Science & Engineering University of Washington Administrivia HW4 posted now, due last Thursday of the quarter Exercise covering client-side

More information

Connections. Topics. Focus. Presentation Session. Application. Data Link. Transport. Physical. Network

Connections. Topics. Focus. Presentation Session. Application. Data Link. Transport. Physical. Network Connections Focus How do we connect processes? This is the transport layer Topics Naming processes Connection setup / teardown Flow control Application Presentation Session Transport Network Data Link

More information

TCP/IP and the OSI Model

TCP/IP and the OSI Model TCP/IP BASICS TCP/IP and the OSI Model TCP/IP BASICS The network protocol of the Internet Composed of six main protocols IP Internet Protocol UDP User Datagram Protocol TCP Transmission Control Protocol

More information

SOCKET PROGRAMMING. What is a socket? Using sockets Types (Protocols) Associated functions Styles

SOCKET PROGRAMMING. What is a socket? Using sockets Types (Protocols) Associated functions Styles LABORATORY SOCKET PROGRAMMING What is a socket? Using sockets Types (Protocols) Associated functions Styles 2 WHAT IS A SOCKET? An interface between application and network The application creates a socket

More information

Unix Network Programming

Unix Network Programming Unix Network Programming Remote Communication Dr Hamed Vahdat-Nejad Network Applications Types: Client Server Exampels: A web browser (client) Ap communicating with a Web server An FTP client Fetching

More information

UNIX Sockets. Developed for the Azera Group By: Joseph D. Fournier B.Sc.E.E., M.Sc.E.E.

UNIX Sockets. Developed for the Azera Group By: Joseph D. Fournier B.Sc.E.E., M.Sc.E.E. UNIX Sockets Developed for the Azera Group By: Joseph D. Fournier B.Sc.E.E., M.Sc.E.E. Socket and Process Communication application layer User Process Socket transport layer (TCP/UDP) network layer (IP)

More information

Lab - Using Wireshark to Examine a UDP DNS Capture

Lab - Using Wireshark to Examine a UDP DNS Capture Topology Objectives Part 1: Record a PC s IP Configuration Information Part 2: Use Wireshark to Capture DNS Queries and Responses Part 3: Analyze Captured DNS or UDP Packets Background / Scenario If you

More information

The Norwegian text is authoritative, this translation is provided for your convenience.

The Norwegian text is authoritative, this translation is provided for your convenience. Contents 1 INF3190 Home exam 2 in English 1 1.1 Formalities............................ 1 1.2 Exercise.............................. 1 1.2.1 Details........................... 2 1.2.2 You shall deliver

More information

Computer Networks with (Network Programming)

Computer Networks with (Network Programming) Computer Networks with (Network Programming) Introduction to Programming with UDP Lecture #8 Department of Electrical and Electronics Engineering Çukurova University TCP vs UDP Both use port numbers Application-specific

More information

Lab - Using Wireshark to Examine a UDP DNS Capture

Lab - Using Wireshark to Examine a UDP DNS Capture Topology Objectives Part 1: Record a PC s IP Configuration Information Part 2: Use Wireshark to Capture DNS Queries and Responses Part 3: Analyze Captured DNS or UDP Packets Background / Scenario If you

More information

CS 351 Design of Large Programs Java and Socket Communication

CS 351 Design of Large Programs Java and Socket Communication CS 351 Design of Large Programs Java and Socket Communication Instructor: Joel Castellanos e-mail: joel@unm.edu 4/6/2017 Transmission Control Protocol The Transmission Control Protocol (TCP) is one of

More information

COMP/ELEC 429/556 Project 2: Reliable File Transfer Protocol

COMP/ELEC 429/556 Project 2: Reliable File Transfer Protocol COMP/ELEC 429/556 Project 2: Reliable File Transfer Protocol Assigned: Thu, 28 September Due: 11:55pm, Tue, 24 October 1 Description The objective of this project is to give you hands-on experience with

More information