Network Programming (3)

Slides:



Advertisements
Similar presentations
Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support.
Advertisements

Categories of I/O Devices
The Binary Numbering Systems
STFTP (Simplified Trivial File Transfer Protocol) MODULE #1.
Introduction to C Programming Overview of C Hello World program Unix environment C programming basics.
CSE 143 Lecture 18 Huffman slides created by Ethan Apter
Memory & Storage Architecture Seoul National University Computer Architecture “ Bomb Lab Hints” 2nd semester, 2014 Modified version : The original.
Hamming It Up with Hamming Codes CSE 461 Section Week 3.
Network Programming (2) CSE 132. iClicker/WUTexter Question Which protocol is responsible for in-order delivery of data bytes traveling over the Internet?
Number Systems and Codes In PLC
TCP Sockets Reliable Communication. TCP As mentioned before, TCP sits on top of other layers (IP, hardware) and implements Reliability In-order delivery.
1. Fundamentals of Computer Systems Define a computer system Computer Systems in the modern world Professional standards for computer systems Ethical,
Simple Mail Transfer Protocol (SMTP)
Network Programming CSE 132. iClicker/WUTexter Question How many of the following statements are true? In the model-view-controller paradigm, a swing.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
1 3 Computing System Fundamentals 3.5 Data Representation.
Required Functions for Program 3 int readUntilValidBaseRead( ); int readNumbersReturningValue( int base ); int decimalValueOf( char chDigit ); bool isValid(
Phishing Lab. Lab 9: Phishing ● Step 1: Acquire Some Data ● Open the Phishing_Evidence document. This is the original in its initial format as.
Chapter 2 C++ self study 2nd Semester
Semester 1 v CCNA 1 Module 1:Introduction. Semester 1 v Connecting to the Internet.
CSE 143 Lecture 22 Huffman slides created by Ethan Apter
COMP2322 Lab 4 Socket Programming Toby Lam March 2, 2016.
Announcements Assignment 2 Out Today Quiz today - so I need to shut up at 4:25 1.
Chapter 3: Formatted Input/Output 1 Chapter 3 Formatted Input/Output.
File I/O. I/O Flags Flags are passed to give some information about how the file is to be used. – Read only file – flag=0x0 – Write only file – flag=0x1.
COMP2322 Lab 4 Socket Programming
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
CIS3931 – Intro to JAVA Lecture Note Set 2 17-May-05.
HTTP AND ABSTRACTION ON THE INTERNET
ECE Application Programming
Introduction to Classes and Objects
Instructor Materials Chapter 1 Ever Wonder How It Works?
Networking COMP
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
The OSI Model and the TCP/IP Protocol Suite
Module 4 Remote Login.
Huffman Coding Based on slides by Ethan Apter & Marty Stepp
Slide design: Dr. Mark L. Hornick
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Chapter 2 part #3 C++ Input / Output
The OSI Model and the TCP/IP Protocol Suite
Computer Architecture “Bomb Lab Hints”
Input/Output Input/Output operations are performed using input/output functions Common input/output functions are provided as part of C’s standard input/output.
Number Systems and Codes
Today in CS161 Week #3 Learn about… Writing our First Program
Student: Ying Hong Course: Database Security Instructor: Dr. Yang
Data Representation Conversion 05/12/2018.
Format String.
Comparing Strings – How to
The OSI Model and the TCP/IP Protocol Suite
4.1 Strings ASCII & Processing Strings with the Functions
The OSI Model and the TCP/IP Protocol Suite
Coding Concepts (Data- Types)
Encoding and Sending Formatted Text
Binary Numbers.
Homework Reading Programming Assignments Finish K&R Chapter 1
Fundamental Programming
Slide design: Dr. Mark L. Hornick
Chapter 2 part #3 C++ Input / Output
EECE.2160 ECE Application Programming
CS2911 Week 2, Class 3 Today Return Lab 2 and Quiz 1
Some Assembly (Part 2) set.html.
CS2911 Week 3, Lab Today Thursday Friday Review Muddiest Point Lab 3
The OSI Model and the TCP/IP Protocol Suite
Chapter 3 Debugging Section 3.4
Home work project #1 Develop and fully debug your program on the Cushing 208 lab. Machines - planet lab machines may not have good development environment.
EECE.2160 ECE Application Programming
And Mobile Web Browsers
Networks & I/O Devices.
Format String Vulnerability
Presentation transcript:

Network Programming (3) CSE 132

iClicker/WUTexter Question How many of the following IP addresses are properly formed (i.e., legal IP addresses)? 152.162.1.1 152.162.0.1 152.262.3.4 256.255.254.253 255.254.253.252 A: 1 B: 2 C: 3 D: 4 E: 5 @wucse132 <letter> XX

Today’s Outline Observability Protocols

Observability What is really going on? Option 1: stare at the code until inspired When that doesn’t work, make random change Option 2: don’t assume the code you actually wrote does what you think it does! Alter code so that you discover what it really does PCS system is great for this What about network code? Is issue on client or server?

Observability for Network Code Need to know what is really going across the network On server, client, or maybe both: Display what is going out the output stream Display what is coming in the input stream Support multiple interpretations of the raw data Studio 7 today is about building these tools Do a good job and it will help you the rest of the semester!

Protocols What is poor about the Lab W protocol? At least 3 things: Inefficient use of network bandwidth (verbose) Uninformative response(s) in the case of an error Poor recovery from client mistake

Better Protocols What might I do about these protocol weaknesses? Use shorter command names Provide return error codes or strings Start all msgs with magic number Insert ‘!’ (ASCII 33) as magic number up front

iClicker/WUTexter Question What is wrong with the message below? Nothing is wrong, the message is fine The first character is not the “magic number” The count should be least significant digit first The count is in decimal format Characters take 2 bytes each in Java @wucse132 <letter> XX