[go: up one dir, main page]

WO2018210311A1 - Ethernet bus switch, ethernet bus architecture, and data communication method - Google Patents

Ethernet bus switch, ethernet bus architecture, and data communication method Download PDF

Info

Publication number
WO2018210311A1
WO2018210311A1 PCT/CN2018/087330 CN2018087330W WO2018210311A1 WO 2018210311 A1 WO2018210311 A1 WO 2018210311A1 CN 2018087330 W CN2018087330 W CN 2018087330W WO 2018210311 A1 WO2018210311 A1 WO 2018210311A1
Authority
WO
WIPO (PCT)
Prior art keywords
data frame
bus
data
mac address
switch
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.)
Ceased
Application number
PCT/CN2018/087330
Other languages
French (fr)
Chinese (zh)
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.)
Individual
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
Publication of WO2018210311A1 publication Critical patent/WO2018210311A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • 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/40Bus networks
    • H04L12/40006Architecture of a communication node
    • 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/40Bus networks
    • H04L12/4013Management of data rate on the bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio

Definitions

  • Ethernet bus switch Ethernet bus architecture and data communication method
  • the present disclosure relates to an Ethernet bus switch, an Ethernet bus architecture including an Ethernet bus switch, and a data communication method using the same, and in particular, a communication method capable of implementing cross communication and lossless monitoring data.
  • the traditional bus physically implements half-duplex communication by broadcasting to the device downwards and branching upwards.
  • the traditional bus communication mode is characterized by: data delay, small jitter, point-to-multipoint half-duplex communication mode.
  • the traditional bus communication mode has almost no data redundancy protection mechanism, and the number of cables is large, the wiring is complicated, the fault tolerance is low, the cost is high, the bandwidth is small, only 9600 ⁇ 12 Mbps, and the rate is low.
  • the traditional bus system communication mode cannot achieve full-duplex communication, so the efficiency is relatively low.
  • Ethernet switching system can adopt point-to-point unicast communication and point-to-multipoint broadcast/multicast one-way communication, and can realize full-duplex communication.
  • Ethernet equipment costs, low cable cost, fast speed (100M, 1000M, 10 Gigabit), and full-duplex communication mechanism, sharing, splicing, high degree of uniformity, and good connectivity.
  • fast speed 100M, 1000M, 10 Gigabit
  • full-duplex communication mechanism sharing, splicing, high degree of uniformity, and good connectivity.
  • the determinism, realism, and stability of the network are not as good as bus communication.
  • an Ethernet bus switch comprising: one or more device ports; a pair of network link ports; a logic unit, transmitting or receiving a data frame, and learning a source device MAC address of the received data frame based on a source MAC address learning mechanism and storing the MAC address in the MAC address table; and transmitting logic components, including a routing decision unit and a data reassembly unit,
  • the data reassembly unit will data from the device port Copying a frame so that the routing decision unit routes the data frame to the pair of network link port directions, and the data reassembly unit will have a bus attribute from one of the pair of network link ports and the destination MAC address is a local device Copying a data frame of the MAC address of the bus device on the port, so that the routing decision unit routes the data frame to the device port direction and the other port direction of the pair of network link ports, thereby implementing
  • An Ethernet bus switch according to the present disclosure, wherein the data reassembly unit adds a data frame ID for a data frame transmitted from a device port via a switching logical unit and strips the data frame ID for a data frame received from the routing decision unit.
  • An Ethernet bus switch according to the present disclosure, wherein the data frame ID includes a data frame sequence number generated based on a source switch ID.
  • An Ethernet bus switch according to the present disclosure, wherein the data frame ID includes a active switch ID, a destination switch ID, and a data frame sequence number generated based on the source switch ID.
  • Ethernet bus switch according to the present disclosure, wherein the data reassembly unit is the same as the source MAC address in the data frame from one of the pair of network link ports and the MAC address of the local bus device
  • the source information and the destination information in the routing protocol field in the frame are exchanged for reorganization.
  • the Ethernet bus switch according to the present disclosure, wherein the routing decision unit routes only data frames from a MAC address of a device on a local device port that is not a destination MAC address from one of the pair of network link ports to The other port direction of the pair of network link ports.
  • An Ethernet bus switch wherein the routing decision unit pairs a MAC from one of the pair of network link ports that does not have a bus attribute and the destination MAC address is a non-bus device on the local device port The data frame of the address is only routed to the device port direction.
  • a bus architecture consisting of an Ethernet bus switch according to the present disclosure, wherein the transmission line connects a plurality of Ethernet bus switches via a network link port of the Ethernet bus switch, at least two At least one bus device is connected to one or more device ports of the Ethernet bus switch, so that multiple bus devices having the same MAC address can simultaneously receive the data frame destined for the MA C address, thereby implementing in a unicast manner.
  • Point-to-multipoint and multipoint-to-multipoint communication wherein the transmission line connects a plurality of Ethernet bus switches via a network link port of the Ethernet bus switch, at least two At least one bus device is connected to one or more device ports of the Ethernet bus switch, so that multiple bus devices having the same MAC address can simultaneously receive the data frame destined for the MA C address, thereby implementing in a unicast manner.
  • a data communication method on a bus architecture comprising: one of a plurality of first bus devices from a user equipment port of a first Ethernet bus switch
  • the first switching logic unit issues a first data frame having an Ethernet bus attribute;
  • the first data reassembly unit of the first Ethernet bus switch copies the received first data frame and is first by the first Ethernet bus switch Routing the decision unit, the first data frame and its copy are respectively routed to a pair of network link port directions of the first Ethernet bus switch;
  • at least one second Ethernet bus switch is received from the first via one of its paired network link ports a first data frame of the bus device, wherein the second routing decision unit of the second Ethernet bus switch determines that the destination MAC of the first data frame is the MAC of the second bus device connected to the user equipment port of the second Ethernet bus switch
  • the second data reassembly unit of the second Ethernet bus switch copies the first data frame, and the first data frame is routed to the second by the
  • the method further includes: the second routing decision unit directly routing the first data frame to the case where it is determined that the destination MAC of the first data frame is not the MAC of the second bus device The other port direction of the paired network link port of the second Ethernet bus switch.
  • the method further includes: the first data reassembly unit adding a data frame ID to the first data frame before copying the first data frame and the second routing decision unit
  • the data frame ID added before the first data frame is routed to the second bus device direction or the second data reassembly unit strips the first data frame.
  • the data frame ID in the data frame may be a data frame sequence number based on a port that sends the data frame, and is also based on a data sequence number generated by a switch ID connected to the user equipment, or may include an active switch ID. , the destination switch ID, and the data frame sequence number generated based on the source switch ID.
  • the method further includes: when the second routing decision unit determines that the source MAC of the first data frame is the same as the MAC of the second bus device, the second data reassembly unit is first
  • the source information and the destination information in the routing protocol field in the data frame are exchanged for reorganization; and the second routing decision unit routes the reassembled first data frame to the second bus device direction.
  • the source information in the routing protocol field in the data frame contains information related to the routing, including, for example, a MAC address, an IP address (in the case of an IP layer), a port number, and the like.
  • the method further includes: the second routing decision unit determining the first number According to the MAC address of the device on the user equipment port of the second switching logical unit, the destination MAC address of the frame is only routed to the other port direction of the pair of network link ports of the second Ethernet bus switch.
  • the method further includes: the second routing decision unit determining that the data frame from one of the pair of network link ports does not have a bus attribute and the destination MAC address is the second The MAC address of the non-bus device on the user equipment port of the switching logical unit is only routed to the user equipment port direction of the second switching logical unit.
  • Ethernet bus switch of the present disclosure and the bus architecture formed by these switches, it is possible to implement point-to-multipoint communication between the bus devices in a unicast manner, and the unicast mode can also be obtained.
  • Point-to-multipoint communication thereby enabling multiparty calls on the bus. It not only achieves the certainty, stability and stability of communication, but also the advantages of high-speed, full-duplex communication of traditional Ethernet.
  • FIG. 1 is a schematic diagram showing the principle of an Ethernet switch according to a first embodiment of the present invention.
  • FIG. 2 is a flow chart showing the processing of data frames received by the Ethernet bus switch to the user access port according to the present disclosure.
  • FIG. 3 is a flow chart showing the processing of data frames received from a network link channel in accordance with the present Ethernet bus switch.
  • FIG. 4 is a schematic diagram of an Ethernet bus according to the present disclosure.
  • FIG. 5 is a schematic diagram showing a point-to-multipoint bidirectional communication process implemented in a unicast manner on an Ethernet bus according to the present disclosure.
  • FIG. 6 is a schematic diagram of a non-destructive monitoring method according to the present disclosure.
  • first, second, third, etc. may be used to describe various information in this disclosure, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first Ethernet bus switch may also be referred to as a second Ethernet bus switch without departing from the scope of the present disclosure.
  • second Ethernet bus switch may also be referred to as a first Ethernet bus switch.
  • word "if" as used herein may be interpreted as "in" or
  • the Ethernet bus switch 100 includes a switching logic unit 110 and a transmission logic component 120.
  • the switching logic unit 110 and the transmission logic component 120 use a single channel or multiple channels for data interaction communication.
  • Switching logic unit 110 has one or more ports 105 for accessing bus devices. Although the port here can be connected to a bus device, it can also be connected to a common networked device.
  • the transport logic component 120 has a pair of network link ports VIII and ⁇ although shown here as a pair of network link ports A and B, but it can have two pairs of network link ports.
  • Switching logic unit 110 forms a source MAC address table based on the source MAC address learning mechanism to receive and transmit data frames.
  • the transport logic component 120 includes a data reassembly unit 121 and a routing decision unit 122.
  • the data recombining unit 121 copies the data frame that needs to be bidirectionally transmitted, and the routing decision unit 12 2 routes the data frame and the copy thereof in two directions to implement bidirectional transmission.
  • a data frame ID generated based on the local switch ID may be added to the locally sent data frame.
  • the data reassembly unit 121 may add additional routing protocol data to the data frame, for example, the routing protocol may include the destination switch ID, the source switch ID. And a data frame sequence number (ie, a data frame ID) generated based on the source switch ID.
  • routing decision unit 122 performs routing decisions based primarily on the bus device attributes of the data frame and the destination MAC.
  • User equipment for the present Ether bus switch is typically a bus device.
  • it usually has its own fixed MAC address, and the user can have its own requirements, and define the MAC with some characteristic data in some devices as the bus MAC, thereby making certain devices to be used have
  • the bus attribute is such that the data frame it sends or the data frame destined for the MAC address with the bus characteristics has a bus attribute.
  • register the device's own MAC address in the registration table in the switch and indicate that it has a bus attribute in each registered MAC address entry. Thereby, a data frame having a MAC address is identified as a data frame having a bus attribute based on the registration table.
  • bus device attribute is identified such that the switch will identify the bus attribute of the device and the bus attributes of the data frame associated with the device based on the bus attribute identification of the device.
  • the data recombining unit 121 adds a data frame ID to the transmitted data frame and strips the data frame ID for the received data frame, and the routing decision unit 122 performs a data frame with the bus attribute from the data recombining unit 121. Send in both directions. Therefore, according to the Ethernet bus switch 100 of the present disclosure and the bus architecture formed by these switches, it is possible to realize point-to-multipoint communication between the bus devices by using unicast mode, and the unicast mode can also obtain multi-point pairs. Multi-point communication, thereby enabling multi-party calls on the bus. It not only achieves the certainty, stability and stability of communication, but also the advantages of high-speed, full-duplex communication of traditional Ethernet.
  • the data reorganization unit 121 can also activate another data reorganization function by configuration, that is, when According to the reorganization unit 121, it is known that the source MAC address in the data frame from one of the pair of network link ports is the same as the MAC address of the local bus device, and the source information in the routing protocol field in the data frame may be obtained (for example, The MAC address, IP address (in the case of an IP layer), port number), and destination information (for example, MAC address, IP address (in the case of an IP layer), port number) are exchanged for reorganization.
  • the source MAC address in the data frame from one of the pair of network link ports is the same as the MAC address of the local bus device
  • the source information in the routing protocol field in the data frame may be obtained (for example, The MAC address, IP address (in the case of an IP layer), port number), and destination information (for example, MAC address, IP address (in the case of an IP layer), port number) are exchanged for reorganization.
  • the Ethernet bus switch receives data frames from the user access port or device port 105, and on the other hand, the switch receives data frames from the network transmission channel.
  • FIG. 2 is a flow chart showing the processing of data frames received by the Ethernet bus switch to the user access port according to the present disclosure.
  • a data frame with a bus device attribute sent from user equipment A is received.
  • the data recombining unit 121 adds a data frame ID to the received bus attribute data frame.
  • the data frame ID typically contains the switch ID to which the device is connected and the data sequence number generated based on the connected switch.
  • the data frame ID is described here using the switch ID, there are other ways to set the data frame ID, such as the unique device serial number of each device. Of course, the data frame ID may also include other features for distinguishing the source of the data frame.
  • the data frame can be adapted for transmission in an Ethernet network containing the present Ethernet bus switch. After the data frame is added with the data frame ID, the data frame with the bus attribute can be copied to obtain a copy of the original data frame.
  • the routing decision unit 122 determines that the data frame directly uses the two network connection ports of the switch as one port for routing decision, that is, the same route to the port corresponding to the two transmission channels, This enables bidirectional transmission of data frames sent by the local device port.
  • a bus set having the same MAC address on a user port of a different switch will receive the data frame at the same time, a point-to-multipoint communication based on unicast is realized.
  • FIG. 3 is a flow chart showing the processing of data frames received from a network link channel in accordance with the present Ethernet bus switch.
  • a source device such as a bus device
  • the data frame usually contains the source MAC address of the source device and the destination device MAC address.
  • Ben The public Ethernet bus switch can learn the MAC address of the source device and form a MAC address table, just like a normal switch.
  • the MAC address table can contain device attribute information, such as whether it is a bus device.
  • Whether the data frame has a bus device attribute that is, whether the destination MAC address of the data frame has a bus MAC address attribute.
  • the MAC address table learns the MAC address of each source device synchronously, and learns the device attributes corresponding to each MAC address, for example, whether it is a bus device.
  • the paired network link ports are configured as a source MAC address learning port, that is, the MAC addresses learned from the network link ports A and B are all marked as the same port in the MAC address table.
  • the routing decision unit 122 determines the routing direction of the data frame from the network link channel, such as transmission channel A. First, at step S305, the switch receives a data frame from its transmission channel A. Subsequently, at step S310, it is determined whether the data frame has received the data frame from the other side of the paired network link port, such as the network link channel B, based on the included data frame ID. This situation occurs when a switch is used in a ring network, so collision detection is required. If received, routing decision unit 122 discards the data.
  • the routing decision unit 122 determines if the data frame has a bus device attribute, i.e., whether the destination MAC address of the data frame has a bus MAC address attribute. That is, by looking up the MAC address table of the switch, it is known whether the device corresponding to the MAC address is a bus device, thereby determining whether the data frame containing the destination MAC address has a bus data frame attribute.
  • the MAC address table learns the MAC address of each source device synchronously, and learns the device attributes corresponding to each MAC address, for example, whether it is a bus device.
  • the routing decision unit 122 determines that the data frame has a bus attribute ⁇
  • the data recombining unit 121 copies the data frame at step S320.
  • the routing decision unit 122 directly routes a data frame to the port to which the transmission channel (for example, the transmission channel B) opposite to the transmission channel (for example, the transmission channel A) of the received data frame belongs;
  • the transmission channel for example, the transmission channel B
  • the transmission channel for example, the transmission channel A
  • another data frame is routed to the direction of the user access port.
  • the routing decision unit determines whether the MAC address of the data frame is the MAC address of the device on the user access port owned by the local exchange.
  • the routing decision unit 122 routes the data frame to use. The direction of the device on the access port of the user to download to the local device. Then at step S335, the data frame ID stripping is performed by the data recombining unit 121 to download the data frame stripped by the data frame ID to the local device by the switching logic component 110 at step S340.
  • routing decision unit 122 routes the data frame to the local user access port and to the transmission channel (eg, transmission channel A) of the received data frame.
  • step S330 If it is determined in step S330 that the data frame MAC address is not the MAC address of the device on the user access port owned by the local exchange, the routing decision unit 122 does not perform data transmission to the port, but only in the step At S345, the port to which the data frame is routed to the transmission channel (e.g., transmission channel A) opposite to the transmission channel (e.g., transmission channel A) that receives the data frame is forwarded.
  • the transmission channel e.g., transmission channel A
  • transmission channel A e.g., transmission channel A
  • step S330 and step S320 may be performed simultaneously.
  • the routing decision result is obtained only to route the data frame to the countermeasure channel direction.
  • step S330 when the routing decision unit 122 determines in step S315 that the data frame does not have the bus attribute, it is directly determined in step S330 whether the MAC address is a device on the user access port owned by the local exchange. MAC address. On the one hand, if it is determined in step S330 that the MAC address is the MAC address of the device on the user access port owned by the local exchange, the routing decision unit 122 routes the data frame to the device on the user access port. Direction for download to local device. Then at step S335, the data frame ID stripping is performed by the data recombining unit 121 to download the data frame stripped by the data frame ID to the local device by the switching logic component 110 at step S340.
  • the routing decision unit 22 routes the data frame to the transmission channel of the received data frame (eg Transmission channel A) relative transmission channel (for example, transmission channel A) The port to which it belongs is forwarded. This enables direct forwarding where the data frame received from the transmission channel does not have a bus attribute and its destination MAC address is not the MAC address of the local device.
  • FIG. Figure 4 is a schematic diagram of an Ethernet bus in accordance with the present disclosure.
  • the active device 410 is connected under the Ethernet bus switch 100-1.
  • the source device can be a normal bus device, a non-bus device, or a server or controller. Connect to the bus device on the user access port of each Ethernet bus switch 100-2, ... 100-N
  • Bus device Line device -N+l. Although each Ethernet bus switch shown in Figure 4 is connected to only one bus device, each Ethernet bus switch can be connected to multiple devices. These devices can be bus devices, non-bus devices, or partial bus devices. And some non-bus devices.
  • the data exchange process described in connection with FIGS. 2 and 3 can be performed between the various devices in the bus 400.
  • source device 410 when, for example, source device 410 has a MAC1 address, it can be a bus device or a non-bus device.
  • the source device 410 transmits a data frame to one or more bus devices having the same MAC2 address (for example, transmitting a data frame to the bus device 1 and the bus device 2, both the bus device 1 and the bus device 2 receive the data frame. Therefore, although the data frame sent by the source device 41 0 is a unicast data frame, it implements a broadcast or multicast function, that is, a point-to-multipoint data transmission function.
  • the bus device 1 and the bus device 2 both collide.
  • the received data frame responds, each response containing the MAC1 address of the active device 410 as the destination address, and including the respective data frame ID.
  • the source device 410 receives the bus device 1 and the bus device 2 The response, thereby achieving point-to-multipoint or even multipoint-to-multipoint bidirectional communication.
  • FIG. 5 is a schematic diagram of a point-to-multipoint bidirectional communication process implemented in a unicast manner on an Ethernet bus according to the present disclosure.
  • the Ethernet bus switch treats the same type of device (the device with the same MAC address) as one device, that is, the same MAC address, so that when the same device responds to the source device, the MAC address will be learned.
  • User access port and network link port and according to this publication The Ethernet bus switch 100 sets the user access port and the network link port as separate learning mechanisms. For example, the access port learns the MAC address, and the network link port learns the ID of the source switch.
  • the transport logic component 120 Based on the Ethernet source MAC learning mechanism, the transport logic component 120 transmits the data sent from the source device to the two network link ports, so that all the bus devices receive the data from the source device. frame. At the same time, the source device can also receive response data frames from all bus devices. If only the traditional switch is used in this Ethernet bus architecture, when the two ports of the same switch learn the same MAC address, the target address conflict will occur due to the unicast peer-to-peer transmission mechanism, and the point-to-point collision cannot be achieved. Point data communication. Two-way forwarding and point-to-multipoint and multi-point to multi-point bidirectional communication are functions that are not possible with ordinary bus Ethernet.
  • the present disclosure can provide a data communication method capable of implementing point-to-multipoint and multipoint-to-multipoint based on a unicast format.
  • one or more first bus devices (bus devices 1) are connected to the first Ethernet bus switch 100 (such as the Ethernet bus switch 1 in the figure), which are issued with the Ethernet bus via the first switching logic unit.
  • the first data frame of the attribute The first data reassembly unit 121 of the first Ether bus switch 100 copies the received first data frame and routes the first data frame and its replica by the first routing decision unit 122 of the first Ether bus switch.
  • the second Ethernet bus switch 100 receives the first data frame forwarded from the first Ethernet bus switch 100 via one of its respective network link ports. Or a copy thereof (hereinafter collectively referred to as the first data frame).
  • the second routing decision unit 122 of the second Ethernet bus switch determines the purpose of the first data frame. Whether the ground MAC is the MAC of the second bus device connected to the user equipment port of the second Ethernet bus switch.
  • the second data reassembly unit 121 of the second Ether bus switch 100 copies the first data frame and routes the first data frame by the second routing decision unit 122 of the second Ether bus switch 100.
  • a second bus device eg, bus device 2 or bus device 0
  • the bus device 2 has the same MAC address, which will also receive the first data frame.
  • communication of points e.g., bus device 1 to multiple points (e.g., bus devices 2 and N) is achieved by unicast.
  • bus device 2 and N when a bus device that receives the first data frame, such as bus device 2 and N, responds to the first data frame, its response data frame will also undergo the above data exchange process. Thereafter, the response data frame will be regarded as the "first data frame” in the above process, and the bus devices 2 and N will issue the response data frame as the "first bus device” of the above process, and The "bus device 1" of the destination bus device responding to the data frame will be regarded as the "second bus device” of the above process.
  • the Ethernet bus switch to which bus devices 2 and N are connected will be treated as the first Ethernet bus switch, and the Ethernet bus switch to which "bus device 1" is connected will be treated as the second Ethernet bus switch.
  • the Ethernet bus architecture can be self-learned for device expansion, that is, only one Ethernet switch needs to be connected to the existing bus. If the bus device of the same MAC address is used, the link configuration is not required between the network devices, and the link can be established only by one communication, thereby eliminating the trouble of expanding the configuration on the existing Ethernet or the conventional bus.
  • FIG. 6 is a schematic illustration of a non-destructive monitoring method in accordance with the present disclosure.
  • a third bus device (not shown) is coupled to the left transmission channel port of the Ethernet bus switch described by the first bus device (shown as device 1 in the figure) via a network link channel.
  • the third device can communicate with the first bus device.
  • the device 1 has a configured MAC address MAC1.
  • a bus device such as a second bus device, can be connected to the user access port of any Ethernet bus switch on the bus according to the present disclosure. Configure its MAC address to be the same MAC1 as the MAC address of the first device.
  • the second bus device can actually monitor the complete communication process between the first bus device and the third bus device without affecting the communication between the first bus device and the third device. There is also no need to cause physical damage to the communication link between the first bus device and the third device.
  • the Ethernet bus switch to which the first bus device belongs receives the bus data frame sent by the third device to the device 1 as the first bus device, the transmission logic component 120 of the Ethernet bus switch
  • the routing decision unit 121 performs bidirectional transmission based on the MAC address determination MAC address in the switch MAC address table, and then the data reassembly unit 122 copies the data frame. Then one of them sends the relative transmission channel, and the other is stripped of the data frame ID by the data reassembly unit 122 and sent to the local switching logic component 110.
  • the data frame after the data frame ID is stripped by the data recombining unit is downloaded to the first bus device.
  • the peer is forwarded to the Ethernet bus switch to which the device 2 to which the second bus device or the listening device belongs.
  • the routing decision unit 121 and the data recombining unit 122 of the transport logic component 120 of the Ethernet bus switch to which the second bus device belongs perform the same processing on the data frame, and the data of the listening device routed to the local user access port.
  • the frame is subjected to stripping data frame ID processing and then downloaded to the device 2 via the switching logic component 110, whereby the device 2 acts as a listening device, obtaining data sent by the third device to the device 2 as the second bus device.
  • the device 1 when the device 1 responds to the received data frame, it sends a response data frame to the third bus device, where the source address of the response data frame is MAC1 and the destination address is M of the third bus device. AC address. Since the third device described by the destination MAC address is a bus device, the response data frame has a bus attribute. Thus, the response data frame is routed by the routing decision unit 121 to the opposite transmission channel. The track is forwarded in both directions. The response data frame is then added by the data reassembly unit 122 to the data frame ID and copied.
  • one of the response data frames is forwarded to the left to the Ethernet bus switch to which the third bus device belongs and is received by the third bus device, thereby obtaining a response data frame for the data frame to which the first bus device issues.
  • another copy of the data frame is forwarded via the right transmission channel to the Ethernet bus switch to which the second bus device belongs.
  • the routing decision unit 121 of the Ethernet bus switch to which the second bus device belongs is directly routed to the local user access port direction for the data frame whose source MAC address transmitted from the transmission channel is the same as the MAC address of the local device, and is reconstructed by the data reorganization unit. 122.
  • the source MAC address in the received response data frame copy is the same as the MAC address of the second bus device
  • the source MAC address and the destination MAC address in the data frame are exchanged for reorganization and data reorganization Unit 122 strips the data frame ID and downloads it to the second bus device. Thereby, a response data frame transmitted by the first bus device to the third bus device is obtained, thereby listening to the return data.
  • the second bus device as the listening device can thus reliably monitor the communication between the third bus device and the first bus device.
  • the traditional data monitoring method is to add a special monitoring device at the node to capture and filter the data of the monitored object to the processing platform. This way of monitoring increases the cost of additional monitoring equipment and the data of the listening device.
  • the secondary processing brings data security risks.
  • the utility model uses the above features to monitor the original data in the current environment, and does not increase the additional cost, nor does it need to capture and filter the data to ensure data transmission security.
  • the Ethernet bus switch based on the present invention treats the same type of bus device as one device, that is, configures the same MAC address, so when the same type of bus device responds to the source device, the MAC address will be learned.
  • the Ethernet bus switch sets the application port and the transmission port as separate learning mechanisms. When the two ports learn the same MAC address, they are not regarded as MAC conflicts, but the port is also considered to have the device. Access.
  • the transmission logic Based on the Ethernet source MAC learning mechanism, the transmission logic transmits the data sent from the source device to both ports, so that all devices receive the data from the source device. At the same time, the source device can also receive response data from all devices.
  • the Ethernet bus switch based on the present invention adopts a full-duplex communication mode, follows the learning mechanism of the Ethernet source mac address, and performs point-to-multipoint bidirectional data interaction by using unicast.
  • a device is added to the network, only the currently existing link can complete the data interaction with the newly added device.
  • a traditional switch in the current shelf Under the circumstance, when the two ports learn the same mac address, the target address conflict occurs due to the unicast peer-to-peer transmission mechanism, and point-to-multipoint data communication cannot be achieved.
  • the switching logic unit 110 also performs a conventional data communication exchange process on the device data frame from the local device, and the data frame from the local device can be pre-processed with the MAC address table for the destination.
  • the data frame whose MAC address is the address of the other local port device is directly sent to the other local port device.
  • the purpose of the present disclosure can also be achieved by running a program or a set of programs on any computing device.
  • the computing device can be a well-known general purpose device.
  • the purpose of the present disclosure can also be achieved by merely providing a program product comprising program code for implementing the method or apparatus. That is to say, such a program product also constitutes the present disclosure, and a storage medium storing such a program product also constitutes the present disclosure. It will be apparent that the storage medium may be any well-known storage medium or any storage medium that will be elucidated in the future.
  • the transmission logic component 110 of the listening device may be configured to first perform MAC address resolution on the transmitted data, and first exchange and reassemble the data frame whose source MAC address is the same as the MAC of the local monitoring device, and then The routing decision unit makes a routing decision to route to the listening device to obtain a response data frame of the monitored device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present application relates to an Ethernet bus switch. The switch comprises a switching logic unit and a transmission logic assembly. A data reorganization unit of the transmission logic assembly copies a data frame from a device port for a routing decision unit to route the data frame to the directions of a pair of network link ports. The data reorganization unit of the transmission logic assembly copies a data frame which is from one of the pair of network link ports, has a bus attribute, and has a destination MAC address being the MAC address of a bus device on a local device port, for the routing decision unit to route the data frame to the direction of the device port and the direction of the other of the pair of network link ports. Thus, point-to-multipoint communication is achieved by means of unicast. The present application also relates to an Ethernet bus architecture consisting of multiple Ethernet bus switches.

Description

以太总线交换机、 以太总线架构以及数据通讯方法 技术领域  Ethernet bus switch, Ethernet bus architecture and data communication method

[0001] 本公幵涉及一种以太总线交换机、 包含以太总线交换机的以太总线架构以及利 用其的数据通讯方法, 尤其是能够实现交叉通讯和无损监听数据通讯方法。 背景技术  [0001] The present disclosure relates to an Ethernet bus switch, an Ethernet bus architecture including an Ethernet bus switch, and a data communication method using the same, and in particular, a communication method capable of implementing cross communication and lossless monitoring data. Background technique

[0002] 传统总线物理上采用向下对设备广播, 向上分吋的方式实现了半双工的通讯。  [0002] The traditional bus physically implements half-duplex communication by broadcasting to the device downwards and branching upwards.

传统总线通讯模式的特点是: 数据吋延、 抖动小, 点对多点的半双工通讯模式 。 但是传统总线通讯模式几乎无数据冗余保护机制, 并且线缆数量多, 布线复 杂, 容错率低, 成本高, 带宽小, 只有 9600~12Mbps, 速率较低。 而且, 传统 总线的系统通信模式不能实现全双工通信, 因此效率比较低。  The traditional bus communication mode is characterized by: data delay, small jitter, point-to-multipoint half-duplex communication mode. However, the traditional bus communication mode has almost no data redundancy protection mechanism, and the number of cables is large, the wiring is complicated, the fault tolerance is low, the cost is high, the bandwidth is small, only 9600~12 Mbps, and the rate is low. Moreover, the traditional bus system communication mode cannot achieve full-duplex communication, so the efficiency is relatively low.

[0003] 随着以太网技术的发展, 传统以太网交换系统可采用点对点的单播通信和点对 多点广播 /组播单向通信, 并可以实现全双工通信。 以太网设备成本、 线缆成本 低、 速度快 (100M、 1000M、 万兆) , 并采用全双工通信机制, 具有共享、 幵 放、 统一化程度高、 互联性好。 但是由于以太网的传输特性, 导致网络的确定 性、 实吋性、 稳定性不如总线通信。  [0003] With the development of Ethernet technology, the traditional Ethernet switching system can adopt point-to-point unicast communication and point-to-multipoint broadcast/multicast one-way communication, and can realize full-duplex communication. Ethernet equipment costs, low cable cost, fast speed (100M, 1000M, 10 Gigabit), and full-duplex communication mechanism, sharing, splicing, high degree of uniformity, and good connectivity. However, due to the transmission characteristics of Ethernet, the determinism, realism, and stability of the network are not as good as bus communication.

技术问题  technical problem

[0004] 因此, 如果能将传统总线的优势结合以太技术, 其能够既使得数据传输过程中 具有传统总线进行数据通讯吋的点对多点的确定性、 实吋性以及稳定性的优点 又能够获得传统以太网的高速、 全双工通信的优点的通讯。  [0004] Therefore, if the advantages of the conventional bus can be combined with the Ethernet technology, it can make the point-to-multipoint determinism, realism, and stability advantages of the traditional bus for data communication in the data transmission process. Get the advantages of traditional Ethernet for high-speed, full-duplex communication.

问题的解决方案  Problem solution

技术解决方案  Technical solution

[0005] 在为了消除现有传统总线以及以太网中存在上述问题, 根据本公幵的一个方面 , 提出了一种以太总线交换机, 包括: 一个或多个设备端口; 一对网络链接端 口; 交换逻辑单元, 发送或接收数据帧, 并基于源 MAC地址学习机制学习所接 收到的数据帧的源设备 MAC地址并存储在 MAC地址表中; 以及传输逻辑组件, 包括路由决策单元和数据重组单元, 所述数据重组单元将来自设备端口的数据 帧复制一份以便路由决策单元将该数据帧路由到所述一对网络链接端口方向, 以及数据重组单元将来自所述一对网络链接端口之一的具有总线属性并且目的 地 MAC地址为本地设备端口上的总线设备的 MAC地址的数据帧复制一份, 以便 路由决策单元将该数据帧路由到设备端口方向和所述一对网络链接端口的另一 个端口方向, 从而以单播方式实现点对多点的通讯。 [0005] In order to eliminate the above problems in the existing conventional bus and Ethernet, according to one aspect of the present disclosure, an Ethernet bus switch is proposed, comprising: one or more device ports; a pair of network link ports; a logic unit, transmitting or receiving a data frame, and learning a source device MAC address of the received data frame based on a source MAC address learning mechanism and storing the MAC address in the MAC address table; and transmitting logic components, including a routing decision unit and a data reassembly unit, The data reassembly unit will data from the device port Copying a frame so that the routing decision unit routes the data frame to the pair of network link port directions, and the data reassembly unit will have a bus attribute from one of the pair of network link ports and the destination MAC address is a local device Copying a data frame of the MAC address of the bus device on the port, so that the routing decision unit routes the data frame to the device port direction and the other port direction of the pair of network link ports, thereby implementing the point pair in a unicast manner More communication.

[0006] 根据本公幵的以太总线交换机, 其中所述数据重组单元为从设备端口经由交换 逻辑单元发送的数据帧添加数据帧 ID以及为从路由决策单元接收的数据帧剥离 数据帧 ID。 [0006] An Ethernet bus switch according to the present disclosure, wherein the data reassembly unit adds a data frame ID for a data frame transmitted from a device port via a switching logical unit and strips the data frame ID for a data frame received from the routing decision unit.

[0007] 根据本公幵的以太总线交换机, 其中所述数据帧 ID包含有基于源交换机 ID生成 的数据帧序列号。  [0007] An Ethernet bus switch according to the present disclosure, wherein the data frame ID includes a data frame sequence number generated based on a source switch ID.

[0008] 根据本公幵的以太总线交换机, 其中所述数据帧 ID包含有源交换机 ID、 目的地 交换机 ID以及基于源交换机 ID生成的数据帧序列号。  [0008] An Ethernet bus switch according to the present disclosure, wherein the data frame ID includes a active switch ID, a destination switch ID, and a data frame sequence number generated based on the source switch ID.

[0009] 根据本公幵的以太总线交换机, 其中所述数据重组单元在来自所述一对网络链 接端口之一的数据帧中的源 MAC地址与本地总线设备的 MAC地址相同吋, 将该 数据帧中的路由协议字段中的源信息和目的地信息进行交换以便实现重组。  [0009] The Ethernet bus switch according to the present disclosure, wherein the data reassembly unit is the same as the source MAC address in the data frame from one of the pair of network link ports and the MAC address of the local bus device The source information and the destination information in the routing protocol field in the frame are exchanged for reorganization.

[0010] 根据本公幵的以太总线交换机, 其中所述路由决策单元对来自所述一对网络链 接端口之一的目的地 MAC地址不是本地设备端口上的设备的 MAC地址的数据帧 只路由到所述一对网络链接端口的另一个端口方向。  [0010] The Ethernet bus switch according to the present disclosure, wherein the routing decision unit routes only data frames from a MAC address of a device on a local device port that is not a destination MAC address from one of the pair of network link ports to The other port direction of the pair of network link ports.

[0011] 根据本公幵的以太总线交换机, 其中所述路由决策单元对来自所述一对网络链 接端口之一的不具有总线属性并且目的地 MAC地址为本地设备端口上的非总线 设备的 MAC地址的数据帧仅路由到设备端口方向。  [0011] An Ethernet bus switch according to the present disclosure, wherein the routing decision unit pairs a MAC from one of the pair of network link ports that does not have a bus attribute and the destination MAC address is a non-bus device on the local device port The data frame of the address is only routed to the device port direction.

[0012] 根据本公幵的另一个方面, 还提供了一种总线架构, 由根据本公幵的以太总线 交换机构成, 其中传输线经由以太总线交换机的网络链接端口连接多个以太总 线交换机, 至少两个以太总线交换机的一个或多个设备端口上连接有至少一个 总线设备, 以便多个具有相同 MAC地址的总线设备能够同吋接收目的地为该 MA C地址的数据帧, 从而以单播形式实现点对多点以及多点对多点的通讯。  [0012] According to another aspect of the present disclosure, there is also provided a bus architecture consisting of an Ethernet bus switch according to the present disclosure, wherein the transmission line connects a plurality of Ethernet bus switches via a network link port of the Ethernet bus switch, at least two At least one bus device is connected to one or more device ports of the Ethernet bus switch, so that multiple bus devices having the same MAC address can simultaneously receive the data frame destined for the MA C address, thereby implementing in a unicast manner. Point-to-multipoint and multipoint-to-multipoint communication.

[0013] 根据本公幵的又一个方面, 提供了在根据本公幵的总线架构上进行数据通讯方 法, 包括: 多个第一总线设备之一从第一以太总线交换机的用户设备端口经由 第一交换逻辑单元发出具有以太总线属性的第一数据帧; 第一以太总线交换机 的第一数据重组单元将所接收到的第一数据帧复制一份, 并由第一以太总线交 换机的第一路由决策单元该第一数据帧及其副本分别路由到该第一以太总线交 换机的一对网络链接端口方向; 至少一个第二以太总线交换机在经由其成对网 络链接端口之一接收到来自第一总线设备的第一数据帧吋, 在第二以太总线交 换机的第二路由决策单元确定第一数据帧的目的地 MAC为第二以太总线交换机 的用户设备端口上连接的第二总线设备的 MAC的情况下, 所述第二以太总线交 换机的第二数据重组单元将该第一数据帧复制一份, 并由第二以太总线交换机 的第二路由决策单元将第一数据帧路由到连接到第二以太总线交换机的第二交 换逻辑单元的用户设备端口上的第二总线设备方向以及将第一数据帧的副本路 由到第二以太总线交换机的成对网络链接端口的另一个端口方向。 [0013] According to still another aspect of the present disclosure, there is provided a data communication method on a bus architecture according to the present disclosure, comprising: one of a plurality of first bus devices from a user equipment port of a first Ethernet bus switch The first switching logic unit issues a first data frame having an Ethernet bus attribute; the first data reassembly unit of the first Ethernet bus switch copies the received first data frame and is first by the first Ethernet bus switch Routing the decision unit, the first data frame and its copy are respectively routed to a pair of network link port directions of the first Ethernet bus switch; at least one second Ethernet bus switch is received from the first via one of its paired network link ports a first data frame of the bus device, wherein the second routing decision unit of the second Ethernet bus switch determines that the destination MAC of the first data frame is the MAC of the second bus device connected to the user equipment port of the second Ethernet bus switch In case, the second data reassembly unit of the second Ethernet bus switch copies the first data frame, and the first data frame is routed to the second by the second routing decision unit of the second Ethernet bus switch. The direction of the second bus device on the user equipment port of the second switching logic unit of the Ethernet bus switch and Another copy of the route to the second direction port Ethernet switch pairs bus network link port data frame.

[0014] 根据本公幵的数据通讯方法, 其还包括: 第二路由决策单元在确定第一数据帧 的目的地 MAC不是第二总线设备的 MAC的情况下, 直接将第一数据帧路由到第 二以太总线交换机的成对网络链接端口的另一个端口方向。  [0014] According to the data communication method of the present disclosure, the method further includes: the second routing decision unit directly routing the first data frame to the case where it is determined that the destination MAC of the first data frame is not the MAC of the second bus device The other port direction of the paired network link port of the second Ethernet bus switch.

[0015] 根据本公幵的数据通讯方法, 其还包括: 所述第一数据重组单元在复制第一数 据帧之前或同吋为第一数据帧添加数据帧 ID以及在第二路由决策单元将第一数 据帧路由到第二总线设备方向之前或同吋第二数据重组单元为第一数据帧剥离 所添加数据帧 ID。 所述数据帧中数据帧 ID可以是基于发出该数据帧的端口的数 据帧序列号, 也幵始是基于该用户设备所连接的交换机 ID所生成数据序列号, 还可以是包含有源交换机 ID、 目的地交换机 ID以及基于源交换机 ID生成的数据 帧序列号。  [0015] According to the data communication method of the present disclosure, the method further includes: the first data reassembly unit adding a data frame ID to the first data frame before copying the first data frame and the second routing decision unit The data frame ID added before the first data frame is routed to the second bus device direction or the second data reassembly unit strips the first data frame. The data frame ID in the data frame may be a data frame sequence number based on a port that sends the data frame, and is also based on a data sequence number generated by a switch ID connected to the user equipment, or may include an active switch ID. , the destination switch ID, and the data frame sequence number generated based on the source switch ID.

[0016] 根据本公幵的数据通讯方法, 其还包括: 在第二路由决策单元确定第一数据帧 的源 MAC与第二总线设备的 MAC相同的情况下, 第二数据重组单元将第一数据 帧中的路由协议字段中的源信息和目的地信息进行交换以便实现重组; 以及第 二路由决策单元将经过重组后的第一数据帧路由到第二总线设备方向。 所述数 据帧中的路由协议字段中的源信息包含了与路由相关的信息, 例如包括: MAC 地址、 IP地址 (在有 IP层的情况下) 、 端口号等。  [0016] According to the data communication method of the present disclosure, the method further includes: when the second routing decision unit determines that the source MAC of the first data frame is the same as the MAC of the second bus device, the second data reassembly unit is first The source information and the destination information in the routing protocol field in the data frame are exchanged for reorganization; and the second routing decision unit routes the reassembled first data frame to the second bus device direction. The source information in the routing protocol field in the data frame contains information related to the routing, including, for example, a MAC address, an IP address (in the case of an IP layer), a port number, and the like.

[0017] 根据本公幵的数据通讯方法, 其还包括: 所述第二路由决策单元在确定第一数 据帧的目的地 MAC地址不是第二交换逻辑单元的用户设备端口上的设备的 MAC 地址吋, 仅仅将第一数据帧路由到第二以太总线交换机的一对网络链接端口的 另一个端口方向。 [0017] According to the data communication method of the present disclosure, the method further includes: the second routing decision unit determining the first number According to the MAC address of the device on the user equipment port of the second switching logical unit, the destination MAC address of the frame is only routed to the other port direction of the pair of network link ports of the second Ethernet bus switch.

[0018] 根据本公幵的数据通讯方法, 其还包括: 所述第二路由决策单元在确定来自所 述一对网络链接端口之一的数据帧不具有总线属性并且目的地 MAC地址为第二 交换逻辑单元的用户设备端口上的非总线设备的 MAC地址吋, 仅将该数据帧路 由到第二交换逻辑单元的用户设备端口方向。  [0018] According to the data communication method of the present disclosure, the method further includes: the second routing decision unit determining that the data frame from one of the pair of network link ports does not have a bus attribute and the destination MAC address is the second The MAC address of the non-bus device on the user equipment port of the switching logical unit is only routed to the user equipment port direction of the second switching logical unit.

发明的有益效果  Advantageous effects of the invention

有益效果  Beneficial effect

[0019] 因此, 根据本公幵的以太总线交换机以及有这些交换机构成的总线架构能够实 现总线设备之间能够采用单播方式实现点对多点的通讯, 同吋也可以采用单播 方式获得多点对多点的通信, 由此实现在总线上进行多方通话。 既获得通讯的 确定性、 实吋性以及稳定性, 又能够获得传统以太网的高速、 全双工通信的优 点。  [0019] Therefore, according to the Ethernet bus switch of the present disclosure and the bus architecture formed by these switches, it is possible to implement point-to-multipoint communication between the bus devices in a unicast manner, and the unicast mode can also be obtained. Point-to-multipoint communication, thereby enabling multiparty calls on the bus. It not only achieves the certainty, stability and stability of communication, but also the advantages of high-speed, full-duplex communication of traditional Ethernet.

对附图的简要说明  Brief description of the drawing

附图说明  DRAWINGS

[0020] 此处的附图被并入说明书中并构成本说明书的一部分, 示出了符合本公幵的实 施例, 并与说明书一起用于解释本公幵的原理。  [0020] The drawings herein are incorporated in and constitute a part of the specification, and are in accordance

[0021] 图 1所示为根据本发明的第一实施例的以太网交换机的原理示意图。 1 is a schematic diagram showing the principle of an Ethernet switch according to a first embodiment of the present invention.

[0022] 图 2所示的是根据本公幵的以太总线交换机对用户接入口接收到的数据帧的处 理流程图。 [0022] FIG. 2 is a flow chart showing the processing of data frames received by the Ethernet bus switch to the user access port according to the present disclosure.

[0023] 图 3所示的是根据本公幵的以太总线交换机对从网络链接通道接收到的数据帧 的处理流程图。  [0023] FIG. 3 is a flow chart showing the processing of data frames received from a network link channel in accordance with the present Ethernet bus switch.

[0024] 图 4所示的是根据本公幵的以太总线的示意图。 [0024] FIG. 4 is a schematic diagram of an Ethernet bus according to the present disclosure.

[0025] 图 5所示的是在根据本公幵的以太总线上采用单播方式实现点对多点双向通讯 过程的示意图。  [0025] FIG. 5 is a schematic diagram showing a point-to-multipoint bidirectional communication process implemented in a unicast manner on an Ethernet bus according to the present disclosure.

[0026] 图 6所示的是根据本公幵的无损监听方法的示意图。 实施该发明的最佳实施例 6 is a schematic diagram of a non-destructive monitoring method according to the present disclosure. BEST MODE FOR CARRYING OUT THE INVENTION

本发明的最佳实施方式  BEST MODE FOR CARRYING OUT THE INVENTION

[0027] 在此处键入本发明的最佳实施方式描述段落。 [0027] The paragraphs describing the best mode of the invention are entered here.

本发明的实施方式 Embodiments of the invention

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

[0029] 在本公幵使用的术语是仅仅出于描述特定实施例的目的, 而非旨在限制本幵。  The terms used in the present disclosure are for the purpose of describing particular embodiments only, and are not intended to be limiting.

在本公幵和所附权利要求书中所使用的单数形式的"一种"、 "所述 "和"该"也旨在 包括多数形式, 除非上下文清楚地表示其他含义。 还应当理解, 本文中使用的 术语"和 /或"是指并包含一个或多个相关联的列出项目的任何或所有可能组合。  The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0030] 应当理解, 尽管在本公幵可能采用术语第一、 第二、 第三等来描述各种信息, 但这些信息不应限于这些术语。 这些术语仅用来将同一类型的信息彼此区分幵 。 例如, 在不脱离本公幵范围的情况下, 第一以太总线交换机也可以被称为第 二以太总线交换机, 类似地, 第二以太总线交换机也可以被称为第一以太总线 交换机。 取决于语境, 如在此所使用的词语 "如果 "可以被解释成为"在 ......吋"或 [0030] It should be understood that although the terms first, second, third, etc. may be used to describe various information in this disclosure, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first Ethernet bus switch may also be referred to as a second Ethernet bus switch without departing from the scope of the present disclosure. Similarly, the second Ethernet bus switch may also be referred to as a first Ethernet bus switch. Depending on the context, the word "if" as used herein may be interpreted as "in..." or

"当 ......吋"或"响应于确定"。 "When..." or "Responding to OK."

[0031] 图 1所示为根据本发明的第一实施例的以太网交换机的原理示意图。 如图 1所示 , 以太总线交换机 100包括交换逻辑单元 110以及传输逻辑组件 120。 交换逻辑单 元 110与传输逻辑组件 120之间采用单通道或多通道进行数据交互通讯。 交换逻 辑单元 110具有一个或多个用于接入总线设备的端口 105。 尽管此处端口可接入 总线设备, 其也可以接入普通可联网设备。 传输逻辑组件 120有一对网络链接端 口八和^ 尽管这里显示为一对网络链接端口 A和 B, 但是其可以有两对网络链接 端口。 交换逻辑单元 110基于源 MAC地址学习机制形成源 MAC地址表, 以便接 收和发送数据帧。 传输逻辑组件 120包括数据重组单元 121和路由决策单元 122。 所述数据重组单元 121对需要进行双向发送的数据帧进行复制, 路由决策单元 12 2将数据帧以及其副本分别路由两个方向, 实现双向发送。 1 is a schematic diagram showing the principle of an Ethernet switch according to a first embodiment of the present invention. As shown in FIG. 1, the Ethernet bus switch 100 includes a switching logic unit 110 and a transmission logic component 120. The switching logic unit 110 and the transmission logic component 120 use a single channel or multiple channels for data interaction communication. Switching logic unit 110 has one or more ports 105 for accessing bus devices. Although the port here can be connected to a bus device, it can also be connected to a common networked device. The transport logic component 120 has a pair of network link ports VIII and ^ although shown here as a pair of network link ports A and B, but it can have two pairs of network link ports. Switching logic unit 110 forms a source MAC address table based on the source MAC address learning mechanism to receive and transmit data frames. The transport logic component 120 includes a data reassembly unit 121 and a routing decision unit 122. The data recombining unit 121 copies the data frame that needs to be bidirectionally transmitted, and the routing decision unit 12 2 routes the data frame and the copy thereof in two directions to implement bidirectional transmission.

[0032] 此外, 如果需要实现数据帧的碰撞机制, 可以为本地发出的数据帧添加基于本 地交换机 ID生成的数据帧 ID。 在需要采用特定路由协议的情况下, 例如基于交 换机的 ID进行路由的情况下, 该数据重组单元 121可以为数据帧添加附加的路由 协议数据, 例如该路由协议可包含目的交换机 ID、 源交换机 ID以及基于源交换 机 ID生成的数据帧序列号 (即数据帧 ID)。 在本公幵中, 路由决策单元 122主要基 于数据帧的总线设备属性和目的地 MAC进行路由决策。  [0032] In addition, if a collision mechanism of the data frame needs to be implemented, a data frame ID generated based on the local switch ID may be added to the locally sent data frame. In the case where a specific routing protocol is required, such as routing based on the ID of the switch, the data reassembly unit 121 may add additional routing protocol data to the data frame, for example, the routing protocol may include the destination switch ID, the source switch ID. And a data frame sequence number (ie, a data frame ID) generated based on the source switch ID. In the present specification, routing decision unit 122 performs routing decisions based primarily on the bus device attributes of the data frame and the destination MAC.

[0033] 用于本以太总线交换机的用户设备通常为总线设备。 对于目前的网络设备, 通 常会具有自身固定的 MAC地址, 用户可以就有自身要求, 将一些设备中具有某 一类特征数据的 MAC定义为总线 MAC, 由此使得某些将被使用的设备具有总线 属性, 从而使得其发出的数据帧或以该具有总线特征的 MAC地址为目的地的数 据帧具有总线属性。 或者, 对于目前某些连接到本公幵的交换机上的设备, 将 设备自己的 MAC地址登记注册在交换机内的登记表中, 在所登记的每个 MAC地 址条目中注明其具有总线属性, 由此, 使得具有 MAC地址的数据帧基于该登记 表被识别为具有总线属性的数据帧。 可预测而言, 随着本公幵的交换机的应用 范围的扩展, 人们为了适应本公幵的交换机的应用, 可以对今后所有的需要与 本公幵交换机结合使用的网络设备都赋予一个固定的"总线设备属性"标识, 从而 交换机将基于该设备的总线属性标识来识别设备的总线属性和与设备相关联的 数据帧的总线属性。  [0033] User equipment for the present Ether bus switch is typically a bus device. For the current network equipment, it usually has its own fixed MAC address, and the user can have its own requirements, and define the MAC with some characteristic data in some devices as the bus MAC, thereby making certain devices to be used have The bus attribute is such that the data frame it sends or the data frame destined for the MAC address with the bus characteristics has a bus attribute. Or, for some devices currently connected to the switch of the public office, register the device's own MAC address in the registration table in the switch, and indicate that it has a bus attribute in each registered MAC address entry. Thereby, a data frame having a MAC address is identified as a data frame having a bus attribute based on the registration table. Predictably, with the expansion of the application scope of the switch of the present disclosure, in order to adapt to the application of the switch of the present disclosure, all the network devices that need to be combined with the public switch can be given a fixed future. The "bus device attribute" is identified such that the switch will identify the bus attribute of the device and the bus attributes of the data frame associated with the device based on the bus attribute identification of the device.

[0034] 所述数据重组单元 121为发送的数据帧添加数据帧 ID以及为接收的数据帧剥离 数据帧 ID, 而所述路由决策单元 122对来自数据重组单元 121的具有总线属性的 数据帧进行双向发送。 因此, 根据本公幵的以太总线交换机 100以及有这些交换 机构成的总线架构能够实现总线设备之间能够采用单播方式实现点对多点的通 讯, 同吋也可以采用单播方式获得多点对多点的通信, 由此实现在总线上进行 多方通话。 既获得通讯的确定性、 实吋性以及稳定性, 又能够获得传统以太网 的高速、 全双工通信的优点。  [0034] The data recombining unit 121 adds a data frame ID to the transmitted data frame and strips the data frame ID for the received data frame, and the routing decision unit 122 performs a data frame with the bus attribute from the data recombining unit 121. Send in both directions. Therefore, according to the Ethernet bus switch 100 of the present disclosure and the bus architecture formed by these switches, it is possible to realize point-to-multipoint communication between the bus devices by using unicast mode, and the unicast mode can also obtain multi-point pairs. Multi-point communication, thereby enabling multi-party calls on the bus. It not only achieves the certainty, stability and stability of communication, but also the advantages of high-speed, full-duplex communication of traditional Ethernet.

[0035] 此外, 数据重组单元 121还可以通过配置而激活另一种数据重组功能, 即当数 据重组单元 121获知来自所述一对网络链接端口之一的数据帧中的源 MAC地址与 本地总线设备的 MAC地址相同吋, 可以将该数据帧中的路由协议字段中的源信 息 (例如, MAC地址、 IP地址 (在有 IP层的情况下) 、 端口号) 和目的地信息 (例如, MAC地址、 IP地址 (在有 IP层的情况下) 、 端口号) 进行交换以便实 现重组。 这样, 在两个总线设备具有相同 MAC地址的情况下, 其中一个总线设 备就可以获得另一个总线设备与其他设备之间的通讯信息, 从而实现数据通讯 的实吋监听。 [0035] In addition, the data reorganization unit 121 can also activate another data reorganization function by configuration, that is, when According to the reorganization unit 121, it is known that the source MAC address in the data frame from one of the pair of network link ports is the same as the MAC address of the local bus device, and the source information in the routing protocol field in the data frame may be obtained (for example, The MAC address, IP address (in the case of an IP layer), port number), and destination information (for example, MAC address, IP address (in the case of an IP layer), port number) are exchanged for reorganization. Thus, in the case where two bus devices have the same MAC address, one of the bus devices can obtain communication information between the other bus device and other devices, thereby realizing real-time monitoring of data communication.

[0036] 在使用过程中, 一方面, 以太总线交换机从用户接入端口或设备端口 105处收 到数据帧, 另一方面, 交换机会从网络传输通道接收到数据帧。  [0036] In use, on the one hand, the Ethernet bus switch receives data frames from the user access port or device port 105, and on the other hand, the switch receives data frames from the network transmission channel.

[0037] 图 2所示的是根据本公幵的以太总线交换机对用户接入口接收到的数据帧的处 理流程图。 如图 2所示, 在步骤 S210处, 接收到来自用户设备 A发出的具有总线 设备属性的数据帧。 随后, 在步骤 S215处, 数据重组单元 121对所接收到的总线 属性数据帧添加数据帧 ID。 该数据帧 ID通常包含有该设备所连接的交换机 ID以 及基于所连接的交换机生成的数据序列号。 尽管这里采用交换机 ID对数据帧 ID 进行了说明, 但是也可以采用其他方式来设置数据帧 ID, 例如每个设备独特的 设备序列号等。 当然, 数据帧 ID也可以包括用于能够区别出数据帧的来源地的 其他特征。 通过添加所述数据帧 ID, 使得该数据帧能够适于在包含有本公幵的 以太总线交换机的以太网络中进行传输。 在数据帧被添加数据帧 ID之后, 可以 对具有总线属性的数据帧进行复制, 获得原始数据帧的副本。  [0037] FIG. 2 is a flow chart showing the processing of data frames received by the Ethernet bus switch to the user access port according to the present disclosure. As shown in FIG. 2, at step S210, a data frame with a bus device attribute sent from user equipment A is received. Subsequently, at step S215, the data recombining unit 121 adds a data frame ID to the received bus attribute data frame. The data frame ID typically contains the switch ID to which the device is connected and the data sequence number generated based on the connected switch. Although the data frame ID is described here using the switch ID, there are other ways to set the data frame ID, such as the unique device serial number of each device. Of course, the data frame ID may also include other features for distinguishing the source of the data frame. By adding the data frame ID, the data frame can be adapted for transmission in an Ethernet network containing the present Ethernet bus switch. After the data frame is added with the data frame ID, the data frame with the bus attribute can be copied to obtain a copy of the original data frame.

[0038] 随后在步骤 S220处, 路由决策单元 122确定将该数据帧直接将交换机的两个网 络连接端口当作一个端口进行路由决策, 即同吋路由到两个传输通道所对应的 端口, 由此实现对本地设备端口发出的数据帧的双向发送。 这样当位于不同交 换机的用户端口上的具有相同 MAC地址的总线设别将会同吋接收到该数据帧, 实现基于单播的点对多点的通讯。  [0038] Then at step S220, the routing decision unit 122 determines that the data frame directly uses the two network connection ports of the switch as one port for routing decision, that is, the same route to the port corresponding to the two transmission channels, This enables bidirectional transmission of data frames sent by the local device port. Thus, when a bus set having the same MAC address on a user port of a different switch will receive the data frame at the same time, a point-to-multipoint communication based on unicast is realized.

[0039] 图 3所示的是根据本公幵的以太总线交换机对从网络链接通道接收到的数据帧 的处理流程图。 如图 3所示, 在使用过程中, 当源设备, 例如为总线设备, 向连 接到用户接入端口的一个或多个具有设定 MAC地址的用户接入设备 105发出信号 数据帧吋, 该数据帧通常包含源设备的源 MAC地址和目的地设备 MAC地址。 本 公幵的以太总线交换机与普通交换机一样能够对源设备的 MAC地址进行学习并 形成 MAC地址表, 不同的是, 在该 MAC地址表中可以包含设备属性信息, 例如 是否为总线设备。 数据帧是否具有总线设备属性, 即该数据帧的目的地 MAC地 址是否具有总线 MAC地址属性。 可选择地, 也可以同吋判断源 MAC地址和目的 MAC地址是否具有总线属性。 即通过査找该交换机的 MAC地址表, 来获知该目 的地 MAC地址所对应的设备是否为总线设备, 由此确定包含有该目的地 MAC地 址的数据帧是否具有总线数据帧属性。 该 MAC地址表在学习每个源设备的 MAC 地址吋会同步学习每个 MAC地址所对应设备属性, 例如是否为总线设备。 此外 , 将成对的网络链接端口配置为一个源 MAC地址学习端口, 即从网络链接端口 A和 B自学习到的 MAC地址都在 MAC地址表中标注为同一个端口。 路由决策单元 122对来自网络链接通道, 例如传输通道 A, 的数据帧确定其路由方向。 首先, 在步骤 S305处, 交换机从其传输通道 A接收到数据帧。 随后, 在步骤 S310处, 基 于包含的数据帧 ID确定该数据帧是否从成对网络链接端口的另一侧, 例如网络 链接通道 B, 接收到过该数据帧。 这种情况在交换机被用于环网的情况在出现, 因此需要对其进行碰撞检测。 如果接收到过, 则路由决策单元 122丢弃该数据。 如果没有接收到过, 则在步骤 S315处路由决策单元 122确定该数据帧是否具有总 线设备属性, 即该数据帧的目的地 MAC地址是否具有总线 MAC地址属性。 即通 过査找该交换机的 MAC地址表, 来获知该 MAC地址所对应的设备是否为总线设 备, 由此确定包含有该目的地 MAC地址的数据帧是否具有总线数据帧属性。 该 MAC地址表在学习每个源设备的 MAC地址吋会同步学习每个 MAC地址所对应设 备属性, 例如是否为总线设备。 这样, 当路由决策单元 122确定该数据帧具有总 线属性吋, 则在步骤 S320处, 数据重组单元 121将该数据帧复制一份。 随后, 在 步骤 S325处, 路由决策单元 122—方面直接将一份数据帧路由到与接收数据帧的 传输通道 (例如传输通道 A) 相对的传输通道 (例如传输通道 B) 所属的端口进 行转发; 另一方面, 将另一份数据帧路由到用户接入端口方向。 随后, 在步骤 S 330处路由决策单元判断该数据帧的 MAC地址是否为本地交换机所拥有的用户接 入端口上的设备的 MAC地址。 如果判断该 MAC地址为本地交换机所拥有的用户 接入端口上的设备的 MAC地址, 则路由决策单元 122则将该数据帧进行路由到用 户接入端口上的设备的方向以便下载到本地设备。 随后在步骤 S335处, 由数据 重组单元 121对该数据帧进行数据帧 ID剥离, 以便在步骤 S340处由交换逻辑组件 110将经过数据帧 ID剥离的数据帧下载到本地设备。 由此, 在所接收到的数据帧 具有总线设备属性的情况下, 路由决策单元 122将该数据帧路由到本地用户接入 端口和与接收数据帧的传输通道 (例如传输通道 A) 相对的传输通道 (例如传输 通道 A) 所属的端口, 从而在从传输通道接收的数据帧具有总线属性并且其目的 MAC地址为本地设备的 MAC地址的情况下实现双向发送。 [0039] FIG. 3 is a flow chart showing the processing of data frames received from a network link channel in accordance with the present Ethernet bus switch. As shown in FIG. 3, during use, when a source device, such as a bus device, sends a signal data frame to one or more user access devices 105 having a set MAC address connected to the user access port, The data frame usually contains the source MAC address of the source device and the destination device MAC address. Ben The public Ethernet bus switch can learn the MAC address of the source device and form a MAC address table, just like a normal switch. The MAC address table can contain device attribute information, such as whether it is a bus device. Whether the data frame has a bus device attribute, that is, whether the destination MAC address of the data frame has a bus MAC address attribute. Alternatively, it is also possible to determine whether the source MAC address and the destination MAC address have bus attributes. That is, by looking up the MAC address table of the switch, it is known whether the device corresponding to the destination MAC address is a bus device, thereby determining whether the data frame including the destination MAC address has a bus data frame attribute. The MAC address table learns the MAC address of each source device synchronously, and learns the device attributes corresponding to each MAC address, for example, whether it is a bus device. In addition, the paired network link ports are configured as a source MAC address learning port, that is, the MAC addresses learned from the network link ports A and B are all marked as the same port in the MAC address table. The routing decision unit 122 determines the routing direction of the data frame from the network link channel, such as transmission channel A. First, at step S305, the switch receives a data frame from its transmission channel A. Subsequently, at step S310, it is determined whether the data frame has received the data frame from the other side of the paired network link port, such as the network link channel B, based on the included data frame ID. This situation occurs when a switch is used in a ring network, so collision detection is required. If received, routing decision unit 122 discards the data. If not received, then at step S315 the routing decision unit 122 determines if the data frame has a bus device attribute, i.e., whether the destination MAC address of the data frame has a bus MAC address attribute. That is, by looking up the MAC address table of the switch, it is known whether the device corresponding to the MAC address is a bus device, thereby determining whether the data frame containing the destination MAC address has a bus data frame attribute. The MAC address table learns the MAC address of each source device synchronously, and learns the device attributes corresponding to each MAC address, for example, whether it is a bus device. Thus, when the routing decision unit 122 determines that the data frame has a bus attribute 吋, the data recombining unit 121 copies the data frame at step S320. Then, at step S325, the routing decision unit 122 directly routes a data frame to the port to which the transmission channel (for example, the transmission channel B) opposite to the transmission channel (for example, the transmission channel A) of the received data frame belongs; On the other hand, another data frame is routed to the direction of the user access port. Subsequently, at step S330, the routing decision unit determines whether the MAC address of the data frame is the MAC address of the device on the user access port owned by the local exchange. If it is determined that the MAC address is the MAC address of the device on the user access port owned by the local exchange, the routing decision unit 122 routes the data frame to use. The direction of the device on the access port of the user to download to the local device. Then at step S335, the data frame ID stripping is performed by the data recombining unit 121 to download the data frame stripped by the data frame ID to the local device by the switching logic component 110 at step S340. Thus, where the received data frame has a bus device attribute, routing decision unit 122 routes the data frame to the local user access port and to the transmission channel (eg, transmission channel A) of the received data frame. The port to which the channel (e.g., transmission channel A) belongs, thereby enabling bidirectional transmission if the data frame received from the transmission channel has a bus attribute and its destination MAC address is the MAC address of the local device.

[0040] 如果步骤 S330处判断该数据帧 MAC地址不是本地交换机所拥有的用户接入端 口上的设备的 MAC地址, 贝 1」路由决策单元 122则不进行数据向端口的发送, 而仅 仅在步骤 S345处对将数据帧路由到与接收数据帧的传输通道 (例如传输通道 A) 相对的传输通道 (例如传输通道 A) 所属的端口进行转发。 这实现了在从传输通 道接收的数据帧具有总线属性并且其目的 MAC地址不是本地设备的 MAC地址的 情况下实现直接转发。 尽管此处说明书列出了在数据帧 MAC地址不是本地交换 机所拥有的用户接入端口上的设备的 MAC地址的情况下的判断先后顺序, 但是 实际上, 步骤 S330和步骤 S320的过程可同步进行, 由此在数据帧 MAC地址不是 本地交换机所拥有的用户接入端口上的设备的 MAC地址的情况下直接获得路由 决策结果为仅仅对数据帧进行路由到对策通道方向。  [0040] If it is determined in step S330 that the data frame MAC address is not the MAC address of the device on the user access port owned by the local exchange, the routing decision unit 122 does not perform data transmission to the port, but only in the step At S345, the port to which the data frame is routed to the transmission channel (e.g., transmission channel A) opposite to the transmission channel (e.g., transmission channel A) that receives the data frame is forwarded. This enables direct forwarding where the data frame received from the transmission channel has a bus attribute and its destination MAC address is not the MAC address of the local device. Although the description herein lists the order of judgment in the case where the data frame MAC address is not the MAC address of the device on the user access port owned by the local exchange, in practice, the processes of step S330 and step S320 may be performed simultaneously. Thus, in the case that the data frame MAC address is not the MAC address of the device on the user access port owned by the local switch, the routing decision result is obtained only to route the data frame to the countermeasure channel direction.

[0041] 另外, 当在步骤 S315处当路由决策单元 122确定该数据帧不具有总线属性吋, 则直接在步骤 S330处判断该 MAC地址是否为本地交换机所拥有的用户接入端口 上的设备的 MAC地址。 一方面, 如果在步骤 S330处判断该 MAC地址为本地交换 机所拥有的用户接入端口上的设备的 MAC地址, 则路由决策单元 122则将该数据 帧进行路由到用户接入端口上的设备的方向以便下载到本地设备。 随后在步骤 S 335处, 由数据重组单元 121对该数据帧进行数据帧 ID剥离, 以便在步骤 S340处 由交换逻辑组件 110将经过数据帧 ID剥离的数据帧下载到本地设备。 这实现了在 从传输通道接收的数据帧不具有总线属性并且其目的 MAC地址是本地设备的 MA C地址的情况下实现直接下载。 另一方面, 如果在步骤 S330处判断该 MAC地址 不是本地交换机所拥有的用户接入端口上的设备的 MAC地址, 则路由决策单元 1 22将数据帧路由到与接收数据帧的传输通道 (例如传输通道 A) 相对的传输通道 (例如传输通道 A) 所属的端口进行转发。 这实现了在从传输通道接收的数据帧 不具有总线属性并且其目的 MAC地址不是本地设备的 MAC地址的情况下实现直 接转发。 [0041] In addition, when the routing decision unit 122 determines in step S315 that the data frame does not have the bus attribute, it is directly determined in step S330 whether the MAC address is a device on the user access port owned by the local exchange. MAC address. On the one hand, if it is determined in step S330 that the MAC address is the MAC address of the device on the user access port owned by the local exchange, the routing decision unit 122 routes the data frame to the device on the user access port. Direction for download to local device. Then at step S335, the data frame ID stripping is performed by the data recombining unit 121 to download the data frame stripped by the data frame ID to the local device by the switching logic component 110 at step S340. This enables direct downloading in case the data frame received from the transmission channel does not have a bus attribute and its destination MAC address is the MA C address of the local device. On the other hand, if it is determined in step S330 that the MAC address is not the MAC address of the device on the user access port owned by the local exchange, the routing decision unit 22 routes the data frame to the transmission channel of the received data frame (eg Transmission channel A) relative transmission channel (for example, transmission channel A) The port to which it belongs is forwarded. This enables direct forwarding where the data frame received from the transmission channel does not have a bus attribute and its destination MAC address is not the MAC address of the local device.

[0042] 为此, 基于本公幵的以太总线交换机的上述功能, 本公幵提出了图 4所述的一 种以太总线架构 400。 图 4所示的是根据本公幵的以太总线的示意图。 如图 4所示 , 其中包括多个根据本公幵的以太总线交换机 100-1、 100-2、 ......100-N。 其通 过传输线经由以太总线交换机的网络链接端口串联在一起。 以太总线交换机 100- 1下连接有源设备 410。 尽管此处称之为源设备, 其实同样也是目的地设备。 该 源设备可以是普通的总线设备, 也可以是非总线设备, 或者可以是服务器或控 制器。 在每个以太总线交换机 100-2、 ......100-N的用户接入口上连接到总线设备 [0042] To this end, based on the above-described functions of the present Ethernet bus switch, the present invention proposes an Ethernet bus architecture 400 as described in FIG. Figure 4 is a schematic diagram of an Ethernet bus in accordance with the present disclosure. As shown in FIG. 4, there are a plurality of Ethernet bus switches 100-1, 100-2, ..., 100-N according to the present specification. It is connected in series via a transmission line via a network link port of an Ethernet bus switch. The active device 410 is connected under the Ethernet bus switch 100-1. Although referred to herein as the source device, it is also the destination device. The source device can be a normal bus device, a non-bus device, or a server or controller. Connect to the bus device on the user access port of each Ethernet bus switch 100-2, ... 100-N

1、 总线设备 2、 ... ... 线设备 -N+l。 尽管图 4显示的每个以太总线交换机仅仅连 接了一个总线设备, 但是每个以太总线交换机上可以连接多个设备, 这些设备 可以都是总线设备, 也可以是非总线设备, 还可以是部分总线设备和部分非总 线设备。 1. Bus device 2. Line device -N+l. Although each Ethernet bus switch shown in Figure 4 is connected to only one bus device, each Ethernet bus switch can be connected to multiple devices. These devices can be bus devices, non-bus devices, or partial bus devices. And some non-bus devices.

[0043] 正如上面参照图 2和图 3所描述的数据交换过程, 处于总线 400中的各个设备之 间可以进行结合图 2和图 3所描述的数据交换过程。 举例而言, 当例如源设备 410 , 其具有 MAC1地址, 可以为总线设备或非总线设备。 当源设备 410向一个或多 个具有相同 MAC2地址的总线设备发送数据帧吋, (例如向总线设备 1和总线设 备 2发送数据帧吋, 总线设备 1和总线设备 2都会收到该数据帧。 因此, 源设备 41 0发出的数据帧尽管为单播数据帧, 但是其实现了广播或组播的功能, 即点对多 点的数据发送功能。 随后, 总线设备 1和总线设备 2都会对所接收到的数据帧作 出响应, 每一个响应都包含有源设备 410的 MAC1地址作为目的地地址, 并且包 含有各自的数据帧 ID。 由此, 源设备 410会收到总线设备 1和总线设备 2的响应, 由此实现点对多点甚至多点对多点的双向通信。  [0043] As with the data exchange process described above with reference to FIGS. 2 and 3, the data exchange process described in connection with FIGS. 2 and 3 can be performed between the various devices in the bus 400. For example, when, for example, source device 410 has a MAC1 address, it can be a bus device or a non-bus device. When the source device 410 transmits a data frame to one or more bus devices having the same MAC2 address (for example, transmitting a data frame to the bus device 1 and the bus device 2, both the bus device 1 and the bus device 2 receive the data frame. Therefore, although the data frame sent by the source device 41 0 is a unicast data frame, it implements a broadcast or multicast function, that is, a point-to-multipoint data transmission function. Subsequently, the bus device 1 and the bus device 2 both collide. The received data frame responds, each response containing the MAC1 address of the active device 410 as the destination address, and including the respective data frame ID. Thus, the source device 410 receives the bus device 1 and the bus device 2 The response, thereby achieving point-to-multipoint or even multipoint-to-multipoint bidirectional communication.

[0044] 图 5所示的是在根据本公幵的以太总线上采用单播方式实现点对多点双向通讯 过程的示意图。 如图 5所示, 以太总线交换机将同类设备 (具有相同 MAC地址的 设备) 视为一个设备, 即配置为同一个 MAC地址, 这样, 当同类设备回应源设 备后, 该 MAC地址就会学习到用户接入端口和网络链接端口上, 而根据本公幵 的以太总线交换机 100设定用户接入端口和网络链接端口为独立的学习机制, 例 如, 接入端口学习 MAC地址, 网络链接端口学习的是源交换机的 ID。 基于类似 于以太网源 MAC学习机制, 传输逻辑组件 120会将源设备发来的数据同吋传输到 这两个网络链接端口上, 这样, 所有的总线设备就会接收到源设备发来的数据 帧。 同吋, 源设备也可以接收到所有总线设备的回应数据帧。 如果在这种以太 总线架构中仅仅采用传统交换机, 当同一交换机的两个端口学习到同一个 MAC 地址吋, 由于单播的点对点传输机制就会出现目标地址冲突的情况, 无法做到 点对多点的数据通信。 双向转发和点对多点以及多点对多点的双向通讯是普通 的总线以太网所不能实现的功能。 [0044] FIG. 5 is a schematic diagram of a point-to-multipoint bidirectional communication process implemented in a unicast manner on an Ethernet bus according to the present disclosure. As shown in Figure 5, the Ethernet bus switch treats the same type of device (the device with the same MAC address) as one device, that is, the same MAC address, so that when the same device responds to the source device, the MAC address will be learned. User access port and network link port, and according to this publication The Ethernet bus switch 100 sets the user access port and the network link port as separate learning mechanisms. For example, the access port learns the MAC address, and the network link port learns the ID of the source switch. Based on the Ethernet source MAC learning mechanism, the transport logic component 120 transmits the data sent from the source device to the two network link ports, so that all the bus devices receive the data from the source device. frame. At the same time, the source device can also receive response data frames from all bus devices. If only the traditional switch is used in this Ethernet bus architecture, when the two ports of the same switch learn the same MAC address, the target address conflict will occur due to the unicast peer-to-peer transmission mechanism, and the point-to-point collision cannot be achieved. Point data communication. Two-way forwarding and point-to-multipoint and multi-point to multi-point bidirectional communication are functions that are not possible with ordinary bus Ethernet.

[0045] 基于本公幵的以太总线交换机 100的结构和特有性能, 本公幵可以提供了一种 能够基于单播形式实现点对多点和多点对多点的数据通讯方法。 结合图 4而言, 第一以太总线交换机 100(如图中的以太总线交换机 1)上连接有一个或多个第一总 线设备 (总线设备 1) , 其经由第一交换逻辑单元发出具有以太总线属性的第一 数据帧。 第一以太总线交换机 100的第一数据重组单元 121将所接收到的第一数 据帧复制一份, 并由第一以太总线交换机的第一路由决策单元 122该第一数据帧 及其副本分别路由到该第一以太总线交换机 100的一对网络链接端口方向。  [0045] Based on the structure and unique performance of the present Ethernet bus switch 100, the present disclosure can provide a data communication method capable of implementing point-to-multipoint and multipoint-to-multipoint based on a unicast format. In conjunction with FIG. 4, one or more first bus devices (bus devices 1) are connected to the first Ethernet bus switch 100 (such as the Ethernet bus switch 1 in the figure), which are issued with the Ethernet bus via the first switching logic unit. The first data frame of the attribute. The first data reassembly unit 121 of the first Ether bus switch 100 copies the received first data frame and routes the first data frame and its replica by the first routing decision unit 122 of the first Ether bus switch. A pair of network link port directions to the first Ethernet bus switch 100.

[0046] 第二以太总线交换机 100 (例如图 4中的太总线交换机 0、 太总线交换机 2) 经由 其各自的网络链接端口之一接收到自第一以太总线交换机 100转发来的第一数据 帧或其副本 (以下统称为第一数据帧) 。 在第二以太总线交换机 100经由其成对 网络链接端口之一接收到来自第一总线设备的第一数据帧吋, 第二以太总线交 换机的第二路由决策单元 122会确定第一数据帧的目的地 MAC是否为第二以太总 线交换机的用户设备端口上连接的第二总线设备的 MAC。 如果是, 则所述第二 以太总线交换机 100的第二数据重组单元 121将该第一数据帧复制一份, 并由第 二以太总线交换机 100的第二路由决策单元 122将第一数据帧路由到连接到第二 以太总线交换机的第二交换逻辑单元的用户设备端口上的第二总线设备 (例如 总线设备 2或总线设备 0) 方向以及将第一数据帧的副本路由到第二以太总线交 换机 100的成对网络链接端口的另一个端口方向。 如果在第三以太总线交换机 10 0 (例如图 4中的太总线交换机 3或太总线交换机 N) 的总线设备 N的 MAC地址与 总线设备 2的 MAC地址相同, 其也将接收到该第一数据帧。 由此, 通过单播方式 实现了点 (例如总线设备 1) 对多点 (例如总线设备 2和 N) 的通信。 [0046] The second Ethernet bus switch 100 (eg, the bus switch 0, the bus switch 2 in FIG. 4) receives the first data frame forwarded from the first Ethernet bus switch 100 via one of its respective network link ports. Or a copy thereof (hereinafter collectively referred to as the first data frame). After the second Ethernet bus switch 100 receives the first data frame from the first bus device via one of its paired network link ports, the second routing decision unit 122 of the second Ethernet bus switch determines the purpose of the first data frame. Whether the ground MAC is the MAC of the second bus device connected to the user equipment port of the second Ethernet bus switch. If so, the second data reassembly unit 121 of the second Ether bus switch 100 copies the first data frame and routes the first data frame by the second routing decision unit 122 of the second Ether bus switch 100. Orienting a second bus device (eg, bus device 2 or bus device 0) on a user equipment port of a second switching logical unit connected to the second Ethernet bus switch and routing a copy of the first data frame to the second Ethernet bus switch The other port direction of the paired network link port of 100. If the MAC address of the bus device N in the third Ethernet bus switch 100 (for example, the bus switch 3 or the bus switch N in FIG. 4) The bus device 2 has the same MAC address, which will also receive the first data frame. Thereby, communication of points (e.g., bus device 1) to multiple points (e.g., bus devices 2 and N) is achieved by unicast.

[0047] 同样, 当接收到第一数据帧的总线设备, 例如总线设备 2和 N对该第一数据帧做 出响应吋, 其响应数据帧将同样会经历上述数据交换过程。 此吋, 该响应数据 帧将被视为上述过程中的"第一数据帧", 并且总线设备 2和 N将在发出响应数据 帧是被视为上述过程的"第一总线设备", 而作为响应数据帧的目的地总线设备的 "总线设备 1"将被视为上述过程的 "第二总线设备"。 同样, 总线设备 2和 N所连接 的以太总线交换机将被视为第一以太总线交换机, 而"总线设备 1"所连接的以太 总线交换机将被视为第二以太总线交换机。 由于响应数据帧的传输过程与第一 数据帧的传输过程相同, 因此不再对其具体过程进行详细描述。 因此, 通过上 述方式, 在以太总线架构下的总线设备之间可以进行点对多点以及多点对对点 的交叉通讯。 [0047] Similarly, when a bus device that receives the first data frame, such as bus device 2 and N, responds to the first data frame, its response data frame will also undergo the above data exchange process. Thereafter, the response data frame will be regarded as the "first data frame" in the above process, and the bus devices 2 and N will issue the response data frame as the "first bus device" of the above process, and The "bus device 1" of the destination bus device responding to the data frame will be regarded as the "second bus device" of the above process. Similarly, the Ethernet bus switch to which bus devices 2 and N are connected will be treated as the first Ethernet bus switch, and the Ethernet bus switch to which "bus device 1" is connected will be treated as the second Ethernet bus switch. Since the transmission process of the response data frame is the same as the transmission process of the first data frame, the detailed process will not be described in detail. Therefore, by the above manner, point-to-multipoint and multi-point peer-to-peer communication can be performed between bus devices under the Ethernet bus architecture.

[0048] 正是由于上述基于以太网总线架构的交叉通讯的存在, 因此, 这种以太网总线 架构可以采用自学习方式进行设备扩容, 即只需要在以太网交换机上连接一个 具有与现有总线设备相同 MAC地址的总线设备, 则网络设备之间不需要专门进 行链路配置, 仅仅通过一次通讯即可建立链路, 因此消除在现有以太网上或传 统总线上进行扩容配置的麻烦。  [0048] Due to the existence of the above-mentioned cross-communication based on the Ethernet bus architecture, the Ethernet bus architecture can be self-learned for device expansion, that is, only one Ethernet switch needs to be connected to the existing bus. If the bus device of the same MAC address is used, the link configuration is not required between the network devices, and the link can be established only by one communication, thereby eliminating the trouble of expanding the configuration on the existing Ethernet or the conventional bus.

[0049] 正是由于上述基于以太网总线架构的交叉通讯的存在, 因此根据本公幵的技术 方案存在一种基于该以太总线交换机的数据无损监听方法。 通常, 在以太总线 和各种网络中, 为了进行通信和数据监听, 需要对网络进行一定程度的损坏, 例如在接收和发送数据的设备前的路径中采用入侵损害方式来监听数据以便进 行实吋数据诊断。 或者通过其他方式在本地设备存储通讯数据, 以便之后进行 数据诊断。 更有甚者需要编辑特定的软件来截获数据。 这些监听数据的方法都 具有较高的成本或对网络本身造成损害。 而采用本公幵的以太总线交换机的总 线网络上则可以实现无损实吋监听。 图 6所示的是根据本公幵的无损监听方法的 示意图。 如图 6所示, 第三总线设备 (未示出) 通过网络链接通道与第一总线设 备 (在图中显示为设备 1) 所述的以太总线交换机的左侧传输通道端口相连。 第 三设备可与第一总线设备进行数据通讯。 该设备 1具有配置的 MAC地址 MAC1。 为了无损实吋监听第三设备与第一总线设备之间的通讯, 可以在根据本公幵的 总线上的任意以太总线交换机的用户接入端口接入一个总线设备, 例如第二总 线设备, 并将其 MAC地址配置为与第一设备的 MAC地址相同的 MAC1。 同吋启 用或激活第二总线设备所属的以太总线交换机中的数据重组单元 121的地址交换 重组功能, 即一种当从传输通道接收到的数据帧的目的地 MAC地址与本地设备 的 MAC地址相同吋, 将所接收到数据帧中的路由协议的源信息与目的信息进行 交换, 例如数据帧所包含的路由协议中的目的地 MAC地址、 目的地 IP (如果有的 话)以及端口与源 MAC地址、 目的地 1(如果有的话)以及端口, 进行交换后形成新 数据帧的数据重组功能。 经过这种方式处理后, 第二总线设备就能够实吋监听 到第一总线设备和第三总线设备之间的完整通讯过程, 而且不会影响到第一总 线设备和第三设备之间的通讯, 也不需要对第一总线设备和第三设备之间的通 讯链路造成认为物理性损害。 [0049] Due to the existence of the above-mentioned cross-communication based on the Ethernet bus architecture, according to the technical solution of the present disclosure, there is a data lossless monitoring method based on the Ethernet bus switch. Generally, in the Ethernet bus and various networks, in order to perform communication and data monitoring, a certain degree of damage to the network is required. For example, in the path before the device that receives and transmits data, the intrusion damage method is used to monitor the data for implementation. Data diagnosis. Or store communication data on the local device by other means for later data diagnosis. What's more, you need to edit specific software to intercept the data. These methods of monitoring data have higher costs or damage to the network itself. On the bus network using the public Ethernet bus switch, the lossless real-time monitoring can be realized. Figure 6 is a schematic illustration of a non-destructive monitoring method in accordance with the present disclosure. As shown in FIG. 6, a third bus device (not shown) is coupled to the left transmission channel port of the Ethernet bus switch described by the first bus device (shown as device 1 in the figure) via a network link channel. The third device can communicate with the first bus device. The device 1 has a configured MAC address MAC1. In order to non-destructively monitor the communication between the third device and the first bus device, a bus device, such as a second bus device, can be connected to the user access port of any Ethernet bus switch on the bus according to the present disclosure. Configure its MAC address to be the same MAC1 as the MAC address of the first device. Simultaneously enabling or activating the address exchange reassembly function of the data reassembly unit 121 in the Ethernet bus switch to which the second bus device belongs, that is, when the destination MAC address of the data frame received from the transmission channel is the same as the MAC address of the local device吋, exchange source information of the routing protocol in the received data frame with destination information, such as destination MAC address in the routing protocol included in the data frame, destination IP (if any), and port and source MAC The data reassembly function of the new data frame is formed after the address, destination 1 (if any) and port are exchanged. After being processed in this way, the second bus device can actually monitor the complete communication process between the first bus device and the third bus device without affecting the communication between the first bus device and the third device. There is also no need to cause physical damage to the communication link between the first bus device and the third device.

[0050] 具体而言, 当第一总线设备所属的以太总线交换机在接收到第三设备向作为第 一总线设备的设备 1发送来的总线数据帧吋, 该以太总线交换机的传输逻辑组件 120的路由决策单元 121基于交换机 MAC地址表中的 MAC地址确定数据帧进行双 向发送, 随后数据重组单元 122将该数据帧复制一份。 然后其中一份发送相对的 传输通道, 另一份被数据重组单元 122剥离了数据帧 ID之后发送到本地交换逻辑 组件 110。 由此经过数据重组单元剥离数据帧 ID后的数据帧被下载到第一总线设 备。 同吋被转发数据帧转副本到达作为第二总线设备或监听设备的设备 2所属的 以太总线交换机。 同样, 第二总线设备所属的以太总线交换机的传输逻辑组件 1 20的路由决策单元 121和数据重组单元 122对该数据帧进行相同的处理, 并对路 由到本地用户接入端口的监听设备的数据帧进行剥离数据帧 ID处理, 然后经由 交换逻辑组件 110下载到设备 2, 由此, 设备 2作为监听设备, 获得了第三设备向 作为第二总线设备的设备 2发出的数据。  [0050] Specifically, when the Ethernet bus switch to which the first bus device belongs receives the bus data frame sent by the third device to the device 1 as the first bus device, the transmission logic component 120 of the Ethernet bus switch The routing decision unit 121 performs bidirectional transmission based on the MAC address determination MAC address in the switch MAC address table, and then the data reassembly unit 122 copies the data frame. Then one of them sends the relative transmission channel, and the other is stripped of the data frame ID by the data reassembly unit 122 and sent to the local switching logic component 110. The data frame after the data frame ID is stripped by the data recombining unit is downloaded to the first bus device. The peer is forwarded to the Ethernet bus switch to which the device 2 to which the second bus device or the listening device belongs. Similarly, the routing decision unit 121 and the data recombining unit 122 of the transport logic component 120 of the Ethernet bus switch to which the second bus device belongs perform the same processing on the data frame, and the data of the listening device routed to the local user access port. The frame is subjected to stripping data frame ID processing and then downloaded to the device 2 via the switching logic component 110, whereby the device 2 acts as a listening device, obtaining data sent by the third device to the device 2 as the second bus device.

[0051] 进一步, 当设备 1针对所接收到的数据帧作出响应后, 会向第三总线设备发出 响应数据帧, 该响应数据帧的源地址为 MAC1 , 目的地地址为第三总线设备的 M AC地址。 由于该目的 MAC地址所述的第三设备为总线设备, 因此, 该响应数据 帧具有总线属性。 由此, 该响应数据帧被路由决策单元 121路由到相对的传输通 道, 即被双向转发。 随后该响应数据帧被数据重组单元 122添加数据帧 ID并被复 制一份。 一方面, 其中一份响应数据帧向左转发到第三总线设备所属的以太总 线交换机, 并被第三总线设备接收, 由此获得第一总线设备对其发出的数据帧 的响应数据帧。 另一方面, 另一份数据帧副本经由右侧传输通道被转发到第二 总线设备所属的以太总线交换机。 第二总线设备所属的以太总线交换机的路由 决策单元 121针对从传输通道上传输来的源 MAC地址与本地设备的 MAC地址相 同的数据帧直接路由到本地用户接入端口方向, 并由数据重组单元 122对在接收 到的响应数据帧副本中的源 MAC地址与第二总线设备的 MAC地址相同吋, 将该 数据帧中的源 MAC地址和目的地 MAC地址进行交换以便实现重组, 并经过数据 重组单元 122剥离数据帧 ID后下载到第二总线设备。 由此, 获得第一总线设备向 第三总线设备发送的响应数据帧, 从而监听到返回数据。 [0051] Further, when the device 1 responds to the received data frame, it sends a response data frame to the third bus device, where the source address of the response data frame is MAC1 and the destination address is M of the third bus device. AC address. Since the third device described by the destination MAC address is a bus device, the response data frame has a bus attribute. Thus, the response data frame is routed by the routing decision unit 121 to the opposite transmission channel. The track is forwarded in both directions. The response data frame is then added by the data reassembly unit 122 to the data frame ID and copied. In one aspect, one of the response data frames is forwarded to the left to the Ethernet bus switch to which the third bus device belongs and is received by the third bus device, thereby obtaining a response data frame for the data frame to which the first bus device issues. On the other hand, another copy of the data frame is forwarded via the right transmission channel to the Ethernet bus switch to which the second bus device belongs. The routing decision unit 121 of the Ethernet bus switch to which the second bus device belongs is directly routed to the local user access port direction for the data frame whose source MAC address transmitted from the transmission channel is the same as the MAC address of the local device, and is reconstructed by the data reorganization unit. 122. After the source MAC address in the received response data frame copy is the same as the MAC address of the second bus device, the source MAC address and the destination MAC address in the data frame are exchanged for reorganization and data reorganization Unit 122 strips the data frame ID and downloads it to the second bus device. Thereby, a response data frame transmitted by the first bus device to the third bus device is obtained, thereby listening to the return data.

[0052] 通过上述过程, 作为监听设备的第二总线设备因此能够无损实吋监听第三总线 设备和第一总线设备之间的通讯。 而传统的数据监听方式是在节点处增添特殊 的监听设备, 来捕获、 筛选被监听对象的数据发往处理平台, 这样的监听方式 , 既增加了额外的监听设备成本, 又由于监听设备对数据的二次处理带来了数 据安全隐患。 而本公幵以太总线交换机利用上述特性即可在当前的环境下监听 原始数据, 既不增加额外成本, 也不需要对数据做捕获、 筛选的处理, 保证数 据传输安全。 [0052] Through the above process, the second bus device as the listening device can thus reliably monitor the communication between the third bus device and the first bus device. The traditional data monitoring method is to add a special monitoring device at the node to capture and filter the data of the monitored object to the processing platform. This way of monitoring increases the cost of additional monitoring equipment and the data of the listening device. The secondary processing brings data security risks. The utility model uses the above features to monitor the original data in the current environment, and does not increase the additional cost, nor does it need to capture and filter the data to ensure data transmission security.

[0053] 综上所述, 基于本公幵的以太总线交换机将同类总线设备视为一个设备, 即配 置为同一个 MAC地址, 因此当同类总线设备回应源设备后, 该 MAC地址就会学 习到应用端口和传输端口上, 而以太总线交换机设定应用端口和传输端口为独 立的学习机制, 当两个端口学习到同一个 MAC地址吋, 不视为 MAC冲突, 而视 为该端口也有该设备接入。 基于以太网源 MAC学习机制, 传输逻辑即会将源设 备发来的数据同吋传输到两个端口上, 这样, 所有的设备就会接收到源设备发 来的数据。 同吋, 源设备也可以接收到所有设备的回应数据。 因此, 基于本公 幵的以太总线交换机采用全双工通信方式, 遵循以太网源 mac地址的学习机制, 利用单播完成点对多点的双向数据交互。 当网络上新增设备后, 只需要当前存 在的链接即可完成与新增设备的数据交互。 相反, 采用传统交换机, 在当前架 构下, 当两个端口学习到同一个 mac地址吋, 由于单播的点对点传输机制就会出 现目标地址冲突的情况, 无法做到点对多点的数据通信。 [0053] In summary, the Ethernet bus switch based on the present invention treats the same type of bus device as one device, that is, configures the same MAC address, so when the same type of bus device responds to the source device, the MAC address will be learned. On the application port and the transmission port, the Ethernet bus switch sets the application port and the transmission port as separate learning mechanisms. When the two ports learn the same MAC address, they are not regarded as MAC conflicts, but the port is also considered to have the device. Access. Based on the Ethernet source MAC learning mechanism, the transmission logic transmits the data sent from the source device to both ports, so that all devices receive the data from the source device. At the same time, the source device can also receive response data from all devices. Therefore, the Ethernet bus switch based on the present invention adopts a full-duplex communication mode, follows the learning mechanism of the Ethernet source mac address, and performs point-to-multipoint bidirectional data interaction by using unicast. When a device is added to the network, only the currently existing link can complete the data interaction with the newly added device. Instead, using a traditional switch, in the current shelf Under the circumstance, when the two ports learn the same mac address, the target address conflict occurs due to the unicast peer-to-peer transmission mechanism, and point-to-multipoint data communication cannot be achieved.

[0054] 返回参见图 1, 交换逻辑单元 110还对来自本地的设备数据帧进行常规的数据通 讯交换处理, 其对与来自本地设备的数据帧, 可预先进行 MAC地址表的査找, 对于目的地地址为本地其他端口设备的 MAC地址的数据帧, 直接发送到该本地 其他端口设备。 [0054] Referring back to FIG. 1, the switching logic unit 110 also performs a conventional data communication exchange process on the device data frame from the local device, and the data frame from the local device can be pre-processed with the MAC address table for the destination. The data frame whose MAC address is the address of the other local port device is directly sent to the other local port device.

[0055] 以上结合具体实施例描述了本公幵的基本原理, 但是, 需要指出的是, 对本领 域的普通技术人员而言, 能够理解本公幵的方法和装置的全部或者任何步骤或 者部件, 可以在任何计算装置 (包括处理器、 存储介质等) 或者计算装置的网 络中, 以硬件、 固件、 软件或者它们的组合加以实现, 这是本领域普通技术人 员在阅读了本公幵的说明的情况下运用他们的基本编程技能就能实现的。  [0055] The basic principles of the present disclosure have been described above in connection with the specific embodiments, but it should be noted that those skilled in the art can understand all or any of the steps or components of the method and apparatus of the present disclosure. It can be implemented in hardware, firmware, software, or a combination thereof in any computing device (including a processor, storage medium, etc.) or a network of computing devices, as those of ordinary skill in the art have read the description of the present disclosure. The situation can be achieved with their basic programming skills.

[0056] 因此, 本公幵的目的还可以通过在任何计算装置上运行一个程序或者一组程序 来实现。 所述计算装置可以是公知的通用装置。 因此, 本公幵的目的也可以仅 仅通过提供包含实现所述方法或者装置的程序代码的程序产品来实现。 也就是 说, 这样的程序产品也构成本公幵, 并且存储有这样的程序产品的存储介质也 构成本公幵。 显然, 所述存储介质可以是任何公知的存储介质或者将来所幵发 出来的任何存储介质。  [0056] Accordingly, the purpose of the present disclosure can also be achieved by running a program or a set of programs on any computing device. The computing device can be a well-known general purpose device. Accordingly, the purpose of the present disclosure can also be achieved by merely providing a program product comprising program code for implementing the method or apparatus. That is to say, such a program product also constitutes the present disclosure, and a storage medium storing such a program product also constitutes the present disclosure. It will be apparent that the storage medium may be any well-known storage medium or any storage medium that will be elucidated in the future.

[0057] 还需要指出的是, 在本公幵的装置和方法中, 显然, 各部件或各步骤是可以分 解和 /或重新组合的。 这些分解和 /或重新组合应视为本公幵的等效方案。 并且, 执行上述系列处理的步骤可以自然地按照说明的顺序按吋间顺序执行, 但是并 不需要一定按照吋间顺序执行。 某些步骤可以并行或彼此独立地执行, 例如在 进行路由决策和数据重组过程可以并行进行也可以先后进行, 两者进行的过程 不分先后。 在需要进行先后处理的情况下, 可以有技术人员进行临吋设定。 例 如在监听情况下, 监听设备所述的传输逻辑组件 110可以配置为首先对传输来的 数据进行 MAC地址解析, 对源 MAC地址与本地监听设备的 MAC相同的数据帧首 先进行交换重组, 然后有路由决策单元进行路由决策以便路由到监听设备, 获 取被监听设备的响应数据帧。  It should also be noted that in the apparatus and method of the present disclosure, it is apparent that various components or steps may be decomposed and/or recombined. These decompositions and/or recombinations shall be considered equivalent to this publication. Further, the steps of performing the above-described series of processing can be naturally performed in the order of the description in the order, but need not necessarily be performed in the order of the day. Some steps can be performed in parallel or independently of each other. For example, routing decisions and data reorganization processes can be performed in parallel or sequentially, and the processes performed by the two are in no particular order. In the case where sequential processing is required, a technician can perform the setting. For example, in the case of monitoring, the transmission logic component 110 of the listening device may be configured to first perform MAC address resolution on the transmitted data, and first exchange and reassemble the data frame whose source MAC address is the same as the MAC of the local monitoring device, and then The routing decision unit makes a routing decision to route to the listening device to obtain a response data frame of the monitored device.

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

[0059] 。  [0059].

工业实用性  Industrial applicability

[0060] 在此处键入工业实用性描述段落。 [0060] Enter the paragraph of industrial applicability description here.

[0061] [0061]

Claims

权利要求书 Claim 一种以太总线交换机, 包括: An Ethernet bus switch, including: 一个或多个设备端口; One or more device ports; 一对网络链接端口; a pair of network link ports; 交换逻辑单元, 发送或接收数据帧, 并基于源 MAC地址学习机制学 习所接收到的数据帧的源设备 MAC地址并存储在 MAC地址表中; 以 及 The switching logic unit transmits or receives a data frame and learns the source device MAC address of the received data frame based on the source MAC address learning mechanism and stores it in the MAC address table; and 传输逻辑组件, 包括路由决策单元和数据重组单元, 其中所述数据重 组单元将来自设备端口的数据帧复制一份以便路由决策单元将该数据 帧路由到所述一对网络链接端口方向, 以及数据重组单元将来自所述 一对网络链接端口之一的具有总线属性并且目的地 MAC地址为本地 设备端口上的总线设备的 MAC地址的数据帧复制一份, 以便路由决 策单元将该数据帧路由到设备端口方向和所述一对网络链接端口的另 一个端口方向, 从而以单播方式实现点对多点的通讯。 a transmission logic component, comprising: a routing decision unit and a data reassembly unit, wherein the data reassembly unit copies a data frame from the device port for routing decision units to route the data frame to the pair of network link port directions, and data Recombining unit copies a data frame from one of the pair of network link ports having a bus attribute and a destination MAC address as a MAC address of a bus device on the local device port, so that the routing decision unit routes the data frame to The device port direction and the other port direction of the pair of network link ports enable point-to-multipoint communication in a unicast manner. 根据权利要求 1所述的以太总线交换机, 其中所述数据重组单元为从 设备端口经由交换逻辑单元发送的数据帧添加数据帧 ID以及为从路由 决策单元接收的数据帧剥离数据帧 ID。 The Ethernet bus switch of claim 1 wherein said data reassembly unit adds a data frame ID for data frames transmitted from the device port via the switching logic unit and strips the data frame ID for data frames received from the routing decision unit. 根据权利要求 2所述的以太总线交换机, 其中所述数据帧 ID包含有基 于源交换机 ID生成的数据帧序列号。 The Ethernet bus switch of claim 2 wherein said data frame ID comprises a data frame sequence number generated based on a source switch ID. 根据权利要求 2所述的以太总线交换机, 其中所述数据帧 ID包含有源 交换机 ID、 目的地交换机 ID以及基于源交换机 ID生成的数据帧序列 号。 The Ethernet bus switch of claim 2 wherein said data frame ID comprises an active switch ID, a destination switch ID, and a data frame sequence number generated based on the source switch ID. 根据权利要求 1-4之一所述的以太总线交换机, 其中所述数据重组单 元在来自所述一对网络链接端口之一的数据帧中的源 MAC地址与本 地总线设备的 MAC地址相同吋, 将该数据帧中的路由协议字段中的 源信息和目的地信息进行交换以便实现重组。 The Ethernet bus switch according to any one of claims 1 to 4, wherein said data recombining unit has the same source MAC address in the data frame from one of said pair of network link ports as the MAC address of the local bus device, The source information and the destination information in the routing protocol field in the data frame are exchanged for reorganization. 根据权利要求 1-4之一所述的以太总线交换机, 其中所述路由决策单 元对来自所述一对网络链接端口之一的目的地 MAC地址不是本地设 备端口上的设备的 MAC地址的数据帧只路由到所述一对网络链接端 口的另一个端口方向。 The Ethernet bus switch according to any one of claims 1 to 4, wherein said routing decision unit does not locally set a destination MAC address from one of said pair of network link ports The data frame of the MAC address of the device on the standby port is only routed to the other port direction of the pair of network link ports. [权利要求 7] 根据权利要求 1-4之一所述的以太总线交换机, 其中所述路由决策单 元对来自所述一对网络链接端口之一的不具有总线属性并且目的地 M AC地址为本地设备端口上的非总线设备的 MAC地址的数据帧仅路由 到设备端口方向。  [Embodiment 7] The Ethernet bus switch according to any one of claims 1 to 4, wherein said routing decision unit has no bus attribute from one of said pair of network link ports and destination M AC address is local The data frame of the MAC address of the non-bus device on the device port is only routed to the device port direction. [权利要求 8] —种由如权利要求 1-7之一所述的以太总线交换机构成的总线架构, 其中传输线经由以太总线交换机的网络链接端口连接多个以太总线交 换机, 至少两个以太总线交换机的一个或多个设备端口上连接有至少 一个总线设备, 以便多个具有相同 MAC地址的总线设备能够同吋接 收目的地为该 MAC地址的数据帧, 从而以单播形式实现点对多点以 及多点对多点的通讯。  [Claim 8] A bus architecture comprising an Ethernet bus switch according to any one of claims 1-7, wherein the transmission line connects a plurality of Ethernet bus switches via a network link port of the Ethernet bus switch, at least two Ethernet bus switches At least one bus device is connected to one or more device ports, so that a plurality of bus devices having the same MAC address can simultaneously receive a data frame destined for the MAC address, thereby implementing point-to-multipoint in a unicast manner and Multi-point to multi-point communication. [权利要求 9] 一种数据通讯方法, 包括:  [Claim 9] A data communication method comprising: 多个第一总线设备之一从第一以太总线交换机的用户设备端口经由第 一交换逻辑单元发出具有以太总线属性的第一数据帧;  Transmitting, by one of the plurality of first bus devices, a first data frame having an Ethernet bus attribute from a user equipment port of the first Ethernet bus switch via the first switching logic unit; 第一以太总线交换机的第一数据重组单元将所接收到的第一数据帧复 制一份, 并由第一以太总线交换机的第一路由决策单元该第一数据帧 及其副本分别路由到该第一以太总线交换机的一对网络链接端口方向 至少一个第二以太总线交换机在经由其成对网络链接端口之一接收到 来自第一总线设备的第一数据帧吋, 在第二以太总线交换机的第二路 由决策单元确定第一数据帧的目的地 MAC为第二以太总线交换机的 用户设备端口上连接的第二总线设备的 MAC的情况下, 所述第二以 太总线交换机的第二数据重组单元将该第一数据帧复制一份, 并由第 二以太总线交换机的第二路由决策单元将第一数据帧路由到连接到第 二以太总线交换机的第二交换逻辑单元的用户设备端口上的第二总线 设备方向以及将第一数据帧的副本路由到第二以太总线交换机的成对 网络链接端口的另一个端口方向。 根据权利要求 9所述的数据通讯方法, 其还包括: The first data reassembly unit of the first Ethernet bus switch copies the received first data frame, and the first data frame and the copy thereof are routed by the first routing decision unit of the first Ethernet bus switch to the first a pair of network link ports of an Ethernet bus switch, at least one second Ethernet bus switch receiving a first data frame from the first bus device via one of its paired network link ports, and a second Ethernet bus switch The second routing unit determines that the destination MAC of the first data frame is the MAC of the second bus device connected to the user equipment port of the second Ethernet bus switch, and the second data reassembly unit of the second Ethernet bus switch Copying the first data frame and routing the first data frame by the second routing decision unit of the second Ethernet bus switch to the second on the user equipment port of the second switching logical unit connected to the second Ethernet bus switch Bus device direction and a pair of network link ports that route a copy of the first data frame to the second Ethernet bus switch Another port direction. The data communication method according to claim 9, further comprising: 第二路由决策单元在确定第一数据帧的目的地 MAC不是第二总线设 备的 MAC的情况下, 直接将第一数据帧路由到第二以太总线交换机 的成对网络链接端口的另一个端口方向。 The second routing decision unit directly routes the first data frame to another port direction of the paired network link port of the second Ethernet bus switch in a case where it is determined that the destination MAC of the first data frame is not the MAC of the second bus device . 根据权利要求 9或 10所述的数据通讯方法, 其还包括: 所述第一数据 重组单元在复制第一数据帧之前或同吋为第一数据帧添加数据帧 ID以 及在第二路由决策单元将第一数据帧路由到第二总线设备方向之前或 同吋第二数据重组单元为第一数据帧剥离所添加数据帧 ID。 The data communication method according to claim 9 or 10, further comprising: said first data recombining unit adding a data frame ID to the first data frame before copying the first data frame and in the second routing decision unit The data frame ID added before the first data frame is routed to the second bus device direction or the second data reassembly unit strips the first data frame. 根据权利要求 11所述的数据通讯方法, 其还包括: The data communication method according to claim 11, further comprising: 在第二路由决策单元确定第一数据帧的源 MAC与第二总线设备的 MADetermining, at the second routing decision unit, the source MAC of the first data frame and the MA of the second bus device C相同的情况下, 第二数据重组单元将第一数据帧中的路由协议字段 中的源信息和目的地信息进行交换以便实现重组; 以及 In the case of the same C, the second data recombining unit exchanges the source information and the destination information in the routing protocol field in the first data frame to implement reorganization; 第二路由决策单元将经过重组后的第一数据帧路由到第二总线设备方 向。 The second routing decision unit routes the reassembled first data frame to the second bus device direction. 根据权利要求 9或 10所述的数据通讯方法, 其还包括: The data communication method according to claim 9 or 10, further comprising: 所述第二路由决策单元在确定第一数据帧的目的地 MAC地址不是第 二交换逻辑单元的用户设备端口上的设备的 MAC地址吋, 仅仅将第 一数据帧路由到第二以太总线交换机的一对网络链接端口的另一个端 口方向。 The second routing decision unit only routes the first data frame to the second Ethernet bus switch after determining that the destination MAC address of the first data frame is not the MAC address of the device on the user equipment port of the second switching logical unit The other port direction of a pair of network link ports. 根据权利要求 9所述的数据通讯方法, 其还包括: The data communication method according to claim 9, further comprising: 所述第二路由决策单元在确定来自所述一对网络链接端口之一的数据 帧不具有总线属性并且目的地 MAC地址为第二交换逻辑单元的用户 设备端口上的非总线设备的 MAC地址吋, 仅将该数据帧路由到第二 交换逻辑单元的用户设备端口方向。 The second routing decision unit determines that a data frame from one of the pair of network link ports does not have a bus attribute and the destination MAC address is a MAC address of a non-bus device on a user equipment port of the second switching logical unit. , only routing the data frame to the user equipment port direction of the second switching logical unit.
PCT/CN2018/087330 2017-05-19 2018-05-17 Ethernet bus switch, ethernet bus architecture, and data communication method Ceased WO2018210311A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710357929.3 2017-05-19
CN201710357929.3A CN107241249B (en) 2017-05-19 2017-05-19 Ethernet bus switch, Ethernet bus system and data communication method

Publications (1)

Publication Number Publication Date
WO2018210311A1 true WO2018210311A1 (en) 2018-11-22

Family

ID=59984976

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/087330 Ceased WO2018210311A1 (en) 2017-05-19 2018-05-17 Ethernet bus switch, ethernet bus architecture, and data communication method

Country Status (2)

Country Link
CN (1) CN107241249B (en)
WO (1) WO2018210311A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241249B (en) * 2017-05-19 2020-05-22 闫晓峰 Ethernet bus switch, Ethernet bus system and data communication method
CN109412695B (en) * 2018-12-28 2022-06-10 中国船舶重工集团公司第七一九研究所 Optical fiber CAN2.0B bus routing system based on star topology structure

Citations (5)

* 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
CN101645880A (en) * 2008-08-06 2010-02-10 华为技术有限公司 Method and device for forwarding data frame based on line bundle
US20100189114A1 (en) * 2009-01-27 2010-07-29 Hitachi, Ltd. Network communication node
CN102594668A (en) * 2012-02-03 2012-07-18 福建星网锐捷网络有限公司 Message forwarding method, device and exchange equipment
CN107241249A (en) * 2017-05-19 2017-10-10 闫晓峰 Ether bus switch, ether bus architecture and data communication method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006239B (en) * 2010-12-07 2012-06-13 杭州通谷科技有限公司 Ethernet circuit exchange device and method
KR101559644B1 (en) * 2011-03-23 2015-10-12 닛본 덴끼 가부시끼가이샤 Communication control system, switch node, and communication control method
CN103561132B (en) * 2013-11-12 2016-09-07 上海市共进通信技术有限公司 LAN realizes the system and method for the MAC network terminal identical with multiple stage communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645880A (en) * 2008-08-06 2010-02-10 华为技术有限公司 Method and device for forwarding data frame based on line bundle
US20100189114A1 (en) * 2009-01-27 2010-07-29 Hitachi, Ltd. Network communication node
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
CN107241249A (en) * 2017-05-19 2017-10-10 闫晓峰 Ether bus switch, ether bus architecture and data communication method

Also Published As

Publication number Publication date
CN107241249B (en) 2020-05-22
CN107241249A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US11398921B2 (en) SDN facilitated multicast in data center
US11240065B2 (en) NSH encapsulation for traffic steering
CN102316030B (en) Method for realizing two-layer internetworking of data center and device
EP2843906B1 (en) Method, apparatus, and system for data transmission
CN113364610B (en) Network equipment management method, device and system
US20140122704A1 (en) Remote port mirroring
EP3069471B1 (en) Optimized multicast routing in a clos-like network
US10523464B2 (en) Multi-homed access
EP2989755B1 (en) Efficient multicast delivery to dually connected (vpc) hosts in overlay networks
CN112422307B (en) Method, equipment and system for EVPN and VPLS coexistence dual-activity
US9871761B2 (en) Methods and apparatus for implementing a fibre channel zone policy
CN108259635B (en) ARP (Address resolution protocol) table item learning method and DR (digital radiography) equipment
WO2018205982A1 (en) Method and device for implementing broadcast and multicast in software-defined network and storage medium
CN1937569A (en) Message processing in local area network with redundancy path
CN101702689B (en) Transmission control method with balanced multicast service data load and access device thereof
US7995499B2 (en) Minimizing spanning-tree protocol event processing and flooding in distribution networks
WO2018210311A1 (en) Ethernet bus switch, ethernet bus architecture, and data communication method
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover
WO2009097796A1 (en) Multicast method of provider backbone transport loop and multicast loop network and node device
US12452162B2 (en) Methods and devices for replicating multicast control packets in hardware
WO2014086242A1 (en) Multicast forwarding method and apparatus in multi-link transparent internet, and routing bridge
CN107426103B (en) Data transmission method between RapidIO network and Ethernet
KR100501326B1 (en) Distributed system for processing Layer 2 Protocol by subscriber unit and method thereof
JP2022114067A (en) Communication system, communication device and communication control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18803156

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18803156

Country of ref document: EP

Kind code of ref document: A1