METHOD AND CONTROL PROGRAM FOR AUTOMATED CONFIGURATION OF A MULTI-VLAN COMMUNICATION NETWORK
Patent Information
- Application Number
- DE502022001655
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2042-09-16
AI Technical Summary
The configuration of Virtual Local Area Networks (VLANs) in industrial automation systems is complex and error-prone, requiring manual intervention for each device and port, which is inefficient and prone to errors, especially in handling unicast and multicast data traffic.
The method involves determining VLAN port operating modes using configuration marks to automate VLAN configuration, tracking paths assigned to each VLAN, and setting limits for frame forwarding, allowing for automated and fail-safe engineering of communication networks, including the use of trunk, untagged, and forbidden modes for data traffic management.
This approach simplifies and secures the configuration of VLANs, reducing human error and enabling efficient, automated management of VLANs across complex communication networks, ensuring consistent and reliable data transmission.
Description
[0001] The present invention relates to a method for the automated configuration of a communication network comprising several virtual local area networks (VLANs), in particular a communication network of an industrial automation system, and a control program for carrying out the method.
[0002] An industrial automation system typically comprises a large number of automation devices interconnected via an industrial communication network and is used to control or regulate systems, machines, or devices within the context of production or process automation. Due to the time-critical conditions in industrial automation systems, real-time communication protocols such as PROFINET, PROFIBUS, Real-Time Ethernet, or Time-Sensitive Networking (TSN) are predominantly used for communication between automation devices.
[0003] Disrupted communication connections between computer units of an industrial automation system or automation devices can lead to unwanted or unnecessary retransmission of a service request. Furthermore, incompletely transmitted or compromised messages can prevent an industrial automation system from transitioning to or remaining in a safe operating state. The message traffic typical of industrial automation systems, with its relatively large number of but relatively short messages, exacerbates these problems.
[0004] EP 3 142 296 B1 describes a method for configuring a modular control device of an industrial automation system, which comprises a central unit and at least one communication module, each with an integrated router. Router configuration units of first routers record available router functions and assigned priority values of other routers. First routers have an extended router function for a connection to a higher-level communication network. Second routers have a restricted router function for a connection to a lower-level field-level subnetwork. If additional first routers are present, the router configuration units of the first routers each check, based on the priority values, which first router is assigned the highest priority value. The first router with the highest priority value is configured as the higher-level router for a connection to a higher-level communication network.
[0005] To verify datagrams transmitted within an industrial automation system with multiple automation cells, according to EP 3 646 559 B1, datagrams to be verified from the automation cells are transmitted via a respective firewall interface to the firewall system for verification, where they are checked based on rules. The firewall system is formed by at least one virtual machine provided within a data processing system comprising multiple computer units. To transmit the datagrams to be verified, a data link tunnel is established between the respective firewall interface and the firewall system. Both datagrams to be verified and at least successfully verified datagrams are transmitted within the respective data link tunnel.
[0006] WO 2020 / 224753 A1 discloses a method for configuring an industrial real-time-capable communication network for the cyclic transmission of messages, each of which comprises one or more data records. The communication network comprises a message source for generating and cyclically transmitting the messages, at least one message sink for receiving and processing the messages, and at least one network component that forwards messages from the message source to the message sinks. The configuration involves determining a network topology of the communication network for the transmission of a data stream to be transmitted in the future by the message source, in which the messages are transmitted cyclically, each with all data records.
[0007] According to WO 2020 / 224753 A1, it is determined which of the data records in the data stream each message sink wishes to receive. Furthermore, a respective filter is determined and configured for each network component by determining from the network topology the components connected to the respective network component and the data records required for the connected message sinks. This ensures that, during operation of the communication network, only required data records are transmitted in the messages downstream of the data stream.
[0008] US 2006 / 209714 A1 discloses a method for automatically configuring a communications device (TP1) with a reserved identification number, comprising at least one network node device managing an assigned subnetwork of a network, and at least one virtual network to which the communications device is assigned, wherein data packets exchanged within the virtual network are marked with the reserved identification number. First, a network address of the subnetwork is determined by a network element located in the network. Subsequently, a configuration message, set with the network address of the subnetwork as the destination address, is sent from the network element to the network node device, which is forwarded by the network node device to the virtual network as a broadcast message marked with the reserved identification number.The broadcast message is received by the communication device, whereupon the communication device is configured using the identification number.
[0009] In industrial automation systems, communication networks are often segmented based on VLANs (Virtual Local Area Networks) according to IEEE 802.1Q. VLAN configuration depends on the specific application requirements within an industrial automation system and is typically configured individually for each subnetwork. For a VLAN configuration, network infrastructure devices such as switches and routers must specify, in particular, trunk ports, via which data traffic assigned to several different VLANs is transmitted, and access ports, to which end devices typically assigned to only one VLAN are connected. Furthermore, unicast data traffic, for example, according to PROFINET-IO, on the one hand, and multicast data traffic, for example, according to IEC 61850-8-2 GOOSE, on the other, must be handled differently in many applications.This can quickly make a VLAN configuration across all network infrastructure devices within an industrial automation system confusing and error-prone. Furthermore, changes to existing VLAN configurations must be made individually for each device and port.
[0010] The present invention is therefore based on the object of specifying a method for the automated configuration of a communication network comprising several VLANs, which enables an efficient and less error-prone configuration of VLANs in complexly structured communication networks, as well as providing a suitable implementation for carrying out the method.
[0011] This object is achieved according to the invention by a method having the features specified in claim 1 and by a control system having the features specified in claim 16. Advantageous developments of the present invention are specified in the dependent claims.
[0012] According to the inventive method for the automated configuration of a communications network comprising multiple VLANs, a VLAN port operating mode is defined for each VLAN, starting from communications terminals at ports of switches or routers along paths assigned to the respective VLAN, depending on the use of the respective port by the respective VLAN. Paths assigned to a VLAN include, in particular, selected paths over which frames assigned to the respective VLAN are transmitted. Preferably, the paths assigned to the respective VLAN are tracked to determine the VLAN port operating modes, starting from each communications terminal assigned to the respective VLAN.
[0013] According to the invention, VLAN segment boundaries are defined using first VLAN port configuration tags. Incoming and outgoing frames at the respective port are assigned to the same VLAN. Second VLAN port configuration tags set boundaries for tracking the paths assigned to the respective VLAN to determine the VLAN port operating modes. In contrast, third VLAN port configuration tags set boundaries for tracking the paths assigned to the respective VLAN only with respect to outgoing frames to determine the VLAN port operating modes. The VLAN port configuration tags control the tracking of the paths assigned to the respective VLAN and a configuration of the ports encompassed by these paths based on the definition of the VLAN port operating modes.
[0014] By using VLAN port configuration tags, the present invention creates a basis for automating VLAN configurations. This eliminates the need for network or system operators to manually manage the respective VLAN configuration for each individual device. Instead, the corresponding configuration tasks are advantageously performed automatically after setting the VLAN port configuration tags. Setting VLAN port configuration tags thus enables simplified, fail-safe engineering of communication networks, particularly in industrial automation systems. This applies to an initial VLAN configuration as well as to subsequent changes or extensions.
[0015] For a VLAN without assigned communication terminals, the tracking of the paths assigned to the respective VLAN to determine the VLAN port operating modes can advantageously be performed starting from at least one selected switch or router assigned to the respective VLAN. For example, a switch or router at a lowest topological level of the communication network within the respective VLAN segment boundary can be selected for tracking the paths assigned to the respective VLAN.
[0016] According to a preferred embodiment of the present invention, the VLAN port operating modes each comprise at least a trunk mode and an untagged mode. Frames (data frames) that include a VLAN identifier assigned to the respective VLAN are forwarded via a port if the port is configured in trunk mode for the respective VLAN. In contrast, incoming frames that do not include a VLAN identifier are forwarded via a port with the insertion of a VLAN identifier if the port is configured in untagged mode for the respective VLAN with respect to incoming frames. Furthermore, outgoing frames that include a VLAN identifier assigned to the respective VLAN are forwarded via a port with the removal of the VLAN identifier if the port is configured in untagged mode for the respective VLAN with respect to outgoing frames.
[0017] Advantageously, a VLAN that comprises communication terminals without VLAN functionality and at whose VLAN segment boundary frames assigned to the VLAN are forwarded via a port on which a first VLAN port configuration tag is set is configured at the respective port for incoming and outgoing frames in untagged mode. This achieves a consistent, convenient implementation of the VLAN port configuration tags into the VLAN configuration. Preferably, only one VLAN is configured for incoming and outgoing frames in untagged mode at the respective port on which a first VLAN port configuration tag is set. Furthermore, each VLAN whose assigned frames are forwarded via a port on which a second VLAN port configuration tag is set is configured at the respective port for outgoing frames in trunk mode according to a further preferred embodiment of the present invention.
[0018] In addition, the VLAN port operating modes can each additionally include a forbidden mode. In this case, forwarding of incoming or outgoing frames containing a VLAN identifier assigned to the respective VLAN via a port is permanently and non-dynamically blocked if the port is configured in forbidden mode for incoming or outgoing frames for the respective VLAN. Any VLAN that has no assigned incoming frames on a port to which a third VLAN port configuration tag is set is advantageously configured in forbidden mode for outgoing frames on the respective port. This enables even more convenient engineering of communication networks. In this sense, any VLAN that has assigned incoming frames on a port to which a third VLAN port configuration tag is set is preferably configured in trunk mode for outgoing frames on the respective port.
[0019] In addition to VLAN port configuration tags, VLAN multicast configuration tags can be set for simple and reliable handling of unicast and multicast traffic when engineering communications networks. The first VLAN multicast configuration tags advantageously define VLAN segment boundaries for the transmission of multicast frames within a multicast area comprising multiple VLANs. Furthermore, the second VLAN multicast configuration tags can be used to specify forwarding communication devices for multicast frames within the multicast area. In contrast, the third VLAN multicast configuration tags can be used to specify sending or receiving communication devices for multicast frames within the respective multicast area.Using the VLAN multicast configuration markers, the VLAN port operating mode of the ports assigned to the respective multicast area of the communication devices forwarding multicast frames is preferably defined for each multicast area. This allows individual application requirements regarding the desired handling of unicast or multicast traffic to be taken into account in a user-friendly and fail-safe manner during VLAN configuration.
[0020] For the multicast area defined according to the first VLAN multicast configuration tags, at least one separate multicast VLAN is advantageously set up. Furthermore, ports between communication devices forwarding multicast frames assigned to the same multicast area, defined according to the second VLAN multicast configuration tags, are preferably configured in trunk mode for the respective multicast VLAN. Ports on communication devices forwarding multicast frames to which communication terminals assigned to the same multicast area, defined according to the third VLAN multicast configuration tags, are connected, are also preferably configured in trunk mode for the respective multicast VLAN.
[0021] In the event that the VLAN port operating modes each include a forbidden mode, ports on multicast frame-forwarding communication devices to which no communication end devices are connected, which are defined by third-party VLAN multicast configuration tags or assigned to a multicast scope, can be configured in forbidden mode for the respective multicast VLAN. This also ensures that the VLAN configuration is not inadvertently changed by automatic VLAN learning on the respective ports.
[0022] According to a further advantageous embodiment of the present invention, for forwarding multicast frames between communication terminals in two different VLANs, a multicast VLAN is set up that couples the two VLANs together. This multicast VLAN comprises forwarding communication devices in both VLANs, communication terminals in both VLANs, and forwarding communication devices along at least one path between the two VLANs. Accordingly, the multicast VLAN that couples the two VLANs is configured for outgoing multicast frames in trunk mode at the respective port of the communication devices forwarding the multicast frames. In this way, multicast VLANs that encompass multiple existing VLANs can be set up conveniently and securely.
[0023] The control program according to the invention is intended for carrying out a method according to the preceding embodiments and is loadable into a working memory of a computer or a virtual machine. The control program comprises at least one code section, upon execution of which the previously described steps, in particular the steps of the method according to claim 1, are executed when the control program is running on the computer or in the virtual machine.
[0024] The present invention will be explained in more detail below using an exemplary embodiment with reference to the drawing. Figure 1 shows a communication network of an industrial automation system with several VLANs defined by means of VLAN port configuration tags as well as with several switches and routers. Figure 2 shows a tracing of paths of the communication network assigned to a first VLAN for defining VLAN port operating modes at switches and routers included in the paths. Figure 3 shows a tracing of paths assigned to a second VLAN for defining the VLAN port operating modes at the respective switches and routers. Figure 4 shows a tracing of paths assigned to a third VLAN for defining the VLAN port operating modes at the respective switches and routers. Figure 5 shows a tracing of paths assigned to a higher-level VLAN for defining the VLAN port operating modes at the respective switches and routers. Figure 6 shows the communication network according to Figur 1 with an additional multicast VLAN defined by means of VLAN multicast configuration tags, which couples two different VLANs for forwarding multicast frames between communication end devices of these two VLANs.
[0025] The Figur 1 The exemplary communication network of an industrial automation system shown comprises a plurality of automation cells 101-103, each with a switch 110, 120, 130, a programmable logic controller 111, 121, 131 and an input / output unit 112, 122, 132. The programmable logic controllers 111, 121, 131 and the input / output units 112, 122, 132 are connected to the respective switch 110, 120, 130.
[0026] The automation cells 101-103 are interconnected by a higher-level network segment 100, which comprises several routers 1, 4, and switches 2-3. Via a first router 1, the higher-level network segment 100 and the automation cells 101-103 can be connected, for example, to a plant-wide control network, an office communications network, or a wide area network. A first switch 2 and a second switch 3 are also connected to the first router 1 and are additionally directly connected to one another. A first port 11 of the first router 1 and a first port 21 of the first switch 2 are interconnected, while a second port 12 of the first router 1 is connected to a first port 31 of the second switch 3. Furthermore, a second port 22 of the first switch 2 and a fourth port 34 of the second switch 3 are interconnected.
[0027] Furthermore, a third port 23 of the first switch 2 is connected to a first port 41 of a second router 4, via whose second port 42 a first automation cell 101 with its switch 110 is connected to the higher-level network segment 100. A second automation cell 102 and a third automation cell 103 are connected to the higher-level network segment 100 via the second switch 3. The second automation cell 102 is connected via its switch 120 to a third port 33 of the second switch 3, while the third automation cell 103 is connected via its switch 130 to a second port 32 of the second switch 3.
[0028] The programmable logic controllers 111, 121, 131 and the input / output units 112, 122, 132 each comprise integrated or associated communication modules or devices and are used to control a machine or a technical system, for example, a robot or a conveyor device. In particular, the programmable logic controllers 111, 121, 131 each comprise at least one central unit. The input / output units 112, 122, 132 are used to exchange control and measured variables between the respective programmable logic controller 111, 121, 131 or input / output unit 112, 122, 132 and a controlled machine or device. The central units of the programmable logic controllers 111, 121, 131 determine suitable control variables for the respective machine or device based on the recorded measured variables.
[0029] Using a configuration tool implemented by a control program, VLAN port configuration markers EOV (End of VLAN), VCT (VLAN Calculation Termination), and VCEO (VLAN Calculation End Outbound) can be defined on a graphical user interface for the automated VLAN configuration of a communication network comprising multiple VLANs. The control program can be loaded into the RAM of a computer or virtual machine and includes at least one code section. When the control program is running on the computer or virtual machine, the following steps are executed.
[0030] During VLAN configuration, a VLAN port operating mode is defined for each VLAN, starting from communication end devices at ports of switches or routers along paths assigned to the respective VLAN, depending on the use of the respective port by the respective VLAN. Paths assigned to a VLAN include, in particular, selected paths over which frames assigned to the respective VLAN are transmitted.
[0031] The VLAN port operating modes each comprise at least a trunk mode (T) and an untagged mode (U). Data frames or frames that include a VLAN identifier assigned to the respective VLAN are forwarded via a port if the port is configured in trunk mode (T) for the respective VLAN. Furthermore, incoming frames (ingress) that do not include a VLAN identifier are forwarded via a port with the insertion of a VLAN identifier if the port is configured for the respective VLAN with respect to incoming frames in untagged mode (U). In contrast, outgoing frames (egress) that include a VLAN identifier assigned to the respective VLAN are forwarded via a port with the removal of the VLAN identifier if the port is configured for the respective VLAN with respect to outgoing frames in untagged mode (U).
[0032] In the present embodiment, the VLAN port operating modes each additionally include a forbidden mode (F). Forwarding of incoming or outgoing frames containing a VLAN identifier assigned to the respective VLAN via a port can be permanently blocked, non-dynamically, if the port is configured for the respective VLAN with respect to incoming or outgoing frames in forbidden mode (F). The VLAN port operating modes can be specified for each port of a switch or router with respect to the respective VLAN, differentiated by incoming and outgoing data traffic (ingress / egress) in a VLAN configuration table for the respective switch or router.
[0033] VLAN segment boundaries are defined using the first VLAN port configuration tags (EOV). Incoming and outgoing frames on the respective port are assigned to the same VLAN. Furthermore, the second VLAN port configuration tags (VCT) set boundaries for tracing the paths assigned to the respective VLAN to determine the VLAN port operating modes. In contrast, the third VLAN port configuration tags (VCEO) set boundaries for tracing the paths assigned to the respective VLAN only with regard to outgoing frames to determine the VLAN port operating modes. These VLAN port configuration tags control the tracing of the paths assigned to the respective VLAN and the automatic configuration of the ports encompassed by these paths based on the definition of the VLAN port operating modes.
[0034] In the present exemplary embodiment, the paths assigned to the respective VLAN for determining the VLAN port operating modes are tracked starting from each communication terminal assigned to the respective VLAN. For a VLAN without assigned communication terminals, the paths assigned to the respective VLAN for determining the VLAN port operating modes are tracked starting from at least one selected switch or router assigned to the respective VLAN. A switch or router at a lowest topological level of the communication network within the respective VLAN segment boundary can be selected for tracking the paths assigned to the respective VLAN.
[0035] To define VLAN segment boundaries for the automation cells 101-103, each of which is to be assigned a separate VLAN, a first VLAN port configuration mark EOV on the second port 42 of the second router 4, on the second port 32 of the second switch 3 and on the third port 33 of the second switch 3 (see Figur 1 ). Accordingly, a VLAN 1 is set up for the higher-level network segment 100, a VLAN 10 for the first automation cell 101, a VLAN 20 for the second automation cell 200, and a VLAN 30 for the third automation cell 103.
[0036] Since tracing the paths for VLAN 10, VLAN 20, VLAN 30 should preferably end at the next topologically superior router, in the present embodiment a second VLAN port configuration tag VCT on both ports 11-12 of the first router 1 and on the first port 41 of the second router 2 Furthermore, the paths for VLAN 20 and VLAN 30 should not be traced into topologically subordinate network segments. For this reason, Figure 1 on the third Port 23 of the first switch 2 has a third VLAN port configuration tag VCEO set.
[0037] With the set VLAN port configuration tags, the Figuren 2-5 For a configuration of VLAN 10, VLAN 20, VLAN 30 and VLAN 1, the paths to be followed are highlighted by thick lines. When configuring VLAN 10, the paths include Figur 2 a transmission path 201 between the second router 4 and the switch 110 of the first automation cell 101, a transmission path 202 between the switch 110 and the programmable logic controller 111 of the first automation cell 101, and a transmission path 203 between the switch 110 and the input / output unit 112 of the first automation cell 101.
[0038] Since the tracking of the paths assigned to the respective VLAN to determine the VLAN port operating modes is carried out according to the above explanations starting from each communication terminal assigned to the respective VLAN, the Figur 2 highlighted paths for configuring VLAN 10 are followed both from the programmable logic controller 111 and from the input / output unit 112 of the first automation cell 101.
[0039] Initially, VLAN 1 for the parent network segment 100 is configured in untagged mode (U) on all ports of routers 1, 4 and switches 2-3 within the VLAN segment boundaries defined by the first VLAN port configuration tags EOV for VLAN 1, both for incoming frames (E) and for outgoing frames (A).
[0040] For the first router 1, the following VLAN configuration table (E=incoming / Ingress Frames, A=outgoing / Egress Frames) results for its ports 11-12 (P1-P2) after initial configuration of VLAN 1 and completed configuration of VLAN 10: Router 1 P1 P2 E A E A VLAN 1 U U U U
[0041] The first router 1 is used to Figur 2 no frames assigned to VLAN 10 are transmitted. Therefore, the above VLAN configuration table does not include an entry for VLAN 10. This also applies to the VLAN configuration tables shown below for the first switch 2 and the second switch 3.
[0042] For the first switch 2, the following VLAN configuration table results for its ports 21-23 (P1-P3) after initial configuration of VLAN 1 and completed configuration of VLAN 10: Switch 2 P1 P2 P3 E A E A E A VLAN 1 U U U U U U
[0043] For the second switch 3, the following VLAN configuration table results for its ports 31-34 (P1-P4) after initial configuration of VLAN 1 and completed configuration of VLAN 10: Switch 3 P1 P2 P3 P4 E A E A E A E A VLAN 1 U U U U U U U U
[0044] Basically, a VLAN that includes communication terminal devices without VLAN functionality and at whose VLAN segment boundary frames assigned to the VLAN are forwarded via a port on which a first VLAN port configuration tag EOV is set is configured at the respective port for incoming and outgoing frames in untagged mode (U). At each port on which a first VLAN port configuration tag EOV is set, only one VLAN is ever configured for incoming frames (E) and outgoing frames (A) in untagged mode (U). Accordingly, VLAN 10 on the second port 42 of the second router 4 is configured for incoming frames (E) and for outgoing frames (A) in untagged mode (U).
[0045] For the second router 4, the following VLAN configuration table results for its ports 41-42 (P1-P2) after initial configuration of VLAN 1 and completed configuration of VLAN 10: Router 4 P1 P2 E A E A VLAN 1 U U VLAN 10 U U
[0046] When configuring VLAN 20, the paths to be followed include Figur 3 two transmission links 301, 302 from the first router 1 to the first switch 2 and second switch 3, respectively, a transmission link 303 between the first switch 2 and the second switch 3, a transmission link 304 between the second switch 3 and the switch 120 of the second automation cell 102, a transmission link 305 between the switch 120 and the programmable logic controller 121 of the second automation cell 102, and a transmission link 306 between the switch 120 and the input / output unit 122 of the second automation cell 102.
[0047] Since the tracking of the paths assigned to the respective VLAN to determine the VLAN port operating modes is carried out according to the above explanations starting from each communication terminal assigned to the respective VLAN, the Figur 3 highlighted paths for configuring VLAN 20 are followed both from the programmable logic controller 121 and from the input / output unit 122 of the second automation cell 102.
[0048] Basically, any VLAN whose assigned frames are forwarded via a port on which a second VLAN port configuration tag (VCT) is set is configured for outgoing frames in trunk mode on the respective port. Accordingly, VLAN 20 on both ports 11-12 of the first router 1 is configured for outgoing frames (A) in trunk mode (T). This also results in the configuration of VLAN 1 on these ports 11-12 being changed to trunk mode (T) for outgoing frames (A).
[0049] For the first router 1, the following VLAN configuration table results for its ports 11-12 (P1-P2) after initial configuration of VLAN 1 and completed configuration of VLAN 10 and VLAN 20: Router 1 P1 P2 E A E A VLAN 1 U T U T VLAN 20 T T
[0050] Since incoming frames (E) assigned to VLAN 20 are not filtered on any of ports 11-12, the above VLAN configuration table for the first router 1 does not contain any information in this regard. This also applies to subsequent VLAN configuration tables and unfiltered incoming frames (E).
[0051] Basically, any VLAN that has no associated incoming frames on a port where a third VLAN port configuration flag VCEO is set is configured for outgoing frames (A) in forbidden mode (F) on that port. Conversely, any VLAN that has associated incoming frames (E) on a port where a third VLAN port configuration flag VCEO is set is configured for outgoing frames (A) in trunk mode (T) on that port. Accordingly, VLAN 20 on the third port 23 of the first switch 2 is configured for outgoing frames (A) in forbidden mode (F), while VLAN 1 on that port 23 is configured for outgoing frames (A) in trunk mode (T).
[0052] Ports 21-22 of the first switch 2 are according to Figur 3 are included in the paths for VLAN 20 and are therefore configured for this VLAN in trunk mode (T) with respect to outgoing frames (A). This also results in the configuration of VLAN 1 on these ports 21-22 being changed to trunk mode (T) for outgoing frames (A).
[0053] For the first switch 2, the following modified VLAN configuration table results for its ports 21-23 (P1-P3) after initial configuration of VLAN 1 and completed configuration of VLAN 10 and VLAN 20: Switch 2 P1 P2 P3 E A E A E A VLAN 1 U T U T U T VLAN 20 T T F
[0054] Since a configuration for a VLAN that includes communication terminals without VLAN functionality and at whose VLAN segment boundary frames assigned to the VLAN are forwarded via a port on which a first VLAN port configuration mark EOV is set is carried out at the respective port for incoming and outgoing frames in accordance with the above explanations in untagged mode (U), VLAN 20 is configured on the third port 33 of the second switch 3 for incoming frames (E) and for outgoing frames (A) in untagged mode (U).
[0055] The ports 31, 34 of the second switch 3 are according to Figur 3 are included in the paths for VLAN 20 and are therefore configured for this VLAN in trunk mode (T) with respect to outgoing frames (A). This also results in the configuration of VLAN 1 on these ports 31, 34 being changed to trunk mode (T) for outgoing frames (A).
[0056] For the second switch 3, the following modified VLAN configuration table results for its ports 31-34 (P1-P4) after initial configuration of VLAN 1 and completed configuration of VLAN 10 and VLAN 20: Switch 3 P1 P2 P3 P4 E A E A E A E A VLAN 1 U T U U U T VLAN 20 T U U T
[0057] For the second router 4, the following unchanged VLAN configuration table results for its ports 41-42 (P1-P2) after initial configuration of VLAN 1 and completed configuration of VLAN 10 and VLAN 20: Router 4 P1 P2 E A E A VLAN 1 U U VLAN 10 U U
[0058] When configuring VLAN 30, the paths to be followed include Figur 4 two transmission links 401, 402 from the first router 1 to the first switch 2 and second switch 3, respectively, a transmission link 403 between the first switch 2 and the second switch 3, a transmission link 404 between the second switch 3 and the switch 130 of the third automation cell 103, a transmission link 405 between the switch 130 and the programmable logic controller 131 of the third automation cell 103, and a transmission link 406 between the switch 130 and the input / output unit 132 of the third automation cell 103.
[0059] Since the tracking of the paths assigned to the respective VLAN to determine the VLAN port operating modes is carried out according to the above explanations starting from each communication terminal assigned to the respective VLAN, the Figur 4 highlighted paths for configuring VLAN 30 are followed both from the programmable logic controller 131 and from the input / output unit 132 of the third automation cell 103.
[0060] Since a configuration for each VLAN whose assigned frames are forwarded via a port on which a second VLAN port configuration mark VCT is set is carried out on the respective port for outgoing frames in trunk mode as described above, VLAN 30 is configured on both ports 11-12 of the first router 1 for outgoing frames (A) in trunk mode (T).
[0061] For the first router 1, the following modified VLAN configuration table results for its ports 11-12 (P1-P2) after initial configuration of VLAN 1 and completed configuration of VLAN 10, VLAN 20 and VLAN 30: Router 1 P1 P2 E A E A VLAN 1 U T U T VLAN 20 T T VLAN 30 T T
[0062] Since a configuration for each VLAN that has no associated incoming frames on a port on which a third VLAN port configuration mark VCEO is set is carried out on the respective port for outgoing frames (A) in forbidden mode (F) as described above, VLAN 30 on the third port 23 of the first switch 2 is configured for outgoing frames (A) in forbidden mode (F).
[0063] Ports 21-22 of the first switch 2 are according to Figur 4 of the paths for VLAN 30. Accordingly, ports 21-22 of the first switch 2 are configured for this VLAN with respect to outgoing frames (A) in trunk mode (T).
[0064] For the first switch 2, the following modified VLAN configuration table results for its ports 21-23 (P1-P3) after initial configuration of VLAN 1 and completed configuration of VLAN 10, VLAN 20 and VLAN 30: Switch 2 P1 P2 P3 E A E A E A VLAN 1 U T U T U T VLAN 20 T T F VLAN 30 T T F
[0065] Since a configuration for a VLAN that includes communication terminal devices without VLAN functionality and at whose VLAN segment boundary frames assigned to the VLAN are forwarded via a port on which a first VLAN port configuration mark EOV is set is carried out at the respective port for incoming and outgoing frames in accordance with the above explanations in untagged mode (U), VLAN 30 is configured at the second port 32 of the second switch 3 for incoming frames (E) and for outgoing frames (A) in untagged mode (U).
[0066] The ports 31, 34 of the second switch 3 are according to Figur 4 encompasses the paths for VLAN 30. Accordingly, ports 31 and 34 of the second switch 3 are configured for this VLAN with respect to outgoing frames (A) in trunk mode (T). For the second switch 3, the following modified VLAN configuration table results for its ports 31-34 (P1-P4) after initial configuration of VLAN 1 and completed configuration of VLAN 10, VLAN 20, and VLAN 30: Switch 3 P1 P2 P3 P4 E A E A E A E A VLAN 1 U T U T VLAN 20 T U U T VLAN 30 T U U T
[0067] For the second router 4, the following unchanged VLAN configuration table results for its ports 41-42 (P1-P2) after initial configuration of VLAN 1 and completed configuration of VLAN 10, VLAN 20 and VLAN 30: Router 4 P1 P2 E A E A VLAN 1 U U VLAN 10 U U
[0068] In the final configuration of VLAN 1, the paths to be followed include Figur 5 two transmission links 501, 502 from the first router 1 to the first switch 2 and second switch 3, respectively, a transmission link 503 between the first switch 2 and the second switch 3, and a transmission link 504 between the first switch 2 and the second router 4.
[0069] According to the above, in a VLAN without assigned communication terminals, the paths assigned to the respective VLAN are tracked to determine the VLAN port operating modes starting from at least one selected switch or router assigned to the respective VLAN, in particular from a switch or router at a lowest topological level of the communication network within the respective VLAN segment boundary. In the present embodiment, this is the second router 4 for VLAN 1.
[0070] In pursuing the Figur 5 The highlighted paths for configuring VLAN 1 do not result in any significant changes compared to the previous explanations. It should only be noted that the paths for configuring VLAN 1 are not traced from a communications terminal device without VLAN functionality, but rather from the second router 4 with VLAN functionality. Accordingly, the configuration for VLAN 1 on the first port 41 of the second router 4 is changed to trunk mode (T) with regard to outgoing frames (A).
[0071] For the first router 1, the following unchanged VLAN configuration table results for its ports 11-12 (P1-P2) after completing the configuration of VLAN 1, VLAN 10, VLAN 20 and VLAN 30: Router 1 P1 P2 E A E A VLAN 1 U T U T VLAN 20 T T VLAN 30 T T
[0072] For the first switch 2, the following unchanged VLAN configuration table results for its ports 21-23 (P1-P3) after completing the configuration of VLAN 1, VLAN 10, VLAN 20 and VLAN 30: Switch 2 P1 P2 P3 E A E A E A VLAN 1 U T U T U T VLAN 20 T T F VLAN 30 T T F
[0073] For the second switch 3, the following unchanged VLAN configuration table results for its ports 31-34 (P1-P4) after completing the configuration of VLAN 1, VLAN 10, VLAN 20 and VLAN 30: Switch 3 P1 P2 P3 P4 E A E A E A E A VLAN 1 U T U T VLAN 20 T U U T VLAN 30 T U U T
[0074] Port 41 of the second router 4 is according to Figur 5 of the paths for VLAN 1, and the second router 4 does not represent a communication device without VLAN functionality. Therefore, port 41 of the second router 4 is configured for VLAN 1 with respect to outgoing frames (A) in trunk mode (T).
[0075] For the second router 4, the following modified VLAN configuration table results for its ports 41-42 (P1-P2) after completing the configuration of VLAN 1, VLAN 10, VLAN 20 and VLAN 30: Router 4 P1 P2 E A E A VLAN 1 U T VLAN 10 U U
[0076] In addition to the VLAN port configuration tags EOV, VCT, VCEO, Figur 6VLAN multicast configuration tags are set to control the automated configuration of a separate multicast VLAN for transmitting multicast frames within a multicast scope comprising multiple VLANs. To forward multicast frames between communication end devices in two different VLANs, a multicast VLAN is set up that couples the two VLANs together. This multicast VLAN includes forwarding communication devices in both VLANs, communication end devices in both VLANs, and forwarding communication devices along at least one path between the two VLANs. The multicast VLAN that couples the two VLANs is generally configured for outgoing multicast frames in trunk mode (T) on the respective port of the communication devices forwarding the multicast frames.
[0077] In the present exemplary embodiment, an exchange of multicast data traffic is to be enabled between communication terminals 111', 112' in the first automation cell 101, on the one hand, and communication terminals 131', 132' in the third automation cell 103, on the other. At least on the transmitter side, the communication terminals 111', 112', 131', 132' have VLAN functionality for this purpose. An exchange of multicast data traffic between communication terminals that are initially assigned to different VLANs may be desired, for example, if GOOSE (IEC 61850-8-1) or OPC UA publishers and subscribers are to communicate with each other across automation cells.
[0078] First VLAN multicast configuration tags (MCA) are used to define VLAN segment boundaries for transmitting multicast frames within a multicast area comprising multiple VLANs. Furthermore, second VLAN multicast configuration tags (MCFD) are used to define forwarding communication devices 1-4, 110, 130 within the multicast area. In the present embodiment, these are the first router 1, the first switch 2, the second switch 3, the switch 110 of the first automation cell, and the switch 130 of the third automation cell 103.
[0079] Furthermore, third VLAN multicast configuration tags MCED are used to define communication terminals 111', 112', 131', 132' that send or receive multicast frames within the respective multicast area. In the present exemplary embodiment, these are the programmable logic controller 111' and the input / output unit 112' of the first automation cell 101, as well as the programmable logic controller 131' and the input / output unit 132' of the third automation cell 103. Based on the VLAN multicast configuration tags, the VLAN port operating mode of the ports assigned to the respective multicast area of the communication devices forwarding multicast frames is defined for each multicast area.
[0080] A separate multicast VLAN 40 is set up for the multicast area defined according to the first VLAN multicast configuration tags MCA. Ports between communication devices 1-4, 110, 130 that forward multicast frames assigned to the same multicast area, defined according to the second VLAN multicast configuration tags MCFD, are generally configured in trunk mode (T) for multicast VLAN 40. In addition, ports on communication devices 110, 130 that forward multicast frames, to which communication terminals 111', 112', 131', 132', defined according to the third VLAN multicast configuration tags MCED and assigned to the same multicast area are connected, are configured in trunk mode (T) for multicast VLAN 40.Preferably, ports on communication devices forwarding multicast frames to which no communication terminals are connected, which are defined by third VLAN multicast configuration tags MCED or assigned to a multicast area, are configured in forbidden mode (F) for the respective multicast VLAN. However, no such ports exist in the present embodiment.
Claims
1. Method for automated configuration of a communications network comprising multiple virtual local area networks, in which - for each virtual local area network, VLAN, starting from communication terminals (111-112, 121-122, 131-132) on ports of switches (2-3, 110, 120, 130) and / or routers (1, 4) along paths (201-203, 301-306, 401-406, 501-504) assigned to the respective VLAN, a VLAN port operating mode is respectively defined depending on the usage of the respective port by the respective VLAN, - using first VLAN port configuration tags (EOV), VLAN segment boundaries are defined, wherein inbound and outbound frames on the respective port are assigned to the same VLAN, - using second VLAN port configuration tags (VCT), limits are set for tracing the paths assigned to the respective VLAN to define the VLAN port operating modes, - using third VLAN port configuration tags (VCEO), limits for tracing the paths assigned to the respective VLAN are set only in respect of outbound frames to define the VLAN port operating modes, - the tracing of the paths assigned to the respective VLAN, and a configuration of the ports included in these paths, which is based on the definition of the VLAN port operating modes, are controlled using the VLAN port configuration tags.
2. Method according to Claim 1, in which the VLAN port operating modes each comprise at least a trunk mode and an untagged mode, in which frames comprising a VLAN identifier assigned to the respective VLAN are forwarded via a port if the port is configured for the respective VLAN in the trunk mode, in which inbound frames that do not include a VLAN identifier are forwarded via a port after inserting a VLAN identifier if the port is configured for the respective VLAN in untagged mode with respect to inbound frames, and in which outbound frames that comprise a VLAN identifier assigned to the respective VLAN are forwarded via a port after removing the VLAN identifier if the port is configured for the respective VLAN in untagged mode with respect to outbound frames.
3. Method according to Claim 2, in which a VLAN, which comprises communication terminals (111-112, 121-122, 131-132) without VLAN functionality and at the VLAN segment boundary of which frames assigned to the VLAN are forwarded via a port at which a first VLAN port configuration tag (EOV) is set, is configured in untagged mode for inbound and outbound frames on the respective port.
4. Method according to Claim 3, in which only one VLAN is configured in untagged mode for inbound and outbound frames on the respective port on which a first VLAN port configuration tag (EOV) is set.
5. Method according to any of Claims 2 to 4, in which each VLAN, the assigned frames of which are forwarded via a port on which a second VLAN port configuration tag (VCT) is set, is configured in trunk mode for outbound frames on the respective port.
6. Method according to any of Claims 2 to 5, in which the VLAN port operating modes each additionally comprise a forbidden mode, in which forwarding of inbound or outbound frames comprising a VLAN identifier assigned to the respective VLAN is permanently blocked in a non-dynamically modifiable manner via a port if this port is configured in forbidden mode for the respective VLAN with respect to inbound or outbound frames, and in which each VLAN that has no assigned inbound frames on a port on which a third VLAN port configuration tag (VCEO) is set, is configured in forbidden mode for outbound frames on the respective port.
7. Method according to any of Claims 2 to 6, in which each VLAN that has assigned inbound frames on a port, on which a third VLAN port configuration tag (VCEO) is set, is configured in trunk mode for outbound frames on the respective port.
8. Method according to any of Claims 2 to 7, in which first VLAN multicast configuration tags (MCA) are used to define VLAN segment boundaries for transmission of multicast frames within a multicast domain comprising multiple VLANs, in which second VLAN multicast configuration tags (MCFD) are used to define communication devices (1-4, 110, 130) forwarding multicast frames within the multicast domain, in which third VLAN multicast configuration tags (MCED) are used to define communication terminals (111', 112', 131', 132') sending and / or receiving multicast frames within the respective multicast domain, and in which for each multicast domain, the VLAN multicast configuration tags are used in each case to define the VLAN port operating mode of the ports of the communication devices forwarding multicast frames that are assigned to the respective multicast domain.
9. Method according to Claim 8, in which at least one separate multicast VLAN (40) is configured for the multicast domain defined in accordance with the first VLAN multicast configuration tags (MCA), in which ports between communication devices (1-4, 110, 130) forwarding multicast frames assigned to the same multicast domain and defined in accordance with the second VLAN multicast configuration tags (MCFD) are configured in trunk mode for the respective multicast VLAN, and in which ports on communication devices (110, 130) forwarding multicast frames, to which communication terminals (111', 112', 131', 132') assigned to the same multicast domain and defined in accordance with the third VLAN multicast configuration tags (MCED) are connected, are configured in trunk mode for the respective multicast VLAN (40).
10. Method according to Claim 9, in which the VLAN port operating modes each comprise a forbidden mode and in which ports on communication devices forwarding multicast frames, to which no communication terminals are connected that are defined by third VLAN multicast configuration tags and / or are assigned to a multicast domain, are configured in forbidden mode for the respective multicast VLAN.
11. Method according to any of Claims 8 to 10, in which, for forwarding multicast frames between communication terminals (111', 112', 131', 132') in two different VLANs, a multicast VLAN (40) coupling the two VLANs to one another is configured, which comprises forwarding communication devices (110, 130) in both VLANs, communication terminals (111', 112', 131', 132') in both VLANs, and forwarding communication devices (1-4) along at least one path between the two VLANs, and in which the multicast VLAN (40) coupling the two VLANs is configured in trunk mode for outbound multicast frames on the respective port of the communication devices (1-4, 110, 130) forwarding the multicast frames.
12. Method according to any of Claims 1 to 11, in which paths assigned to a VLAN comprise selected paths that are used to transmit frames assigned to the respective VLAN.
13. Method according to any of Claims 1 to 12, in which the tracing of the paths assigned to the respective VLAN to define the VLAN port operating modes is carried out starting from each communication terminal assigned to the respective VLAN.
14. Method according to any of Claims 1 to 12, in which the tracing of the paths assigned to the respective VLAN to define the VLAN port operating modes for a VLAN with no assigned communication terminals is carried out starting from at least one selected switch or router assigned to the respective VLAN.
15. Method according to Claim 14, in which in order to trace the paths assigned to the respective VLAN, a switch or router is selected at the lowest topological layer of the communication network within the respective VLAN segment boundary.
16. Control program for carrying out a method according to any of Claims 1 to 15, wherein the control program can be loaded in a working memory of a computer or a virtual machine and has at least one code section, during the execution of which - for each virtual local area network, VLAN, starting from communication terminals (111-112, 121-122, 131-132) on ports of switches (2-3, 110, 120, 130) and / or routers (1, 4) along paths (201-203, 301-306, 401-406, 501-504) assigned to the respective VLAN, a VLAN port operating mode is respectively defined depending on the usage of the respective port by the respective VLAN, - using first VLAN port configuration tags (EOV), VLAN segment boundaries are defined, wherein inbound and outbound frames on the respective port are assigned to the same VLAN, - using second VLAN port configuration tags (VCT), limits are set for tracing the paths assigned to the respective VLAN to define the VLAN port operating modes, - using third VLAN port configuration tags (VCEO), limits for tracing the paths assigned to the respective VLAN are set only in respect of outbound frames to define the VLAN port operating modes, - the tracing of the paths assigned to the respective VLAN and a configuration of the ports included in these paths, which is based on the definition of the VLAN port operating modes, are controlled using the VLAN port configuration tags, when the control program is running in the computer or in the virtual machine.
