RU2605494C2 - METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING - Google Patents

METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING Download PDF

Info

Publication number
RU2605494C2
RU2605494C2 RU2014147780/08A RU2014147780A RU2605494C2 RU 2605494 C2 RU2605494 C2 RU 2605494C2 RU 2014147780/08 A RU2014147780/08 A RU 2014147780/08A RU 2014147780 A RU2014147780 A RU 2014147780A RU 2605494 C2 RU2605494 C2 RU 2605494C2
Authority
RU
Russia
Prior art keywords
port
message
network device
detection message
connection
Prior art date
Application number
RU2014147780/08A
Other languages
Russian (ru)
Other versions
RU2014147780A (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 RU2014147780A publication Critical patent/RU2014147780A/en
Application granted granted Critical
Publication of RU2605494C2 publication Critical patent/RU2605494C2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Small-Scale Networks (AREA)

Abstract

FIELD: electronics.
SUBSTANCE: invention relates to means of detecting Ethernet ports looping. Periodically transmitted by a network device are detection messages from each port of the network device. It is determined whether the received detection message is a message transmitted locally, and if the received detection message is a message transmitted locally, extracted from the received detection message is a number of the port, from which the received detection message is sent, and this port is disconnected; otherwise the received detection message is sent to the next network device. Herewith the port disconnection is carried out by switching off the MAC-address identification function for the said port.
EFFECT: technical result is reducing the probability of loosing the network serviceability caused by presence of looping in the network.
13 cl, 3 dwg

Description

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

Настоящее изобретение относится к области связи и, в частности, к способу и устройству для обнаружения закольцовывания портов (port loopback) Ethernet.The present invention relates to the field of communications and, in particular, to a method and apparatus for detecting port loopback Ethernet.

Предпосылки создания изобретенияBACKGROUND OF THE INVENTION

В существующих сетях связи ошибки в конфигурациях или проблемы сетевых соединений могут вызывать закольцовывание в сетях связи; при этом если в сети имеется закольцовывание, то сообщения, переданные сетевым устройством, могут снова вернуться в это сетевое устройство после пересылки другими сетевыми устройствами; и далее это сетевое устройство может опять передавать эти сообщения циклически до тех пор, пока не будет исчерпана пропускная способность сети, что приведет к отказу каналов связи и даже к потере работоспособности сети.In existing communication networks, configuration errors or network connection problems can cause loopback in communication networks; if there is looping in the network, then messages transmitted by the network device may again return to this network device after forwarding by other network devices; further, this network device can again transmit these messages cyclically until the network bandwidth is exhausted, which will lead to the failure of communication channels and even to a loss of network performance.

Сущность изобретенияSUMMARY OF THE INVENTION

Предлагаются способ и устройство для обнаружения закольцовывания портов Ethernet, чтобы предотвратить потерю работоспособности сети, вызываемую наличием закольцовывания в сети.A method and apparatus for detecting loopback of Ethernet ports is provided to prevent loss of network performance caused by looping in the network.

В соответствии с одним из аспектов настоящего изобретения предлагается способ обнаружения закольцовывания портов Ethernet, включающий:In accordance with one aspect of the present invention, there is provided a method for detecting loopback of Ethernet ports, comprising:

периодическую передачу сетевым устройством сообщения обнаружения из каждого порта сетевого устройства;Periodic transmission by the network device of a discovery message from each port of the network device;

определение, является ли принятое сообщение обнаружения сообщением, переданным локально, и если да, то извлечение из этого принятого сообщения обнаружения номера порта, из которого передано это сообщение обнаружения, и отключение соединения с этим портом; в противном случае пересылку принятого сообщения обнаружения в следующее сетевое устройство.determining whether the received discovery message is a message transmitted locally, and if so, extracting from this received discovery message the port number from which this discovery message is transmitted and disconnecting the connection to this port; otherwise, forwarding the received discovery message to the next network device.

В предпочтительном варианте осуществления изобретения данный способ также включает:In a preferred embodiment, the method also includes:

выполнение установки типа протокола для сообщения обнаружения для сетевого устройства заранее иperforming a protocol type setting for the discovery message for the network device in advance and

формирование сетевым устройством сообщения обнаружения в соответствии с указанной установкой.formation by the network device of a detection message in accordance with the specified setting.

В предпочтительном варианте осуществления изобретения после установки типа протокола для сообщения обнаружения данный способ также включает:In a preferred embodiment of the invention, after setting the protocol type for the discovery message, the method also includes:

установку режима виртуальной локальной сети (VLAN, virtual local area network) сообщения обнаружения для сетевого устройства.setting the virtual local area network (VLAN) mode of the discovery message for the network device.

В предпочтительном варианте осуществления изобретения сообщение обнаружения содержит поле типа Ethernet, поле MAC-адреса источника (MAC - Media Access Control, управление доступом к среде передачи), поле номера порта и поле ключевой информации.In a preferred embodiment, the discovery message comprises an Ethernet field, a source MAC address (MAC) field, a port number field and a key information field.

В предпочтительном варианте осуществления изобретения сетевое устройство формирует и выводит сигнал предупреждения о закольцовывании при отключении соединения с портом.In a preferred embodiment, the network device generates and outputs a loopback warning signal when the connection to the port is disconnected.

В предпочтительном варианте осуществления изобретения после отключения соединения с портом сетевое устройство выполняет:In a preferred embodiment of the invention, after disconnecting the port connection, the network device performs:

запуск таймера соединения порта иstart the port connection timer and

определение, истекло ли время таймера соединения порта, и если да, то включение соединения с портом и, одновременно с этим, формирование и вывод сигнала предупреждения о восстановлении закольцовывания.determining whether the port connection timer has expired, and if so, then enabling the connection to the port and, at the same time, generating and outputting a warning message about the restoration of loopback.

В предпочтительном варианте осуществления изобретения данный способ также включает отключение соединения с портом посредством отключения функции распознавания MAC-адреса для этого порта, а также включение соединения с портом посредством включения функции распознавания MAC-адреса для этого порта.In a preferred embodiment of the invention, this method also includes disabling the port connection by disabling the MAC address recognition function for this port, as well as enabling the port connection by enabling the MAC address recognition function for this port.

В предпочтительном варианте осуществления изобретения сигнал предупреждения о закольцовывании и сигнал предупреждения о восстановлении закольцовывания включают номер сетевого устройства и номер порта.In a preferred embodiment, the loopback warning signal and the loopback recovery warning signal include a network device number and a port number.

В предпочтительном варианте осуществления изобретения сообщение обнаружения представляет собой широковещательный пакет.In a preferred embodiment, the discovery message is a broadcast packet.

В предпочтительном варианте осуществления изобретения сетевое устройство определяет, является ли принятое сообщение обнаружения сообщением, переданным локально, в соответствии с полем MAC-адреса источника в принятом сообщении обнаружения.In a preferred embodiment of the invention, the network device determines whether the received discovery message is a message transmitted locally in accordance with the source MAC address field in the received discovery message.

В соответствии с другим аспектом настоящего изобретения предлагается устройство для обнаружения закольцовывания портов Ethernet, содержащее модуль передачи сообщения обнаружения и модуль приема сообщения обнаружения,In accordance with another aspect of the present invention, there is provided an Ethernet port loopback detection device comprising: a detection message transmitting module and a detection message receiving module,

при этом модуль передачи сообщения обнаружения сконфигурирован для периодического формирования сообщения обнаружения и передачи этого сообщения обнаружения из каждого порта сетевого устройства,wherein the detection message transmission module is configured to periodically generate the detection message and transmit this detection message from each port of the network device,

а модуль приема сообщения обнаружения сконфигурирован для определения, является ли сообщение обнаружения, принятое сетевым устройством, сообщением, переданным локально; извлечения из принятого сообщения обнаружения номера порта, из которого передано сообщение обнаружения; в случае если принятое сообщение обнаружения является сообщением, переданным локально, отключения соединения с портом; а в случае если принятое сообщение обнаружения не является сообщением, переданным локально, пересылки принятого сообщения обнаружения в следующее сетевое устройство.and the detection message receiving unit is configured to determine whether the detection message received by the network device is a message transmitted locally; extracting from the received discovery message a port number from which the discovery message is transmitted; in case the received discovery message is a message transmitted locally, disconnecting the port connection; and if the received discovery message is not a message transmitted locally, forwarding the received discovery message to the next network device.

В предпочтительном варианте осуществления изобретения устройство также включает таймер соединения порта и модуль настройки,In a preferred embodiment, the device also includes a port connection timer and a tuner,

при этом таймер соединения порта сконфигурирован для отсчета периода времени, в течение которого соединение с портом находится в отключенном состоянии,wherein the port connection timer is configured to count down the period of time during which the connection to the port is in the off state,

а модуль настройки сконфигурирован для предоставления пользователю интерфейса для установки типа протокола, режима VLAN, периода передачи сообщения обнаружения и времени таймера соединения порта, а также для сохранения указанных пользовательских установок.and the configuration module is configured to provide the user with an interface for setting the protocol type, VLAN mode, the transmission period of the discovery message and the port connection timer, and also for saving the specified user settings.

В предпочтительном варианте осуществления изобретения модуль приема сообщения обнаружения сконфигурирован для формирования и вывода сигнала предупреждения о закольцовывании; запуска таймера соединения порта после отключения соединения порта; включения соединения порта после истечения времени таймера соединения порта и, одновременно с этим, формирования и вывода сигнала предупреждения о восстановлении закольцовывания.In a preferred embodiment of the invention, the detection message receiving module is configured to generate and output a loopback warning signal; start the port connection timer after disconnecting the port connection; turn on the port connection after the port connection timer expires and, at the same time, generate and output a loop recovery alert.

В настоящем изобретении определяют возникновение закольцовывания в сетевом устройстве с помощью сообщения обнаружения. Такое решение является простым в эксплуатации и легко осуществимым, при этом эффективно решается проблема потери работоспособности сети, вызываемой наличием закольцовывания в сети.In the present invention, the occurrence of a loopback in a network device is determined using a detection message. Such a solution is simple to operate and easily feasible, while effectively solving the problem of loss of network performance caused by the presence of looping in the network.

Краткое описание чертежейBrief Description of the Drawings

Для обеспечения лучшего понимания настоящего изобретения представлены сопроводительные чертежи, которые описываются далее и являются частью настоящей заявки. Схематические варианты осуществления настоящего изобретения и их описание используются только для пояснения настоящего изобретения и не ограничивают изобретение.To provide a better understanding of the present invention, the accompanying drawings are presented, which are described below and are part of the present application. Schematic embodiments of the present invention and their description are used only to illustrate the present invention and do not limit the invention.

На фиг. 1 показана блок-схема передачи сообщения обнаружения в способе обнаружения закольцовывания портов Ethernet в соответствии с предпочтительным вариантом осуществления настоящего изобретения.In FIG. 1 is a flowchart of a detection message transmission in an Ethernet port loopback detection method in accordance with a preferred embodiment of the present invention.

На фиг. 2 показана блок-схема приема сообщения обнаружения в способе обнаружения закольцовывания портов Ethernet в соответствии с предпочтительным вариантом осуществления настоящего изобретения.In FIG. 2 is a flowchart of receiving a detection message in an Ethernet port loopback detection method in accordance with a preferred embodiment of the present invention.

На фиг. 3 показана структурная схема устройства для обнаружения закольцовывания портов Ethernet в соответствии с вариантом осуществления настоящего изобретения.In FIG. 3 is a block diagram of an Ethernet port loopback detection apparatus in accordance with an embodiment of the present invention.

Подробное описание изобретенияDETAILED DESCRIPTION OF THE INVENTION

Для обеспечения лучшего понимания технической задачи, технического решения и преимуществ настоящего изобретения представлено подробное описание настоящего изобретения в связи с чертежами и вариантами осуществления изобретения. Необходимо понимать, что конкретные варианты осуществления изобретения, рассмотренные ниже, служат только для пояснения настоящего изобретения и не ограничивают изобретение.To provide a better understanding of the technical problem, technical solution and advantages of the present invention, a detailed description of the present invention is presented in connection with the drawings and embodiments of the invention. It should be understood that the specific embodiments of the invention discussed below serve only to illustrate the present invention and do not limit the invention.

Способ обнаружения закольцовывания портов Ethernet в варианте осуществления настоящего изобретения включает две части. Одна часть заключается в передаче сообщения обнаружения, а другая часть заключается в приеме сообщения обнаружения. Далее представлено подробное описание варианта осуществления настоящего изобретения в связи с конкретными примерами изобретения.The Ethernet port loopback detection method in an embodiment of the present invention includes two parts. One part is to transmit a discovery message, and the other part is to receive a discovery message. The following is a detailed description of an embodiment of the present invention in connection with specific examples of the invention.

На фиг. 1 показана блок-схема передачи сообщения обнаружения в способе обнаружения закольцовывания портов Ethernet в соответствии с вариантом осуществления настоящего изобретения. Как показано на фиг. 1, данный способ включает следующие шаги:In FIG. 1 is a flowchart of a detection message transmission in an Ethernet port loopback detection method in accordance with an embodiment of the present invention. As shown in FIG. 1, this method includes the following steps:

S001: заранее задают тип протокола и режим VLAN сообщения обнаружения для сетевого устройства.S001: The protocol type and VLAN mode of the discovery message for the network device are predetermined.

В варианте осуществления настоящего изобретения режим VLAN сообщения обнаружения является необязательным, то есть под режимом VLAN сообщения обнаружения может пониматься отсутствие VLAN, непрерывный режим VLAN или дискретный режим VLAN. Предположим, что в данном варианте осуществления настоящего изобретения должен быть установлен режим VLAN сообщения обнаружения.In an embodiment of the present invention, the VLAN mode of the discovery message is optional, that is, the VLAN mode of the discovery message can be understood as the absence of VLAN, continuous VLAN mode or discrete VLAN mode. Assume that in this embodiment of the present invention, the discovery message VLAN mode should be set.

S002: сетевое устройство формирует сообщение обнаружения в соответствии с указанной установкой.S002: the network device generates a discovery message in accordance with the specified setting.

В варианте осуществления настоящего изобретения сообщение обнаружения содержит тип Ethernet, MAC-адрес источника, номер порта, ключевую информацию и другие поля, при этом MAC-адрес источника относится к MAC-адресу центрального процессора сетевого устройства, а сообщение обнаружения представляет собой широковещательный пакет.In an embodiment of the present invention, the discovery message comprises an Ethernet type, a source MAC address, a port number, key information and other fields, the source MAC address being a MAC address of a central processing unit of the network device, and the discovery message is a broadcast packet.

S003: после включения функции обнаружения закольцовывания сетевое устройство посылает сообщение обнаружения из каждого порта в течение периода передачи.S003: after turning on the loopback detection function, the network device sends a discovery message from each port during the transmission period.

Период передачи, в котором сетевое устройство передает сообщение обнаружения, может быть установлен заранее и реализован посредством таймера, например может использоваться двухсекундный таймер для установки периода времени, в течение которого сетевое устройство посылает сообщение обнаружения.A transmission period in which a network device transmits a discovery message can be set in advance and implemented by a timer, for example, a two-second timer can be used to set the period of time during which the network device sends a discovery message.

На фиг. 2 показана блок-схема приема сообщения обнаружения в способе обнаружения закольцовывания портов Ethernet в соответствии с вариантом осуществления настоящего изобретения. Как показано на фиг. 2, данный способ включает следующие шаги:In FIG. 2 is a flowchart of receiving a detection message in an Ethernet port loopback detection method in accordance with an embodiment of the present invention. As shown in FIG. 2, this method includes the following steps:

S101: прием сетевым устройством сообщения обнаружения.S101: the network device receives the discovery message.

S102: определение, является ли принятое сообщение обнаружения сообщением, переданным локально; и если да, то переход к шагу S103, в противном случае - к шагу S107.S102: determining whether the received discovery message is a message transmitted locally; and if so, go to step S103, otherwise go to step S107.

На шаге S102 определяют, является ли принятое сообщение обнаружения сообщением, переданным локально, путем определения MAC-адреса источника в принятом сообщении обнаружения.In step S102, it is determined whether the received discovery message is a message transmitted locally by determining the source MAC address in the received discovery message.

S103: извлечение из принятого сообщения обнаружения номера порта, из которого передано сообщение обнаружения, отключение соединения с этим портом и, одновременно с этим, формирование и вывод сигнала предупреждения о закольцовывании.S103: extracting from the received detection message the port number from which the detection message is transmitted, disconnecting the connection to this port and, at the same time, generating and outputting a loopback warning signal.

Соединение с портом может быть отключено путем отключения функции распознавания MAC-адреса данного порта в варианте осуществления настоящего изобретения.The connection to the port can be disabled by disabling the MAC address recognition function of this port in an embodiment of the present invention.

S104: запуск таймера соединения порта.S104: start the port connection timer.

Время для таймера соединения порта может быть установлено заранее и может составлять, например, 30 секунд.The time for the port connection timer can be set in advance and can be, for example, 30 seconds.

S105: определение, истекло ли время таймера соединения порта; если да, переход к шагу S106, в противном случае - к шагу S105.S105: determining whether a port connection timer has expired; if so, go to step S106, otherwise go to step S105.

S106: включение соединения с портом и, одновременно с этим, формирование и вывод сигнала предупреждения о восстановлении закольцовывания сети. Завершение алгоритма.S106: turning on the connection to the port and, at the same time, generating and outputting a warning signal about the restoration of network loopback. The completion of the algorithm.

Соединение с портом включают посредством включения функции распознавания MAC-адреса данного порта в варианте осуществления настоящего изобретения.A port connection is enabled by enabling the MAC address recognition function of a given port in an embodiment of the present invention.

S107: пересылка принятого сообщения обнаружения в следующее сетевое устройство и завершение алгоритма.S107: forwarding the received discovery message to the next network device and completing the algorithm.

В варианте осуществления настоящего изобретения сигнал предупреждения о закольцовывании и сигнал восстановления закольцовывания включают номер сетевого устройства и номер порта; таким образом, пользователи могут узнать, какой порт в каком устройстве закольцован.In an embodiment of the present invention, the loopback warning signal and the loopback recovery signal include a network device number and a port number; Thus, users can find out which port in which device is looped back.

На фиг. 3 показана структурная схема устройства для обнаружения закольцовывания портов Ethernet в соответствии с вариантом осуществления настоящего изобретения. Как показано на фиг. 3, устройство для обнаружения закольцовывания портов Ethernet в варианте осуществления настоящего изобретения содержит: модуль 01 настройки, модуль 02 передачи сообщения обнаружения, модуль 03 приема сообщения обнаружения и таймер 04 соединения порта,In FIG. 3 is a block diagram of an Ethernet port loopback detection apparatus in accordance with an embodiment of the present invention. As shown in FIG. 3, an Ethernet port loopback detection device in an embodiment of the present invention comprises: a setting module 01, a detection message transmitting module 02, a detection message receiving module 03 and a port connection timer 04,

при этом модуль 01 настройки сконфигурирован для предоставления пользователю интерфейса для установки типа протокола, режима VLAN, периода передачи сообщения обнаружения и времени таймера 04 соединения порта, а также для сохранения указанных пользовательских установок,wherein, the configuration module 01 is configured to provide the user with an interface for setting the protocol type, VLAN mode, the transmission period of the detection message and the time of the port connection timer 04, as well as for saving said user settings,

модуль 02 передачи сообщения обнаружения сконфигурирован для формирования сообщения обнаружения в соответствии с типом протокола и режимом VLAN сообщения обнаружения, установленных модулем 01 настройки, и для передачи этого сообщения обнаружения из каждого порта сетевого устройства в течение периода передачи; иthe detection message transmission unit 02 is configured to generate a detection message in accordance with the protocol type and VLAN mode of the detection message set by the configuration module 01, and to transmit this detection message from each port of the network device during the transmission period; and

модуль 03 приема сообщения обнаружения сконфигурирован для определения, является ли сообщение обнаружения, принятое сетевым устройством, сообщением, переданным локально, и, если принятое сообщение обнаружения является сообщением, переданным локально, извлечения из этого сообщения обнаружения номера порта, из которого передано это сообщение обнаружения, отключения соединения порта и, одновременно с этим, формирования и вывода сигнала предупреждения о закольцовывании; запуска таймера 04 соединения порта и, после истечения времени таймера 04 соединения порта, включения соединения с портом и, одновременно с этим, формирования и вывода сигнала предупреждения о восстановлении закольцовывания; а если принятое сообщение обнаружения не является сообщением, переданным локально, то пересылки этого сообщения обнаружения в следующее сетевое устройство;the detection message receiving unit 03 is configured to determine whether the detection message received by the network device is a message transmitted locally, and if the received detection message is a message transmitted locally, extracting from this detection message a port number from which this detection message is transmitted, disconnecting the port connection and, at the same time, generating and outputting a ringing warning signal; starting the port 04 timer 04 and, after the port 04 timer expires, activating the port connection and, at the same time, generating and outputting the loopback restoration warning signal; and if the received discovery message is not a message transmitted locally, then forwarding this discovery message to the next network device;

таймер 04 соединения порта сконфигурирован для отсчета периода времени, в течение которого соединение находится в отключенном состоянии.port connection timer 04 is configured to count a period of time during which the connection is in the disconnected state.

Выше были описаны только предпочтительные варианты осуществления настоящего изобретения, при этом необходимо понимать, что, как указано выше, настоящее изобретение не ограничивается раскрытыми в данном описании примерами, не исключает другие варианты осуществления изобретения и может применяться к другим комбинациям, модификациям и внешним условиям. Описанные выше варианты осуществления изобретения могут быть изменены посредством технологий или знаний в связанных областях техники в пределах сущности настоящего изобретения. Любые изменения и модификации, сделанные специалистами в пределах сущности настоящего изобретения, охватываются приложенной формулой изобретения.Only preferred embodiments of the present invention have been described above, it being understood that, as indicated above, the present invention is not limited to the examples disclosed herein, does not exclude other embodiments of the invention, and can be applied to other combinations, modifications, and environmental conditions. The embodiments described above may be modified by technology or knowledge in related fields within the spirit of the present invention. Any changes and modifications made by those skilled in the art within the scope of the present invention are encompassed by the appended claims.

Claims (13)

1. Способ обнаружения закольцовывания портов Ethernet, отличающийся тем, что он включает:
периодическую передачу сетевым устройством сообщения обнаружения из каждого порта сетевого устройства;
определение, является ли принятое сообщение обнаружения сообщением, переданным локально, и если принятое сообщение обнаружения является сообщением, переданным локально, извлечение из принятого сообщения обнаружения номера порта, из которого передано принятое сообщение обнаружения, и отключение соединения с этим портом; в противном случае пересылку принятого сообщения обнаружения в следующее сетевое устройство;
при этом отключение соединения с портом осуществляют путем отключения функции распознавания МАС-адреса для этого порта.
1. A method for detecting loopback of Ethernet ports, characterized in that it includes:
Periodic transmission by the network device of a discovery message from each port of the network device;
determining whether the received discovery message is a message transmitted locally, and if the received discovery message is a message transmitted locally, extracting from the received discovery message the port number from which the received discovery message is transmitted, and disconnecting the connection to this port; otherwise, forwarding the received discovery message to the next network device;
in this case, disconnecting the connection to the port is carried out by disabling the recognition function of the MAC address for this port.
2. Способ по п. 1, отличающийся тем, что он также включает:
установку типа протокола для сообщения обнаружения для сетевого устройства заранее и
формирование сетевым устройством сообщения обнаружения в соответствии с указанной установкой.
2. The method according to p. 1, characterized in that it also includes:
setting the type of protocol for the discovery message for the network device in advance and
formation by the network device of a detection message in accordance with the specified setting.
3. Способ по п. 2, отличающийся тем, что после установки типа протокола для сообщения обнаружения указанный способ также включает:
установку режима виртуальной локальной сети (VLAN) сообщения обнаружения для сетевого устройства.
3. The method according to p. 2, characterized in that after setting the type of protocol for the detection message, the method also includes:
setting the virtual local area network (VLAN) mode of the discovery message for the network device.
4. Способ по п. 1, отличающийся тем, что сообщение обнаружения включает поле типа Ethernet, поле МАС-адреса источника, поле номера порта и поле ключевой информации.4. The method according to claim 1, characterized in that the detection message includes an Ethernet type field, a source MAC address field, a port number field and a key information field. 5. Способ по п. 4, отличающийся тем, что сетевое устройство также формирует и выводит сигнал предупреждения о закольцовывании при отключении соединения с портом.5. The method according to p. 4, characterized in that the network device also generates and outputs a warning signal about the loopback when disconnecting the connection to the port. 6. Способ по п. 1, отличающийся тем, что после того как сетевое устройство отключает соединение с портом, указанный способ также включает:
запуск таймера соединения порта и
определение, истекло ли время таймера соединения порта, и если время таймера соединения порта истекло, то включение соединения с этим портом и, одновременно с этим, формирование и вывод сигнала предупреждения о восстановлении закольцовывания.
6. The method according to p. 1, characterized in that after the network device disconnects the port, the method also includes:
start the port connection timer and
determining whether the port connection timer expired, and if the port connection timer expired, then enabling the connection to this port and, at the same time, generating and outputting the loopback recovery warning signal.
7. Способ по п. 6, отличающийся тем, что он также включает:
включение соединения с портом путем включения функции распознавания МАС-адреса для этого порта.
7. The method according to p. 6, characterized in that it also includes:
Enabling a port connection by enabling the MAC address recognition feature for this port.
8. Способ по п. 5 или 6, отличающийся тем, что сигнал предупреждения о закольцовывании и сигнал предупреждения о восстановлении закольцовывания содержат номер сетевого устройства и номер порта.8. The method according to p. 5 or 6, characterized in that the warning signal about the loopback and the warning signal about the restoration of looping contain the network device number and port number. 9. Способ по п. 1, отличающийся тем, что сообщение обнаружения представляет собой широковещательный пакет.9. The method according to p. 1, characterized in that the detection message is a broadcast packet. 10. Способ по п. 4, отличающийся тем, что сетевое устройство определяет, является ли принятое сообщение обнаружения сообщением, переданным локально, в соответствии с полем МАС-адреса источника в принятом сообщении обнаружения.10. The method according to p. 4, characterized in that the network device determines whether the received discovery message is a message transmitted locally in accordance with the source MAC address field in the received discovery message. 11. Устройство для обнаружения закольцовывания портов Ethernet, отличающееся тем, что оно содержит модуль передачи сообщения обнаружения и модуль приема сообщения обнаружения,
при этом модуль передачи сообщения обнаружения сконфигурирован для периодического формирования сообщения обнаружения и передачи этого сообщения обнаружения из каждого порта сетевого устройства,
а модуль приема сообщения обнаружения сконфигурирован для определения, является ли сообщение обнаружения, принятое сетевым устройством, сообщением, переданным локально, и, если принятое сообщение обнаружения является сообщением, переданным локально, извлечения из принятого сообщения обнаружения номера порта, из которого передано принятое сообщение обнаружения, и отключения соединения с этим портом; а если принятое сообщение обнаружения не является сообщением, переданным локально, пересылки принятого сообщения обнаружения в следующее сетевое устройство;
при этом модуль приема сообщения обнаружения сконфигурирован для отключения соединения с портом путем отключения функции распознавания МАС-адреса для этого порта.
11. Device for detecting loopback of Ethernet ports, characterized in that it comprises a module for transmitting a detection message and a module for receiving a detection message,
wherein the detection message transmission module is configured to periodically generate the detection message and transmit this detection message from each port of the network device,
and the detection message receiving unit is configured to determine whether the detection message received by the network device is a message transmitted locally, and if the received detection message is a message transmitted locally, retrieving from the received discovery message a port number from which the received detection message is transmitted, and disconnecting the connection to this port; and if the received discovery message is not a message transmitted locally, forwarding the received discovery message to the next network device;
however, the detection message receiving module is configured to disconnect the connection to the port by disabling the MAC address recognition function for this port.
12. Устройство по п. 11, отличающееся тем, что оно также включает таймер соединения порта и модуль настройки,
при этом таймер соединения порта сконфигурирован для отсчета периода времени, в течение которого соединение с портом находится в отключенном состоянии,
а модуль настройки сконфигурирован для предоставления пользователю интерфейса для установки типа протокола, режима виртуальной локальной сети (VLAN), периода передачи сообщения обнаружения и времени таймера соединения порта, а также для сохранения пользовательских установок.
12. The device according to p. 11, characterized in that it also includes a port connection timer and a configuration module,
wherein the port connection timer is configured to count down the period of time during which the connection to the port is in the off state,
and the configuration module is configured to provide the user with an interface for setting a protocol type, a virtual local area network (VLAN) mode, a transmission period of a detection message and a port connection timer, and also for saving user settings.
13. Устройство по п. 12, отличающееся тем, что модуль приема сообщения обнаружения сконфигурирован для формирования и вывода сигнала предупреждения о закольцовывании; для запуска таймера соединения порта после отключения соединения с портом и для включения соединения с портом после истечения времени таймера соединения порта; и, одновременно с этим, формирования и вывода сигнала предупреждения о восстановлении закольцовывания. 13. The device according to p. 12, characterized in that the detection message receiving module is configured to generate and output a ringing warning signal; to start the port connection timer after disconnecting the port connection and to enable the port connection after the port connection timer expires; and, at the same time, the formation and output of a warning signal about the restoration of the loopback.
RU2014147780/08A 2012-04-27 2012-06-29 METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING RU2605494C2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN2012101291062A CN103378998A (en) 2012-04-27 2012-04-27 Method and device for Ethernet port loopback detection
CN201210129106.2 2012-04-27
PCT/CN2012/077839 WO2013159450A1 (en) 2012-04-27 2012-06-29 Ethernet port loopback detection method and apparatus

Publications (2)

Publication Number Publication Date
RU2014147780A RU2014147780A (en) 2016-06-20
RU2605494C2 true RU2605494C2 (en) 2016-12-20

Family

ID=49463579

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2014147780/08A RU2605494C2 (en) 2012-04-27 2012-06-29 METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING

Country Status (3)

Country Link
CN (1) CN103378998A (en)
RU (1) RU2605494C2 (en)
WO (1) WO2013159450A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI514821B (en) * 2014-02-26 2015-12-21 Accton Technology Corp Network devices and loopback detection methods
US9660896B2 (en) * 2014-09-04 2017-05-23 Accedian Networks Inc. System and method for loopback and network loop detection and analysis
CN104852826B (en) * 2015-04-13 2018-09-11 北京华为数字技术有限公司 A kind of loop detecting method and device
CN107800581B (en) * 2016-09-01 2022-03-18 中兴通讯股份有限公司 Two-layer network and loopback detection method thereof
CN107888443A (en) * 2016-09-30 2018-04-06 中国移动通信集团广东有限公司 A kind of method, transmitter and the trunking of network servicequality monitoring
CN106789626A (en) * 2017-01-12 2017-05-31 深圳市万网博通科技有限公司 Loop self-inspection self-healing method and device
US10523506B2 (en) 2017-08-02 2019-12-31 Nanning Fugui Precision Industrial Co., Ltd. Network configuration method and network device
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN108989155B (en) * 2018-09-25 2022-03-04 苏州盛科通信股份有限公司 Loop detection method and system based on tolerance mechanism
CN110601919A (en) * 2019-09-12 2019-12-20 烽火通信科技股份有限公司 Loopback detection method and system
CN113364641B (en) * 2020-03-06 2022-03-01 烽火通信科技股份有限公司 Loopback detection method and system for EOS (Ethernet over coax) service
CN112134775B (en) * 2020-09-25 2022-08-09 苏州浪潮智能科技有限公司 Switch loop detection method and device
CN114567572B (en) * 2022-04-29 2023-01-31 南京金阵微电子技术有限公司 Network loop monitoring method, system, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2189072C2 (en) * 1996-01-31 2002-09-10 Ипсилон Нетуоркс, Инк. Improved method and device for dynamic shift between routing and switching bursts in data transmission network
US20070115838A1 (en) * 2005-11-10 2007-05-24 Futurewei Technologies, Inc. Method and system for loop-back and continue in packet-based network
US20070121518A1 (en) * 2005-11-25 2007-05-31 Cisco Technology, Inc. Method and system for PHY loop detection
US20110255419A1 (en) * 2010-04-16 2011-10-20 Hon Hai Precision Industry Co., Ltd. Switching device and loopback detecting method
CN101316197B (en) * 2007-05-28 2012-05-30 中国电信股份有限公司 Detection method and apparatus for Ethernet port loop of MSTP equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7525974B2 (en) * 2003-11-10 2009-04-28 Nortel Networks Limited Method and apparatus for capability based addressing in a communications network
CN100499518C (en) * 2005-08-29 2009-06-10 中兴通讯股份有限公司 Method for detecting user side loop in digital user line switch-in multiplexer system
JP4931059B2 (en) * 2007-02-16 2012-05-16 Kddi株式会社 Loop topology detection avoidance method, communication device, management device, and program
CN101582809A (en) * 2008-05-14 2009-11-18 襄樊博创伟业电子有限公司 Loop-back detecting and inhibiting method of Ethernet exchanger chip port
CN101820363B (en) * 2009-02-27 2014-12-03 中国电信股份有限公司 Ethernet port loopback detection method and multi-service transport platform
CN101710856B (en) * 2009-11-13 2012-10-03 中兴通讯股份有限公司 Method and equipment for detection processing of loopback of aggregation link

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2189072C2 (en) * 1996-01-31 2002-09-10 Ипсилон Нетуоркс, Инк. Improved method and device for dynamic shift between routing and switching bursts in data transmission network
US20070115838A1 (en) * 2005-11-10 2007-05-24 Futurewei Technologies, Inc. Method and system for loop-back and continue in packet-based network
US20070121518A1 (en) * 2005-11-25 2007-05-31 Cisco Technology, Inc. Method and system for PHY loop detection
CN101316197B (en) * 2007-05-28 2012-05-30 中国电信股份有限公司 Detection method and apparatus for Ethernet port loop of MSTP equipment
US20110255419A1 (en) * 2010-04-16 2011-10-20 Hon Hai Precision Industry Co., Ltd. Switching device and loopback detecting method

Also Published As

Publication number Publication date
WO2013159450A1 (en) 2013-10-31
CN103378998A (en) 2013-10-30
RU2014147780A (en) 2016-06-20

Similar Documents

Publication Publication Date Title
RU2605494C2 (en) METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING
US7940678B2 (en) Method for triggering failure detection in bidirectional forwarding detection
KR101039617B1 (en) Method and Apparatus for data transmission in a wireless local access network and System therefor
US9270524B2 (en) Method and device for LACP link switching and data transmission
US7230926B2 (en) Isolation technique for networks
KR20140030338A (en) Power save proxy in communication networks
WO2014040466A1 (en) Method and device for controlling ap
US20160080842A1 (en) Data transmission method, apparatus, and system
CN102045250B (en) Forwarding method for multicast message in VPLS, and service provider edge equipment
CN101217445B (en) A method of loop generation protection and Ethernet ring system
US8645551B2 (en) Method for automatically negotiating type of service and aggregation apparatus therefor
JP5974911B2 (en) Communication system and network relay device
WO2016082436A1 (en) Mixed centralized processing method and apparatus for service, and storage medium
CN105703967A (en) Method and apparatus for detecting label switching path connectivity
CN101237319A (en) Time synchronization method in Ethernet ring network and Ethernet ring system
WO2011057544A1 (en) Method and system for implementing operation administration and maintenance (oam) from point to multi-points based on 802.3ah protocol
US9236909B2 (en) Zero standby power for powerline communication devices
US9413601B2 (en) Channel reuse among communication networks sharing a communication channel
KR101538348B1 (en) Method and system for setting detection frame timeout duration of ethernet node
WO2014180286A1 (en) Method, cse, and system for transmitting m2m application request
CN101247287B (en) Fault detection method of operation management maintenance mechanism
CN105553864B (en) Method and device for reducing message quantity in LMP
WO2015100978A1 (en) Method and system for automatic discovery of controller in software defined network and controller
JP2014127803A (en) User side optical line termination device and power consumption control method therefor
WO2015131569A1 (en) Cross-network-element protection processing method, protection method, apparatus and system in passive optical network