SlideShare a Scribd company logo
1 of 20
FTP & WEB
Intro
• FTP or File Transfer Protocol is a commonly used
protocol for exchanging files over any network that
supports the TCP/IP protocol (such as the Internet or an
intranet).
• There are two computers involved in an FTP transfer: a
server and a client.
• The FTP server, running FTP server software, listens on
the network for connection requests from other
computers. The client computer, running FTP client
software, initiates a connection to the server.
• Once connected, the client can do a number of file
manipulation operations (if he has the authority) such as
uploading files to the server, download files from the
server, rename or delete files on the server and so on.
Transfer Modes
• Through FTP, any computer connected to a TCP/IP
based network can manipulate files on another computer
on that network regardless of the operating systems
involved.
• FTP is utilizes two ports, a 'data' port and a 'command'
port (also known as the control port). Traditionally these
are port 21 for the command port and port 20 for the
data port. FTP servers by default listen on port 21 for
incoming connections from FTP clients.
• Depending on the transfer mode, the data port is not
always on port 20.
• There are two types of transfer modes:
– active mode
– passive mode
Active FTP
• In active mode FTP the client connects from a random
unprivileged port (N > 1023) to the FTP server's
command port, which is port 21.
• Then, the client starts listening on port N+1 for the server
to connect, and sends the FTP data PORT N+1 to the
FTP server.
• The server will then connect back to the client's specified
data port from its local data port, which is port 20.
• The main problem with active mode FTP actually falls on
the client side. The FTP client doesn't make the actual
connection to the data port of the server--it simply tells
the server what port it is listening on and the server
connects back to the specified port on the client.
Passive FTP
• In order to resolve the issue of the server initiating the
connection to the client, a different method for FTP
connections was developed.
• In passive mode FTP the client initiates both connections
to the server.
• When opening an FTP connection, the client opens two
random unprivileged ports locally (N > 1023 and N+1).
• The first port contacts the server on port 21, but instead
of then issuing a PORT command and allowing the
server to connect back to its data port, the client will
issue the PASV command.
• The result of this is that the server then opens a random
unprivileged port (P > 1023) and sends the PORT
command back to the client. The client then initiates the
connection from port N+1 to port P on the server to
transfer data.
• The problem with passive FTP is many
open ports are needed on the server to
allow client connections.
• There are also client programmes which
do not support passive mode transfer.
The objectives of FTP
1. To promote sharing of files (computer
programs and/or data).
2. To encourage indirect or implicit use of
remote computers.
3. To shield a user from variations in file
storage systems among different hosts.
4. To transfer data reliably & efficiently.
Criticisms of FTP
1. Passwords and file contents are sent in clear text,
which can be intercepted by network sniffers.
2. Multiple TCP/IP connections are used, one for the
control connection, and one for each download,
upload, or directory listing.
3. FTP is a high latency protocol due to the number of
commands needed to initiate a transfer.
4. No integrity check on the receiver side. If transfer is
interrupted the receiver has no way to know if the
received file is complete or not. It is necessary to
manage this externally for example with MD5 sums or
cyclic redundancy checking.
5. No error detection. FTP relies on the underlying TCP
layer for error control, which uses a weak checksum by
modern standards.
Anonymous FTP
• Usually users are asked to enter a username
and password to access an FTP site.
• Many sites that run FTP servers enable so-
called "anonymous ftp". Under this arrangement,
users do not need an account on the server. The
user name for anonymous access is typically
'anonymous' or 'ftp'. This account does not need
a password.
• So if you are ever asked to enter a password to
access a public FTP site, try anonymous.
HTTP
• Hypertext Transfer Protocol (HTTP) is a
method used to transfer or convey information
on the World Wide Web.
• HTTP is a request/response protocol between
clients and servers. The originating client, such
as a web browser, or other end-user tool, is
referred to as the user agent. The destination
server, which stores or creates resources such
as HTML files and images, is called the origin
server.
Connection
• An HTTP client initiates a request by
establishing a TCP connection to a particular
port on the server (port 80 by default). An HTTP
server listening on that port waits for the client to
send a request message.
• Upon receiving the request, the server sends
back a status line, such as "HTTP/1.1 200 OK",
and a message of its own, the body of the
requested file, an error message, or some other
information.
Web server programs
basic common features
1. Response to HTTP requests:
• HTML document,
• Raw, text file, or an image
• error messages
2. Logging
• capability of logging some detailed information,
about client requests and server responses, to
log files; this allows the Webmaster to collect
statistics by running log analyzers on log files.
Path translation
• Web servers usually translate the path component of a Uniform
Resource Locator (URL) into a local file system resource. The
URL path specified by the client is relative to the Web server's
root directory.
• Consider the following URL as it would be requested by a client:
http://www.example.com/path/file.html
• The client's Web browser will translate it into a connection to
www.example.com with the following HTTP 1.1 request:
GET /path/file.html HTTP/1.1
Host: www.example.com
• The Web server on www.example.com will append the given path
to the path of its root directory. On Unix machines, this is
commonly /var/www/htdocs. The result is the local file system
resource: /var/www/htdocs/path/file.html
• The Web server will then read the file, if it exists, and send a
response to the client's Web browser. The response will describe
the content of the file and contain the file itself.
https
• https is a URI scheme which is syntactically identical to
the http:// scheme normally used for accessing
resources using HTTP.
• Using an https: URL indicates that HTTP is to be used,
but with a different default port (443) and an additional
encryption/authentication layer between HTTP and TCP.
• This system was designed by Netscape
Communications Corporation to provide authentication
and encrypted communication and is widely used on the
World Wide Web for security-sensitive communication
such as payment transactions and corporate logons.
• Eg. Yahoo uses https when logging to your mail
accounts.
Webserver directory index
• When an HTTP client (generally a web browser)
requests a URL that points at just a directory
rather than at a file, within a directory the web
server will generally serve up some kind of main
or index page.
• index.html (htm)is the traditional filename for
such a page, but most modern HTTP servers
offer a configurable list of filenames for the
server to use as an index if possible.
• Others include index.php, index.shtml,
default.asp.
• http://www.example.com is technically not
a valid URL, but most modern browsers
(and webservers if the browsers do not)
will automatically correct it to
http://www.example.com/, which will result
in the serving of the index page from the
root directory of the website.
• Thus, the home page is usually index.html,
and is often called an “index page”.
Web Server Softwares
• Apache HTTP Server – free UNIX based
• Internet Information Services (IIS) –
Microsoft Windows Server based
• Sun Java System Web Server - formerly
Sun ONE Web Server, iPlanet Web
Server, and Netscape Enterprise Server
by Sun Microsystems
Web Browsers
• Internet Explorer – comes with Windows
• Mozilla Firefox - free
• Netscape Navigator
• Opera

More Related Content

Similar to 11 - ftp & web.ppt

Similar to 11 - ftp & web.ppt (20)

FTP-PPT.pptx
FTP-PPT.pptxFTP-PPT.pptx
FTP-PPT.pptx
 
HTTP
HTTPHTTP
HTTP
 
protocols (1).pptx
protocols (1).pptxprotocols (1).pptx
protocols (1).pptx
 
Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
Ft pv2(1)
Ft pv2(1)Ft pv2(1)
Ft pv2(1)
 
Module 5 Application and presentation Layer .pptx
Module 5 Application and presentation Layer .pptxModule 5 Application and presentation Layer .pptx
Module 5 Application and presentation Layer .pptx
 
protocols (1).pptx
protocols (1).pptxprotocols (1).pptx
protocols (1).pptx
 
http presentation 1.pptx
http presentation 1.pptxhttp presentation 1.pptx
http presentation 1.pptx
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
 
Http smuggling 1 200523064027
Http smuggling 1 200523064027Http smuggling 1 200523064027
Http smuggling 1 200523064027
 
HTTP Request Smuggling
HTTP Request SmugglingHTTP Request Smuggling
HTTP Request Smuggling
 
internet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcainternet programming and java notes 5th sem mca
internet programming and java notes 5th sem mca
 
FTP
FTPFTP
FTP
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
Web Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting StartedWeb Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting Started
 
Web Server Technologies I: HTTP
Web Server Technologies I: HTTP Web Server Technologies I: HTTP
Web Server Technologies I: HTTP
 
protocols-140826123206-phpapp01 (1).pdf
protocols-140826123206-phpapp01 (1).pdfprotocols-140826123206-phpapp01 (1).pdf
protocols-140826123206-phpapp01 (1).pdf
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.ppt
 
Protocols
ProtocolsProtocols
Protocols
 

More from ssuserf7cd2b

English Communication (AEC-01).pdf
English Communication (AEC-01).pdfEnglish Communication (AEC-01).pdf
English Communication (AEC-01).pdfssuserf7cd2b
 
The Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdfssuserf7cd2b
 
Attachment_0 (2).pdf
Attachment_0 (2).pdfAttachment_0 (2).pdf
Attachment_0 (2).pdfssuserf7cd2b
 
Attachment_0 (1).pdf
Attachment_0 (1).pdfAttachment_0 (1).pdf
Attachment_0 (1).pdfssuserf7cd2b
 
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdfssuserf7cd2b
 
AdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.docAdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.docssuserf7cd2b
 
VA118-15-N-0042-001.docx
VA118-15-N-0042-001.docxVA118-15-N-0042-001.docx
VA118-15-N-0042-001.docxssuserf7cd2b
 
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdfNoor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdfssuserf7cd2b
 
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdfssuserf7cd2b
 
StandardIPinSpace.pdf
StandardIPinSpace.pdfStandardIPinSpace.pdf
StandardIPinSpace.pdfssuserf7cd2b
 
04 - Networking Technologies.ppt
04 - Networking Technologies.ppt04 - Networking Technologies.ppt
04 - Networking Technologies.pptssuserf7cd2b
 
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...ssuserf7cd2b
 
Protocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdfProtocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdfssuserf7cd2b
 
ITN_Module_17.pptx
ITN_Module_17.pptxITN_Module_17.pptx
ITN_Module_17.pptxssuserf7cd2b
 
03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.ppt03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.pptssuserf7cd2b
 

More from ssuserf7cd2b (20)

English Communication (AEC-01).pdf
English Communication (AEC-01).pdfEnglish Communication (AEC-01).pdf
English Communication (AEC-01).pdf
 
The Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ).pdf
 
Attachment_0 (2).pdf
Attachment_0 (2).pdfAttachment_0 (2).pdf
Attachment_0 (2).pdf
 
Attachment_0.pdf
Attachment_0.pdfAttachment_0.pdf
Attachment_0.pdf
 
Attachment_0 (1).pdf
Attachment_0 (1).pdfAttachment_0 (1).pdf
Attachment_0 (1).pdf
 
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdfThe Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
The Oxford Dictionary of English Grammar ( PDFDrive ) (1).pdf
 
AdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.docAdvancedSkillsforComm.-BookI.doc
AdvancedSkillsforComm.-BookI.doc
 
VA118-15-N-0042-001.docx
VA118-15-N-0042-001.docxVA118-15-N-0042-001.docx
VA118-15-N-0042-001.docx
 
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdfNoor-Book.com  دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
Noor-Book.com دليلك الكامل لمهارات الإتصال بالانجليزية.pdf
 
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
4.1.1.10 Packet Tracer - Configuring Extended ACLs Scenario 1.pdf
 
Applications.docx
Applications.docxApplications.docx
Applications.docx
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
 
StandardIPinSpace.pdf
StandardIPinSpace.pdfStandardIPinSpace.pdf
StandardIPinSpace.pdf
 
04 - Networking Technologies.ppt
04 - Networking Technologies.ppt04 - Networking Technologies.ppt
04 - Networking Technologies.ppt
 
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
NZISM-Infrastructure-Network_Design,_Architecture_and_IP_Address_Management-V...
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Protocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdfProtocol_specification_testing_and_verif.pdf
Protocol_specification_testing_and_verif.pdf
 
ITN_Module_17.pptx
ITN_Module_17.pptxITN_Module_17.pptx
ITN_Module_17.pptx
 
03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.ppt03 - Cabling Standards, Media, and Connectors.ppt
03 - Cabling Standards, Media, and Connectors.ppt
 

Recently uploaded

Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 

Recently uploaded (20)

young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 

11 - ftp & web.ppt

  • 2. Intro • FTP or File Transfer Protocol is a commonly used protocol for exchanging files over any network that supports the TCP/IP protocol (such as the Internet or an intranet). • There are two computers involved in an FTP transfer: a server and a client. • The FTP server, running FTP server software, listens on the network for connection requests from other computers. The client computer, running FTP client software, initiates a connection to the server. • Once connected, the client can do a number of file manipulation operations (if he has the authority) such as uploading files to the server, download files from the server, rename or delete files on the server and so on.
  • 3. Transfer Modes • Through FTP, any computer connected to a TCP/IP based network can manipulate files on another computer on that network regardless of the operating systems involved. • FTP is utilizes two ports, a 'data' port and a 'command' port (also known as the control port). Traditionally these are port 21 for the command port and port 20 for the data port. FTP servers by default listen on port 21 for incoming connections from FTP clients. • Depending on the transfer mode, the data port is not always on port 20. • There are two types of transfer modes: – active mode – passive mode
  • 4. Active FTP • In active mode FTP the client connects from a random unprivileged port (N > 1023) to the FTP server's command port, which is port 21. • Then, the client starts listening on port N+1 for the server to connect, and sends the FTP data PORT N+1 to the FTP server. • The server will then connect back to the client's specified data port from its local data port, which is port 20. • The main problem with active mode FTP actually falls on the client side. The FTP client doesn't make the actual connection to the data port of the server--it simply tells the server what port it is listening on and the server connects back to the specified port on the client.
  • 5.
  • 6. Passive FTP • In order to resolve the issue of the server initiating the connection to the client, a different method for FTP connections was developed. • In passive mode FTP the client initiates both connections to the server. • When opening an FTP connection, the client opens two random unprivileged ports locally (N > 1023 and N+1). • The first port contacts the server on port 21, but instead of then issuing a PORT command and allowing the server to connect back to its data port, the client will issue the PASV command. • The result of this is that the server then opens a random unprivileged port (P > 1023) and sends the PORT command back to the client. The client then initiates the connection from port N+1 to port P on the server to transfer data.
  • 7.
  • 8. • The problem with passive FTP is many open ports are needed on the server to allow client connections. • There are also client programmes which do not support passive mode transfer.
  • 9. The objectives of FTP 1. To promote sharing of files (computer programs and/or data). 2. To encourage indirect or implicit use of remote computers. 3. To shield a user from variations in file storage systems among different hosts. 4. To transfer data reliably & efficiently.
  • 10. Criticisms of FTP 1. Passwords and file contents are sent in clear text, which can be intercepted by network sniffers. 2. Multiple TCP/IP connections are used, one for the control connection, and one for each download, upload, or directory listing. 3. FTP is a high latency protocol due to the number of commands needed to initiate a transfer. 4. No integrity check on the receiver side. If transfer is interrupted the receiver has no way to know if the received file is complete or not. It is necessary to manage this externally for example with MD5 sums or cyclic redundancy checking. 5. No error detection. FTP relies on the underlying TCP layer for error control, which uses a weak checksum by modern standards.
  • 11. Anonymous FTP • Usually users are asked to enter a username and password to access an FTP site. • Many sites that run FTP servers enable so- called "anonymous ftp". Under this arrangement, users do not need an account on the server. The user name for anonymous access is typically 'anonymous' or 'ftp'. This account does not need a password. • So if you are ever asked to enter a password to access a public FTP site, try anonymous.
  • 12. HTTP • Hypertext Transfer Protocol (HTTP) is a method used to transfer or convey information on the World Wide Web. • HTTP is a request/response protocol between clients and servers. The originating client, such as a web browser, or other end-user tool, is referred to as the user agent. The destination server, which stores or creates resources such as HTML files and images, is called the origin server.
  • 13. Connection • An HTTP client initiates a request by establishing a TCP connection to a particular port on the server (port 80 by default). An HTTP server listening on that port waits for the client to send a request message. • Upon receiving the request, the server sends back a status line, such as "HTTP/1.1 200 OK", and a message of its own, the body of the requested file, an error message, or some other information.
  • 14. Web server programs basic common features 1. Response to HTTP requests: • HTML document, • Raw, text file, or an image • error messages 2. Logging • capability of logging some detailed information, about client requests and server responses, to log files; this allows the Webmaster to collect statistics by running log analyzers on log files.
  • 15. Path translation • Web servers usually translate the path component of a Uniform Resource Locator (URL) into a local file system resource. The URL path specified by the client is relative to the Web server's root directory. • Consider the following URL as it would be requested by a client: http://www.example.com/path/file.html • The client's Web browser will translate it into a connection to www.example.com with the following HTTP 1.1 request: GET /path/file.html HTTP/1.1 Host: www.example.com • The Web server on www.example.com will append the given path to the path of its root directory. On Unix machines, this is commonly /var/www/htdocs. The result is the local file system resource: /var/www/htdocs/path/file.html • The Web server will then read the file, if it exists, and send a response to the client's Web browser. The response will describe the content of the file and contain the file itself.
  • 16. https • https is a URI scheme which is syntactically identical to the http:// scheme normally used for accessing resources using HTTP. • Using an https: URL indicates that HTTP is to be used, but with a different default port (443) and an additional encryption/authentication layer between HTTP and TCP. • This system was designed by Netscape Communications Corporation to provide authentication and encrypted communication and is widely used on the World Wide Web for security-sensitive communication such as payment transactions and corporate logons. • Eg. Yahoo uses https when logging to your mail accounts.
  • 17. Webserver directory index • When an HTTP client (generally a web browser) requests a URL that points at just a directory rather than at a file, within a directory the web server will generally serve up some kind of main or index page. • index.html (htm)is the traditional filename for such a page, but most modern HTTP servers offer a configurable list of filenames for the server to use as an index if possible. • Others include index.php, index.shtml, default.asp.
  • 18. • http://www.example.com is technically not a valid URL, but most modern browsers (and webservers if the browsers do not) will automatically correct it to http://www.example.com/, which will result in the serving of the index page from the root directory of the website. • Thus, the home page is usually index.html, and is often called an “index page”.
  • 19. Web Server Softwares • Apache HTTP Server – free UNIX based • Internet Information Services (IIS) – Microsoft Windows Server based • Sun Java System Web Server - formerly Sun ONE Web Server, iPlanet Web Server, and Netscape Enterprise Server by Sun Microsystems
  • 20. Web Browsers • Internet Explorer – comes with Windows • Mozilla Firefox - free • Netscape Navigator • Opera