انواع شبكه های ارتباطی - mcmaster universitymohammh/courses/internet... · 2014....
TRANSCRIPT
Internet Engineer ing
1
Cricut swithed network
Packet swithed
network
packet switched
voip
VOIP
Client
VOIP
Client
Internet
2
paket
L A N
bus
1. Local area network
3
W A N
LAN
LAN
WAN
LANWAN
VPN
TCP/IPOSI
Application
Presentation
Session
Transport Transport
Internet Network
Data link
Physical
TCP/IP OSI
1. Wide area network 2. Virtual Private network
4
OSI
OSITCP/IP
OSI
1 2 3
OSI
1
T CP/IP
TCP/IPInterface
UPN
RFC
R F C
1
2 RFC
1 - Request for comment
5
3 RFC
RFC 2026
4
IP u.6 RFC 1883 Specification
2
1 206
2
3
4
ARPANET1960
1970
NSFNET
1 -National scieret fourdation
6
ADSL
7
HostIP
Host
1 HostIP
2 IPAAA. AAA. AAA.
AAA
3 IP
IP6IP V. 6
IP
1
2 router
3
2
1 - Internet Protocol
8
IP
TCP
1 IP
2
3
4
5
6
UDP
TCP
1 - Transmission control protocol 2 - user datagram protocol
1
2
Source
Destination
9
1
2
3ACK
4TCP
VOIP
F TP:
Application
1 HostHost
2 FTPUser
namePasswordanony mous
FTP
FTPcmd
FTP:192.168.0.1 Host
F TP
1 quitFTP
2 dir / ISFTP Server
3 ccl ( remot directory )
1 - File transfer Protocol
10
4 get ( file name )FTP Server
5 put (file name )FTP Server
6 closeFTP
T el Net
Tel Netremote Hostlogin
remote Host
Tel Netanony mous
loginuser / pass
Tel Net
T el Net
Start >All programs >Accessories >communication >Hyper termiral
EmailSMTP / POP3
SM TP
1 - Tele Communication Network protocol
11
Server
POP3
Server
to
1CC
(Carbon copy)
BCCBCC
(blank CC)
2
3
BCC
Server posses
Client machine Network request
replay
Server machine
12
DNS :
DomainHostIP
Host
IPHost
IP
IP
yahoo.comyahoo
IP
Host
IP
IP
DNSDomain name
server
DNS
IPassign
1 - Domain Namirg system
13
info mil
gov
biz
orgedu
com
Net
ukfr
jp
irus
ru
ac.ir
domainsub domain
CE. sharif. ac. ir
http
1 - Hyper Text Transfer Protocol
14
client
1.1
1.11connection
client1
1.1
httpstate lass
client
Clientclienthttp
web browserIENetscapefirefox
HHP
client
Pageclient
Hyper media
client server
15
Hyper media
Web server
http
web server
redirect
Web server
B
ASP Engine
Server
A
JPG
ASP
Client
16
1I IS
windowsplat fromopenserver
plat from
jakartatamcatlightopen source
IIS.6
I IS
Control pan : | Add or remote programs Add / remove windows
IIS
components
I IS
Control pan :| Administrator tools Internet Information server
2Apache web server
open source
platform
3Jakarta Tomcat
Tomcat 5
1 - Internet Information Server
17
UR L
URL
UR L
http : // www. Takfo.ir / DOC / page1. htm
IP127.0.0.1
IIS
http : // 127.0.0.1/
Local Host
URLbrowser
DomainURL
DNS
IPhttp
IP
http
URL
html
1 - uniform Resource locator
18
htmlbrowserhtml
browser
html
URL
web
http
http
clienthttp
get
post
get
getpost
get
server
URLserver
post
httpserver
head
19
get
header
client
client
http
http
http2
1header
http
browserIPbrowser
incoding
2body
web browserhttp
server
header
H T M L
1 - Hyper Text Markup Language
20
Hyper media
H T M L
<html>
<head>
</title> <title>
</head>
<body>
</body>
</html>
html
htmlweb
/tagtagtag
htmltaghtml
tag
tag
tag
tag
21
tag( tag A ttr ibuts )
taghtml
( name/values )
tag
/tagtag
tag
html
htmlhtml
web
html
html
< html >
< head >
< title > table creation < /title >
< /head >
< body >
3 2 1
6 5 4
22
< table width= ' 300 ' border= ' 1 ' >
< tr >
< td > 1 < /td > < td > 2 < /td > < td > 3 < /td >
< /tr >
< tr >
< td > 4 < /td > < td > 5 < /td > < td > 6 < /td > < /tr >
< /table >
< /body >
< /html >
< html >
< head >
< title > table creation < /title >
< /head >
< body >
< table width= " 300 " header= " 1 " >
< tr >
< td colspan= " 2 " > 12 < /td > < td > 3 < /td >
< /tr >
< tr >
< td > 4 < /td > < td > 5 < /td > < td > 6 < /td >
< /tr >
< /table >
3 12
6 5 4
23
< /body >
< /html >
< html >
< head >
< title > table creation < /title >
< / head >
< body >
< table width= " 300 " border= " 1 " >
< tr >
< td rowspan= " 2 " > 1 < /td >
< td > 2 < /td > < td > 3 < /td >
< /tr >
< tr >
< td > 4 < /td > < td > 5 < /td >
< / tr >
< /table >
< /body >
< /html >
web
< form >
3 2 1
5 4
24
< /from >Method
actionfrom
1Action
Action
2M ethod
GetPost
Action
G et
URLAction
Server
25
{http : // Domain Name. com/login.asp}?user= Ali & pass=123
Login
login
< form Action= " http://Domain name.com/login.asp " Method= " Get " >
< ing href = " img/1.jpg " >
< img href = " http ://my
Domain.com/img17.jpg " >
,
< input type = " text " name = " user " >
.
Root
Form 2
html
Form 3
html
Form 1
html
ASP
img
1.jpg
26
< input type = " password " name = " pass " >
post
postheader
httpheader
CSS
html
html
CSS
CSShtml
1stylehtml
tagtagCSSstyle
tag
2CSSstyle
classhtml
1 - cascading Style sheet
27
< style >
. text 1 :{
Color : read ;
Font : Tahoma {
< /style >
/tagtagtext 1class
tag
3CSS
html
CSS
classhtml
host
host
(asighn)
1 - socket programming 2
28
port
port
server
1objectserver socket
Server socket listen socket = new
Server socket (server port )
Dim listen socket as server socket = new
Server socket ( server port )
2
While (true) {
Socket client socket = listen socket. accept ();
listen socket
7777client socket
3
29
3
thread
thread
thread
threadthread
Receiver r = new receiver ( client socket ) r. run ( );
Thread
thread
Server socket listen socket = new server socket ( server port )
7777
While ( true )
Socket client socket = listen socket. accept ( );
Receiver r = new receiver ( client socket ) r. run ( );
thread
thread
thread
thread rea3
rea2
rea1
30
31
runrun20thread
client server
3
1client
2server
3
Web Server
C lient
1
Author writes HTML
2
Client requests page
3 Web server locates .htm file
HTML stream returned to browser 4
5
Browser processes page
32
client
client
clientclient
client
1 - client side web page Delivery
W eb Server
C lient
1
Author writes instructions
2 Client requests page
3 Web server locates instructions file
HTML and script are returned to browser
5
6 Browser displays HTML
4
Web browser processes script to create HTML
33
1 HTMLclient
2 client
3 client
4 HTMIclient
browser
5 client
HTMLHTML
6
client
client
client
34
1 HTML
2 client
3
4
html
5 client
6 client
1 server sied Dynamic page Dlivery
W eb Server
C lient
1
Author writes instructions
2
Client requests page
3 Web server locates instructions file
HTML stream returned to browser 5
6
Browser processes page
4 Web server processes inst ructions to create HTML
35
client
html
clientclient
2
2html
client
client
36
1 HTML
client
2 client
3
client
4 html
Web server asks script engines to process scripts & generate HTML
W eb Server
C lient
1
Author writes page code
2
Client requests page
3 Web server locates page file
HTML stream passed back to server 5
6
Browser processes client side scripts
4
7
Browser processes HTML & displays page
37
5 client
client
6 client client html
7
client
client
html
html
javaVB.net
client
1 java script
2 VB script
3 java Applets java
38
java scr ipt
java script
Net scapelive scriptNet
scape
client sun
java script
client
browser
windows unix
java scr ipt
1 client
2 web browser
3 case sensitive
4browser
VB.script Jscript
client
VB.scriptsyntax
jscript
java script
VB.scriptJ.E
39
5browser
Cannot run standalone
java scr ipt java
1 java
java script script
2 java
java script
3 java
browser
4 java
compile
5 javajava script
syntax
java scr ipt
1
java script
2
40
3 html
html
browserweb
4 client
java
script
1web browser J.Efire foxnet scape opera
2text editordream viewer
note padfrontpage
java script
1 java script 2</script >
<script >
<script type= text / java script >
Document. write ( " < h1> hello world < /h1> " );
< /script >
head
body
java script head
body
body
41
2java script
js
<script src = " my java script file. js " >< /script >
java script
html
myjava script file. js script
head body
3java script
< input type = " text " name = " user " onclick = " user. value = ;"/>
java scr ipt
princitive data types
1number
2string
3Boolean
TrueFalse
42
java scriot
var
'.',,,1416.3var DaveDrnameYX
1 under score
2
3
4
5
Var K = 1.41
numberjava scriptK
= " book "
K = True
K = 1.74
43
1 + - / * % ++ - -
2 < <= == > >= !=
3
4 += -= *= /= %=
=
A+=4 = A=A+4 A -=4 A=A-4
A*=4 A=A*4 A /=4 A=A/4
4AA%=4
A=A%4
java script
1 ||
2 /**/
statements
44
1p = 1.41+ 2;
2
{ statement 1;
Statement 2; { p = 2 + 1.41;
K = p + 4;
S = " Ali ";
Statement n } }
java script
3 if / elseif ( name ==
" Ali " ) {
M = " you are Ali " ;
Flag = True; }
else { M =
" you are not Ali ";
statement flag = false; }
else
45
4whilewhile ( flag ==
True ) {
whilewhile
5for
For ( i = 1 ; i<= 100 ; i++ ) {
Sum = 55sum + = 1
46
1) var colors = [ " red " , " green " , " blue " ];
2) var colors = new array ( );
33) var colors = new
array ( s );
1var colors = new array ( "red" ,
"green" , "blue" );
java script
cjava1
6with
With ( document . my form ) {
with}
document . my form result . valuemyinput . value
• With ( document . my form ) { Result . value = cumpute ( myinput.value )
}
• Document . myform . result value = Compute ( document. Myform.myinput.value);
47
Fanction
returned
: Function Add ( var a1 , var a2 ) {
C
= a1+a2;
return C; }
Function Show ( var msg ) {
Document . write ( msg ); }
AddK = Add (
A , B)
D O M
DOM
windows
windows
DOM
web
1 -Function 2. Document object model
48
windowsBrowser
browser
;window . close ()
< input onclick = window . close () value = " close " / >
1) window. history
historyBrowser
.back
2) window.document
html
browser
3) window. location
browser
< input onclick = " window.location "
value=yahoo location="http://www.yahoo.com " / >
form. form . image
.window . document . link
htmldocument
DOM
window . document . form . text box
text box
49
text box
htmlDOM
50
Window . document . form . text 1 . value = " Ali " ;
text1
html browser
client
value
form
clientsubmit
events
html
onclick
java Script
java Script
1. events
51
onBlur focus
Bottom
< input onblur = " window.close() " value = "close ">
close
close
Onchange
On focusfocus
onblur
Onloadload
On Mouse over
On Mouse out
On submit
On ResetReset
On selectList
On Unloadload
on load
52
java Scr ipt
1Alert
2prompt
text book C = prompt ("Enter your name")
3confirm
TrueFalse
") Ok True K = confirm = ("
OK
OK
Cancel
OK Cancel
?
53
Cancle False
ASP
ASPclient
ASP
client
ASPhtm
htmlasp
aspvb.
Script
1. Active Server Page
Server
ASP
Client
Web Browser
ASP
54
vb.Script
vb.Dcript
asp
C++
COMasp
asp
asp
12script
<% = <script language = " VB.Script " runat = "server ">
VB.Scriptasp
%>=</script>
2<% %>
%>asp<%
3
%>
asp<%=
55
< input type = " text " value + "<% = email %> "/>
<input type = " text " value = "ali @ yahoo.com"/>
asp
phphtml
asp
1Request
2Respons
3Application
4Session
5Server
1objectclient
(capsulate)
client
client
object
56
2object
client
asp
3object
object
asp
object(global)
Application (" name ") = " Ali "
Application ( " name ") Ali
session
http
client
client
session
session
Sessionclient
57
clientsession
client
client
session
Session T ime out
clientsession
client
clientsession
Object Sessionsession
sessionsession
Session ( "name" ) = user.get Name;
clientsession
client Applicationyahoo
log out session
log intime
outsession
log in
Cooky
clientClient (browser)
58
session
client
IE Tools Internet option General
log in
session
asp.netobjectrequest
client
object responseclient
request . cookies
response .
cookies
object request
59
FormGuary string
object request
Method: get query string post form
< Form Method = post / get >
!method = postform
!method = getquery
string
A D O
ASP
ADOADO
ADOASPObject
ASP
Object
ASPSQL
ObjectcommandObject
command
connectcommand
60
!parameter , Object
SQLObjectcommand
Record set
ObjectRecord setADO
ASP
1 web serverASP
web server IIS
200098ASP
PWS
2 Not pad
ASP
1. Internet Information Server 2. Microsoft personal web server
61
Dreamweaver
!ASP.asp
IIS web
server
.N E T
2001
Enter price application
.NET
Operating System + Hardware
.NET Framework
.NET Application
62
63
C L
.net
.net
( MSI L )C L
cl
.net
1. Common Language
64
.Net dll
cldll
.Net
Base Class Library
Pascal
V B
C+
+
VB
C++
CL
CL
Pascal
V B
C+
+ VB C++
CLR
Runtime
.N E T
65
.net
.Net
.Net
C#
.Net
ASP.Net
.Net
asp
A D O .Net
asp.Net
.Net
VS .Net
IDE
.NetVS.Net
VC# ,VC++, VB
1. Base class library 2. Visual Studio .Net 3. Intgreated Develaent Envirment
66
VS.Net asp asp.Net )
VS .Net
ADO.Net
Debuge
ASP
VS .Net
Debuge
trace
.Net
Object Oriented .Net
C#
.Net
1
2 .NetBase
Class Library.Net
67
3 VS .Net
4 asp.Net
.Net
1
.Net
2 .Net
.Net
monoopen source
.Net
.Netopen source
asp.Netasp
1
asp
asp.Net
68
2
asp.Net.Net .Net
Framwork
asp.Net
3
asp.NetVS .Net
4
asp.Net
,Data Grid
5asp.Net
asp
A D O .Net A D O
1 ADO.Net XML
XML
2 disconnected
69
Load
3 ADO.Net
ADO
4 .Net
BBaassee CCllaassss LLiibbrraarryy
CCoommmmoonn LLaanngguuaaggee SSppeecciiffiiccaattiioonn
CCoommmmoonn LLaanngguuaaggee RRuunnttiimmee
AADDOO..NNEETT:: DDaattaa aanndd XXMMLL
VVBB VVCC++++ VVCC##
VV ii ss uu aa ll SS tt uu dd ii oo .. NN EE TT
AASSPP..NNEETT:: WWeebb SSeerrvviicceess aanndd WWeebb FFoorrmmss
JJSSccrriipptt
WWiinnddoowwss FFoorrmmss
70
AAsssseemmbbllyy
SSoouurrccee
CCooddee
LLaanngguuaaggee
CCoommppiilleerr
CCoommppiillaattiioonn
AAtt iinnssttaallllaattiioonn oorr tthhee ffiirrsstt ttiimmee eeaacchh mmeetthhoodd iiss
ccaalllleedd EExxeeccuuttiioonn
JJIITT CCoommppiillee
rr
NNaattiivvee CCooddee
CCooddee ((IILL))
MMeettaaddaattaa
71
Code in VB.NET Code in C# Code in another .NET Language
VB.NET compiler C# compiler Appropriate Compiler
IL(Intermediate Language) code
CLR just-in-time execution
72
Host
Host
1 WSDL
XML
WSDL
2 SOAP
XML
Server , Client
1. web service description language 2. Simple object access protocol
73
3 UDDI
Host
UDDI
J2E E
J2EE
J2EE
J2EE
Sun
microsystem
1. Unniversal Discription Discovery Integretion 2. java 2 Enterprice Eddition
74
J2EEjava
Sun
J2EEjava EE
java2
java2
javaSun 1999
1 J2SE
desktop
2 J2ME
java
PDAS
3 J2EE
1. Java 2 Standard Eddition 2. Java 2 Micro Eddition 3. Java 2 Enterprise Eddition
75
Client
J2E E
J2EE
1 Servlets and JSP
2 EJB
3 JDBC
J2EE
4 JMS
J2EE
5 Java Mail
1. java server pages 2. Enterprise Java Beans 3. Java Data Base Connectivity 4. Java Message Service
76
77
servlet
ServletSun
servlet,jsp
Servlet / Jsp container
servlet,jsp
servlet,jsp
jsp ,servlet
Apache Tomcat
servlet
1 JDK
JDK
java
java
java.sun.com
.Net Framwork .Net
2 servlet / jsp
78
Apache Tomcat
3 jsp
jDeveloper , j Builder
servlet
4 jsp
web container
web container
client
Servlet
Servlet
java
httpservlet http
do Post , do Getservlet
html
jsp
jspASP
jsp
jsp
web
container
79
jsp
ASPjsp
1 requestasp
2 responseresponseasp
3 sessionsessionasp
4 pageobject
jsp
5 Out
Client
jsp:
1
2
jsp
java
java
J2EE
80
J2EEjava
jsp
java
java
java
byte code
MSIL .Net
jVM
1. java Virtual Machin 2. Free Platform
81
1IP
2(URL) Domain
.N E Tj2E E
1j2java
.NET
VBC++C#J#
Pascal
2j2EE
.NETMSIL
3j2EEjvm
.NETCTR
MSIL
4j2EE
.NET
5j2EEJDK
1. Common Langvage Runtime 2. Microsoft intemodiate langvage 3. java Development Kit
82
.NET.NET frame work
6j2EE
j2EE
IDE
JBuilderBorlandj Developeroracle
j2EE
.NET
Visual studio .N E T
7j2EE
jsp.NET
ASP.NET
8j2EEjDBC
.NET
ADO.NET
9.NET
IIS
j2EE
Apachi tamcatWeb sphere
1. Integrated development Enviroment 2. Java Data Base Commenctivity 3. Internet information server
83
10.NETj2EE
84
X M L
X M L
sgmlXML
sgml
XML
W3c.org1998
X M L
exten sible mark up langvage
sgml
sgmlXML
XML
HTML
X M L
1XML
1. Standard genrallzed Mark up langvage 2. word wide web consortium.org
85
2XML
3XML
XML
4XML
X M L
XML
XML
1web servise
2
3
4
5html
86
X M L
XML
1
XMLhtml
<book> </book>
XMLtagXML
2
Element
XML
<element attribute = "value">
=>
html
<img="pic.jpg"/>
X M L
1. Element 2. Attribute
87
1tag
tag
2
<img="pic.jpg"/>
tag
3XMLwell-Formed
well-Formed
tagXML
tag
tagtag
tagtag