1 Data Communications and Network Programming: Course Introduction Asst. Prof. Chaiporn Jaikaeo, Ph.D. [email protected]http://www.cpe.ku.ac.th/~cpj Computer Engineering Department Kasetsart University, Bangkok, Thailand Second Semester, 2014 Most materials in this presentation were prepared by Assoc. Prof. Anan Phoenphoem (http://www.cpe.ku.ac.th/~anan)
30
Embed
1 Data Communications and Network Programming: Course Introduction Asst. Prof. Chaiporn Jaikaeo, Ph.D. [email protected] cpj.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
Data Communications and Network Programming:Course Introduction
Data communication concepts Computer networking devices Internet protocol suite (TCP/IP) Capture and analyze network traffic of
well-known applications Network programming
Standalone socket applications Web-based applications Web services
23
Languages and Tools Basic network tools
ping, traceroute (tracert on Windows) Network traffic monitor
Wireshark Programming
Java (with Groovy shell)
24
Ping
25
Trace Route
26
Monitoring Network TrafficSample results from Wireshark
27
Application Program Interface (API)
Set of operation for application programmer
Specify arguments and semantics
28
Berkeley Socket API API for developing applications that perform inter-
process communication in C/C++ most commonly for communications across a computer
network, especially UNIX Example functions
listen – used by server to wait for contact from client connect – used by client to contact server send – used by either client or server to send data recv – used by either client or server to receive data
Java, .NET, Python, etc. provide convenient wrappers around socket API
Easier to write than C/C++
29
Web APIs (Web Services) APIs defining set of request and response
messages via web context (i.e., HTTP) usually in Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format
Examples Facebook API Twitter API Various Google APIs
30
Summary Motivations of computer networking Data Communication components Network application programming and