CN107395479B - Lossless ring network switch, lossless self-healing ring network and data communication method thereof - Google Patents

Lossless ring network switch, lossless self-healing ring network and data communication method thereof Download PDF

Info

Publication number
CN107395479B
CN107395479B CN201710357928.9A CN201710357928A CN107395479B CN 107395479 B CN107395479 B CN 107395479B CN 201710357928 A CN201710357928 A CN 201710357928A CN 107395479 B CN107395479 B CN 107395479B
Authority
CN
China
Prior art keywords
data frame
switch
ring network
lossless
data
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710357928.9A
Other languages
Chinese (zh)
Other versions
CN107395479A (en
Inventor
闫晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Enyitong Technology Development Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710357928.9A priority Critical patent/CN107395479B/en
Publication of CN107395479A publication Critical patent/CN107395479A/en
Priority to PCT/CN2018/087331 priority patent/WO2018210312A1/en
Application granted granted Critical
Publication of CN107395479B publication Critical patent/CN107395479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/113Arrangements for redundant switching, e.g. using parallel planes
    • H04L49/118Address processing within a device, e.g. using internal ID or tags for routing within a switch
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to a lossless ring network switch, including: a switching logic unit and a routing logic component. The routing logic component comprises a data reorganization unit, an ID learning unit and a routing decision unit, wherein the ID learning unit learns the ID of the source lossless ring network switch, the data reorganization unit adds or strips a routing protocol containing the ID of a destination switch, the ID of a local switch and a data frame serial number for a data frame, and the routing decision unit routes the data frame which is not registered and is destined to the ID of the local switch to the direction of an opposite network link port only, routes the data frame which is not registered and is destined to the ID of the local switch to the direction of the data reorganization unit of the local lossless ring network switch, and discards the data frame of which the frame serial number is registered.

Description

无损环网交换机、无损自愈环网及其数据通讯方法Lossless ring network switch, lossless self-healing ring network and data communication method thereof

技术领域technical field

本公开涉及一种交换机,尤其是涉及一种无损环网交换机,由这种无损环网交换机构成的无损自愈环网以及无损环网数据通讯方法。The disclosure relates to a switch, in particular to a lossless ring network switch, a lossless self-healing ring network formed by the lossless ring network switch, and a data communication method for the lossless ring network.

背景技术Background technique

目前工业用环网包括有损倒换环网(非零自愈)以及无损倒换环网。无损倒换环网所使用的无损环网交换机,诸如HSR交换机,采用国际标准IEC62439,其利用了PRP(parallel Redundancy protocol平行冗余协议)和HSR(High-availability Seamlessprotocol高性能无缝协议)。有损倒换环网尽管有其固有的优点,但是在对数据有较高技术要求的环境中,由于有损倒换环网不能满足用户要求(例如,存在数据丢失问题),因此有些工业应用场合采用无损倒换环网。但是,当前的无损倒换环网,即零自愈环网,所采用的交换机的自愈机制是基于以太网源MAC学习机制,利用以太网数据协议中自有的数据包ID达到零自愈传输。这样,当网络上有大量的设备时,就需要大量资源来存储MAC,以及长时间的查找MAC和对比数据包ID,因此,资源受限和查找对比方式大大降低了设备接入量和带宽使用率。这也是导致目前零自愈无损环网交换机的接入设备数量受到限制(通常不超过512),因此不能应用于大规模使用接入设备的工业场合。Currently, industrial ring networks include lossy switching ring networks (non-zero self-healing) and lossless switching ring networks. The lossless ring switch used in the lossless switching ring network, such as the HSR switch, adopts the international standard IEC62439, which utilizes PRP (parallel Redundancy protocol) and HSR (High-availability Seamless protocol). Although the lossy switching ring network has its inherent advantages, in the environment with high technical requirements for data, because the lossy switching ring network cannot meet user requirements (for example, there is a problem of data loss), some industrial applications use Lossless switching ring network. However, in the current lossless switching ring network, that is, the zero self-healing ring network, the self-healing mechanism of the switch is based on the Ethernet source MAC learning mechanism, and the self-healing transmission is achieved by using the own data packet ID in the Ethernet data protocol. . In this way, when there are a large number of devices on the network, a large amount of resources are required to store the MAC, as well as to search for the MAC and compare the packet ID for a long time. Therefore, the limited resources and the search and comparison method greatly reduce the amount of device access and bandwidth usage. Rate. This also leads to the limitation of the number of access devices of the current zero self-healing lossless ring network switch (usually no more than 512), so it cannot be applied to industrial occasions where access devices are used on a large scale.

因此,人们期望提供一种能够使得无损环网能够适用于具有大量接入设备的工业场合。Therefore, it is desired to provide a lossless ring network applicable to industrial occasions with a large number of access devices.

发明内容Contents of the invention

为此,本公开提供了一种无损环网交换机,包括:一个或多个设备端口;一对网络链接端口;交换逻辑单元,基于源MAC地址学习机制学习来自所述网络链接端口的数据帧中的源MAC地址并形成MAC地址表中;以及路由逻辑组件,其包括数据重组单元、ID学习单元以及路由决策单元,所述ID学习单元学习从所述网络链接端口之一传送来的数据帧中的路由协议中所包含的源无损环网交换机ID并形成环网中的源无损环网交换机ID表,所述数据重组单元对于从交换逻辑单元发送来的数据帧基于数据帧中的目的地MAC地址查找位于本地的源无损环网交换机ID表以获取该目的地MAC所对应的目的地交换机ID并为该数据帧添加包含所获取的目的地交换机ID、本地交换机ID以及基于源交换机ID生成的数据帧序列号的路由协议以及为从网络链接端口传送来的数据帧剥离所添加的路由协议,以及所述路由决策单元将路由协议中包含的目的地交换机ID不为本地交换机ID且数据帧序列号未被登记过的数据帧仅路由到与接收数据帧的网络链接端口相对的网络链接端口方向,将路由协议中包含的目的地交换机ID为本地交换机ID且数据帧序列号未被登记过的数据帧路由到本地无损环网交换机的数据重组单元方向,以及将帧序列号已经被登记过的数据帧丢弃。To this end, the disclosure provides a lossless ring network switch, including: one or more device ports; a pair of network link ports; a switching logic unit that learns from the data frames of the network link ports based on the source MAC address learning mechanism source MAC address and form the MAC address table; and a routing logic component, which includes a data reorganization unit, an ID learning unit, and a routing decision unit, and the ID learning unit learns from a data frame transmitted from one of the network link ports The source lossless ring network switch ID contained in the routing protocol and form the source lossless ring network switch ID table in the ring network, the data recombination unit is based on the destination MAC in the data frame for the data frame sent from the switching logic unit The address searches the local source lossless ring network switch ID table to obtain the destination switch ID corresponding to the destination MAC and adds the obtained destination switch ID, the local switch ID and the ID generated based on the source switch ID to the data frame. The routing protocol of the data frame sequence number and the routing protocol added for the stripping of the data frame transmitted from the network link port, and the routing decision-making unit determines that the destination switch ID contained in the routing protocol is not the local switch ID and the data frame sequence The data frame whose number has not been registered is only routed to the direction of the network link port opposite to the network link port receiving the data frame, and the destination switch ID contained in the routing protocol is the local switch ID and the sequence number of the data frame has not been registered The data frame is routed to the direction of the data reassembly unit of the local lossless ring network switch, and the data frame whose frame sequence number has been registered is discarded.

根据本公开的无损环网交换机,其中所述数据重组单元在所述路由决策单元将数据帧路由到本地无损环网交换机的数据重组单元方向时,剥离所述数据帧中所添加的路由协议后发送给交换逻辑单元。According to the lossless ring network switch of the present disclosure, wherein the data reassembly unit strips the added routing protocol in the data frame when the routing decision-making unit routes the data frame to the direction of the data reassembly unit of the local lossless ring network switch sent to the switching logic unit.

根据本公开的无损环网交换机,其中所述数据重组单元在来自网络链接端口的数据帧为未被登记的数据帧的情况下,基于所接收到的数据帧的路由协议,重组一个不包含数据内容的阻断包,并且所述由路由决策单元将该阻断包路由到与接收所述数据帧的网络链接端口相对的网络链接端口方向。According to the lossless ring network switch of the present disclosure, if the data frame from the network link port is an unregistered data frame, the data reassembly unit reassembles a data frame that does not contain data based on the routing protocol of the received data frame content blocking packet, and the routing decision-making unit routes the blocking packet to the direction of the network link port opposite to the network link port receiving the data frame.

根据本公开的无损环网交换机,其中所述路由决策单元基于所接收到的数据帧所包含的源无损环网交换机ID和数据序列号,判断所接收到的数据帧是否已经登记过。According to the lossless ring network switch of the present disclosure, the routing decision unit determines whether the received data frame has been registered based on the source lossless ring network switch ID and the data sequence number included in the received data frame.

根据本公开的另一个方面,提供了一种由本公开的多个无损环网交换机构成的无损自愈环网。According to another aspect of the present disclosure, a lossless self-healing ring network composed of a plurality of lossless ring network switches of the present disclosure is provided.

根据本公开的又一个方面,提供了一种无损环网数据通讯方法,包括:第一用户设备从第一无损环网交换机的用户设备端口经由第一交换逻辑单元发出的第一数据帧;第一无损环网交换机的第一数据重组单元基于第一数据帧中的目的地MAC地址和第一无损环网交换机中的源无损环网交换机ID表采用哈希算法获取该目的地MAC所对应的目的地无损环网交换机ID,为第一数据帧添加包含所获取的目的地无损环网交换机ID、第一无损环网交换机ID以及基于第一无损环网交换机ID生成的数据帧序列号的路由协议,以及将添加协议后的第一数据帧复制一份;由第一无损环网交换机的第一路由决策单元将该第一数据帧及其副本分别路由到该第一无损环网交换机的一对网络链接端口方向;至少一个第二无损环网交换机的第二ID学习单元在通过其成对网络链接端口之一接收到来自第一用户设备的第一数据帧时,基于源地址学习机制,学习第一数据帧的路由协议中所包含的第一无损环网交换机ID并形成环网中的源无损环网交换机ID表;以及至少一个第二无损环网交换机的第二路由决策单元在通过其成对网络链接端口之一接收到来自第一用户设备的第一数据帧时将路由协议中包含的目的地交换机ID不为本地交换机ID且数据帧序列号未被登记过的第一数据帧仅路由到与接收第一数据帧的网络链接端口相对的网络链接端口方向,将路由协议中包含的目的地无损环网交换机ID为第二无损环网交换机ID且数据帧序列号未被登记过的第一数据帧路由到第二无损环网交换机的第二数据重组单元方向,以及将帧序列号已经被登记过的第一数据帧丢弃。According to another aspect of the present disclosure, a lossless ring network data communication method is provided, including: a first data frame sent by a first user equipment from a user equipment port of a first lossless ring network switch via a first switching logic unit; The first data reorganization unit of a lossless ring network switch adopts a hash algorithm to obtain the destination MAC address corresponding to the destination MAC address based on the destination MAC address in the first data frame and the source lossless ring network switch ID table in the first lossless ring network switch. The destination lossless ring network switch ID, adding a route including the acquired destination lossless ring network switch ID, the first lossless ring network switch ID, and the data frame sequence number generated based on the first lossless ring network switch ID for the first data frame protocol, and make a copy of the first data frame after adding the protocol; the first data frame and its copy are respectively routed to a part of the first lossless ring network switch by the first routing decision-making unit of the first lossless ring network switch For the direction of the network link port; when the second ID learning unit of at least one second lossless ring network switch receives the first data frame from the first user equipment through one of its paired network link ports, based on the source address learning mechanism, Learning the first lossless ring switch ID included in the routing protocol of the first data frame and forming a source lossless ring switch ID table in the ring network; and the second routing decision unit of at least one second lossless ring switch passing When one of the paired network link ports receives the first data frame from the first user equipment, the destination switch ID included in the routing protocol is not the local switch ID and the data frame sequence number has not been registered for the first data frame Only route to the direction of the network link port opposite to the network link port receiving the first data frame, the destination lossless ring network switch ID included in the routing protocol is the second lossless ring network switch ID and the data frame sequence number has not been registered The first data frame is routed to the direction of the second data reassembly unit of the second lossless ring network switch, and the first data frame whose frame sequence number has been registered is discarded.

根据本公开的无损环网数据通讯方法,还包括:在所述第二路由决策单元将第一数据帧路由到第二数据重组单元方向时,第二数据重组单元剥离第一数据帧中所添加的路由协议后发送给第二无损环网交换机的第二交换逻辑单元。According to the lossless ring network data communication method of the present disclosure, it further includes: when the second routing decision unit routes the first data frame to the direction of the second data reassembly unit, the second data reassembly unit strips the added The routing protocol is sent to the second switching logic unit of the second lossless ring network switch.

根据本公开的无损环网数据通讯方法,还包括:随着所述第二路由决策单元将目的地无损环网交换机ID为第二无损环网交换机ID的第一数据帧路由到第二数据重组单元方向,第二数据重组单元基于所接收到的第一数据帧的路由协议,重组一个不包含实质数据内容的阻断包,并且将该阻断包路由到与接收第一数据帧的网络链接端口相对的网络链接端口方向。According to the lossless ring network data communication method of the present disclosure, it further includes: following the second routing decision-making unit, routing the first data frame whose destination lossless ring network switch ID is the second lossless ring network switch ID to the second data recombination In the direction of the unit, the second data reassembly unit reassembles a blocking packet that does not contain substantial data content based on the routing protocol of the received first data frame, and routes the blocking packet to the network link that receives the first data frame Port-relative network link port direction.

根据本公开的无损环网数据通讯方法,还包括:第二ID学习单元在第一数据帧的数据帧序列号未被登记过时,将第一数据帧的数据序列号与第一无损环网交换机ID相关联地登记在数据帧序列号登记表中。According to the lossless ring network data communication method of the present disclosure, it further includes: when the data frame sequence number of the first data frame has not been registered by the second ID learning unit, combining the data sequence number of the first data frame with the first lossless ring network switch IDs are associated and registered in the data frame serial number registration table.

通过采用本公开的无损环网交换机,由于其仅仅针对数据帧进行源交换机ID的学习,并核对目的地交换机ID和源交换机数据帧序列号的对,因此,极大地降低了交换机进行数据交换速度,因为,在环网上的交换机的数量远小于接入设备的数量,因此根据本公开的单台无损环网交换机的MAC数可以达到16K以上的程度(相当于单个交换机芯片的容量)。其传输速率可以达到线速(线路设计速度)的90%以上。By adopting the lossless ring network switch of the present disclosure, since it only learns the ID of the source switch for the data frame, and checks the pair of the ID of the destination switch and the sequence number of the data frame of the source switch, the data exchange speed of the switch is greatly reduced , because the number of switches on the ring network is much smaller than the number of access devices, so the number of MACs of a single lossless ring network switch according to the present disclosure can reach more than 16K (equivalent to the capacity of a single switch chip). Its transmission rate can reach more than 90% of the line speed (line design speed).

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1所示为根据本发明的实施例的无损环网交换机的原理示意图。FIG. 1 is a schematic diagram of a lossless ring network switch according to an embodiment of the present invention.

图2所示的是根据本公开的无损环网交换机对本地源发数据帧的处理过程流程图。FIG. 2 is a flow chart of a process for processing locally sourced data frames by a lossless ring network switch according to the present disclosure.

图3所示的是根据本公开的无损环网交换机对来自网络链接端口的数据帧的处理过程流程图。FIG. 3 is a flow chart showing the processing process of the lossless ring network switch for the data frame from the network link port according to the present disclosure.

图4所示的是由根据本公开的无损环网交换机构成的无损环网的示意图。FIG. 4 is a schematic diagram of a lossless ring network composed of lossless ring network switches according to the present disclosure.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一交换机也可以被称为第二交换机,反之亦然。取决于语境,如在此所使用的词语“如果”可以被解释成为“在…时”或“当…时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, a first switch may also be called a second switch, and vice versa, without departing from the scope of the present disclosure. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

为了使本领域技术人员更好地理解本公开,下面结合附图和具体实施方式对本公开作进一步详细说明。In order to enable those skilled in the art to better understand the present disclosure, the present disclosure will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

图1所示为根据本发明的实施例的无损环网交换机100的原理示意图。如图1所示,无损环网交换机100(为方便描述,下面将本公开的无损环网交换机简称为“NET交换机”),包括:一个或多个设备端口C、路由逻辑组件110以及交换逻辑单元120。路由逻辑组件110与交换逻辑单元120之间采用单通道或多通道方式实现数据交互。FIG. 1 is a schematic diagram of a lossless ring network switch 100 according to an embodiment of the present invention. As shown in Figure 1, the lossless ring network switch 100 (for convenience of description, the lossless ring network switch of the present disclosure is referred to as "NET switch" below), including: one or more device ports C, routing logic components 110 and switching logic Unit 120. The routing logic component 110 and the switching logic unit 120 implement data interaction in a single-channel or multi-channel manner.

所述路由逻辑组件110包含有至少一对网络链接端口,即传输通道A和B。所述交换逻辑单元120与一个或多个设备端口C相连,所述设备端口C与用户设备相连。用户设备生成数据帧,并将数据帧经由该端口C发送到交换逻辑单元120。交换逻辑单元120基于源地址学习机制学习从外部接收到的源设备的MAC,并形成所接收过的数据帧的源设备MAC地址表,并按照常规的老化机制进行MAC地址表的更新。该MAC地址表与常规交换机中的MAC地址表类似,例如包含有MAC地址和端口号。The routing logic component 110 includes at least one pair of network link ports, that is, transmission channels A and B. The switching logic unit 120 is connected to one or more device ports C, and the device ports C are connected to user equipment. The user equipment generates a data frame and sends the data frame to the switching logic unit 120 via the port C. The switching logic unit 120 learns the MAC address of the source device received from the outside based on the source address learning mechanism, forms the source device MAC address table of the received data frame, and updates the MAC address table according to the conventional aging mechanism. The MAC address table is similar to the MAC address table in a conventional switch, for example, includes a MAC address and a port number.

所述路由逻辑组件110包含有ID学习单元111、路由决策单元112以及数据重组单元113。交换逻辑单元120将所接收到的用户数据帧传送到路由逻辑组件110。交换逻辑单元120所发出的数据帧将包含有常规交换机所发出的数据帧的路由协议。为了将不同交换机所发出的数据帧区分开来,本公开的交换机的数据重组单元113会为将从其所属的无损环网交换机发出的数据帧添加基于该无损环网交换机100的ID生成的数据帧序列号。因此,在包含本公开的无损环网交换机的环网上传输的数据帧都包含有与其源交换机的ID相关联的数据帧序列号。而且,数据重组单元113还会将要发出的数据帧添加一层路由协议,所添加的一层路由协议将包含本地无损环网交换机的ID,即源交换机ID。The routing logic component 110 includes an ID learning unit 111 , a routing decision unit 112 and a data reorganization unit 113 . The switching logic unit 120 transmits the received user data frame to the routing logic component 110 . The data frame sent by the switching logic unit 120 will contain the routing protocol of the data frame sent by the conventional switch. In order to distinguish the data frames sent by different switches, the data reassembly unit 113 of the switch in the present disclosure will add data generated based on the ID of the lossless ring network switch 100 to the data frames sent from the lossless ring network switch to which it belongs frame sequence number. Therefore, all data frames transmitted on the ring network including the lossless ring network switch of the present disclosure include a data frame sequence number associated with the ID of the source switch. Moreover, the data reassembly unit 113 will also add a layer of routing protocol to the data frame to be sent, and the added layer of routing protocol will include the ID of the local lossless ring network switch, that is, the source switch ID.

所述ID学习单元111基于源地址学习机制,对来自网络链接通道A或B,也就是传输通道A或B的数据帧进行源交换机ID的学习,形成源交换机ID表。表1所示的是一种源交换机ID表的例子。Based on the source address learning mechanism, the ID learning unit 111 learns the source switch ID for the data frames from the network link channel A or B, that is, the transmission channel A or B, to form a source switch ID table. Table 1 shows an example of a source switch ID table.

表1:Table 1:

具体而言,对于来自网络链接端口的数据帧,基于其源MAC地址,采用各种算法,例如哈希算法(如果有其它算法,也可以继续举例)等,获得每个MAC地址的索引,并将该索引、MAC辨识字段、源交换机ID以及相应的属性等等相关联地存储在上述表1中。Specifically, for a data frame from a network link port, various algorithms are used based on its source MAC address, such as a hash algorithm (if there are other algorithms, you can continue to give examples), etc., to obtain the index of each MAC address, and The index, the MAC identification field, the source switch ID and corresponding attributes are stored in Table 1 above.

为此,当本地用户设备要与某个用户设备进行通讯时,在原始数据帧的初始路由协议中会包含该用户设备的MAC地址作为目的地MAC地址。当数据重组单元113接收到该数据帧时,同样会基于该数据帧中的目的MAC地址,采用同样的算法,例如,哈希算法,获取其对应的索引,并基于该索引在上述源交换机ID表中查找到该目的MAC地址所属或所对应的源交换机ID,并在所添加的一层路由协议中包含所查找到的交换机ID作为目的地交换机ID。该源交换机ID可以采用现有的MAC地址表的老化机制进行更新。For this reason, when the local user equipment wants to communicate with a certain user equipment, the initial routing protocol of the original data frame will include the MAC address of the user equipment as the destination MAC address. When the data reassembly unit 113 receives the data frame, it will also use the same algorithm based on the destination MAC address in the data frame, such as a hash algorithm, to obtain its corresponding index, and based on the index in the above-mentioned source switch ID The source switch ID to which the destination MAC address belongs or corresponds is found in the table, and the found switch ID is included as the destination switch ID in the added layer of routing protocol. The source switch ID can be updated using an existing aging mechanism of the MAC address table.

因此,数据重组单元113为所要发送的数据帧添加一层路由协议中将包含有数据重组单元113所属的无损环网交换机ID(作为源交换机ID)、数据帧内的目的地MAC地址所属的无损环网交换机ID(作为目的交换机ID)以及基于源交换机ID生成的数据帧序列号。Therefore, the data reassembly unit 113 adds a layer of routing protocol to the data frame to be sent, which will include the lossless ring network switch ID (as the source switch ID) to which the data reassembly unit 113 belongs, and the lossless ring network switch ID to which the destination MAC address in the data frame belongs. The ring network switch ID (as the destination switch ID) and the sequence number of the data frame generated based on the source switch ID.

ID学习单元111还会登记对来自网络链接通道A或B,也就是传输通道A或B的数据帧的数据帧序列号,形成与源交换机ID相关联的数据帧序列号表。具体而言,对于在现有数据帧序列号表中没有的数据帧的序列号,则判断为新接收的数据帧,并将其数据帧序列号登记在数据帧序列号表,从而更新该数据帧序列号表。下表表2显示了这种数据帧序列号表的例子。The ID learning unit 111 will also register the data frame sequence numbers of the data frames from the network link channel A or B, that is, the transmission channel A or B, to form a data frame sequence number table associated with the source switch ID. Specifically, for the serial number of the data frame that does not have in the existing data frame serial number table, it is judged as a newly received data frame, and its data frame serial number is registered in the data frame serial number table, thereby updating the data Frame sequence number table. Table 2 below shows an example of such a data frame sequence number table.

表2Table 2

尽管在本公开中将表1和表2的学习与更新都由ID学习单元111来处理,也可以由不同的单元处理。尽管表2被单独进行说明,但是表2的内容也可结合在表1中,只形成一个学习表。Although the learning and updating of Table 1 and Table 2 are both handled by the ID learning unit 111 in this disclosure, they may also be handled by different units. Although Table 2 is described separately, the contents of Table 2 can also be combined in Table 1 to form only one learning table.

因此,当根据本公开的交换机100要发送一个数据时,经过数据重组单元113基于数据帧目的地MAC添加一层路由协议进行重组后,会形成新的数据帧,该新的数据帧的结构例子如表3:Therefore, when the switch 100 according to the present disclosure wants to send a piece of data, after the data reorganization unit 113 adds a layer of routing protocol based on the destination MAC of the data frame for reorganization, a new data frame will be formed. The structure example of the new data frame As in Table 3:

表3table 3

在原有数据帧被添加一侧路由协议之后,其依然包含有其自身原有的数据和原始路由协议数据,还可以包含其他用户协议。After the original data frame is added with a routing protocol, it still contains its own original data and original routing protocol data, and may also contain other user protocols.

图2所示的是根据本公开的无损环网交换机100对本地源发数据帧的处理过程流程图。如图2所示,首先在步骤S210处,交换逻辑单元120发出原始数据帧,随后数据重组单元113基于数据帧中的目的地MAC地址基于哈希算法在表1中查找该目的地MAC所对应的交换机ID,并基于本地交换机ID生成与源交换机ID相关联的数据帧序列号。随后在步骤S230处,对待发送的数据帧进行重组,即添加一层路由协议,即包含源交换机ID、目的交换机ID的路由协议,并且添加基于源交换机ID生成的数据帧序列号。基于源交换机ID生成的数据帧序列号也可作为路由协议数据字段直接包含在路由协议中进行添加。在进行重组后,就将重组后的数据复制一份,发送到路由决策单元112。在步骤S240处,路由决策单元112将重组后数据帧以及其副本路由到成对网络链接端口A和B的方向,以便发送到环网链路中。FIG. 2 is a flow chart of the processing process of the lossless ring network switch 100 for locally originating data frames according to the present disclosure. As shown in Figure 2, first at step S210, the switching logic unit 120 sends out the original data frame, and then the data reassembly unit 113 searches Table 1 for the destination MAC address corresponding to the destination MAC address based on the hash algorithm based on the data frame. The switch ID of the local switch ID, and generate the data frame sequence number associated with the source switch ID based on the local switch ID. Then at step S230, the data frame to be sent is reassembled, that is, a layer of routing protocol is added, that is, a routing protocol including the source switch ID and the destination switch ID, and the sequence number of the data frame generated based on the source switch ID is added. The data frame sequence number generated based on the source switch ID can also be directly included in the routing protocol as a routing protocol data field for addition. After the reorganization is performed, a copy of the reorganized data is copied and sent to the routing decision unit 112 . At step S240, the routing decision unit 112 routes the reassembled data frame and its copy to the direction of the paired network link ports A and B, so as to be sent to the ring network link.

需要指出的是,如果该发出的数据帧为广播数据帧或组播数据帧,该数据帧所添加的路由协议字段中的目的地交换机ID采用常规方式处理为全F。当然,也可以采用其他标识来表示目的地交换机ID以表明该数据帧为广播帧。尽管上述路由协议添加在数据帧的头部,但是路由协议的长度和添加位置可以根据应用任意设置。It should be pointed out that if the sent data frame is a broadcast data frame or a multicast data frame, the destination switch ID in the routing protocol field added to the data frame is processed as all Fs in a conventional manner. Of course, other identifiers may also be used to indicate the destination switch ID to indicate that the data frame is a broadcast frame. Although the above routing protocol is added at the head of the data frame, the length and adding position of the routing protocol can be set arbitrarily according to the application.

图3所示的是根据本公开的无损环网交换机100对来自网络链接端口的数据帧的处理过程流程图。如图3所示,首先,在步骤S310处,根据本公开的无损环网交换机100接收来自来自网络链接端口A或B的数据帧。随后,在步骤S320处,ID学习单元111基于源地址学习机制学习数据帧的源交换机ID,并采用哈希算法将该数据帧中的源MAC和源交换机ID进行匹配,获得源交换机ID表。随后,在步骤S330,该ID学习单元111获取该数据帧中与源交换机ID相关联的数据帧序列号,并查询上述表1,核对该该数据帧是否被登记过。如果被登记过,则路由决策单元112则不对该数据帧进行任何路由处理并丢弃该数据帧。如果没有登记过,则在步骤S340处,该ID学习单元111将该新的数据帧序列号与源交换机ID相关联地登记在上述表2中。随后,在步骤S350处将数据帧的目的地交换机ID与本地交换机ID进行核对,判断是否相同。一方面,如果目的地交换机ID与本地交换机ID相同,则路由决策单元则将数据路由发送到数据重组单元113,以便在步骤S380处由数据重组单元113剥离该数据帧所添加的一侧路由协议,从而将数据帧发送到交换逻辑单元120,最后在步骤S395处,由本地用户设备接收。与此,同时,在步骤S390处,由数据重组单元113基于该数据帧原始路由协议重组一个阻断包,即一个仅仅包含路由协议的空数据包。然后,在步骤S370处将该阻断包路由到与接收该数据帧的网络链接端口相对的另一个网络链接端口。另一方面,如果目的地交换机ID与本地交换机ID不同,则在步骤S360处判断该数据帧是否为广播帧。如果为广播帧,也同样执行上述步骤S380和S370处的操作。FIG. 3 is a flow chart of the processing process of the lossless ring network switch 100 from the network link port according to the present disclosure. As shown in FIG. 3 , first, at step S310 , the lossless ring network switch 100 according to the present disclosure receives a data frame from the network link port A or B. Subsequently, at step S320, the ID learning unit 111 learns the source switch ID of the data frame based on the source address learning mechanism, and uses a hash algorithm to match the source MAC in the data frame with the source switch ID to obtain a source switch ID table. Subsequently, in step S330, the ID learning unit 111 obtains the data frame sequence number associated with the source switch ID in the data frame, and queries the above Table 1 to check whether the data frame has been registered. If it has been registered, the routing decision unit 112 does not perform any routing processing on the data frame and discards the data frame. If it has not been registered, then at step S340, the ID learning unit 111 registers the new data frame sequence number and the source switch ID in the above table 2 in association. Subsequently, at step S350, the destination switch ID of the data frame is checked with the local switch ID to determine whether they are the same. On the one hand, if the destination switch ID is identical to the local switch ID, the routing decision unit then sends the data route to the data reassembly unit 113, so that at step S380, the data reassembly unit 113 strips off the added side routing protocol of the data frame , so that the data frame is sent to the switching logic unit 120, and finally at step S395, received by the local user equipment. At the same time, at step S390, the data reassembly unit 113 reassembles a blocking packet based on the original routing protocol of the data frame, that is, an empty data packet containing only the routing protocol. Then, at step S370, the blocking packet is routed to another network link port opposite to the network link port receiving the data frame. On the other hand, if the destination switch ID is different from the local switch ID, it is judged at step S360 whether the data frame is a broadcast frame. If it is a broadcast frame, the above operations at steps S380 and S370 are also performed.

尽管上面按照顺序对步骤S330-360进行了描述,但是这并不是固定的顺序,或者说,彼此之间没有先后顺序关系。此处后描述的判断也会以先判断的结果为判断条件,例如,可以直接判断数据帧是否为广播帧,而不需要以判断其目的地交换机ID是否为本地交换机ID为前提。同样,判断是否为已经登记过的数据帧也不成为判断其目的地目的地交换机ID是否为本地交换机ID的前提。而且,这些判断过程可以同时进行,而不会受到任何影响。Although the steps S330-360 are described above in sequence, this is not a fixed sequence, or in other words, there is no sequential relationship between them. The judgment described later here will also take the result of the first judgment as the judgment condition. For example, it is possible to directly judge whether the data frame is a broadcast frame, without the premise of judging whether the destination switch ID is the local switch ID. Likewise, judging whether it is a registered data frame is not a prerequisite for judging whether its destination switch ID is a local switch ID. Moreover, these judgment processes can be carried out simultaneously without any influence.

通过上述对NET交换机100针对来自网络链接端口A或B的数据的处理,可以获知,交换机在进行数据路由时,仅仅需要学习源交换机ID,并形成较小数量的交换机ID学习表,并且在进行路由时仅仅需要核实其目的地交换机的ID和该源交换机ID下的数据帧的序列号。因此,交换机在进行数据交换交换过程中,尤其是转发过程中进行数据核实和目的地地址的过程所遍历的目的地址表很小,所花费的时间更短,从而加快的数据的交换过程。因此,环网上设备的数量将不会像现有的环网上的用户设备数量的限制,环网上能够连接的用户设备将会得到几何级的增加,从而扩大了工业环网的应用规模。Through the above-mentioned processing of the NET switch 100 for the data from the network link port A or B, it can be known that when the switch performs data routing, it only needs to learn the source switch ID, and form a small number of switch ID learning tables, and perform Routing only needs to verify the ID of the destination switch and the sequence number of the data frame under the source switch ID. Therefore, the destination address table traversed by the switch during the data exchange process, especially the data verification and destination address process during the forwarding process, is very small, and the time spent is shorter, thereby speeding up the data exchange process. Therefore, the number of devices on the ring network will not be limited as the number of user devices on the existing ring network, and the number of user devices that can be connected to the ring network will increase geometrically, thereby expanding the application scale of the industrial ring network.

而且,与本地交换相关联的交换逻辑单元120依然可以保有现有环网的路由协议,其仅仅学习与其通信的其他交换机端口的MAC地址,因此不需要学习仅仅经过该交换机而不需要下载到本地用户设备的数据帧中所包含的目的地设备的MAC地址,也就是不需要学习整个环网上的所有用户设备MAC地址,因此,其MAC地址表也将极大地缩小,仅仅需要在其MAC地址表中存储实际使用过程的源MAC地址,提高的数据交换的速度。Moreover, the switch logic unit 120 associated with the local switch can still retain the routing protocol of the existing ring network, which only learns the MAC addresses of other switch ports communicating with it, so it does not need to learn only through the switch without downloading to the local The MAC address of the destination device contained in the data frame of the user equipment does not need to learn the MAC addresses of all user equipment on the entire ring network. Therefore, its MAC address table will also be greatly reduced. The source MAC address of the actual use process is stored in it, and the speed of data exchange is improved.

图4所示的是由根据本公开的无损环网交换机100构成的环网的示意图。如图4所示,为简便起见,该环网400仅仅包含了四个无损环网交换机100-1、100-2、100-3以及100-4。传统零自愈无损环网交换机,源设备发出一包,传输路径短优先到达目标设备的数据包被目标设备接收,而传输路径长的数据包仍然要在网络中传输到目标设备进行判断是否需要丢弃。这样该数据包的传输就覆盖了整个环网网络,当数据包、数据量很大时,就降低了环网网络的带宽使用率。而如图4所示的环网上,当连接在第一无损环网交换机100-1上的第一用户设备(即源设备)发出第一数据帧时,经由其上的第一路由决策单元112进行双向路由发送到第二无损环网交换机100-2和第四无损环网交换机100-4。第二无损环网交换机100-2或第四无损环网交换机100-4在确定该第一数据帧的目的地交换机ID不是为第二本地交换机的ID时,将第一数据帧转发到无损环网交换机100-2和100-4之间的其他交换机,例如第三无损环网交换机100-3;如果第二无损环网交换机100-2或第四无损环网交换机100-4在确定该数据帧的目的地交换机ID是第二无损环网交换机100-2或第四无损环网交换机100-4的ID时,将第一数据帧直接下载到本地设备。通常源设备发送的数据帧都会比较大。如果在第二无损环网交换机100-2已经接收到从一个方向传输来的第一数据帧的情况下,在另一个方向上传输的重复第一数据帧会在目的地交换机接收到后被丢弃。这种重复数据帧的传输过程就会过多占据环网的传输时间。FIG. 4 is a schematic diagram of a ring network formed by a lossless ring network switch 100 according to the present disclosure. As shown in FIG. 4 , for simplicity, the ring network 400 only includes four lossless ring network switches 100 - 1 , 100 - 2 , 100 - 3 and 100 - 4 . In the traditional zero self-healing and lossless ring network switch, the source device sends out a packet, and the data packet with a short transmission path to the target device is received by the target device first, while the data packet with a long transmission path still needs to be transmitted to the target device in the network to judge whether it is needed throw away. In this way, the transmission of the data packet covers the entire ring network network, and when the amount of data packets and data is large, the bandwidth utilization rate of the ring network network is reduced. On the ring network shown in FIG. 4 , when the first user equipment (that is, the source equipment) connected to the first lossless ring network switch 100-1 sends the first data frame, the first routing decision unit 112 on the A bidirectional route is sent to the second lossless ring network switch 100-2 and the fourth lossless ring network switch 100-4. When the second lossless ring network switch 100-2 or the fourth lossless ring network switch 100-4 determines that the destination switch ID of the first data frame is not the ID of the second local switch, the first data frame is forwarded to the lossless ring network switch. Other switches between the network switches 100-2 and 100-4, such as the third lossless ring network switch 100-3; if the second lossless ring network switch 100-2 or the fourth lossless ring network switch 100-4 is determining the data When the destination switch ID of the frame is the ID of the second lossless ring network switch 100-2 or the fourth lossless ring network switch 100-4, the first data frame is directly downloaded to the local device. Usually the data frame sent by the source device will be relatively large. If the second lossless ring network switch 100-2 has received the first data frame transmitted from one direction, the repeated first data frame transmitted in the other direction will be discarded after being received by the destination switch . The transmission process of such repeated data frames will occupy too much transmission time of the ring network.

为了缩短重复的第一数据帧占用环网的传输时间,本公开特别提出了一种提前截止重复的第一数据帧继续传输的方法。举例而言,当在第一数据帧的目的地交换机ID为第二无损环网交换机的ID并且为第一次收到该数据帧时,如图4所示,第二数据重组单元113立即基于所接收到的数据帧的路由协议,重组一个不包含实质数据内容的阻断包,并且第二路由决策单元将该阻断包路由到与接收该从网络链接端口接收的数据帧的网络链接端口相对的网络链接端口方向。由于该阻断包不包含有原数据帧的实质数据内容,主要包含路由协议数据和数据帧序列号。因此该阻断包的大小通常会只有60字节左右,远远小于原数据帧的大小(例如500字节)。因此该阻断包将会以更快的速度向与重复的第一数据帧传输方向的相对方向传送。由此,当第二无损环网交换机100-3先收到阻断包的情况下,由于在该交换机100-3已经接收到了包含有原数据帧的路由信息的阻断包,因此,当再次接收到第一数据帧的副本时,路由决策单元112会判断该交换机已经转发过该数据帧而在第三无损环网交换机100-3处丢弃该重复数据帧,由此,消除了重复的第一数据帧被第三无损环网交换机100-3转发到其与第二无损环网交换机100-2之间的链接通道上,由此缩短了重复的第一数据帧占用传输通道的时间,因此提高了环网使用效率。In order to shorten the transmission time of the ring network occupied by the repeated first data frame, the present disclosure particularly proposes a method for stopping the continuous transmission of the repeated first data frame in advance. For example, when the destination switch ID of the first data frame is the ID of the second lossless ring network switch and the data frame is received for the first time, as shown in FIG. 4 , the second data reassembly unit 113 immediately based on The routing protocol of the received data frame reassembles a blocking packet that does not contain substantial data content, and the second routing decision unit routes the blocking packet to the network link port that receives the data frame received from the network link port Relative network link port direction. Since the blocking packet does not contain the substantial data content of the original data frame, it mainly contains routing protocol data and the sequence number of the data frame. Therefore, the size of the blocking packet is usually only about 60 bytes, which is far smaller than the size of the original data frame (for example, 500 bytes). Therefore, the blocking packet will be transmitted at a faster speed in a direction opposite to the transmission direction of the repeated first data frame. Thus, when the second lossless ring network switch 100-3 first receives the blocking packet, since the switch 100-3 has received the blocking packet containing the routing information of the original data frame, when When receiving a copy of the first data frame, the routing decision unit 112 will judge that the switch has forwarded the data frame and discard the duplicate data frame at the third lossless ring network switch 100-3, thereby eliminating the repeated first data frame. A data frame is forwarded by the third lossless ring network switch 100-3 to the link channel between it and the second lossless ring network switch 100-2, thereby shortening the time that the repeated first data frame occupies the transmission channel, so The utilization efficiency of the ring network is improved.

以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,对本领域的普通技术人员而言,能够理解本公开的方法和装置的全部或者任何步骤或者部件,可以在任何计算装置(包括处理器、存储介质等)或者计算装置的网络中,以硬件、固件、软件或者它们的组合加以实现,这是本领域普通技术人员在阅读了本公开的说明的情况下运用他们的基本编程技能就能实现的。The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be pointed out that those of ordinary skill in the art can understand that all or any steps or components of the methods and devices of the present disclosure can be implemented on any computing device (including processors, storage media, etc.) or a network of computing devices, implemented with hardware, firmware, software, or a combination thereof, this is a person of ordinary skill in the art who uses their basic knowledge after reading the descriptions of the present disclosure. programming skills will do.

因此,本公开的目的还可以通过在任何计算装置上运行一个程序或者一组程序来实现。所述计算装置可以是公知的通用装置。因此,本公开的目的也可以仅仅通过提供包含实现所述方法或者装置的程序代码的程序产品来实现。也就是说,这样的程序产品也构成本公开,并且存储有这样的程序产品的存储介质也构成本公开。显然,所述存储介质可以是任何公知的存储介质或者将来所开发出来的任何存储介质。Therefore, the object of the present disclosure can also be achieved by running a program or a group of programs on any computing device. The computing device may be a known general-purpose device. Therefore, the object of the present disclosure can also be achieved only by providing a program product including program codes for realizing the method or device. That is, such a program product also constitutes the present disclosure, and a storage medium storing such a program product also constitutes the present disclosure. Obviously, the storage medium may be any known storage medium or any storage medium developed in the future.

还需要指出的是,在本公开的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行。某些步骤可以并行或彼此独立地执行。It should also be pointed out that, in the apparatus and method of the present disclosure, obviously, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of the present disclosure. Also, the steps for performing the above series of processes may naturally be performed in chronological order in the order described, but need not necessarily be performed in chronological order. Certain steps may be performed in parallel or independently of each other.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (9)

1. A lossless ring network switch comprising:
one or more device ports;
a pair of network link ports
The switching logic unit learns the source MAC address in the data frame from the network link port based on a source MAC address learning mechanism and forms an MAC address table; and
a routing logic component including a data reorganizing unit that learns a source lossless ring network switch ID included in a routing protocol in a data frame transmitted from one of the network link ports and forms a source lossless ring network switch ID table in a ring network, an ID learning unit that searches a locally located source lossless ring network switch ID table based on a destination MAC address in the data frame for the data frame transmitted from the switching logic unit to acquire a destination switch ID corresponding to the destination MAC and adds a routing protocol including the acquired destination switch ID, the local switch ID, and a data frame sequence number generated based on the source switch ID and a routing protocol added for stripping the data frame transmitted from the network link port, and a routing decision unit that changes the destination switch ID included in the routing protocol from the local switch ID and the data frame sequence number The unregistered data frame is routed only to a network link port direction opposite to a network link port that receives the data frame, the data frame whose destination switch ID contained in the routing protocol is a local switch ID and whose frame sequence number is not registered is routed to a data reassembly unit direction of the local lossless ring network switch, and the data frame whose frame sequence number has been registered is discarded.
2. The lossless ring network switch of claim 1, wherein the data reassembly unit sends the data frame to the switching logic unit after stripping the routing protocol added to the data frame when the routing decision unit routes the data frame to the direction of the data reassembly unit of the local lossless ring network switch.
3. The lossless ring network switch according to claim 1 or 2, wherein the data reassembly unit reassembles a blocking packet mainly containing routing protocol data and a data frame sequence number without containing data contents based on a routing protocol of the received data frame in a case where the data frame from the network link port is a data frame which is not registered and a destination switch ID is a local switch ID, and the routing decision unit routes the blocking packet to a network link port direction opposite to the network link port which receives the data frame.
4. The lossless ring network switch of claim 3, wherein the routing decision unit determines whether the received data frame has been registered based on a source lossless ring network switch ID and a data sequence number included in the received data frame.
5. A lossless self-healing ring network comprising a plurality of lossless ring network switches according to any one of claims 1 to 4.
6. A lossless looped network data communication method comprises the following steps:
a first data frame sent by a first user equipment from a user equipment port of a first lossless ring network switch through a first switching logic unit;
a first data recombination unit of a first lossless ring network switch acquires a destination lossless ring network switch ID corresponding to a destination MAC by adopting a Hash algorithm based on a destination MAC address in a first data frame and a source lossless ring network switch ID table in the first lossless ring network switch, adds a routing protocol containing the acquired destination lossless ring network switch ID, the first lossless ring network switch ID and a data frame serial number generated based on the first lossless ring network switch ID for the first data frame, and copies the first data frame after the protocol is added;
a first routing decision unit of a first lossless loop network switch routes the first data frame and a copy thereof to a pair of network link port directions of the first lossless loop network switch respectively;
when a second ID learning unit of at least one second lossless looped network switch receives a first data frame from first user equipment through one of the paired network link ports, based on a source address learning mechanism, learning a first lossless looped network switch ID contained in a routing protocol of the first data frame and forming a source lossless looped network switch ID table in a looped network; and
the second routing decision unit of the at least one second lossless ring network switch, upon receiving the first data frame from the first user equipment through one of its paired network link ports, routes the first data frame, which is included in the routing protocol and whose destination switch ID is not the local switch ID and whose data frame sequence number is not registered, only to the direction of the network link port opposite to the network link port that received the first data frame, routes the first data frame, which is included in the routing protocol and whose destination lossless ring network switch ID is the second lossless ring network switch ID and whose data frame sequence number is not registered, to the direction of the second data reassembly unit of the second lossless ring network switch, and discards the first data frame, whose frame sequence number has been registered.
7. The lossless ring network data communication method according to claim 6, further comprising:
when the second routing decision unit routes the first data frame to the second data recombination unit, the second data recombination unit strips the routing protocol added in the first data frame and then sends the routing protocol to the second switching logic unit of the second lossless ring network switch.
8. The lossless ring network data communication method according to claim 6 or 7, further comprising:
as the second routing decision unit routes the first data frame with the destination lossless ring network switch ID as the second lossless ring network switch ID to the direction of the second data reorganization unit, the second data reorganization unit reorganizes a blocking packet mainly containing routing protocol data and a data frame sequence number but not containing substantial data content based on the routing protocol of the received first data frame, and routes the blocking packet to the direction of the network link port opposite to the network link port receiving the first data frame.
9. The lossless ring network data communication method according to claim 8, further comprising:
the second ID learning unit registers the data frame sequence number of the first data frame in the data frame sequence number registration table in association with the first lossless network switch ID when the data frame sequence number of the first data frame is not registered.
CN201710357928.9A 2017-05-19 2017-05-19 Lossless ring network switch, lossless self-healing ring network and data communication method thereof Active CN107395479B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710357928.9A CN107395479B (en) 2017-05-19 2017-05-19 Lossless ring network switch, lossless self-healing ring network and data communication method thereof
PCT/CN2018/087331 WO2018210312A1 (en) 2017-05-19 2018-05-17 Lossless ring network switch, lossless self-healing ring network, and data communication method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710357928.9A CN107395479B (en) 2017-05-19 2017-05-19 Lossless ring network switch, lossless self-healing ring network and data communication method thereof

Publications (2)

Publication Number Publication Date
CN107395479A CN107395479A (en) 2017-11-24
CN107395479B true CN107395479B (en) 2019-12-31

Family

ID=60338927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710357928.9A Active CN107395479B (en) 2017-05-19 2017-05-19 Lossless ring network switch, lossless self-healing ring network and data communication method thereof

Country Status (2)

Country Link
CN (1) CN107395479B (en)
WO (1) WO2018210312A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395479B (en) * 2017-05-19 2019-12-31 闫晓峰 Lossless ring network switch, lossless self-healing ring network and data communication method thereof
CN108600097B (en) * 2018-04-20 2020-09-22 闫晓峰 Communication equipment capable of transmitting data in multiple paths, data communication network system and data communication method
CN112422236A (en) * 2020-11-20 2021-02-26 广东电网有限责任公司佛山供电局 Ethernet data transmission method and system based on format modification strategy

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577711A (en) * 2009-06-17 2009-11-11 上海吉盛网络技术有限公司 Method for realizing network security platform of IP software router by utilizing VLAN technology
CN102594668A (en) * 2012-02-03 2012-07-18 福建星网锐捷网络有限公司 Message forwarding method, device and exchange equipment
CN105978652A (en) * 2016-04-27 2016-09-28 刘巍 Synchronous time comparing equipment of redundant Ethernet, system and method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007129699A1 (en) * 2006-05-09 2007-11-15 Nec Corporation Communication system, node, terminal, communication method, and program
CN107395479B (en) * 2017-05-19 2019-12-31 闫晓峰 Lossless ring network switch, lossless self-healing ring network and data communication method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577711A (en) * 2009-06-17 2009-11-11 上海吉盛网络技术有限公司 Method for realizing network security platform of IP software router by utilizing VLAN technology
CN102594668A (en) * 2012-02-03 2012-07-18 福建星网锐捷网络有限公司 Message forwarding method, device and exchange equipment
CN105978652A (en) * 2016-04-27 2016-09-28 刘巍 Synchronous time comparing equipment of redundant Ethernet, system and method thereof

Also Published As

Publication number Publication date
WO2018210312A1 (en) 2018-11-22
CN107395479A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US8005084B2 (en) Mirroring in a network device
CN104012052B (en) System and method for the flow management in software defined network
US10608866B2 (en) Forwarding Ethernet packets
US9602428B2 (en) Method and apparatus for locality sensitive hash-based load balancing
CN104734964B (en) Message processing method, node and system
US10397116B1 (en) Access control based on range-matching
US9369293B2 (en) Compressing singly linked lists sharing common nodes for multi-destination group expansion
US10547547B1 (en) Uniform route distribution for a forwarding table
KR102367307B1 (en) Systems and methods for processing packets in a computer network
US10348603B1 (en) Adaptive forwarding tables
CN102891803B (en) Congestion processing method and network device
US8923291B2 (en) Communication apparatus and communication method
CN107395479B (en) Lossless ring network switch, lossless self-healing ring network and data communication method thereof
US20230006937A1 (en) Packet flow identification with reduced decode operations
JP2018515052A (en) Multicast data packet forwarding
WO2016124049A1 (en) Method and apparatus for obtaining port path
CN108696435A (en) For the single lookup table entries symmetrically flowed
US11126249B1 (en) Power reduction methods for variable sized tables
JP4392316B2 (en) Frame relay device
WO2023011153A1 (en) Method and apparatus for determining hash algorithm information for load balancing, and storage medium
US8743907B1 (en) Apparatus for reassembling a fragmented data unit and transmitting the reassembled data unit
WO2020088379A1 (en) Service flow processing method and device
US8996798B1 (en) Systems and methods for using TCAMs in network devices
CN114978986A (en) Data transmission method, device and storage medium
US20240305494A1 (en) Efficient programming of multicast routes in forwarding hardware

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221130

Address after: 209, Building C-7, Dongsheng Science Park, Zhongguancun, No. 66, Xixiaokou Road, Haidian District, Beijing

Patentee after: Beijing Enyitong Technology Development Co.,Ltd.

Address before: Fremont

Patentee before: Yan Xiaofeng

TR01 Transfer of patent right