networks and internet - androbenchcsl.skku.edu/uploads/ice2010s15/week13.pdf · a set of high-speed...

69
NETWORKS AND INTERNET Introduction to Computer Engineering 2015 Spring by Euiseong Seo

Upload: others

Post on 30-Dec-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

NETWORKS AND INTERNET Introduction to Computer Engineering 2015 Spring by Euiseong Seo

Page 2: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Where are we? Chapter 1: The Big Picture Chapter 2: Binary Values and Number Systems Chapter 3: Date Representation Chapter 4. Gates and Circuits Chapter 5. Computing Components Chapter 6. Low-Level Programming Languages and Pseudocode Chapter 7. Problem Solving and Algorithms Chapter 8. Abstract Data Types and Subproblems Chapter 9. Object-Oriented Design and High-Level Programming languages Chapter 10. Operating Systems Chapter 11. File Systems and Directories Chapter 12. Information Systems Chapter 13. Artificial Intelligence Chapter 14. Simulation, Graphics, Gaming, and Other Applications Chapter 15. Networks Chapter 16. The World Wide Web Chapter 17. Computer Security Chapter 18. Limitations and Computing

Page 3: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Networking ¨  Open systems and protocols ¨  Network addresses ¨  Cloud computing

Page 4: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Networking

¨  Computer network ¤ A collection of computing devices connected in order to

communicate and share resources ¤ Connections between computing devices can be

physical using wires or cables or wireless using radio waves or infrared signals

Page 5: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Networking

¨  Node (host) ¤ Any device on a network

¨  Data transfer rate (bandwidth) ¤ The speed with which data is moved from one place to

another on a network

Page 6: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Networking

¨  Computer networks have opened up an entire frontier in the world of computing called the client/server model

Page 7: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Networking

¨  Protocol ¤ A set of rules that defines how data is formatted and

processed on a network, i.e., rules that allow client/server interaction

¨  File server ¤ A computer that stores and manages files for multiple

users on a network ¨  Web server

¤ A computer dedicated to responding to requests (from the browser client) for web pages

Page 8: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Types of networks

¨  Local-area network (LAN) ¤ A network that connects a relatively small number of

machines in a relatively close geographical area ¨  Ring topology connects all nodes in a closed loop on

which messages travel in one direction ¨  Star topology centers around one node to which all

others are connected and through which all messages are sent

¨  Bus topology nodes are connected to a single communication line that carries messages in both directions

Page 9: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Types of networks

¨  Ethernet ¤ The industry standard bus technology for local-area

networks

Page 10: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Types of networks

¨  Wide-area network (WAN) ¤ A network that connects local-area networks over a

potentially large geographic distance

¨  Metropolitan-area network (MAN) ¤ The communication infrastructures that have been

developed in and around large cities

¨  Gateway ¤ One particular set up to handle all communication

going between that LAN and other networks

Page 11: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Types of networks

Page 12: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Types of networks

¨  Internet ¤ A wide area network that spans the planet

Page 13: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Internet connections

¨  Internet backbone ¤ A set of high-speed networks that carry Internet traffic,

provided by companies such as AT&T, Verizon, GTE, British Telecom, and IBM

¨  Internet service provider (ISP) ¤ A company that provides other companies or

individuals with access to the Internet

¨  Various technologies available to connect a home computer to the Internet

Page 14: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Packet switching

¨  Packet ¤ A unit of data sent across a network

¨  Router ¤ A network device that directs a packet between

networks toward its final destination

¨  Packet switching (as opposed to circuit switching) ¤ Messages are divided into fixed-sized, numbered

packets; packets are individually routed to their destination, then reassembled

Page 15: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Packet switching

¨  Take message, break it into three packets, and simulate this process

Page 16: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Networking ¨  Open systems and protocols

¨  Network addresses ¨  Cloud computing

Page 17: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Open systems

¨  A logical progression… ¤ Proprietary system: a system that uses technologies

kept private by a particular commercial vendor ¤  Interoperability: the ability of software and hardware

on multiple machines and from multiple commercial vendors to communicate

¤ Open systems: system based on a common model of network architecture and a suite of protocols used in its implementation

Page 18: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Open systems

¨  Open systems interconnection reference model ¤ A seven-layer logical break

down of network interaction to facilitate communication standards

¤ Each layer deals with a particular aspect of network communication

Page 19: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Network protocols

¨  Network protocols are layered such that each one relies on the protocols that underlie it

¨  Sometimes referred to as a protocol stack

Page 20: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

TCP/IP

¨  Transmission Control Protocol (TCP) ¤ Software that breaks messages into packets, hands

them off to the IP software for delivery, and then orders and reassembles the packets at their destination

¨  Internet protocol (IP) ¤ Software that deals with the routing of packets through

the maze of interconnected networks to their final destination

Page 21: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

TCP/IP

¨  User Datagram Protocol (UDP) ¤ An alternative to TCP that is faster but less reliable

¨  Ping (an example of IP programs) ¤ A program used to test whether a particular network

computer is active and reachable

¨  Traceroute (an example of TCP/IP utility programs) ¤ A program that shows the route a packet takes across

the Internet

Page 22: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

High-level protocols

¨  Other protocols build on TCP/IP protocol suite ¤ Simple Mail Transfer Protocol (SMTP) used to specify

transfer of electronic mail ¤ File Transfer Protocol (FTP) allows a user to transfer

files to and from another computer ¤ Telnet used to log onto one computer from another ¤ Hyper Text Transfer Protocol (http) allows exchange of

Web documents

Page 23: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

High-level protocols

¨  Port: a numeric destination that corresponds to a particular high-level protocol

Page 24: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

MIME types

¨  MIME (Multipurpose Internet Mail Extension) type ¤ A standard for defining the format of files that are

included as email attachments or on websites

Page 25: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Firewalls

¨  Firewall ¤ A gateway machine and its software that protects a

network by filtering the traffic it allows

¨  Access control policy ¤ A set of rules established by an organization that

specifies that types of network communication are permitted and denied

Page 26: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Firewalls

Page 27: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Networking ¨  Open systems and protocols ¨  Network addresses

¨  Cloud computing

Page 28: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Network addresses

¨  Hostname ¤ A name made up of words separated by dots that

uniquely identifies a computer on the Internet

¨  IP address ¤ An address made up of four one-byte numeric values

separated by dots that uniquely identifies a computer on the Internet

Page 29: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Network addresses

Page 30: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Network addresses

¨  IPv4 ¤ 32 bits ¤ The last block was assigned in 2011

¨  IPv6 ¤ 32 bits organized into 4 groups of 8 (in total, 128 bits)

FE80:0000:0000:0000:0202:B3FF:FE1E:8329

¤ They work in parallel

Page 31: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Domain name system

¨  Host number ¤ The part of the IP address that specifies a particular

host (machine) on the network

¨  Domain name ¤ The part of a hostname that specifies a specific

organization or group

¨  Top-level domain (TLD) ¤ The last section of a domain name that specifies the

type of organization or its country of origin

Page 32: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Domain name system

Page 33: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Domain name system

¨  Organization based in countries other than the United States use a top-level domain that corresponds to their two-letter country codes

Page 34: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Domain name system

¨  Domain name system (DNS) ¤ A distributed system for managing hostname resolution

¨  Domain name server ¤ A computer that attempts to translate a hostname into

an IP address

¨  Domain squatting ¤ Ransoming domain names

Page 35: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Networking ¨  Open systems and protocols ¨  Network addresses ¨  Cloud computing

Page 36: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Cloud computing

¨  Public clouds are accessible by any subscriber ¨  Private clouds are established for a specific group

or organization ¨  Community clouds are shared among two or more

organizations with the same needs ¨  Hybrid clouds are some combination of the others

Page 37: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Spinning the web ¨  HTML ¨  Interactive web pages ¨  XML ¨  Social networks

Page 38: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

The world wide web

¨  The Web ¤ An infrastructure of information combined and the

network software used to access it

¨  Webpage ¤ A document that contains or references various kinds of

data

¨  Links ¤ A connection between one web page and another

Page 39: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

The world wide web

¨  Website ¤ A collection of related web pages

¨  Web browser ¤ A software tool that retrieves and displays webpages

¨  Webserver ¤ A computer set up to respond to requests for webpages

Page 40: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

The world wide web

¨  Uniform Resource Locator (URL) ¤ A standard way of specifying the location of a

Webpage, containing the hostname, “/”, and a file

http://rtcl.skku.edu/

Page 41: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

The world wide web

Let’s see our computer.

Page 42: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Search engines

¨  Search engine ¤ A website that helps you find other websites

¨  What if there is no search engine?

Page 43: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Instant messaging

¨  Instant messaging (IM) ¤ An application that allows people to send and receive

messages in real time n Both sender and receiver must have an IM running n Most IM applications use a proprietary protocol that dictates

the precise format and structure of the messages sent n  Instant messages are not secure

Page 44: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Weblogs

¨  Blog or weblog ¤ An online journal or newsletter that is frequently

updated and intended for public consumption

Page 45: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Cookies

¨  Cookie ¤ A small text file that a web server stores on your local

computer’s hard disk n A cookie contains information about your visit to the site n Cookies can be used

n  To determine the number of unique visitors to the site n  To customize the site for future visits n  To implement shopping carts that can be maintained from visit to

visit

n Cookies are not dangerous; really? n  Example:

UserID KDFH547FH398DFJ www.goto.com

Page 46: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Spinning the web ¨  HTML

¨  Interactive web pages ¨  XML ¨  Social networks

Page 47: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML

¨  Hypertext Markup Language (HTML) ¤ The language used to create or build a Webpage

¨  Markup language ¤ A language that uses tags to annotate the information

in a document

¨  Tags ¤ The syntactic element in a markup language that

indicates how information should be displayed

Page 48: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML

Page 49: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML

Page 50: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML

Page 51: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML

¨  Tags are enclosed in angle brackets (<…>) ¨  Words such as HEAD, TITLE, and BODY are called

elements and specify the type of the tag ¨  Tags are often used in pairs, with a start tag such as

<BODY> and a corresponding end tag with a / before the element name, such as </BODY>

Page 52: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML

¨  The browser determines how the page should be displayed based on the tags

¨  The browser ¤  Ignores the way we format the HTML document using

carriage returns, extra spaces, and blank lines ¤ Takes into account the width and height of the browser

window ¤ Reformats the contents to fit your browser window

Page 53: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Basic HTML formatting

¨  <P> … </P> specify that text should be treated as a separate paragraph

¨  <CENTER> … </CENTER> center information in the browser window

¨  <B> … </B> bold information ¨  <I> … </I> italicize information ¨  <HR> insert horizontal rule (that is, a line) across

page

Page 54: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Basic HTML formatting

¨  <UL> … </UL> unordered list ¨  <LI> … </LI> list item ¨  <H1> … </H1> information as H1 head ¨  … ¨  <H8> … </H8> information as H8 head

Page 55: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Images and links

¨  Attribute ¤ Part of a tag that provides additional information

about the element ¤ Attribute-name = value ¤ <IMG SRC = “myPicture.gif”> ¤  Inserts the image stored in file “myPicture.gif”

Page 56: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Images and links

¨  A link is specified using the element A, (which stands for anchor) and attribute HREF that specifies the URL of the destination document.

¨  <P><A HREF=http://csl.skku.edu>Computer Systems Lab</A></P>

Page 57: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

HTML5

¨  New tags ¤ <section> to define section of pages ¤ <header> to define the header of a page ¤ <footer> to define the footer of a page ¤ <nav> to define the navigation elements on a page ¤ <article> to define an article or primary content of a

page ¤ <aside> to define secondary content that might

appear in a sidebar ¤ <figure> to define images that annotate an article

Page 58: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Spinning the web ¨  HTML ¨  Interactive web pages

¨  XML ¨  Social networks

Page 59: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Java applets

¨  Java applet ¤ A java program designed to be embedded into an

HTML document, transferred over the Web, and executed in a browser

¤ <P><APPLET code = "FactByte.class" width=250 height=150></APPLET></P>

Page 60: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Java server pages

¨  JSP scriptlet ¤ A portion of code embedded in an HTML document

designed to dynamically contribute to the content of the webpage

¨  Java server page ¤ A web page that has a JSP scriptlet interwoven among

the HTML content

Page 61: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Java server pages

¨  A JSP scriptlet is encased in special tags beginning with <% and ending with %>

¨  Imagine JSP scriptlets as having the expressive power of a full programming language

Page 62: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Java server pages

¨  JSPs are executed on the server side where the webpage resides

¨  By the time it arrives at your computer, all active processing has taken place, producing a static (through dynamically created) webpage

¨  JSPs are particularly good for coordinating the interaction between a webpage and an underlying database

Page 63: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Spinning the web ¨  HTML ¨  Interactive web pages ¨  XML

¨  Social networks

Page 64: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

XML

¨  Extensible Markup Language (XML) ¤ A language that allows the user to describe the content

of a document n HTML describes how a document should look n XML describes a document’s meaning

¨  Metalanguage ¤ A language for talking about, or defining, other

languages ¤ XML is a metalanguage

Page 65: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

XML

Page 66: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

XML

¨  Document Type Definition (DTD) ¤ A specification of the organization of the document ¤ The structure of a particular XML document is described

by its corresponding DTD document

Page 67: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

XML

¨  XML represents a standard format for organizing data without tying it to any particular type of output

¨  Extensible Stylesheet Language (XSL) ¤ A language for defining transformations from XML

documents to other output formats

Page 68: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Contents

¨  Spinning the web ¨  HTML ¨  Interactive web pages ¨  XML ¨  Social networks

¤ Facebook, Twitter, LinkedIn, Google+, CacaoTalk

Page 69: NETWORKS AND INTERNET - AndroBenchcsl.skku.edu/uploads/ICE2010S15/week13.pdf · A set of high-speed networks that carry Internet traffic, provided by companies such as AT&T, Verizon,

Picture sources of today’s slides

¨  Jones & Barlett Learning’s slides