Студопедия

КАТЕГОРИИ:


Архитектура-(3434)Астрономия-(809)Биология-(7483)Биотехнологии-(1457)Военное дело-(14632)Высокие технологии-(1363)География-(913)Геология-(1438)Государство-(451)Демография-(1065)Дом-(47672)Журналистика и СМИ-(912)Изобретательство-(14524)Иностранные языки-(4268)Информатика-(17799)Искусство-(1338)История-(13644)Компьютеры-(11121)Косметика-(55)Кулинария-(373)Культура-(8427)Лингвистика-(374)Литература-(1642)Маркетинг-(23702)Математика-(16968)Машиностроение-(1700)Медицина-(12668)Менеджмент-(24684)Механика-(15423)Науковедение-(506)Образование-(11852)Охрана труда-(3308)Педагогика-(5571)Полиграфия-(1312)Политика-(7869)Право-(5454)Приборостроение-(1369)Программирование-(2801)Производство-(97182)Промышленность-(8706)Психология-(18388)Религия-(3217)Связь-(10668)Сельское хозяйство-(299)Социология-(6455)Спорт-(42831)Строительство-(4793)Торговля-(5050)Транспорт-(2929)Туризм-(1568)Физика-(3942)Философия-(17015)Финансы-(26596)Химия-(22929)Экология-(12095)Экономика-(9961)Электроника-(8441)Электротехника-(4623)Энергетика-(12629)Юриспруденция-(1492)Ядерная техника-(1748)

The FTP protocol




FTP (File Transfer Protocol) - is part of the protocol stack TCP / IP, is used to copy files from one computer to another over a network. Exchange of data in the FTP organized on the principle of “client-server”. In this case, both computers must support the respective roles of FTP: one must be a client of FTP, and another - the server FTP. Figure 7.2.11 shows the model of the protocol.

In the FTP, connection is initiated by the protocol interpreterof the user. Flow control is carried out by the control channel in the standardprotocol TELNET. FTP commands are generated by user protocol interpreter and are transmitted to the server. Server responses are sent to the user also through the management channel. In general, the user is able to establish contact with the server protocol interpreter and different from the user interpreter means.

The FTP commands determine settings of the data transmission channel and the process of transmission. They also determine the nature of the work of local and remote file systems.

Session of management initiates the data channel. At the organization of the data transmission channel, sequence of actions is another, different from organization of the control channel. In this case, the server initiates adata exchange in accordance with the agreed in the session control of parameters.The data channel is set to the same computer as the control channel through which configuring the data channel is carried out. The data channel can be used for both reception and data transmission.

To access a remote computer the FTP protocol is used the following command - ftp host name, as the name of the nodethrough which the connection is carry out, can be used or IP-address or symbolic name of the computer. For example: ftp.microsoft.com or ftp 192.168.0.250.

 

 

Figure 7.2.11 – The diagram of FTP protocol work

 

The ftp command opens a session on a remote computer. After opening the session can be performed the work with directories and files pf the remote computer using the following commands:

 

- bye - Ends the session of FTP-connection to a remote computer with an exit from the program ftp;

- ls - Displays abbreviated list of files and subdirectories in a remote directory;

- Pwd - displays the name of the current directory on the remote computer;

- Send - copying a local file on a remote computer using the current settings such as uploaded files. Syntax - send local-file, where the local-file - Specifies the name of a local file for copying.




Поделиться с друзьями:


Дата добавления: 2014-12-27; Просмотров: 426; Нарушение авторских прав?; Мы поможем в написании вашей работы!


Нам важно ваше мнение! Был ли полезен опубликованный материал? Да | Нет



studopedia.su - Студопедия (2013 - 2024) год. Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав! Последнее добавление




Генерация страницы за: 0.01 сек.