RU2670378C2 - Ip unnumbered technology-based data transmission method and device - Google Patents

Ip unnumbered technology-based data transmission method and device Download PDF

Info

Publication number
RU2670378C2
RU2670378C2 RU2017103657A RU2017103657A RU2670378C2 RU 2670378 C2 RU2670378 C2 RU 2670378C2 RU 2017103657 A RU2017103657 A RU 2017103657A RU 2017103657 A RU2017103657 A RU 2017103657A RU 2670378 C2 RU2670378 C2 RU 2670378C2
Authority
RU
Russia
Prior art keywords
interface
interfaces
data packet
address
protocol
Prior art date
Application number
RU2017103657A
Other languages
Russian (ru)
Other versions
RU2017103657A (en
RU2017103657A3 (en
Inventor
Хуа АЙ
Original Assignee
ЗетТиИ Корпорейшн
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ЗетТиИ Корпорейшн filed Critical ЗетТиИ Корпорейшн
Publication of RU2017103657A publication Critical patent/RU2017103657A/en
Publication of RU2017103657A3 publication Critical patent/RU2017103657A3/ru
Application granted granted Critical
Publication of RU2670378C2 publication Critical patent/RU2670378C2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

FIELD: electrical communication engineering.SUBSTANCE: invention relates to network communication technologies. IP unnumbered technology-based data transmission method comprises: initialising a device and configuring IP addresses for all interfaces of the device; enabling an open shortest path first (OSPF) protocol, and adding all the interfaces into the OSPF protocol to determine the operating state of all the interfaces of the device; and transmitting a data packet according to an INDEX of an interface determined in the OSPF protocol when the operating state of one or more interfaces of all the interfaces is a use state.EFFECT: technical result consists in increase in the data transmission rate.9 cl, 12 dwg

Description

Область техникиTechnical field

Настоящее изобретение относится к области техники маршрутизации и, в частности, к способу и устройству передачи данных на основе технологии непронумерованных IP-адресов.The present invention relates to the field of technology routing and, in particular, to a method and device for the transmission of data based on the technology of unnumbered IP addresses.

Описание предшествующего уровня техникиDescription of the prior art

Протокол маршрутизации OSPF представляет собой протокол маршрутизации по состоянию канала для IP-сети. Протокол использует протокол внутреннего шлюза алгоритма маршрутизации по состоянию канала для работы внутри одной автономной системы. Протокол OSPFv2, приспособленный для IPv4, определен в RFC 2328, a RFC 5340 определяет OSPFv3, приспособленный для IPv6.OSPF Routing Protocol is a link state routing protocol for an IP network. The protocol uses the internal gateway protocol of the channel-state routing algorithm for operation within a single autonomous system. The OSPFv2 protocol adapted for IPv4 is defined in RFC 2328, and RFC 5340 defines OSPFv3 adapted for IPv6.

Интерфейс OSPF представляет собой соединение между маршрутизатором и сетью, к которой получается доступ. Интерфейс получает информацию о ее состоянии через протокол нижнего уровня и протокол маршрутизации. Интерфейс, указывающий на сеть, относится только к одному IP-адресу и одной IP-маске (только если это не сеть с двухточечным соединением на основе технологии непронумерованных IP-адресов). Интерфейс иногда называется соединением (каналом).The OSPF interface is the connection between the router and the network that is being accessed. The interface receives information about its state through the lower level protocol and the routing protocol. An interface pointing to a network refers only to one IP address and one IP mask (only if it is not a point-to-point network based on unnumbered IP address technology). The interface is sometimes called a connection (channel).

Технология мультиплексирования порта непронумерованных IP-адресов широко используется в маршрутизаторах, которые обычно используются для сохранения IP-адресов. В настоящий момент большинство высокопроизводительных маршрутизаторов поддерживают данную функцию. Так называемое «заимствование IP-адреса» на самом деле заключается в следующем: интерфейс на маршрутизаторе не конфигурируется IP-адресом, но при этом интерфейс должен быть использован, тогда один IP-адрес заимствуется у других интерфейсов с IP-адресами. Если имеется множество IP-адресов для интерфейса, у которого осуществляется заимствование, тогда может быть заимствован только первичный IP-адрес. Если отсутствует IP-адрес для интерфейса, у которого осуществляется заимствование, тогда IP-адрес заимствующего интерфейса имеет вид 0.0.0.0. Поскольку заимствующий интерфейс сам по себе не имеет IP-адреса и маршрут не может быть добавлен, маршрут должен быть сконфигурирован вручную для достижения соединения маршрутизаторов.The port multiplexing technology of unnumbered IP addresses is widely used in routers, which are commonly used to store IP addresses. Currently most high-end routers support this feature. The so-called “borrowing an IP address” is actually this: the interface on the router is not configured by the IP address, but the interface must be used, then one IP address is borrowed from other interfaces with IP addresses. If there are multiple IP addresses for an interface from which to borrow, then only the primary IP address can be borrowed. If there is no IP address for the interface from which the borrowing takes place, then the IP address of the borrowing interface is 0.0.0.0. Since the borrowing interface itself does not have an IP address and the route cannot be added, the route must be manually configured to reach the routers connection.

Технология непронумерованных IP-адресов широко используется в маршрутизаторах, которые обычно используются для сохранения IP-адресов. Большинство соответствующих высокопроизводительных сетевых устройств поддерживает функцию непронумерованных IP-адресов. В данном случае, два маршрутизатора соединены через один логический порт, поддерживаемая функция непронумерованных IP-адресов также должна соответствовать использованию только на одном канале, и соответствующий способ конфигурирования также может быть использован только в одном канале.The technology of unnumbered IP addresses is widely used in routers that are commonly used to store IP addresses. Most of the relevant high-performance network devices support the unnumbered IP address feature. In this case, the two routers are connected through one logical port, the supported unnumbered IP address function must also correspond to using only one channel, and the corresponding configuration method can also be used only on one channel.

Если имеется множество каналов в двух одинаковых устройствах, IP-адрес различных портов РТР может быть выполнен с возможностью соответствия требованиям множества каналов и множество портов РТР использует только небольшую часть IP-адресов; и данный случай использования может соответствовать большинству текущих требований. Тем не менее, в крупной сети каждый узел сети имеет множество каналов для соединения; если используется вышеизложенный способ, множество интерфейсов не может использовать функцию непронумерованных IP-адресов одновременно и для этого необходимо потратить множество IP-адресов.If there are multiple channels in two identical devices, the IP address of the various PTP ports can be configured to meet the requirements of multiple channels and the multiple PTP ports use only a small part of the IP addresses; and this use case can meet most current requirements. However, in a large network, each network node has multiple channels to connect; if the above method is used, multiple interfaces cannot use the unnumbered IP address function at the same time and for this it is necessary to spend multiple IP addresses.

Вышеизложенное используется только с целью помощи в понимании технической схемы настоящего изобретения и не предназначено для признания того, что вышеизложенное представляет собой предшествующий уровень техники.The foregoing is used only to assist in understanding the technical scheme of the present invention and is not intended to recognize that the foregoing is prior art.

Суть изобретенияThe essence of the invention

Вариант осуществления настоящего изобретения предусматривает способ и аппаратуру передачи данных на основе технологии непронумерованных IP-адресов, которые решают техническую проблему, заключающуюся в том, что множество интерфейсов в технологии маршрутизации не может использовать функцию непронумерованных IP-адресов одновременно для реализации передачи данных.An embodiment of the present invention provides a method and apparatus for transmitting data based on an unnumbered IP address technology, which solves the technical problem that a plurality of interfaces in the routing technology cannot use the unnumbered IP address function at the same time to implement data transfer.

Для решения вышеизложенной технической проблемы вариант осуществления настоящего изобретения предусматривает способ передачи данных на основе технологии непронумерованных IP-адресов, включающий следующие этапы:To solve the above technical problem, an embodiment of the present invention provides a method for transmitting data based on an unnumbered IP address technology, comprising the following steps:

инициализацию устройства и конфигурирование IP-адресов для всех интерфейсов устройства;device initialization and IP address configuration for all device interfaces;

запуск открытого протокола предпочтения кратчайшего пути (OSPF) и добавление всех интерфейсов в протокол OSPF для определения рабочего состояния всех интерфейсов устройства; иLaunch the Open Shortest Path Preference Protocol (OSPF) and add all interfaces to the OSPF protocol to determine the operational status of all interfaces of the device; and

передачу пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования.transmission of a data packet in accordance with the INDEX interface defined by the OSPF protocol if the operating state of one or more of all interfaces is in the use state.

В качестве альтернативы, этап инициализации устройства и конфигурирования IP-адресов для всех интерфейсов устройства включает:Alternatively, the device initialization and IP address configuration steps for all device interfaces include:

чтение файла IP-конфигурации и присваивание IP-адреса фиксированному интерфейсу устройства; иreading the IP configuration file and assigning the IP address to the device’s fixed interface; and

конфигурирование остальных интерфейсов, кроме фиксированного интерфейса устройства, в интерфейс типа РТР и конфигурирование IP-адресов остальных интерфейсов в качестве IP-адреса фиксированного интерфейса.configuring the remaining interfaces, except for the fixed interface of the device, into the PTP-type interface and configuring the IP addresses of the other interfaces as the IP address of the fixed interface.

В качестве альтернативы, этап передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования, включает:Alternatively, the step of transmitting a data packet in accordance with the INDEX interface defined by the OSPF protocol, if the operational state of one or more of all the interfaces is a state of use, includes:

установку параметра IP_PKTINFO сокета (SOCK) пакета данных во время отправки пакета данных и отправку пакета данных через INDEX интерфейса, определенного протоколом OSPF; иsetting the parameter IP_PKTINFO of the socket (SOCK) of the data packet while sending the data packet and sending the data packet through the INDEX interface defined by the OSPF protocol; and

определение во время приема пакета данных интерфейса для приема пакета данных в соответствии с INDEX, прикрепленным к принятому пакету данных, и обработку пакета данных через интерфейс для приема пакета данных.determining, at the time of receiving the data packet, an interface for receiving the data packet in accordance with the INDEX attached to the received data packet, and processing the data packet through the interface for receiving the data packet.

В качестве альтернативы, после этапа инициализации устройства и конфигурирования IP-адресов для всех интерфейсов устройства способ передачи данных на основе технологии непронумерованных IP-адресов дополнительно включает:Alternatively, after the device initialization step and the configuration of IP addresses for all device interfaces, the data transfer method based on the unnumbered IP address technology further includes:

согласование МАС-адреса и IP-адреса интерфейса противоположного конца с использованием протокола РРРоЕ.negotiation of the MAC address and the IP address of the opposite end of the interface using the PPPoE protocol.

В качестве альтернативы, после этапа передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования, способ передачи данных на основе технологии непронумерованных IP-адресов дополнительно включает:Alternatively, after the step of transmitting a data packet in accordance with the INDEX interface defined by the OSPF protocol, if the operating state of one or more of all interfaces is in the use state, the method of transmitting data based on the unnumbered IP address technology also includes:

использование протокола OSPF для вычисления и генерирования маршрута интерфейса, используемого для выхода маршрута, поиск INDEX, соответствующего выходу маршрута, и удаление всех IP-адресов шлюза маршрута.using the OSPF protocol to compute and generate the interface route used to exit the route, look up the INDEX corresponding to the output of the route, and remove all the IP addresses of the route gateway.

Кроме того, вариант осуществления настоящего изобретения дополнительно предусматривает устройство передачи данных на основе технологии непронумерованных IP-адресов, содержащее:In addition, an embodiment of the present invention further provides a data transmission device based on an unnumbered IP address technology, comprising:

модуль инициализации, выполненный с возможностью: инициализации устройства и конфигурирования IP-адресов для всех интерфейсов;initialization module, configured to: initialize the device and configure IP addresses for all interfaces;

модуль добавления интерфейса, выполненный с возможностью: запуска открытого протокола предпочтения кратчайшего пути (OSPF) и добавления всех интерфейсов в протокол OSPF для определения рабочего состояния всех интерфейсов устройства; иan interface adding module, configured to: run an open shortest path preference protocol (OSPF) and add all interfaces to the OSPF protocol to determine the operational status of all interfaces of the device; and

модуль отправки и приема, выполненный с возможностью: передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования.a sending and receiving module, configured to: transmit a data packet in accordance with the INDEX interface defined by the OSPF protocol if the operational state of one or more of all the interfaces is in the usage state.

В качестве альтернативы, модуль инициализации выполнен с возможностью чтения файла IP-конфигурации и присваивания IP-адреса фиксированному интерфейсу устройства;Alternatively, the initialization module is configured to read the IP configuration file and assign an IP address to the fixed interface of the device;

конфигурирования остальных интерфейсов, кроме фиксированного интерфейса устройства, в интерфейс типа РТР и конфигурирования IP-адресов остальных интерфейсов в качестве IP-адреса фиксированного интерфейса.configuring the remaining interfaces, except for the fixed interface of the device, into the PTP-type interface and configuring the IP addresses of the other interfaces as the IP address of the fixed interface.

В качестве альтернативы, в настоящем документе модуль отправки и приема выполнен с возможностью:Alternatively, in this document, the sending and receiving module is configured to:

установки параметра IP_PKTINFO сокета (SOCK) пакета данных во время отправки пакета данных и отправки пакета данных через INDEX интерфейса, определенного протоколом OSPF; иsetting the parameter IP_PKTINFO of the socket (SOCK) of the data packet while sending the data packet and sending the data packet through the INDEX interface defined by the OSPF protocol; and

определения во время приема пакета данных интерфейса для приема пакета данных в соответствии с INDEX, прикрепленным к принятому пакету данных, и обработки пакета данных через интерфейс для приема пакета данных.determining, at the time of receiving a data packet, an interface for receiving a data packet in accordance with an INDEX attached to a received data packet, and processing the data packet through an interface for receiving a data packet.

В качестве альтернативы, устройство передачи данных на основе технологии непронумерованных IP-адресов дополнительно содержит:Alternatively, a data communications device based on unnumbered IP address technology further comprises:

модуль согласования, выполненный с возможностью: согласования MAC-адреса и IP-адреса интерфейса противоположного конца с использованием протокола РРРоЕ.the negotiation module, configured to: negotiate the MAC address and IP address of the opposite-end interface using the PPPoE protocol.

В качестве альтернативы, устройство передачи данных на основе технологии непронумерованных IP-адресов дополнительно содержит:Alternatively, a data communications device based on unnumbered IP address technology further comprises:

модуль генерирования маршрута, выполненный с возможностью: использования протокола OSPF для вычисления и генерирования маршрута интерфейса, используемого для выхода маршрута, поиска INDEX, соответствующего выходу маршрута, и удаления всех IP-адресов шлюза маршрута.a route generation module, configured to: use the OSPF protocol to calculate and generate an interface route used to exit a route, look up the INDEX corresponding to the route output, and delete all the IP addresses of the route gateway.

Вариант осуществления настоящего изобретения дополнительно предусматривает компьютерную программу и ее носитель, при этом в настоящем документе компьютерная программа включает программную команду и, когда программная команда исполняется устройством передачи данных, устройство может выполнять вышеизложенный способ передачи данных на основе технологии непронумерованных IP-адресов.An embodiment of the present invention further provides a computer program and its carrier, wherein in this document the computer program includes a program command and, when the program command is executed by the data transfer device, the device can perform the above method of transferring data based on unnumbered IP address technology.

В вариантах осуществления настоящего изобретения посредством инициализации устройства и конфигурирования IP-адресов для всех интерфейсов устройства, а также отправки и приема пакета данных в соответствии с INDEX интерфейса в состоянии использования в протоколе OSPF может быть реализовано, чтобы множество интерфейсов одновременно проводило передачу данных с использованием функции непронумерованных IP-адресов, и достигается цель сохранения IP-адресов, которых с каждым днем становится все меньше.In embodiments of the present invention, by initializing a device and configuring IP addresses for all interfaces of the device, as well as sending and receiving a data packet in accordance with the INDEX interface in the state used in the OSPF protocol, it can be implemented that multiple interfaces simultaneously transmit data using the function unnumbered IP-addresses, and the goal of preserving IP-addresses is reached, which every day becomes less and less.

Краткое описание графических материаловBrief description of graphic materials

На фиг. 1 показана блок-схема первого варианта осуществления способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения;FIG. 1 shows a block diagram of a first embodiment of a method for transmitting data based on the unnumbered IP address technology of the present invention;

на фиг. 2 показана подробная блок-схема этапа инициализации устройства и конфигурирования IP-адресов для всех интерфейсов, показанных на фиг. 1;in fig. 2 shows a detailed block diagram of the step of initializing a device and configuring IP addresses for all interfaces shown in FIG. one;

на фиг. 3 показана подробная блок-схема этапа отправки и приема пакета данных в соответствии с INDEX интерфейса в состоянии использования в протоколе OSPF, показанном на фиг. 1;in fig. 3 shows a detailed block diagram of the step of sending and receiving a data packet in accordance with the INDEX interface in the state of use in the OSPF protocol shown in FIG. one;

на фиг. 4 показана блок-схема второго варианта осуществления способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения;in fig. 4 shows a block diagram of a second embodiment of a method for transmitting data based on the unnumbered IP address technology of the present invention;

на фиг. 5 показана блок-схема третьего варианта осуществления способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения;in fig. 5 shows a block diagram of a third embodiment of a method for transmitting data based on the unnumbered IP address technology of the present invention;

на фиг. 6 показана диаграмма функциональных модулей первого варианта осуществления устройства передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения;in fig. 6 shows a diagram of functional modules of the first embodiment of a data transmission device based on the unnumbered IP address technology of the present invention;

на фиг. 7 показана диаграмма функциональных модулей второго варианта осуществления устройства передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения;in fig. 7 shows a diagram of the functional modules of the second embodiment of the data transmission device based on the unnumbered IP address technology of the present invention;

на фиг. 8 показана диаграмма функциональных модулей третьего варианта осуществления устройства передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения;in fig. 8 is a diagram of functional modules of a third embodiment of a data transmission device based on the unnumbered IP address technology of the present invention;

на фиг. 9 показана диаграмма внешнего соединения двух сетевых элементов;in fig. 9 shows a diagram of the external connection of two network elements;

на фиг. 10 показана диаграмма внешнего соединения одного сетевого элемента со множеством сетевых элементов;in fig. 10 shows a diagram of the external connection of a single network element with multiple network elements;

на фиг. 11 показана диаграмма кольцевого соединения двух сетевых элементов;in fig. 11 shows a diagram of a ring connection of two network elements;

на фиг. 12 показана диаграмма соединений сетевых элементов, интерфейсы которых конфигурируются различными ID домена.in fig. 12 shows the connection diagram of network elements whose interfaces are configured by different domain IDs.

Предпочтительные варианты осуществления настоящего изобретенияPreferred embodiments of the present invention

Вариант осуществления настоящего изобретения будет подробно описан в сочетании с сопроводительными графическими материалами. Следует отметить, что в случае непротиворечивости варианты осуществления в настоящей заявке и признаки в данных вариантах осуществления могут быть скомбинированы сочетаться друг с другом по желанию. Кроме того, несмотря на то, что в блок-схеме показана последовательность логических операций, в некоторых случаях показанные или описанные этапы могут выполняться в последовательности, отличающейся от указанной в настоящем документе. Следует понимать, что конкретные варианты осуществления, описанные в настоящем документе, используются исключительно для объяснения настоящего изобретения и не предназначены для ограничения настоящего изобретения.An embodiment of the present invention will be described in detail in conjunction with the accompanying graphic materials. It should be noted that in the case of consistency, the embodiments in this application and the features in these embodiments can be combined to combine with each other as desired. In addition, despite the fact that the flowchart shows a sequence of logical operations, in some cases, the steps shown or described may be performed in a sequence that differs from that specified in this document. It should be understood that the specific embodiments described herein are used solely to explain the present invention and are not intended to limit the present invention.

На фиг. 1 показана блок-схема первого варианта осуществления способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения. Способ передачи данных на основе технологии непронумерованных IP-адресов, как показано на фиг. 1, включает следующие этапы.FIG. 1 shows a block diagram of a first embodiment of a method for transmitting data based on the unnumbered IP address technology of the present invention. A method of transmitting data based on unnumbered IP address technology, as shown in FIG. 1 includes the following steps.

На этапе S10 устройство инициализируется и все интерфейсы конфигурируются IP-адресами.At step S10, the device is initialized and all interfaces are configured by IP addresses.

Фиксированный IP-адрес присваивается устройству, IP-адрес устройства присваивается фиксированному интерфейсу устройства во время инициализации устройства, затем остальные интерфейсы, кроме фиксированного интерфейса, конфигурируются в качестве РТР интерфейсов и остальные интерфейсы конфигурируются IP-адресом, таким же, как и IP-адрес фиксированного интерфейса.A fixed IP address is assigned to a device, a device IP address is assigned to a fixed device interface during device initialization, then other interfaces, except a fixed interface, are configured as PTP interfaces and the other interfaces are configured with an IP address the same as the fixed IP address. interface.

На этапе S20 запускается открытый протокол предпочтения кратчайшего пути (OSPF) и все интерфейсы добавляются в протокол OSPF для определения рабочего состояния фиксированного интерфейса и остальных интерфейсов.At step S20, the Open Shortest Path Preference Protocol (OSPF) is started and all interfaces are added to the OSPF protocol to determine the operating state of the fixed interface and the remaining interfaces.

Протокол OSPF запускается, все интерфейсы добавляются в протокол OSPF, и рабочее состояние всех интерфейсов оценивается для определения того, находится ли каждый интерфейс в состоянии использования (UP) или в состоянии неиспользования (DOWN), а затем модуль обработки OSPF динамически уведомляется для запуска модуля обработки OSPF для автоматического добавления или удаления интерфейсов.The OSPF protocol is started, all interfaces are added to the OSPF protocol, and the operational status of all interfaces is evaluated to determine whether each interface is in the use state (UP) or non-use state (DOWN), and then the OSPF processing module is dynamically notified to start the processing module OSPF to automatically add or remove interfaces.

На этапе S30 пакет данных передается в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования.At step S30, the data packet is transmitted in accordance with the INDEX interface defined by the OSPF protocol if the operating state of one or more of all the interfaces is a use state.

Если целевой адрес отправки пакета данных является одноадресным, тогда устанавливается SOCK option IP_PKTINFO отправки пакета данных и отправляемый пакет данных отправляется через интерфейс, указанный посредством INDEX. Во время приема пакета данных интерфейс для приема пакета данных находится через INDEX, прикрепленный к принятому пакету данных, и пакет данных обрабатывается. В протоколе OSPF один интерфейс в состоянии использования соответствует одному INDEX.If the destination address of the data packet is unicast, then SOCK option IP_PKTINFO is set to send the data packet and the data packet being sent is sent via the interface specified by INDEX. During the reception of the data packet, the interface for receiving the data packet is through an INDEX attached to the received data packet, and the data packet is processed. In the OSPF protocol, one interface in the use state corresponds to one INDEX.

В настоящем варианте осуществления может быть реализовано, чтобы множество интерфейсов одновременно проводило передачу данных с использованием функции непронумерованных IP-адресов сначала посредством инициализации устройства и конфигурирования IP-адресов для всех интерфейсов, затем запуска протокола OSPF и добавления всех интерфейсов устройства в протокол OSPF для определения рабочего состояния всех интерфейсов, и, наконец, отправки и приема пакета данных в соответствии с INDEX интерфейса в состоянии использования, определенном протоколом OSPF, таким образом достигая цели сохранения IP-адресов, которых с каждым днем становится все меньше.In the present embodiment, it can be implemented that multiple interfaces simultaneously transmit data using the unnumbered IP address function first by initializing the device and configuring the IP address for all interfaces, then running OSPF and adding all device interfaces to OSPF to determine the working the status of all interfaces, and finally, sending and receiving a data packet in accordance with the INDEX interface in the use state defined by the protocol OSPF, thus achieving the goal of preserving IP addresses, which are getting smaller every day.

Ссылаясь на фиг. 2, на фиг. 2 показана подробная блок-схема этапа инициализации устройства и конфигурирования IP-адресов для всех интерфейсов, показанных на фиг. 1.Referring to FIG. 2, in FIG. 2 shows a detailed block diagram of the step of initializing a device and configuring IP addresses for all interfaces shown in FIG. one.

Кроме того, этап S10 включает следующее.In addition, step S10 includes the following.

На этапе S101 файл IP-конфигурации считывается и IP-адрес присваивается фиксированному интерфейсу устройства.In step S101, the IP configuration file is read and the IP address is assigned to the fixed interface of the device.

Фиксированный IP-адрес присваивается устройству и IP-адрес устройства присваивается фиксированному интерфейсу устройства во время инициализации устройства.A fixed IP address is assigned to a device and a device IP address is assigned to a fixed device interface during device initialization.

На этапе S102 остальные интерфейсы, кроме фиксированного интерфейса устройства, конфигурируются в качестве интерфейса типа РТР и IP-адреса остальных интерфейсов конфигурируются в качестве IP-адреса фиксированного интерфейса.At step S102, the remaining interfaces, except for the fixed interface of the device, are configured as an interface of the PTP type and the IP addresses of the other interfaces are configured as the IP address of the fixed interface.

Остальные интерфейсы, кроме фиксированного интерфейса, конфигурируются в качестве интерфейса типа двухточечной связи (РТР), IP-адрес фиксированного интерфейса конфигурируется для остальных интерфейсов, и маска подсети имеет вид 255.255.255.255.The remaining interfaces, except for the fixed interface, are configured as a point-to-point (PTP) type interface, the IP address of the fixed interface is configured for the other interfaces, and the subnet mask is 255.255.255.255.

Ссылаясь на фиг. 3, на фиг. 3 показана подробная блок-схема этапа отправки и приема пакета данных в соответствии с INDEX интерфейса в состоянии использования в протоколе OSPF, показанном на фиг. 1.Referring to FIG. 3, in FIG. 3 shows a detailed block diagram of the step of sending and receiving a data packet in accordance with the INDEX interface in the state of use in the OSPF protocol shown in FIG. one.

В качестве альтернативы, этап S30 включает следующее.Alternatively, step S30 includes the following.

На этапе S301 устанавливается параметр IP_PKTINFO сокета (SOCK) пакета данных во время отправки пакета данных и пакет данных отправляется через INDEX интерфейса.At step S301, the parameter IP_PKTINFO of the socket (SOCK) of the data packet is set at the time of sending the data packet and the data packet is sent via the INDEX interface.

Интерфейс в состоянии использования (UP) в протоколе OSPF отправляет пакет данных протокола OSPF, параметр IP_PKTINFO сокета (SOCK) отправки пакета данных устанавливается во время отправки пакета, и пакет данных отправляется через указанный интерфейс INDEX.The interface in the state of use (UP) in the OSPF protocol sends an OSPF data packet, the IP_PKTINFO parameter of the socket (SOCK) of sending the data packet is set during the packet sending, and the data packet is sent via the specified INDEX interface.

На этапе S302 во время отправки пакета данных устанавливается INDEX пакета данных для определения интерфейса для приема пакета данных, и пакет данных принимается определенным интерфейсом.At step S302, at the time of sending the data packet, an INDEX data packet is set to determine an interface for receiving the data packet, and the data packet is received by the determined interface.

Интерфейс в состоянии использования (UP) в протоколе OSPF принимает пакет данных протокола OSPF, и интерфейс для приема пакета находится через INDEX в пакете данных во время приема пакета.The upstream interface in the OSPF protocol accepts the OSPF protocol data packet, and the interface for receiving the packet is through INDEX in the data packet at the time of receiving the packet.

Ссылаясь на фиг. 4, на фиг. 4 показана блок-схема второго варианта осуществления способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения.Referring to FIG. 4, in FIG. 4 shows a block diagram of a second embodiment of a method for transmitting data based on the unnumbered IP address technology of the present invention.

В качестве альтернативы, во втором варианте осуществления после этапа S10 способ передачи данных на основе технологии непронумерованных IP-адресов дополнительно включает следующее:Alternatively, in the second embodiment, after step S10, the method of transmitting data based on unnumbered IP address technology further includes the following:

на этапе S12 МАС-адрес и IP-адрес интерфейса противоположного конца согласовываются с использованием протокола двухточечной связи через Интернет (РРРоЕ).in step S12, the MAC address and the IP address of the opposite end interface are negotiated using the point-to-point Internet Protocol (PPPoE) protocol.

Соединение устройства с противоположным концом достигается через протокол РРРоЕ, и МАС-адрес и IP-адрес интерфейса противоположного конца согласовываются и конфигурируются.The connection of the device to the opposite end is achieved through the PPPoE protocol, and the MAC address and the IP address of the opposite end interface are negotiated and configured.

Ссылаясь на фиг. 5, на фиг. 5 показана блок-схема третьего варианта осуществления способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения.Referring to FIG. 5, in FIG. 5 shows a block diagram of a third embodiment of a method for transmitting data based on the unnumbered IP address technology of the present invention.

В качестве альтернативы, в третьем варианте осуществления после этапа S30 способ передачи данных на основе технологии непронумерованных IP-адресов дополнительно включает следующее.Alternatively, in the third embodiment, after step S30, the method of transmitting data based on the technology of unnumbered IP addresses further includes the following.

На этапе S40 протокол OSPF используется для вычисления и генерирования маршрута интерфейса, используемого для выхода маршрута, находится INDEX, соответствующий выходу маршрута, и все IP-адреса шлюза маршрута удаляются.At step S40, the OSPF protocol is used to calculate and generate the route of the interface used to exit the route, the INDEX corresponding to the output of the route is located, and all the IP addresses of the route gateway are deleted.

Протокол OSPF вычисляет маршрут, находит INDEX, соответствующий выходу маршрута, во время добавления маршрута и добавляет соответствующий маршрут, при этом не добавляя IP-адреса шлюза маршрута, и данные маршрутизируются из интерфейса, указанного посредством INDEX.The OSPF protocol calculates the route, finds the INDEX corresponding to the output of the route while adding the route and adds the corresponding route without adding the IP address of the route gateway, and the data is routed from the interface specified by INDEX.

Вариант осуществления настоящего изобретения дополнительно предусматривает устройство передачи данных на основе технологии непронумерованных IP-адресов, которое включает процессор, память программ и память данных.An embodiment of the present invention further provides a data transmission device based on unnumbered IP address technology, which includes a processor, a program memory and a data memory.

Ссылаясь на фиг. 6, на фиг. 6 показана диаграмма функциональных модулей первого варианта осуществления устройства передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения.Referring to FIG. 6, in FIG. 6 shows a diagram of the functional modules of the first embodiment of the data transmission device based on the unnumbered IP address technology of the present invention.

В первом варианте осуществления устройство передачи данных на основе технологии непронумерованных IP-адресов включает следующее.In the first embodiment, a data transmission device based on unnumbered IP address technology includes the following.

Модуль 60 инициализации выполнен с возможностью инициализации устройства и конфигурирования IP-адресов для всех интерфейсов.The initialization module 60 is configured to initialize the device and configure IP addresses for all interfaces.

Модуль 60 инициализации присваивает фиксированный IP-адрес устройству, присваивает IP-адрес устройства фиксированному интерфейсу устройства во время инициализации устройства, затем конфигурирует остальные интерфейсы, кроме фиксированного интерфейса, в качестве РТР интерфейса, и присваивает остальным интерфейсам IP-адрес, такой же, как и IP-адрес фиксированного интерфейса.Module 60 initialization assigns a fixed IP address to the device, assigns the IP address of the device to the fixed interface of the device during device initialization, then configures the remaining interfaces, except the fixed interface, as the PTP interface, and assigns the rest of the interfaces the IP address as IP address of a fixed interface.

Модуль 70 добавления интерфейса выполнен с возможностью запуска открытого протокола предпочтения кратчайшего пути (OSPF) и добавления всех интерфейсов в протокол OSPF для определения рабочего состояния всех интерфейсов.The interface adding module 70 is configured to run an open shortest path preference protocol (OSPF) and add all interfaces to the OSPF protocol to determine the operational status of all interfaces.

Модуль 70 добавления интерфейса запускает протокол OSPF, добавляет все интерфейсы в протокол OSPF и оценивает рабочее состояние всех интерфейсов для определения того, находится ли каждый интерфейс в состоянии использования (UP) или в состоянии неиспользования (DOWN), а затем динамически уведомляет модуль обработки OSPF для запуска модуля обработки OSPF для автоматического добавления или удаления интерфейсов.The interface adding module 70 starts the OSPF protocol, adds all interfaces to the OSPF protocol and evaluates the operational status of all interfaces to determine whether each interface is in the use state (UP) or non-use state (DOWN), and then dynamically notifies the OSPF processing module for launch the OSPF processing module to automatically add or remove interfaces.

Модуль 80 отправки и приема выполнен с возможностью передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких интерфейсов из всех интерфейсов является состоянием использования.The sending and receiving module 80 is configured to transmit a data packet in accordance with the INDEX interface defined by the OSPF protocol if the operating state of one or more interfaces from all interfaces is a use state.

Если целевой адрес отправки пакета данных является одноадресным, тогда модуль 80 отправки и приема устанавливает SOCK option IP_PKTINFO отправки пакета данных и отправляет отправляемый пакет данных через интерфейс, указанный посредством INDEX; во время приема пакета данных модуль 80 отправки и приема находит интерфейс для приема пакета данных и обрабатывает пакет данных через INDEX, прикрепленный к принятому пакету данных. В протоколе OSPF один интерфейс в состоянии использования соответствует одному INDEX.If the sending destination of the data packet is unicast, then the send and receive module 80 sets the SOCK option IP_PKTINFO to send the data packet and sends the sent data packet through the interface specified by INDEX; while receiving a data packet, the send and receive module 80 finds an interface to receive a data packet and processes the data packet via INDEX attached to the received data packet. In the OSPF protocol, one interface in the use state corresponds to one INDEX.

В настоящем варианте осуществления может быть реализовано, чтобы множество интерфейсов одновременно проводило передачу данных с использованием функции непронумерованных IP-адресов сначала посредством инициализации устройства и конфигурирования IP-адресов для всех интерфейсов с использованием модуля 60 инициализации, затем запуска протокола OSPF и добавления всех интерфейсов устройства в протокол OSPF для определения рабочего состояния интерфейсов, и, наконец, отправки и приема пакета данных в соответствии с INDEX интерфейса в состоянии использования, определенном протоколом OSPF, таким образом достигая цели сохранения IP-адресов, которых с каждым днем становится все меньше.In the present embodiment, it can be implemented that a plurality of interfaces simultaneously transmit data using the unnumbered IP address function first by initializing the device and configuring the IP address for all interfaces using the initialization module 60, then running OSPF and adding all the interfaces of the device to OSPF protocol for determining the operating state of the interfaces, and, finally, sending and receiving a data packet in accordance with the INDEX interface in the use state lzovaniya defined OSPF protocol, thus achieving the purpose of preservation of IP-addresses, which each day is becoming smaller.

В качестве альтернативы, модуль 60 инициализации выполнен с возможностью:Alternatively, the initialization module 60 is configured to:

чтения файла IP-конфигурации и присваивания IP-адреса фиксированному интерфейсу устройства.read the IP configuration file and assign the IP address to the device’s fixed interface.

Фиксированный IP-адрес присваивается устройству и IP-адрес устройства присваивается фиксированному интерфейсу устройства во время инициализации устройства.A fixed IP address is assigned to a device and a device IP address is assigned to a fixed device interface during device initialization.

Остальные интерфейсы, кроме фиксированного интерфейса устройства, конфигурируются в качестве интерфейса типа РТР, и IP-адреса остальных интерфейсов конфигурируются в качестве IP-адреса фиксированного интерфейса.The rest of the interfaces, except for the fixed interface of the device, are configured as PTP-type interfaces, and the IP addresses of the other interfaces are configured as the IP addresses of the fixed interface.

Остальные интерфейсы, кроме фиксированного интерфейса, конфигурируются в качестве интерфейса типа двухточечной связи (РТР), IP-адрес фиксированного интерфейса конфигурируется для остальных интерфейсов, и маска подсети имеет вид 255.255.255.255.The remaining interfaces, except for the fixed interface, are configured as a point-to-point (PTP) type interface, the IP address of the fixed interface is configured for the other interfaces, and the subnet mask is 255.255.255.255.

В качестве альтернативы, модуль 80 отправки и приема выполнен с возможностью:Alternatively, the sending and receiving module 80 is configured to:

установки параметра IP_PKTINFO сокета (SOCK) пакета данных во время отправки пакета данных и отправки пакета данных через INDEX интерфейса.setting the parameter IP_PKTINFO of the socket (SOCK) of the data packet while sending the data packet and sending the data packet through the INDEX interface.

Интерфейс в состоянии использования (UP) в протоколе OSPF отправляет пакет данных протокола OSPF, параметр IP_PKTINFO сокета (SOCK) отправки пакета данных устанавливается во время отправки пакета, и пакет данных отправляется через указанный интерфейс INDEX.The interface in the state of use (UP) in the OSPF protocol sends an OSPF data packet, the IP_PKTINFO parameter of the socket (SOCK) of sending the data packet is set during the packet sending, and the data packet is sent via the specified INDEX interface.

Во время приема пакета данных интерфейс для приема пакета данных определяется в соответствии с INDEX, прикрепленным к принятому пакету данных, и пакет данных обрабатывается через определенный интерфейс.During the reception of the data packet, the interface for receiving the data packet is determined in accordance with the INDEX attached to the received data packet, and the data packet is processed through a specific interface.

Интерфейс в состоянии использования (UP) в протоколе OSPF принимает пакет данных протокола OSPF, и интерфейс для приема пакета находится через INDEX в пакете данных во время приема пакета.The upstream interface in the OSPF protocol accepts the OSPF protocol data packet, and the interface for receiving the packet is through INDEX in the data packet at the time of receiving the packet.

Ссылаясь на фиг. 7, на фиг. 7 показана диаграмма функциональных модулей второго варианта осуществления устройства передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения.Referring to FIG. 7, in FIG. 7 shows a diagram of the functional modules of the second embodiment of the data transmission device based on the unnumbered IP address technology of the present invention.

В качестве альтернативы, во втором варианте осуществления устройство передачи данных на основе технологии непронумерованных IP-адресов дополнительно содержит:Alternatively, in the second embodiment, the data transmission device based on the technology of unnumbered IP addresses further comprises:

модуль 90 согласования, выполненный с возможностью согласования МАС-адреса и IP-адреса интерфейса противоположного конца с использованием протокола РРРоЕ.module 90 approval, made with the possibility of negotiation of the MAC address and IP address of the interface of the opposite end using the PPPoE Protocol.

Соединение устройства с противоположным концом достигается посредством применения протокола РРРоЕ с использованием модуля 90 согласования, и МАС-адрес и IP-адрес интерфейса противоположного конца согласовываются и конфигурируются.The connection of the device to the opposite end is achieved by applying the PPPoE protocol using the matching module 90, and the MAC address and the IP address of the opposite end interface are negotiated and configured.

Ссылаясь на фиг. 8, на фиг. 8 показана диаграмма функциональных модулей третьего варианта осуществления устройства передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения.Referring to FIG. 8, in FIG. 8 shows a diagram of the functional modules of the third embodiment of the data transmission device based on the unnumbered IP address technology of the present invention.

В качестве альтернативы, в третьем варианте осуществления устройство передачи данных на основе технологии непронумерованных IP-адресов дополнительно включает:Alternatively, in a third embodiment, a data communications device based on unnumbered IP address technology further includes:

модуль 100 генерирования маршрута, выполненный с возможностью использования протокола OSPF для вычисления и генерирования маршрута интерфейса, используемого для выхода маршрута, поиска INDEX, соответствующего выходу маршрута, и удаления IP-адреса шлюза маршрута.a route generation module 100, configured to use the OSPF protocol to compute and generate an interface route used to exit the route, search the INDEX corresponding to the route output, and remove the IP address of the route gateway.

Модуль 100 генерирования маршрута вычисляет маршрут с использованием протокола OSPF, находит INDEX, соответствующий выходу маршрута, во время добавления маршрута и добавляет соответствующий маршрут, при этом не добавляя IP-адреса шлюза маршрута, и данные маршрутизируются из интерфейса, указанного посредством INDEX.The route generation module 100 calculates the route using the OSPF protocol, finds the INDEX corresponding to the output of the route while adding the route and adds the appropriate route without adding the IP address of the route gateway, and the data is routed from the interface specified by INDEX.

Вариант осуществления применения способа передачи данных на основе технологии непронумерованных IP-адресов настоящего изобретения, взаимодействующего с двумя сетевыми элементами, относится к фиг. 9. Сетевой элемент А и сетевой элемент В взаимосоединены через N каналов, сетевой элемент А считывает файл IP-конфигурации и присваивает IP-адрес 192.176.1.1/24 фиксированному интерфейсу сетевого элемента А, затем конфигурирует IP-адреса интерфейсов Ppp1-PppN в качестве 192.176.1.1/24, и при этом конфигурирует интерфейсы Ppp1-PppN в качестве интерфейса типа РТР, и интерфейс типа РТР имеет вид 192.80.1.1. Интерфейсы Ppp1-PppN запускают протокол РРРОЕ, согласовываются для определения IP-адреса и МАС-адреса сетевого элемента В. После запуска устройств сетевого элемента А и сетевого элемента В сначала подключается линия 2, а затем подключаются остальные линии. Поскольку линия 2 переходит в состояние использования раньше, протокол OSPF сначала вычисляет, что маршрут сгенерирован линией 2. Затем, как сетевой элемент А, так и сетевой элемент В узнают маршрут противоположного конца через порт РРР и РРР2 линии 2. В то же время линии 1-N также участвуют в вычислении протокола OSPF, и в этом время линии 1-N рассматриваются в качестве резервных линий. Если линия 2 выходит из строя, протокол OSPF выполняет повторное вычисление для поиска другого порта РРР в качестве выхода маршрута устройства противоположного конца.An embodiment of applying a data transmission method based on the unnumbered IP address technology of the present invention, interacting with two network elements, relates to FIG. 9. Network element A and network element B are interconnected via N channels, network element A reads the IP configuration file and assigns the IP address 192.176.1.1/24 to the fixed interface of network element A, then configures the IP addresses of the Ppp1-PppN interfaces as 192.176 .1.1 / 24, while configuring the interfaces Ppp1-PppN as the PTP-type interface, and the PTP-type interface is 192.80.1.1. The Ppp1-PppN interfaces start the PPROE protocol, negotiate to determine the IP address and the MAC address of network element B. After starting the devices of network element A and network element B, line 2 is connected first and then the remaining lines are connected. Since line 2 goes into a state of use earlier, OSPF protocol first calculates that the route is generated by line 2. Then both network element A and network element B will know the opposite end route through port PPP and PPP2 of line 2. At the same time, line 1 -N is also involved in the calculation of the OSPF protocol, and at this time, lines 1-N are treated as backup lines. If line 2 fails, OSPF performs a recalculation to search for another PPP port as the route output of the opposite end.

Способ передачи данных на основе технологии непронумерованных IP-адресов варианта осуществления настоящего изобретения также применим в ситуации, когда один сетевой элемент взаимосоединен со множеством сетевых элементов. Ссылаясь на фиг. 10, сетевой элемент А соединен с сетевым элементом В, сетевым элементом С и сетевым элементом D через множество каналов; и процессы передачи данных между сетевым элементом А и сетевым элементом В, сетевым элементом А и сетевым элементом В, сетевым элементом А и сетевым элементом С являются такими же, как и процесс передачи между двумя сетевыми элементами, показанными на фиг. 9.A data transmission method based on the unnumbered IP address technology of an embodiment of the present invention is also applicable in a situation where one network element is interconnected with a plurality of network elements. Referring to FIG. 10, the network element A is connected to the network element B, the network element C and the network element D through a plurality of channels; and the data transfer processes between network element A and network element B, network element A and network element B, network element A and network element C are the same as the transfer process between the two network elements shown in FIG. 9.

Способ передачи данных на основе технологии непронумерованных IP-адресов варианта осуществления настоящего изобретения также применим в ситуации, когда два сетевых элемента соединены кольцевым образом. Ссылаясь на фиг. 11, маршрутная петля предотвращается вследствие выполнения вычисления протоколом OSPF, и его процесс передачи данных является таким же, как и процесс передачи между двумя сетевыми элементами, показанными на фиг. 9.A data transmission method based on the unnumbered IP address technology of an embodiment of the present invention is also applicable in a situation where two network elements are connected in a ring manner. Referring to FIG. 11, the route loop is prevented due to the OSPF computation, and its data transfer process is the same as the transfer process between the two network elements shown in FIG. 9.

Ссылаясь на фиг. 12, если устройству сетевого элемента необходимо разделить различные домены протокола OSPF, как IP-адрес интерфейса, так и принадлежащий ему домен должны быть модифицированы в качестве отличных от остальных интерфейсов для гарантирования того, что IP-адрес и ID домена интерфейса не будут конфликтовать с IP-адресом и ID домена остальных интерфейсов, то есть может быть выполнено требование разделения сетей через ID домена в крупной сети. В соответствии со способом протокола OSPF необходимо конфигурировать остальные домены на одном маршрутизаторе в магистральном домене (домене 0.0.0.0), и так появляется домен 0.0.0.1. Все маршрутизаторы, соединенные с данным интерфейсом, имеют домен 0.0.0.1. Как показано на фиг. 9, сетевой элемент А и сетевой элемент В имеют два соединения, сетевой элемент А относится к магистральному домену, а сетевой элемент В относится к домену 0.0.0.1. Интерфейсы ppp1 и РРР2 сетевого элемента А соединены с сетевым элементом В. В данном случае, IP-адреса РРР1 и РРР2 сетевого элемента А должны быть модифицированы в качестве других IP-адресов, при этом IP-адрес фиксированного интерфейса не может быть заимствован. IP-адрес РРР1 имеет вид 192.176.1.2, и в это время IP-адрес РРР2 заимствуется у IP-адреса РРР1. Таким образом может быть гарантировано сохранение IP-адреса.Referring to FIG. 12, if a network element device needs to separate different OSPF domains, both the interface IP address and the domain belonging to it must be modified as different interfaces to ensure that the IP address and domain ID of the interface do not conflict with IP -address and domain ID of other interfaces, that is, the requirement to separate networks through the domain ID in a large network can be fulfilled. In accordance with the OSPF protocol method, it is necessary to configure the remaining domains on the same router in the trunk domain (domain 0.0.0.0), and so the domain 0.0.0.1 appears. All routers connected to this interface have a domain 0.0.0.1. As shown in FIG. 9, the network element A and the network element B have two connections, the network element A refers to the backbone domain, and the network element B belongs to the domain 0.0.0.1. The ppp1 and PPP2 interfaces of network element A are connected to network element B. In this case, the IP addresses PPP1 and PPP2 of network element A must be modified as other IP addresses, and the IP address of the fixed interface cannot be borrowed. The IP address of PPP1 is 192.176.1.2, and at this time the IP address of PPP2 is borrowed from the IP address of PPP1. This way the preservation of the IP address can be guaranteed.

Специалистам в данной области техники будет понятно, что все или часть этапов в вышеупомянутом варианте осуществления могут быть выполнены с использованием порядка выполнения компьютерной программы, и порядок выполнения компьютерной программы может быть сохранен на машиночитаемом носителе данных, и порядок выполнения компьютерной программы осуществляется на соответствующей аппаратной платформе (такой как система, устройство, аппаратура, компонент и т.д.) и включает один из этапов варианта осуществления способа или их сочетание во время выполнения.It will be understood by those skilled in the art that all or part of the steps in the above embodiment can be performed using the order of execution of the computer program, and the order of execution of the computer program can be stored on a computer-readable storage medium, and the order of execution of the computer program is performed on the appropriate hardware platform (such as a system, device, apparatus, component, etc.) and includes one of the steps of an embodiment of the method or a combination thereof on me perform.

В качестве альтернативы, все или часть этапов в вышеупомянутых вариантах осуществления также могут быть реализованы с использованием интегральных схем. Данные этапы могут быть воплощены в модулях интегральной схемы друг за другом, соответственно, или множество модулей или этапов внутри них могут быть воплощены в одном модуле интегральной схемы для реализации. Таким образом, настоящее изобретение не ограничивается какой-либо конкретной формой сочетания аппаратного обеспечения и программного обеспечения.Alternatively, all or part of the steps in the above embodiments may also be implemented using integrated circuits. These steps may be implemented in modules of the integrated circuit one after another, respectively, or a plurality of modules or steps within them may be embodied in one module of the integrated circuit for implementation. Thus, the present invention is not limited to any particular form of combination of hardware and software.

Каждое устройство / функциональный модуль / функциональный блок в вышеупомянутом варианте осуществления может быть реализован с использованием универсальной вычислительной аппаратуры, и они могут быть встроены в одну вычислительную аппаратуру или распределены по сети, которую составляют множество типов вычислительной аппаратуры.Each device / functional module / functional unit in the above embodiment can be implemented using universal computing equipment, and they can be embedded in a single computing equipment or distributed over a network that makes up many types of computing equipment.

Каждое устройство / функциональный модуль / функциональный блок в вышеупомянутом варианте осуществления может быть сохранен на машиночитаемом носителе данных, если он реализован в форме программного функционального модуля и продается или используется в качестве отдельного продукта. Вышеупомянутый машиночитаемый носитель данных может представлять собой постоянное запоминающее устройство, магнитный диск или оптический диск и т.д.Each device / function module / function block in the aforementioned embodiment may be stored on a computer readable storage medium if it is implemented in the form of a software function module and is sold or used as a separate product. The aforementioned computer-readable storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Данные модификации и замены, которые могут быть легко придуманы специалистами в данной области техники в пределах технического объема, раскрытого в настоящем изобретении, должны быть реализованы в пределах объема защиты настоящего изобретения. Следовательно, объем защиты настоящего изобретения должен быть основан на объеме защиты, описанном в формуле изобретения.These modifications and substitutions that can be easily invented by those skilled in the art within the technical scope disclosed in the present invention should be implemented within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope described in the claims.

Промышленная применимостьIndustrial Applicability

Вариант осуществления настоящего изобретения дополнительно раскрывает способ и устройство передачи данных на основе технологии непронумерованных IP-адресов, включающие: инициализацию устройства и конфигурирование IP-адресов для всех интерфейсов устройства; запуск протокола OSPF и добавление всех интерфейсов в протокол OSPF для определения рабочего состояния всех интерфейсов; и передачу пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если один или несколько интерфейсов из всех интерфейсов находятся в состоянии использования, может быть реализовано, чтобы множество интерфейсов одновременно проводило передачу данных с использованием функции непронумерованных IP-адресов, таким образом сохраняя IP-адреса, которых с каждым днем становится все меньше.An embodiment of the present invention further discloses a method and device for transmitting data based on unnumbered IP address technology, including: initializing a device and configuring IP addresses for all interfaces of the device; Launching OSPF and adding all interfaces to OSPF to determine the operational status of all interfaces and transmitting a data packet in accordance with the INDEX interface defined by the OSPF protocol, if one or more interfaces from all interfaces are in a state of use, it can be implemented that multiple interfaces simultaneously transmit data using the function of unnumbered IP addresses, thus saving IP -address, which every day is getting smaller.

Claims (26)

1. Способ передачи данных на основе технологии непронумерованных IP-адресов, включающий:1. The method of data transmission based on the technology of unnumbered IP addresses, including: инициализацию устройства и конфигурирование IP-адресов для всех интерфейсов устройства;device initialization and IP address configuration for all device interfaces; согласование МАС-адреса и IP-адреса интерфейса противоположного конца с использованием протокола РРРоЕ;negotiation of the MAC address and the IP address of the opposite end of the interface using the PPPoE protocol; запуск открытого протокола предпочтения кратчайшего пути (OSPF) и добавление всех интерфейсов в протокол OSPF для определения рабочего состояния всех интерфейсов устройства; иLaunch the Open Shortest Path Preference Protocol (OSPF) and add all interfaces to the OSPF protocol to determine the operational status of all interfaces of the device; and передачу пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования.transmission of a data packet in accordance with the INDEX interface defined by the OSPF protocol if the operating state of one or more of all interfaces is in the use state. 2. Способ по п. 1, отличающийся тем, что этап инициализации устройства и конфигурирования IP-адресов для всех интерфейсов устройства включает:2. The method according to p. 1, characterized in that the step of initializing the device and configuring IP addresses for all interfaces of the device includes: чтение файла IP-конфигурации и присваивание IP-адреса фиксированному интерфейсу устройства; иreading the IP configuration file and assigning the IP address to the device’s fixed interface; and конфигурирование остальных интерфейсов, кроме фиксированного интерфейса устройства, в интерфейс типа РТР и конфигурирование IP-адресов остальных интерфейсов в качестве IP-адреса фиксированного интерфейса.configuring the remaining interfaces, except for the fixed interface of the device, into the PTP-type interface and configuring the IP addresses of the other interfaces as the IP address of the fixed interface. 3. Способ по п. 1, отличающийся тем, что этап передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования, включает:3. The method according to p. 1, characterized in that the step of transmitting a data packet in accordance with the INDEX interface defined by the OSPF protocol, if the operating state of one or more of all the interfaces is a state of use, includes: установку параметра IP_PKTINFO сокета (SOCK) пакета данных во время отправки пакета данных и отправку пакета данных через INDEX интерфейса, определенного протоколом OSPF; иsetting the parameter IP_PKTINFO of the socket (SOCK) of the data packet while sending the data packet and sending the data packet through the INDEX interface defined by the OSPF protocol; and определение во время приема пакета данных интерфейса для приема пакета данных в соответствии с INDEX, прикрепленным к принятому пакету данных, и обработку пакета данных через интерфейс для приема пакета данных.determining, at the time of receiving the data packet, an interface for receiving the data packet in accordance with the INDEX attached to the received data packet, and processing the data packet through the interface for receiving the data packet. 4. Способ по п. 1, отличающийся тем, что после этапа передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования, дополнительно включает:4. The method according to claim 1, wherein after the step of transmitting a data packet in accordance with the INDEX interface defined by the OSPF protocol, if the operating state of one or more of all the interfaces is in the state of use, it also includes использование протокола OSPF для вычисления и генерирования маршрута интерфейса, используемого для выхода маршрута, поиск INDEX, соответствующего выходу маршрута, и удаление всех IP-адресов шлюза маршрута.using the OSPF protocol to compute and generate the interface route used to exit the route, look up the INDEX corresponding to the output of the route, and remove all the IP addresses of the route gateway. 5. Устройство передачи данных на основе технологии непронумерованных IP-адресов, содержащее:5. A data transmission device based on unnumbered IP address technology, comprising: модуль инициализации, выполненный с возможностью: инициализации устройства и конфигурирования IP-адресов для всех интерфейсов устройства;initialization module, configured to: initialize the device and configure IP addresses for all interfaces of the device; модуль согласования, выполненный с возможностью: согласования МАС-адреса и IP-адреса интерфейса противоположного конца с использованием протокола РРРоЕ;a negotiation module, configured to: negotiate the MAC address and IP address of the opposite-end interface using PPPoE protocol; модуль добавления интерфейса, выполненный с возможностью: запуска открытого протокола предпочтения кратчайшего пути (OSPF) и добавления всех интерфейсов в протокол OSPF для определения рабочего состояния всех интерфейсов устройства; иan interface adding module, configured to: run an open shortest path preference protocol (OSPF) and add all interfaces to the OSPF protocol to determine the operational status of all interfaces of the device; and модуль отправки и приема, выполненный с возможностью: передачи пакета данных в соответствии с INDEX интерфейса, определенного протоколом OSPF, если рабочее состояние одного или нескольких из всех интерфейсов является состоянием использования.a sending and receiving module, configured to: transmit a data packet in accordance with the INDEX interface defined by the OSPF protocol if the operational state of one or more of all the interfaces is in the usage state. 6. Устройство по п. 5, отличающееся тем, что модуль инициализации выполнен с возможностью:6. The device according to p. 5, characterized in that the initialization module is configured to: чтения файла IP-конфигурации и присваивания IP-адреса фиксированному интерфейсу устройства; иread the IP configuration file and assign the IP address to the device’s fixed interface; and конфигурирования остальных интерфейсов, кроме фиксированного интерфейса устройства, в интерфейс типа РТР и конфигурирования IP-адресов остальных интерфейсов в качестве IP-адреса фиксированного интерфейса.configuring the remaining interfaces, except for the fixed interface of the device, into the PTP-type interface and configuring the IP addresses of the other interfaces as the IP address of the fixed interface. 7. Устройство по п. 5, отличающееся тем, что модуль отправки и приема выполнен с возможностью:7. The device according to p. 5, characterized in that the sending and receiving module is configured to: установки параметра IP PKTINFO сокета (SOCK) пакета данных во время отправки пакета данных и отправки пакета данных через INDEX интерфейса, определенного протоколом OSPF; и определения во время приема пакета данных интерфейса для приема пакета данных в соответствии с INDEX, прикрепленным к принятому пакету данных, и обработки пакета данных через интерфейс для приема пакета данных.setting the IP parameter of the PKTINFO socket (SOCK) of a data packet while sending a data packet and sending a data packet via the INDEX interface defined by the OSPF protocol; and determining, during reception of a data packet, an interface for receiving a data packet in accordance with an INDEX attached to a received data packet and processing the data packet through an interface for receiving a data packet. 8. Устройство по п. 5, отличающееся тем, что дополнительно содержит: модуль генерирования маршрута, выполненный с возможностью:8. The device according to claim 5, characterized in that it further comprises: a route generation module, configured to: использования протокола OSPF для вычисления и генерирования маршрута интерфейса, используемого для выхода маршрута, поиска INDEX, соответствующего выходу маршрута, и удаления всех IP-адресов шлюза маршрута.use the OSPF protocol to calculate and generate the interface route used to exit the route, search for the INDEX corresponding to the output of the route, and remove all the IP addresses of the route gateway. 9. Носитель, содержащий программную команду, при исполнении которой устройством сетевого элемента устройство запускается для выполнения способа по любому из пп. 1-4.9. The media containing the software command, when executed by the device of the network element, the device starts to perform the method according to any one of claims. 1-4.
RU2017103657A 2014-07-18 2014-12-25 Ip unnumbered technology-based data transmission method and device RU2670378C2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410345146.? 2014-07-18
CN201410345146.X 2014-07-18
CN201410345146.XA CN105323172B (en) 2014-07-18 2014-07-18 Data transmission method and equipment based on unnumbered IP technology
PCT/CN2014/095005 WO2015117525A1 (en) 2014-07-18 2014-12-25 Ip unnumbered technology-based data transmission method and device

Publications (3)

Publication Number Publication Date
RU2017103657A RU2017103657A (en) 2018-08-20
RU2017103657A3 RU2017103657A3 (en) 2018-08-20
RU2670378C2 true RU2670378C2 (en) 2018-10-22

Family

ID=53777326

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2017103657A RU2670378C2 (en) 2014-07-18 2014-12-25 Ip unnumbered technology-based data transmission method and device

Country Status (3)

Country Link
CN (1) CN105323172B (en)
RU (1) RU2670378C2 (en)
WO (1) WO2015117525A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860489B (en) * 2021-02-20 2024-02-09 杭州迪普科技股份有限公司 Equipment configuration recovery method and device
CN114363255B (en) * 2021-12-31 2023-07-18 重庆奥普泰通信技术有限公司 Data processing method, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523790A (en) * 2003-02-21 2004-08-25 华为技术有限公司 Link binding method of intelligent optical network
CN1610898A (en) * 2001-08-22 2005-04-27 诺基亚公司 Method and system for implementing OSPF redundancy
CN1905560A (en) * 2006-08-09 2007-01-31 烽火通信科技股份有限公司 Method of using non-number port in route protocol based on IPV4

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986617B (en) * 2010-10-26 2012-07-04 中国电子科技集团公司第二十八研究所 Router cross-autonomy region plug and play method
CN102984070B (en) * 2012-12-13 2016-03-09 重庆金美通信有限责任公司 A kind of Ethernet is without the method for numbering Interface realization data retransmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1610898A (en) * 2001-08-22 2005-04-27 诺基亚公司 Method and system for implementing OSPF redundancy
CN1523790A (en) * 2003-02-21 2004-08-25 华为技术有限公司 Link binding method of intelligent optical network
CN1905560A (en) * 2006-08-09 2007-01-31 烽火通信科技股份有限公司 Method of using non-number port in route protocol based on IPV4

Also Published As

Publication number Publication date
CN105323172B (en) 2020-07-14
CN105323172A (en) 2016-02-10
RU2017103657A (en) 2018-08-20
RU2017103657A3 (en) 2018-08-20
WO2015117525A1 (en) 2015-08-13

Similar Documents

Publication Publication Date Title
EP2375659B1 (en) Scalable distributed user plane partitioned two-stage forwarding information base lookup for subscriber internet protocol host routes
US8751617B2 (en) Method and device for identifying and selecting an interface to access a network
US9600263B2 (en) Systems and methods for performing uninterrupted network upgrades with controllers
US8737388B2 (en) Method, apparatus and system for processing packets
RU2661768C2 (en) Arp processing method, switch device and control module
US9705844B2 (en) Address management in a connectivity platform
MXPA05011092A (en) Method and apparatus for router port configuration.
CN107809386B (en) IP address translation method, routing device and communication system
US11929851B2 (en) Gateway selection method, device, and system
RU2670378C2 (en) Ip unnumbered technology-based data transmission method and device
EP3262802B1 (en) Automatic discovery and provisioning of multi-chassis etherchannel peers
US9246804B1 (en) Network routing
US9509659B2 (en) Connectivity platform
US9866524B2 (en) Home gateway apparatus and packet transfer method
KR20050009914A (en) Gateway unit and control method thereof
JP2011120083A (en) Method of path switching in multi-home connection environment, router, and program
US8549117B2 (en) Method for address translator traversal in 3GPP networks
CN115941455A (en) Method and communication device for intercommunication between cloud network and operator network of data center
US20170289099A1 (en) Method and Device for Managing Internet Protocol Version 6 Address, and Terminal
US20240007434A1 (en) Network configuration using preferred and fallback postures for customer premises equipment
US20210051076A1 (en) A node, control system, communication control method and program
KR101362290B1 (en) System and method for wireless internet access
WO2023209416A1 (en) Receive side scaling with dynamic queue allocation
US8194689B2 (en) Method for bring-up of voice over internet protocol telephones
CN115733643A (en) MAC learning method, device, electronic equipment and storage medium