Tools for Web Applications - PowerPoint PPT Presentation

About This Presentation
Title:

Tools for Web Applications

Description:

Tools for Web Applications – PowerPoint PPT presentation

Number of Views:85
Avg rating:3.0/5.0
Slides: 27
Provided by: JASO1283
Learn more at: http://web.stanford.edu
Category:

less

Transcript and Presenter's Notes

Title: Tools for Web Applications


1
Tools for Web Applications
2
Overview of TCP/IP
  • Link Layer
  • Network Layer
  • Transport Layer
  • Application Layer

3
Protocol Stack Diagram

4
Application Layer
  • FTP, HTTP, telnet, etc.
  • Provides ways for users to interact with the
    network

5
Transport Layer
  • Transmission Control Protocol(TCP) communicates
    using sockets (IP address and port), provides
    reliable connection
  • User Data Protocol(UDP) allows applications to
    send raw IP datagrams

6
Network Layer
  • Uses Internet Protocol (IP)
  • Uses IP addresses
  • IP header contains source address, destination
    address, version, length, checksum, etc.

7
Link Layer
  • Physical interface
  • Device driver
  • Communicates with the actual network hardware

8

9
Hypertext Transfer Protocol(HTTP)
  • Allows clients to request files/other resources
    from a server
  • ASCII Protocol easy to talk to

10
(No Transcript)
11
HTTP Request Methods
  • GET - Request to read a web page or whatever
    information is identified by the request-URI
  • POST - Append to a named resource (e.g. a Web
    page), or provide a block of data to a
    data-handling process at the server
  • HEAD - Request to read a web page's header
  • PUT - Request to store a web page
  • DELETE - Remove a web page
  • LINK - Connects two existing resources
  • UNLINK - Breaks an existing connection between
    two resources

12
Example
  • Type
  • telnet www.stanford.edu 80
  • GET /class/ee281/index.html HTTP/1.0

13
Output
  • HTTP/1.1 200 OK
  • Date Sat, 23 Nov 2002 063544 GMT
  • Server Apache/1.3.26 WebAuth 2.5 (Unix)
    mod_ssl/2.8.10 OpenSSL/0.9.6e WebAuth/2.5
    mod_fastcgi/2.2.12
  • Connection close
  • Content-Type text/html
  • lt!doctype html public "-//w3c//dtd html 4.0
    transitional//en"gt
  • lthtmlgt
  • ltheadgt
  • ltmeta http-equiv"content-type"
    content"text/htmlcharsetiso-8859-1"gt
  • ltmeta name"generator" content"Microsoft
    FrontPage 4.0"gt
  • lttitlegtEE281 Embedded System Design
    Laboratorylt/titlegt
  • ltmeta name"keywords" content"here"gt
  • lt/headgt

14
Status Codes
  • 200 OK
  • 201 Created
  • 202 Accepted
  • 204 No Content
  • 301 Moved Permanently
  • 302 Moved Temporarily
  • 304 Not Modified
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 500 Internal Server Error
  • 501 Not Implemented
  • 502 Bad Gateway
  • 503 Service Unavailable

15
EDTP Ethernet Development Board
16
(No Transcript)
17
(No Transcript)
18
Function Prototypes
  • void show_regs(void)
  • void show_packet(void)
  • void tcp(void)
  • void assemble_ack(void)
  • void write_asix(unsigned char regaddr, unsigned
    char regdata)
  • void read_asix(unsigned char regaddr)
  • void get_packet(void)
  • void setipaddrs(void)
  • void cksum(void)
  • void echo_packet(void)
  • void send_tcp_packet(void)
  • void arp(void)
  • void icmp(void)
  • void udp(void)

19
uIP Free TCP/IP Stack for AVR
20
(No Transcript)
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
Websites
  • uIP
  • http//www.dunkels.com/adam/uip
  • EDTP Ethernet Board
  • http//www.edtp.com
  • HTTP
  • http//www.graphcomp.com/info/specs/http10.html
  • TCP/IP
  • http//www4.ulpgc.es/tutoriales/tcpip/pru/3376fm.h
    tm
  • http//www.acm.org/crossroads/xrds1-1/tcpjmy.html
Write a Comment
User Comments (0)
About PowerShow.com