Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Application layer
1. Business Data Communications and Networking 8th Edition Jerry Fitzgerald and Alan Dennis John Wiley & Sons, Inc Copyright 2005 John Wiley & Sons, Inc 2 -
8. Client-Based Architectures Copyright 2005 John Wiley & Sons, Inc 2 - Was popular in 1980s with the widespread use of PCs, LANs, and programs such as spreadsheets and word processors Example: Using a word processing on a PC and storing data (file) on a server
9.
10. Client-Server Architectures Copyright 2005 John Wiley & Sons, Inc 2 - Client (PC) Server (PC, mini, mainframe) Presentation logic Application logic Data Access logic Data Storage Application logic may reside on the client, server or be split up between the two Used by most networks today Example: Using a Web browser to get pages from
18. Thin-Client Example: Web Architecture Copyright 2005 John Wiley & Sons, Inc 2 - Client (PC) Web Server (PC, mini, mainframe) Presentation logic Application Logic Data Access logic Data Storage
19.
20. Choosing an Architecture Copyright 2005 John Wiley & Sons, Inc 2 - Host-Based Client-Based Client-Server Cost of Infrastructure High Medium Low Cost of Development Low Medium High Scalability Low Medium High
21.
22.
23. How the Web Works Copyright 2005 John Wiley & Sons, Inc 2 - HTTP Response HTTP Request Client Computer Server Computer HTTP - Hypertext Transfer Protocol Main Web communications protocol: Clicking on a hyperlink or typing a URL into a browser starts a request-response cycle A request-response cycle: include multiple steps since web pages often contain embedded files, such as graphics, each requiring a separate response.
24. HTTP Request Message Copyright 2005 John Wiley & Sons, Inc 2 - Request line ( command, URL, HTTP version number) Request header ( information on the browser, date, and the referring page ) Request body (information sent to the server, e.g., from a form) required optional optional (If the user types in the URL by themselves, then the referring page is blank.)
25. Example of an HTTP Request Copyright 2005 John Wiley & Sons, Inc 2 - GET http://www.kelley.indiana.edu/ardennis/home.htm HTTP/1.1 Date: Mon 06 Aug 2001 17:35:46 GMT User-Agent: Mozilla/6.0 Referer: http://www.indiana.edu/~aisdept/faculty.htm Request Header Request Line Web browser (code name for Netscape) Command URL HTTP version URL that contained the link to the requested URL Note that this HTTP Request message has no “Body” part. GMT – Greenwich Mean Time
26. HTTP Response Message Copyright 2005 John Wiley & Sons, Inc 2 - Response status ( http version number, status code, reason) Response header ( information on the server, date, URL of the page retrieved, format used ) Response body (requested web page) optional optional required
27. Example of an HTTP Response Copyright 2005 John Wiley & Sons, Inc 2 - <html> <head> <title>Allen R. Dennis</title> </head> <body> <H2> Allen R. Dennis </H2> <P>Welcome to the home page of Allen R. Dennis</P> </body> </html> Date: Mon 06 Aug 2001 17:35:46 GMT Server: NCSA/1.3 Location: http:// www.kelley.indiana.edu/adennis/home.htm Content-type: text/html Response Header Response Body HTTP/1.1 200 OK Response Status Another example of response status: HTTP/1.1 404 page not found)
28.
29.
30.
31.
32. How SMTP Works Copyright 2005 John Wiley & Sons, Inc 2 - LAN Internet LAN with e-mail client software Client computer Server computer with Server computer with e-mail server software e-mail server software SMTP packet SMTP packet SMTP packet SMTP packet IMAP or POP packet (“message transfer agent”) an e-mail message is sent as an SMTP packet to the local mail server reads the packet’s destination address and sends it over the Internet to the receiver’s mail server. stores the message in the receiver’s mail box contacts the mail server which then downloads the message (“user agent”) Client computer
33.
34.
35. Web-based e-mail Copyright 2005 John Wiley & Sons, Inc 2 - LAN LAN SMTP packet SMTP packet SMTP packet Internet Client computer with Client computer with Server computer with Server computer with Server computer with Web server software Web server software e-mail server software IMAP or POP packet IMAP packet HTTP request HTTP request HTTP response HTTP response Web browser Web browser Server computer with email server software
36. SMTP Message Copyright 2005 John Wiley & Sons, Inc 2 - Header ( source and destination addresses, date, subject, and other information about the e-mail message) Body ( message itself) Attachments (additional files included along with the e-mail message )
37.
38.
39.
40.
41.
42.
43. How Instant Messaging Works Copyright 2005 John Wiley & Sons, Inc 2 - LAN LAN LAN IM packet IM packet IM packet IM packet Internet Server computer with IM client software e-mail client software Client computer with Client computer with with IM server software sends a request to the IM server telling it that you are online. If a friend connects, the IM server sends a packet to your IM client and vice versa If a chat session has more than two clients, multiple packets are sent by the IM server. IM servers can also relay information to other IM servers. When you type some text, your IM client sends the text in a packet to the IM server which relays it to your friend.