Введение
PPPD – это демон протокола Point-to-Point, используемый для управления сетевыми соединениями между двумя узлами в Unix-подобных операционных системах. Он настраивается с помощью аргументов командной строки и файлов конфигурации. Изначально он использовался для управления только dial-up доступом, но также применяется для управления широкополосными соединениями, такими как DSL, при использовании протокола Point-to-Point Protocol over Ethernet (PPPoE) или протокола Point-to-Point Protocol over ATM (PPPoA). Задача pppd – управление установкой и завершением PPP-сессий. В процессе установления сессии pppd выполняет следующие функции:
manage network connections between two nodes on Unix like operating systems. It is configured using command line arguments and configuration files. While it has initially been used to manage only dial up access, it is also used to manage broadband connections such as DSL, if Point to Point Protocol over Ethernet (PPPoE) or Point to Point Protocol over ATM (PPPoA) is used. The role of pppd is managing PPP session establishment and session termination. During session establishment, pppd has the role of:
Looped link detection: PPP detects looped links using magic numbers. When PPPD sends PPP LCP messages, these messages include a magic number. If a line is looped, the node receives an LCP message with its own magic number, instead of getting a message with the peer's magic number. Automatic self configuration: Using Link Control Protocol it has to negotiate protocol features like Address and Control Field Compression (ACFC), escaped characters, and the compression, encryption (like MPPE) and authentication methods to use. Access control and authentication: Using protocols like Challenge handshake authentication protocol (CHAP) or Password authentication protocol (PAP) it has to provide and check authentication data. Layer 3 configuration: If using Internet Protocol Control Protocol (IPCP), it will negotiate or determine IP parameters such as the IP addresses, the maximum transmission unit, and name server addresses. Some versions may also support Internetwork Packet Exchange Control Protocol (IPXCP) and AppleTalk Control Protocol (ATCP) for routing IPX or AppleTalk over the link. After negotiation is complete, it has to set up the required network interfaces and routes, so that the connection is run by the kernel. pppd terminates a PPP link when:
too many frames with invalid frame check sequence (FCS) field have been received
the link is considered "idle" (if configured)
another program or the peer requests link termination. Some newer versions of pppd are also capable of handling Dial on demand routing, where pppd sets up a virtual network, captures the packages it receives and establishes a PPP connection and forwards the captured and not yet transmitted packages over the link.
Обнаружение петель: PPP обнаруживает петли в соединении с помощью магических чисел. При отправке PPPD PPP LCP-сообщений, они содержат магическое число. Если соединение замкнуто, узел получает LCP-сообщение со своим собственным магическим числом, вместо сообщения с магическим числом удалённого узла. Автоматическая самоконфигурация: с использованием протокола управления каналом связи (Link Control Protocol) он согласовывает параметры протокола, такие как сжатие поля адреса и управления (ACFC), управляющие символы, а также методы сжатия, шифрования (например, MPPE) и аутентификации. Контроль доступа и аутентификация: используя протоколы, такие как протокол аутентификации с проверкой откликом (CHAP) или протокол аутентификации по паролю (PAP), он обеспечивает предоставление и проверку данных аутентификации. Конфигурация 3-го уровня: при использовании протокола управления интернет-протоколом (IPCP) он согласовывает или определяет IP-параметры, такие как IP-адреса, максимальный размер передаваемого блока (MTU) и адреса серверов имён. Некоторые версии также поддерживают протокол управления пакетами Internetwork Packet Exchange Control Protocol (IPXCP) и протокол управления AppleTalk Control Protocol (ATCP) для маршрутизации IPX или AppleTalk по каналу связи. После завершения согласования он настраивает необходимые сетевые интерфейсы и маршруты, чтобы соединение управлялось ядром. pppd завершает PPP-соединение в следующих случаях:
manage network connections between two nodes on Unix like operating systems. It is configured using command line arguments and configuration files. While it has initially been used to manage only dial up access, it is also used to manage broadband connections such as DSL, if Point to Point Protocol over Ethernet (PPPoE) or Point to Point Protocol over ATM (PPPoA) is used. The role of pppd is managing PPP session establishment and session termination. During session establishment, pppd has the role of:
Looped link detection: PPP detects looped links using magic numbers. When PPPD sends PPP LCP messages, these messages include a magic number. If a line is looped, the node receives an LCP message with its own magic number, instead of getting a message with the peer's magic number. Automatic self configuration: Using Link Control Protocol it has to negotiate protocol features like Address and Control Field Compression (ACFC), escaped characters, and the compression, encryption (like MPPE) and authentication methods to use. Access control and authentication: Using protocols like Challenge handshake authentication protocol (CHAP) or Password authentication protocol (PAP) it has to provide and check authentication data. Layer 3 configuration: If using Internet Protocol Control Protocol (IPCP), it will negotiate or determine IP parameters such as the IP addresses, the maximum transmission unit, and name server addresses. Some versions may also support Internetwork Packet Exchange Control Protocol (IPXCP) and AppleTalk Control Protocol (ATCP) for routing IPX or AppleTalk over the link. After negotiation is complete, it has to set up the required network interfaces and routes, so that the connection is run by the kernel. pppd terminates a PPP link when:
too many frames with invalid frame check sequence (FCS) field have been received
the link is considered "idle" (if configured)
another program or the peer requests link termination. Some newer versions of pppd are also capable of handling Dial on demand routing, where pppd sets up a virtual network, captures the packages it receives and establishes a PPP connection and forwards the captured and not yet transmitted packages over the link.
Получено слишком много кадров с недействительным полем контроля последовательности кадров (FCS).
Соединение считается "неактивным" (если настроено).
Завершение соединения запрошено другой программой или удалённым узлом. Некоторые новые версии pppd также поддерживают маршрутизацию по требованию (Dial on demand routing), когда pppd создаёт виртуальную сеть, перехватывает получаемые пакеты, устанавливает PPP-соединение и пересылает перехваченные, ещё не отправленные пакеты по каналу связи.
manage network connections between two nodes on Unix like operating systems. It is configured using command line arguments and configuration files. While it has initially been used to manage only dial up access, it is also used to manage broadband connections such as DSL, if Point to Point Protocol over Ethernet (PPPoE) or Point to Point Protocol over ATM (PPPoA) is used. The role of pppd is managing PPP session establishment and session termination. During session establishment, pppd has the role of:
Looped link detection: PPP detects looped links using magic numbers. When PPPD sends PPP LCP messages, these messages include a magic number. If a line is looped, the node receives an LCP message with its own magic number, instead of getting a message with the peer's magic number. Automatic self configuration: Using Link Control Protocol it has to negotiate protocol features like Address and Control Field Compression (ACFC), escaped characters, and the compression, encryption (like MPPE) and authentication methods to use. Access control and authentication: Using protocols like Challenge handshake authentication protocol (CHAP) or Password authentication protocol (PAP) it has to provide and check authentication data. Layer 3 configuration: If using Internet Protocol Control Protocol (IPCP), it will negotiate or determine IP parameters such as the IP addresses, the maximum transmission unit, and name server addresses. Some versions may also support Internetwork Packet Exchange Control Protocol (IPXCP) and AppleTalk Control Protocol (ATCP) for routing IPX or AppleTalk over the link. After negotiation is complete, it has to set up the required network interfaces and routes, so that the connection is run by the kernel. pppd terminates a PPP link when:
too many frames with invalid frame check sequence (FCS) field have been received
the link is considered "idle" (if configured)
another program or the peer requests link termination. Some newer versions of pppd are also capable of handling Dial on demand routing, where pppd sets up a virtual network, captures the packages it receives and establishes a PPP connection and forwards the captured and not yet transmitted packages over the link.
Передние контуры и конфигураторы
kppp – Графический интерфейс KDE для pppd. gnome ppp – Графический интерфейс GNOME для pppd. pppconfig – Использует стандартные файлы конфигурации PPP и настраивает PPP таким образом, чтобы стандартные команды pon и poff (для подключения и отключения) и plog (для просмотра журнала) можно было использовать для управления PPP. Включает в себя определение модема. wvdial – Инструмент командной строки, который используется для инициализации модема перед запуском pppd.