Politecnico di Torino
Politecnico di Torino
   
Login  
it
Politecnico di Torino
Academic Year 2014/15
03MQPOV
Distributed programming I
Master of science-level of the Bologna process in Computer Engineering - Torino
Teacher Status SSD Les Ex Lab Years teaching
Sisto Riccardo ORARIO RICEVIMENTO PO ING-INF/05 56 0 24 7
SSD CFU Activities Area context
ING-INF/05 6 B - Caratterizzanti Ingegneria informatica
Esclusioni:
01NVW
Subject fundamentals
Course for the Laurea Magistrale degree in Computer and Communication Networks Engineering, which is taught during the 2nd semester of the 2nd year. Part of the course (6 credits) is also offered to students of the Laurea Magistrale degree in Computer Engineering, during the 2nd semester of the 1st year.
The objective of this course is to provide the student with the knowledge and abilities required for developing distributed applications, starting with the so called 'network programming', up to the programming of a web application, including the access to a distributed relational data base.
Expected learning outcomes
• Knowledge of the socket interface in C, for network programming, including both IPv4 and IPv6 versions.
• Ability to apply the knowledge of the socket interface to implement distributed applications, including the case of dual-stack (IPv4 and IPv6) servers.
• Knowledge of HTML and CSS
• Ability to apply the knowledge of HTML and CSS to develop simple web pages.
• Knowledge of web applications that use client-side programming, server-side programming (dynamic web pages) and interaction with relational data bases.
• Ability to develop web applications that use client-side programming (Javascipt), server-side programming (PHP) and interaction with remote relational data bases.
• Knowledge of XML, of the AJAX technique, and of the principles of web services
• Ability to manipulate XML data and to use the AJAX technique using Javascript and PHP.
The last two points are only for the students of the Laurea Magistrale degree in Computer and Communication Networks Engineering.
Prerequisites / Assumed knowledge
Knowledge of advanced C programming. Knowledge of database management systems and ability to describe operations on them using the SQL language. Knowledge of the main protocols for computer networks, with particular reference to HTTP, TCP, UDP, IPv4 and IPv6.
Contents
• Introduction (0,2 CFU):
 distributed interaction models (client-server, peer-to-peer, 2-tier, 3-tier, ...)
 application protocol features (interaction models, data encoding, session management, ...)

• Network programming (2,4 CFU):
 the socket interface
 remote procedure calls (RPC, RMI)
 client and server skeletons
 network programming in the C language

• Distributed applications based on the web paradigm (3 CFU):
 motivation
 the http protocol
 the CGI programming interface and its limitations
 the Javascript language
 scripting in the server-side (PHP)
 integration with data bases
 managing sessions (cookies and other mechanisms)
 web programming (PHP)

• Additional aspects of web-based applications (2 CFU, only for students of the Laurea Magistrale degree in Computer and Communication Networks Engineering):
 XML as a technique for data exchange among distributed applications
 the AJAX technique
 introduction on web services

• Remarks on performance and scalability of distributed applications (0,4 CFU)
Contents (Prof. R. Sisto)
  • Introduction: (0,2 CFU)
    • distributed interaction models (client-server, peer-to-peer, 2-tier, 3-tier, ...)
    • application protocol features (interaction models, data encoding, session management, ...)
  • Network programming: (2,4 CFU)
    • the socket interface
    • remote procedure calls (RPC, RMI)
    • client and server skeletons
    • network programming in the C language
  • Distributed applications based on the web paradigm: (5 CFU)
    • Part for all students (3 CFU)
      • motivations
      • the HTTP protocol
      • the CGI programming interface and its limitations
      • the Javascript language
      • scripting in the server side (PHP)
      • integration with data bases
      • managing sessions (cookies and other mechanisms)
      • web programming (PHP)
    • Additional aspects of web-based applications (2 CFU, only for students of the Laurea Magistrale degree in Computer and Communication Networks Engineering)
      • XML as a technique for data exchange among distributed applications
      • the AJAX technique
      • introduction on web services
    • Remarks on performance and scalability of distributed applications (0,4 CFU)


Delivery modes
In addition to lectures, the course includes a programming laboratory about the application of the presented techniques. During the laboratory time, the students will discuss with the teachers about the solution of the assigned exercises. For students of the Laurea Magistrale degree in Computer and Communication Networks Engineering the course includes 24 hours of laboratory while for the other students it includes 20 hours of laboratory.
Texts, readings, handouts and other learning resources
The teacher will provide material (copy of transparencies) that will be available on the course web site.

Suggested textbooks:
• W.R. Stevens, B. Fenner, A. M. Rudoff, Unix Network Programming, Volume 1, 3rd Ed., Pearson, 2004
• R. Nixon, Learning PHP, MySQL & JavaScript, O’Reilly, 2009
Assessment and grading criteria
The exam consists of two tests followed by an oral discussion: a programming test on Network Programming (program to be developed in C) and a programming test on Web Programming (web site to be developed using HTML, CSS, JavaScript, PHP, XML, AJAX and DB access). The two tests will contribute with the same weight to the final mark. The oral exam will be used to evaluate the knowledge of the student about the taught techniques.
Assessment and grading cirteria (Prof. R. Sisto)
Examination consists of two programming tests (web programming test and network programming test). Passing both tests is mandatory in order to pass the exam. For students of the Master Degree in Computer and Communication Networks Engineering, the network programming test contributes 40% of the final mark while the web programming test contributes the remaining 60%. For students of the Master Degree in Computer Engineering the two tests contribute with the same weight.
At each exam call, the network programming test takes place at LABINF at the same date and time officially announced for the call. It consists of developing the code of a client and/or server with given specifications using the C language, by operating directly on the PC in the lab.
The web programming test instead is developed autonomously by each student at home. The assignment for this test is published 2-3 weeks before the official exam call date. The solution has to be developed according to the given specifications and submitted by the deadline indicated in the assignment (generally a couple of days before the official exam call date). Only those students who submit the solution of the web assignment by the deadline are admitted to the network programming test.
The students who also pass the network programming test are admitted to the final oral discussion of the tests, which concludes the exam.



Programma definitivo per l'A.A.2014/15
Back



© Politecnico di Torino
Corso Duca degli Abruzzi, 24 - 10129 Torino, ITALY
WCAG 2.0 (Level AA)
m@il