Communication control unit and communication control method
The communication control device optimizes communication paths by prioritizing physical interfaces based on hub connection status, addressing path ambiguity and re-learning delays in daisy chain and hub-connected devices.
Patent Information
- Application Number
- JP2023072174
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-11-08
AI Technical Summary
When communication devices connected in a daisy chain use virtual communication interfaces, it is unclear which physical communication interface becomes the active path, leading to communication disruptions and delays in re-learning Ethernet addresses when switching paths.
A communication control device that includes a setting mechanism to prioritize physical communication interfaces based on connection status to a network hub, using determining means to set or cancel priority settings based on hub connection, ensuring smooth communication by minimizing path switching during disconnections and reconnections.
Enables seamless communication by reducing interruptions and delays in communication devices using virtual communication interfaces, particularly in daisy chain and hub-connected configurations.
Smart Images

Figure 2024157679000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication device and a communication control method. [Background technology]
[0002] Patent Document 1 describes a technology that uses multiple physical communication I / Fs as one virtual communication I / F. Patent Document 1 also describes a technology that uses the virtual communication I / F in active-backup mode. Patent Document 2 describes a technology that daisy-chains communication devices that have multiple physical communication I / Fs. I / F is an abbreviation for Interface. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2021-180385 A [Patent Document 2] JP 2017-211828 A Summary of the Invention [Problem to be solved by the invention]
[0004] When each communication device has two virtual communication I / Fs, the multiple physical communication I / Fs of the virtual communication I / Fs can be daisy-chained. However, when two daisy-chained communication devices are started, it is unclear which physical communication I / F of the virtual communication I / Fs will become the active communication path. For this reason, when the physical communication I / F that becomes the active communication path of one communication device is connected to the backup communication path of the physical communication I / F of the other communication device, the two communication devices will be unable to communicate.
[0005] In addition, one of two daisy-chained communication devices may be connected to a network hub. The network hub learns the addresses of Ethernet packets passing through the connection port and determines the connection port to use. When using a virtual communication I / F, the Ethernet addresses of the physical communication I / Fs that make up the virtual communication I / F use the same addresses. Therefore, when switching the active communication path of the physical communication I / F of the virtual communication I / F, it takes time to re-learn the packets, and it takes time for communication to resume. An object of the present invention is to enable smooth communication in a communication device that uses a virtual communication I / F. [Means for solving the problem]
[0006] In order to solve the above problem, a communication control device according to one embodiment of the present invention is a communication control device for a communication device having a virtual communication interface composed of a plurality of physical communication interfaces, and includes a setting means for setting a physical communication interface to be used preferentially from among the plurality of physical communication interfaces, and a determination means for determining whether any of the plurality of physical communication interfaces is connected to a specified communication device, wherein if the determination means determines that none of the plurality of physical communication interfaces is connected to the specified communication device, the setting means sets the physical communication interface to be used preferentially, and if the determination means determines that any of the plurality of physical communication interfaces is connected to the specified communication device, the setting means does not set the physical communication interface to be used preferentially. Effect of the Invention
[0007] According to the present invention, smooth communication can be performed in a communication device that uses a virtual communication I / F. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing a configuration of a communication device according to an embodiment of the present invention. [Diagram 2]FIG. 2 is a diagram showing an example of a network system including a plurality of the communication devices shown in FIG. [Diagram 3] 1A and 1B are diagrams illustrating disconnection and recovery of a daisy chain connection portion. [Figure 4] 5A and 5B are diagrams illustrating disconnection and recovery of a hub connection portion. [Diagram 5] 6 is a flowchart of a hub connection determination unit according to the first embodiment. [Figure 6] 13 is a flowchart of a packet relay unit according to the second embodiment. [Figure 7] 10 is a flowchart of a hub connection determination unit according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the present invention, and not all of the combinations of features described in the embodiments are necessarily essential to the solution of the present invention. The configuration of the embodiments may be appropriately modified or changed depending on the specifications of the device to which the present invention is applied and various conditions (conditions of use, environment of use, etc.). The technical scope of the present invention is determined by the claims, and is not limited by the individual embodiments below. Also, parts of each embodiment may be appropriately combined. In all figures, parts having the same function are given the same reference symbols, and repeated explanations thereof will be omitted.
[0010] EMBODIMENT 1 1 shows an example of the configuration of a communication device 101 according to this embodiment. The communication device 101 has a CPU 102, a ROM 103, a DRAM 104, a file system 105, and a bus 106. CPU is an abbreviation for Central Processing Unit. ROM is an abbreviation for Read Only Memory. DRAM is an abbreviation for Dynamic Random Access Memory. The communication device 101 also has a packet relay unit 107, a hub connection determination unit 108, and a priority communication I / F setting cancellation unit 109. The priority communication I / F setting cancellation unit 109 may be referred to as the priority communication I / F setting unit 109 in the following description.
[0011] The CPU 102 performs overall control of the communication device 101. For example, the CPU 102 performs reception processing of received packets. The CPU 102 is made up of one or more processors. ROM 103 stores programs (e.g., communication software, communication applications, and communication device control programs) executed by CPU 102. ROM 103 also stores parameters necessary for communication. ROM 103 may store a boot program for booting an operating system (OS) from file system 105. The DRAM 104 is used as a working memory for the communication device 101. Instead of the DRAM 104, or in addition to the DRAM 104, a RAM or an SRAM may be used. SRAM is an abbreviation for Static Random Access Memory.
[0012] The file system 105 stores system programs such as an operating system and application programs, and is configured from, for example, a flexible disk, a hard disk, an optical disk, a memory card, or the like. A bus 106 connects the components (102 to 105, 107 to 111) of the communication device 101 to each other. The packet relay unit 107 performs relay processing of a received packet. For example, the packet relay unit 107 relays (transmits) a packet received from an external communication device (for example, the network hub 201 in FIG. 2) to the downstream communication device 101.
[0013] Hub connection determination unit 108 determines which of the two physical communication I / F units 110-1, 110-3 has received the hub connection determination packet. In other words, hub connection determination unit 108 monitors all physical communication I / F units that make up the virtual communication I / F unit. Hub connection determination unit 108 also has a counter, and can clear (set to 0) or increment (add +1) the counter value. The priority communication I / F setting unit 109 of this embodiment sets or cancels the priority communication I / F setting based on whether or not the network hub 201 is connected to the communication device 101-1.
[0014] The communication device 101 also has four physical communication I / F units 110-1, 110-2, 110-3, and 110-4. In the following description, the physical communication I / F unit 110-1 may be referred to as a physical communication I / F unit 1, and the physical communication I / F unit 110-2 may be referred to as a physical communication I / F unit 2. The physical communication I / F unit 110-3 may be referred to as a physical communication I / F unit 3, and the physical communication I / F unit 110-4 may be referred to as a physical communication I / F unit 4. The physical communication I / F units 110-1 to 110-4 are MACs that control Ethernet (registered trademark). MAC is an abbreviation for Media Access Control. The physical communication I / F units 110-1 to 110-4 are denoted as Ether1 to Ether4 in FIG. 1. The four physical communication I / F units 110-1 to 110-4 may be referred to as a physical communication I / F unit 110. The two virtual I / F units 111-1 and 111-2 may be referred to as a virtual I / F unit 111.
[0015] Furthermore, the communication device 101 has two virtual communication I / F units 111-1 and 111-2. In Fig. 1, the virtual communication I / F unit 111-1 is denoted as virtual I / Fa, and the virtual communication I / F unit 111-2 is denoted as virtual I / Fb. The virtual communication I / F unit 111-1 combines the physical communication I / F unit 110-1 and the physical communication I / F unit 110-3. The virtual I / F unit 111-2 combines the physical communication I / F unit 110-2 and the physical communication I / F unit 110-4.
[0016] A case will be described where the virtual communication I / F unit 111-1 and the virtual communication I / F unit 111-2 are operating in the active backup mode. In the active backup mode, one of the two physical communication I / F units grouped together by the virtual communication I / F unit is set as an active communication path, and the other is set as a backup communication path. For example, when the virtual communication I / F unit 111-1 is operating in the active backup mode, the physical communication I / F unit 110-1 is set as the active communication path, and the physical communication I / F unit 110-3 is set as the backup communication path. The virtual communication I / F unit sends and receives packets only from the physical communication I / F unit that is set as the active communication path. The physical communication I / F unit that is set as the backup communication path does not transmit packets and discards received packets. If a disconnection of the active communication path is detected, the backup communication path becomes the active communication path. If a disconnection of the backup communication path is detected, the active communication path continues to be used as is.
[0017] The communication software in the communication device 101 communicates using the virtual communication I / F unit 111-1 and the virtual communication I / F unit 111-2, rather than the physical communication I / F units 110-1 to 110-4. The communication application in the communication device 101 communicates using the virtual communication I / F unit 111-1 and the virtual communication I / F unit 111-2, improving fault tolerance against disconnection of the physical communication path (active communication path, backup communication path).
[0018] One or more of the functional blocks (108, 109) shown in FIG. 1 may be realized by a programmable processor such as the CPU 102 executing software. At least one of the functional blocks may be implemented as hardware. When the functional blocks are implemented as hardware, for example, a specific compiler may be used to automatically generate a dedicated circuit on the FPGA from a program for realizing each step. FPGA stands for Field Programmable Gate Array. The functional blocks may be realized as hardware by forming a gate array circuit in the same manner as the FPGA. The functional blocks may be realized by an ASIC (Application Specific Integrated Circuit). Even when different functional blocks are described as operating subjects in this specification, the same hardware may be realized as the subject.
[0019] Fig. 2 shows an example of a communication system 200 in which multiple communication devices 101 are daisy-chained. Each of the multiple communication devices 101 aggregates multiple physical communication I / F units to form multiple virtual communication I / F units, which are daisy-chained together, thereby achieving redundancy. Fig. 2 shows two of the multiple communication devices 101, communication device 101-1 and communication device 101-2. Communication device 101-1 is connected to a network hub 201. Network hub 201 may be referred to as hub 201 in the following description.
[0020] The hub 201 has four connection ports 202-1, 202-2, 202-3, and 202-4. The hub 201 is connected to an information processing device 203 and a hub connection determination device 204. The hub connection determination device 204 communicates with the communication device 101-1 and the communication device 101-2 via the hub 201. The information processing device 203 communicates with the communication device 101-1 and the communication device 101-2 via the hub 201. Note that the components of the communication device 101, that is, the CPU 102, the ROM 103, the DRAM 104, the file system 105, the bus 106, and the priority communication I / F setting unit 109, are not shown in FIG. The connection ports 202-1 to 202-4 of the hub 201 may be referred to as ports 202-1 to 202-4 in the following description.
[0021] The information processing device 203 is, for example, a personal computer. The information processing device 203 has a monitor device (display) 203a. The information processing device 203 displays images (moving images, still images) received via the hub 201 on the monitor device 203a. The hub connection determination device 204 determines whether the communication device 101 is connected to the hub 201, and outputs (transmits) a packet indicating the determination result. In the following description, the packet indicating the determination result may be referred to as a hub connection determination packet.
[0022] Packets received by virtual communication I / F unit 111-1 and virtual communication I / F unit 111-2 are not only subjected to reception processing by CPU 102, but are also passed to packet relay unit 107, which performs relay processing of the received packets. Packet relay unit 107 relays packets by transmitting broadcast packets and multicast packets received by virtual communication I / F unit 111-1, and packets not addressed to itself, from virtual communication I / F unit 111-2. Packet relay unit 107 similarly transmits packets received by virtual communication I / F unit 111-2 from virtual communication I / F unit 111-1. Packet relay unit 107 can relay hub connection determination packets and other packets.
[0023] In active-backup mode, a prioritized communication I / F can be set for the physical communication I / F that is grouped together by the virtual communication I / F. When a prioritized communication I / F is set, if all of the multiple physical communication I / Fs grouped together by the virtual communication I / F are available, the physical communication I / F set as the prioritized communication I / F is set as the active communication path.
[0024] For example, the physical communication I / F unit 110-2 of the communication device 101-1 and the physical communication I / F unit 110-1 of the communication device 101-2 in FIG. 2 are set as the priority communication I / F unit by the priority communication I / F setting unit 109. Reference numeral 205 denotes a line (transmission path) connecting the physical communication I / F unit 110-2 of the communication device 101-1 and the physical communication I / F unit 110-1 of the communication device 101-2. It is assumed that the communication devices 101-1 and 101-2 are started simultaneously, and the physical communication I / F unit 110-2 and the physical communication I / F unit 110-4 of the communication device 101-1 are available for use. It is also assumed that the physical communication I / F unit 110-1 and the physical communication I / F unit 110-3 of the communication device 101-2 are available for use. At this time, the physical communication I / F unit 110-2 set as the priority communication I / F unit of the communication device 101-1 is selected as the active communication path, and the physical communication I / F unit 110-1 of the communication device 101-2 is selected as the active communication path. As a result, the physical communication I / F unit 110-1 connected to the physical communication I / F unit 110-2 of the active communication path also becomes an active communication path. When the communication device 101-1 and the communication device 101-2 are daisy-chained in this way, it is desirable to set a priority communication I / F unit.
[0025] On the other hand, the communication path between the hub 201 and the communication device 101-1 is determined as follows. Assume that the communication device 101-1 reconnects to the hub 201 after the physical communication I / F set as the priority communication I / F in the communication device 101-1 connected to the hub 201 is disconnected. When reconnected, the communication device 101-1 uses the physical communication I / F set as the priority communication I / F even though it can continue communication using a physical communication I / F not set as the priority communication I / F. In other words, the physical communication I / F used is switched to the physical communication I / F set as the priority communication I / F. At this time, the hub 201 re-learns the packets, and a period occurs during which no communication is performed between the hub 201 and the communication device 101-1. In order to avoid the occurrence of periods of no communication, it is desirable not to set a priority communication I / F unit in the physical communication I / F units 110-1 and 110-3 of the communication device 101-1 when the communication device 101-1 connects to the hub 201.
[0026] As shown by x in FIG. 3(a), it is assumed that the line 205 connecting the physical communication I / F unit 110-2 of the communication device 101-1 and the physical communication I / F unit 110-1 of the communication device 101-2 is disconnected. At this time, the physical communication I / F unit 110-4 of the communication device 101-1 and the physical communication I / F unit 110-3 of the communication device 101-2 become active communication paths. Reference numeral 206 denotes a line (transmission path) connecting the physical communication I / F unit 110-4 of the communication device 101-1 and the physical communication I / F unit 110-3 of the communication device 101-2. When the disconnection is recovered from the state of FIG. 3(a) as shown in FIG. 3(b), the physical communication I / F unit 110-2 of the communication device 101-1 and the physical communication I / F unit 110-1 of the communication device 101-2 become active communication paths, and communication can be continued even when the disconnection is recovered. In this way, when the virtual communication I / F unit of communication device 101-1 and the virtual communication I / F of communication device 101-2 are daisy-chained, if multiple physical lines can be used simultaneously, it is desirable to set a priority communication I / F unit in order to select a specific line.
[0027] It is assumed that a priority communication I / F is set in the physical communication I / F unit 110-1 of the communication device 101-1. As shown by x in Fig. 4(a), when the port 202-3 of the hub 201 and the physical communication I / F unit 110-1 of the communication device 101-1 are disconnected, the physical communication I / F unit 110-3 of the communication device 101-1 becomes the active communication path. The physical communication I / F unit 110-3 of the communication device 101-1 is connected to the port 202-4 of the hub 201.
[0028] After that, it is assumed that the disconnected line between the communication device 101-1 and the hub 201 is restored from the state shown in FIG. 4(a) to the state shown in FIG. 4(b). When the line is restored, the active communication path of the communication device 101-1 is switched from the physical communication I / F unit 110-3 to the physical communication I / F unit 110-1, which is the priority communication I / F unit. The hub 201 receives and learns packets from the port 202-3, and then starts using the port 202-3. Since this learning takes time, the hub 201 and the communication device 101-1 are temporarily unable to communicate. In other words, when the hub 201 is connected to the communication device 101-1, it is desirable to continue to use the physical communication I / F unit 110-3 as shown in FIG. 4(c) without switching the active communication path from the physical communication I / F unit 110-3 to the physical communication I / F unit 110-1.
[0029] In this embodiment, the hub connection determination device 204 is connected to the hub 201, and determines whether or not each communication device 101 is connected to the hub 201. When the hub connection determination device 204 determines that the communication device 101 is connected to the hub 201, the hub connection determination device 204 sends a hub connection determination packet indicating the determination result to the communication device 101. For example, the hub connection determination device 204 sends a hub connection determination packet indicating that the communication device 101-1 is connected to the hub 201 to the communication device 101-1. When the hub connection determination unit 108 of the communication device 101-1 receives the hub connection determination packet, the priority communication I / F setting unit 109 of the communication device 101-1 does not set a priority communication I / F unit. When the hub connection determination device 204 determines that the communication device 101-2 is not connected to the hub 201 and sends a packet indicating the determination result to the communication device 101-2, the hub connection determination unit 108 of the communication device 101-2 receives the hub connection determination packet. Then, the priority communication I / F setting unit 109 of the communication device 101-2 sets the priority communication I / F. Note that when it is determined that the communication device 101-1 is connected to the hub 201, if a priority communication IF has already been set in the communication device 101-1, the priority communication I / F setting unit 109 of the communication device 101-1 cancels the setting.
[0030] In the communication system 200, the hub connection determination device 204 periodically transmits a hub connection determination packet by broadcast or multicast. The hub connection determination unit 108 of the communication device 101 in the first embodiment checks packets received by the physical communication I / F units 110-1 and 110-3. In other words, the hub connection determination unit 108 can determine whether or not the physical communication I / F units 110-1 and 110-3 have received a hub connection determination packet.
[0031] Fig. 5 is a flowchart showing the processing of the hub connection determination unit 108 of the communication devices 101-1 and 101-2 of this embodiment. Fig. 5 also shows how the communication devices 101-1 and 101-2 set the physical communication I / F unit 110-1 (physical communication I / F unit 1) as the priority I / F unit (or cancel the priority I / F setting) based on the processing result of the hub connection determination unit 108. In the figure, S stands for Step. The processing of each step in Fig. 5 is executed by the hub connection determination unit 108 and the priority communication I / F setting unit 109. Note that, among the processing executed by the communication device 101-2, a description of the processing similar to that of the communication device 101-1 will be omitted. First, in S501, the hub connection determination unit 108 clears port_1_flag, port_3_flag, and counter (sets them to 0). Then, the priority communication I / F setting unit 109 sets the physical communication I / F unit 110-1 and the physical communication I / F unit 110-2 as the priority communication I / F unit.
[0032] Next, the hub connection determination unit 108 waits to receive a hub connection determination packet (S502). When reception of the hub connection determination packet is confirmed, the hub connection determination unit 108 increments the counter value by 1 (S503). If the hub connection determination packet is received by the physical communication I / F unit 110-1 (S504: Yes), the hub connection determination unit 108 sets port_1_flag to 1 (S505). If the hub connection determination packet has not been received by the physical communication I / F unit 110-1 (S504: No), it means that the hub connection determination packet has been received by the physical communication I / F unit 110-3. Therefore, the hub connection determination unit 108 sets 1 to port_3_flag (S506).
[0033] Next, the hub connection determination unit 108 determines whether the value of port_1_flag is 1 and the value of port_3_flag is 1 (S507). If this is the first time that a hub connection determination packet has been received, either port_1_flag or port_3_flag remains 0, so the determination result in S507 is No, and the process proceeds to S510. In S510, hub connection determination unit 108 determines whether the value of counter is 2. If this is the first time a hub connection determination packet has been received, the value of counter is also 1, so the determination result in S510 is No, and the process returns to S502 and waits for reception of a hub connection determination packet.
[0034] In the case of the communication device 101-1 connected to the hub 201, the physical communication I / F unit 110-1 and the physical communication I / F unit 110-3 each receive a hub connection determination packet. That is, the communication device 101-1 receives two hub connection determination packets from the hub connection determination device 204. Therefore, when the value of counter is 2 in S507, port_1_flag is 1 and port_3_flag is also 1 (S507: Yes). Therefore, the hub connection determination unit 108 of the communication device 101-1 determines that the virtual communication I / F 111-1 and the physical communication I / Fs 110-1 and 110-3 are connected to the hub 201. If the determination result in S507 is Yes, the process proceeds to S508.
[0035] In S508, the hub connection determination unit 108 determines whether the physical communication I / F unit 110-1 has been set as the priority communication I / F unit. If the result of the determination in S508 is Yes, the priority communication I / F setting unit 109 cancels the priority setting of the physical communication I / F unit 110-1 (S509), and ends this flow. If it is determined in S508 that the physical communication I / F unit 110-1 has not been set as the priority communication I / F unit (S508: No), this flow ends.
[0036] The communication device 101-1 discards the packet received on the backup communication path and transmits the packet received on the active communication path from the active communication path. The communication device 101-2, which is not connected to the hub 201, receives the hub connection determination packet only from the physical communication I / F unit that is the active communication path. Therefore, in the communication device 101-2, even if the hub determination packet is received twice in S507, if the active communication path is the physical communication I / F unit 110-1, only port_1_flag becomes 1 (S507: No), and the process proceeds to S510. If the active communication path is the physical communication I / F unit 110-3, only port_3_flag becomes 1 (S507: No), and the process proceeds to S510. If the counter is 2 in S510 (S510: Yes), the hub connection determination unit 108 determines whether or not a priority communication I / F unit is set (S511). If the physical communication I / F unit 110-1 is set as the priority communication I / F unit (S511: Yes), this flow ends. If the physical communication I / F unit 110-1 is not set as the priority communication I / F unit (S511: No), the priority communication I / F setting unit 109 sets the physical communication I / F unit 110-1 as the priority communication I / F unit (S512).
[0037] With the above configuration, it is possible to determine that the communication device 101-1 is connected to the hub 201, and to remove (cancel) the setting of the priority communication I / F of the physical communication I / F unit 110-1 that is integrated by the virtual communication I / F unit 111-1. Also, it is possible to determine that the communication device 101-2 is not connected to the hub 201, and to set the physical I / F unit 110-1 that is integrated by the virtual communication I / F unit 111-1 as the priority communication I / F.
[0038] As described above, according to this embodiment, a priority communication I / F is not set in the physical communication I / F unit 110 between the communication device 101-1 and the hub 201, and if a priority communication I / F has been set, it is cancelled. This prevents unnecessary switching of the active communication path when communication is disconnected due to the insertion or removal of a cable in the physical communication I / F unit 110 and then recovered. This makes it difficult for communication to be interrupted. When the physical communication I / F unit 110 constituting the virtual communication I / F unit is connected to the hub 201, if there is a communication I / F unit that is used preferentially, the hub 201 may re-learn packets when recovering from a disconnection, causing communication to be interrupted. In this embodiment, such communication interruptions do not occur.
[0039] Between the communication devices 101-1 and 101-2, a prioritized communication I / F is set in the physical communication I / F unit 110. By setting the physical communication I / F units 110 connected via the same line (e.g., line 205) as the prioritized communication I / F, a different active communication path is not selected during daisy chain connection. Therefore, the physical communication I / F used is not shifted, and communication between the communication devices 101-1 and 101-2 is not interrupted.
[0040] In this embodiment, the communication system 200 is provided with the hub connection determination device 204, but the information processing device 203 may have the function of the hub connection determination device 204. If the information processing device 203 frequently transmits packets by multicast or broadcast, the packets may be used as hub connection determination packets.
[0041] EMBODIMENT 2 A second embodiment of the present invention will be described with reference to Figs. 1, 2, 6, and 7. In the second embodiment, the packet relay unit 107 of the communication device 101-1 is configured not to relay the hub connection determination packet to the downstream communication device 101-2. Since the hub connection determination packet is not relayed to the daisy-chained communication device 101-2, it is possible to determine whether the communication device 101-1 is connected to the hub 201 or not based on whether the communication device 101-1 has received the hub connection determination packet. Furthermore, the hub connection determination unit 108 of the communication device 101 of the second embodiment has a not_hub connection counter. Other than this, the configuration of the communication device 101 is the same as that of the first embodiment (Fig. 1). The configuration of the communication system 200 of the second embodiment is also the same as that of the first embodiment (Fig. 2). In the second embodiment, it is assumed that the hub connection determination device 204 transmits a hub connection determination packet once per second, for example.
[0042] FIG. 6 is a flowchart showing the operation of the packet relay unit 107 of the communication device 101. First, in S601, the packet relay unit 107 waits for reception of packets from the virtual communication I / F unit 111-1 and the virtual communication I / F unit 111-2. In S602, the packet relay unit 107 judges whether the received packet is a multicast packet or a broadcast packet. If the received packet is neither a multicast packet nor a broadcast packet (S602: No), the process proceeds to S603. In S603, the packet relay unit 107 judges whether the received packet is addressed to itself. If the received packet is neither a multicast packet nor a broadcast packet and is addressed to itself (S603: Yes), there is no need to relay the received packet. Therefore, the process returns to S601, and the packet relay unit 107 waits for reception of a packet.
[0043] In S602, if the received packet is a multicast packet or a broadcast packet (S602: Yes), the process proceeds to S604. Also, in S603, if the received packet is not addressed to the device itself (S603: No), the process proceeds to S604. In S604, the packet relay unit 107 judges whether the received packet is a hub connection determination packet. If it is a hub connection determination packet (S604: Yes), the packet relay unit 107 does not relay the hub connection determination packet and waits for reception of the next packet (S601).
[0044] In S604, if the received packet is not a hub connection determination packet (S604: No), the process proceeds to S605, where the packet relay unit 107 relays the packet. More specifically, if the packet is a packet received by the virtual communication I / F unit 111-1 (S605: Yes), the packet relay unit 107 transmits the packet from the virtual communication I / F unit 111-2 (S607). If the packet is not a packet received by the virtual communication I / F unit 111-1 (S605: No), the packet is a packet received by the virtual communication I / F unit 111-2, and therefore the packet relay unit 107 transmits the packet from the virtual communication I / F unit 111-1 (S608). By the packet relay unit 107 operating as described above, only the communication device 101-1 connected to the hub 201 among the daisy-chained communication devices 101 receives the hub connection determination packet.
[0045] 7 is a flowchart of the hub connection determination unit 108 in the second embodiment. The hub connection determination unit 108 in the second embodiment may check both the physical communication I / F unit 110-1 and the physical communication I / F unit 110-3 to determine (determine) what kind of packet has been received. Furthermore, the hub connection determination unit 108 may check the packet received by the virtual communication I / F unit 111-1 instead of checking the packet received by the physical communication I / F units 110-1 and 110-3.
[0046] In S701, the hub connection determination unit 108 sets the not_hub connection counter to 0, and the priority communication I / F setting unit 109 sets the physical communication I / F unit 110-1 as the priority communication I / F unit. In S702, the hub connection determination unit 108 waits for reception of a hub connection determination packet. In S702, if one second has elapsed even if the hub connection determination packet has not been received, the process proceeds to S703. In S703, the hub connection determination unit 108 determines whether or not a hub connection determination packet has been received. If the hub connection determination packet has been received (S703: Yes), this means that the communication device 101 is connected to the hub 201. If the determination result in S703 is Yes, the process proceeds to S704.
[0047] In S704, the hub connection determination unit 108 determines whether a priority communication I / F is set in the physical communication I / F unit 110-1 that is consolidated by the virtual communication I / F unit 111-1. If the determination result in S704 is Yes, the process proceeds to S705, where the priority communication I / F setting unit 109 cancels the setting of the priority communication I / F. If a priority communication I / F is not set in the physical communication I / F unit 110-1 in S704 (S704: No), the hub connection determination unit 108 waits again to receive a hub connection determination packet (S702).
[0048] If the hub connection determination packet has not been received in S703 (if one second has passed without receiving the hub connection determination packet in S702), the process proceeds to S706, where the hub connection determination unit 108 increments the not_hub connection counter by one. In S707, the hub connection determination unit 108 determines whether the not_hub connection counter is less than 3. If the determination result in S707 is Yes, the process returns to S702, and the hub connection determination unit 108 waits again to receive a hub connection determination packet. This is processing in preparation for the case where reception of the hub connection determination packet fails for some reason.
[0049] If the number of hub connection determination packets is three or more in S707 (S707: No), the process proceeds to S708, where the hub connection determination unit 108 sets the not_hub connection counter to zero. In S709, the hub connection determination unit 108 determines whether or not a priority communication I / F unit has been set in the physical communication I / F unit 110-1 of the virtual communication I / F unit 111-1. If a priority communication I / F unit has not been set (S709: No), the process proceeds to S710, where the priority communication I / F setting unit 109 sets the physical communication I / F unit 110-1 as the priority communication I / F unit. Thereafter, the process returns to S702, where the hub connection determination unit 108 waits again to receive a hub connection determination packet. If it is determined in S709 that the priority communication I / F unit has been set (S709: Yes), the process returns to S702.
[0050] With the above configuration, communication device 101-1 does not send a hub connection determination packet to communication device 101-2 that is daisy-chained to communication device 101-1. Therefore, according to the second embodiment, in addition to the effects obtained in the first embodiment, it is possible to reduce the amount of communication between the two daisy-chained communication devices 101-1 and 101-2.
[0051] <Other embodiments> The present invention can be embodied as, for example, a system, an apparatus, a method, a program, or a recording medium (storage medium), etc. Specifically, the present invention may be applied to a system composed of multiple devices (for example, a host computer, an interface device, a Web application, etc.), or may be applied to an apparatus composed of a single device.
[0052] The present invention can also be realized by supplying a program (computer program) that realizes one or more functions of the above-mentioned embodiments to a system or device via a network or a recording medium (storage medium). One or more processors in the computer of the system or device read and execute the program. In this case, the program (program code) itself read from the recording medium realizes the functions of the embodiment. Also, the recording medium on which the program is recorded can constitute the present invention.
[0053] In addition, not only can the functions of the embodiments be realized by the computer executing a program it has read, but the functions of the above-mentioned embodiments can also be realized by an operating system (OS) running on the computer performing some or all of the actual processing based on the instructions of the program.
[0054] Furthermore, after the program read from the recording medium is written into a memory provided on a function expansion card inserted into a computer or a function expansion unit connected to the computer, a CPU provided on the function expansion card or function expansion unit may perform some or all of the actual processing based on the instructions of the program, and the functions of the above-mentioned embodiments may be realized through this processing. The above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by them. In other words, the present invention can be implemented in various forms without departing from its technical concept or main characteristics.
[0055] The disclosure of this embodiment includes the following configuration, method, and program. Configuration 1 A communication control device for a communication device having a virtual communication interface composed of a plurality of physical communication interfaces, a setting means for setting a physical communication interface to be used with priority from among the plurality of physical communication interfaces; a determination means for determining whether the plurality of physical communication interfaces are connected to a predetermined communication device; having When the determining means determines that none of the plurality of physical communication interfaces is connected to the predetermined communication device, the setting means sets the physical communication interface to be preferentially used, A communication control device characterized in that, when the determination means determines that any one of the plurality of physical communication interfaces is connected to the specified communication device, the setting means does not set the physical communication interface to be used preferentially.
[0056] Configuration 2 The communication control device according to configuration 1, characterized in that when the determination means determines that the plurality of physical communication interfaces are connected to the specified communication device, if the physical communication interface to be preferentially used has already been set, the setting means cancels the setting. Configuration 3 2. The communication control device according to configuration 1, wherein the predetermined communication device is a network hub. Configuration 4 a packet transmission device is connected to the network hub, and the packet transmission device transmits a determination packet to the communication device indicating whether the network hub is connected to the communication device; 4. The communication control device according to configuration 3, wherein, when the determination packet is received by all of the plurality of physical communication interfaces, the determination means determines that the plurality of physical communication interfaces are connected to the network hub.
[0057] Configuration 5 5. The communication control device according to configuration 4, wherein when the determination packet is received by only one of the plurality of physical communication interfaces, the determination means determines that the plurality of physical communication interfaces are not connected to the network hub. Configuration 6 a packet transmission device is connected to the network hub, and the packet transmission device transmits a determination packet to the communication device indicating whether the network hub is connected to the communication device; The communication device has a relay unit capable of relaying the determination packet and other packets to another communication device, and the relay unit does not relay the determination packet, 4. The communication control device according to configuration 3, wherein, when the relay unit receives the determination packet, the determination unit determines that the plurality of physical communication interfaces are connected to the network hub. Configuration 7 7. The communication control device according to configuration 6, wherein, if the relay means does not receive the determination packet, the determination means determines that the plurality of physical communication interfaces are not connected to the network hub.
[0058] Configuration 8 8. The communication control device according to any one of configurations 1 to 7, wherein the virtual communication interface and the plurality of physical communication interfaces are used in an active-backup mode. Method 1 A communication control method for controlling a communication device having a virtual communication interface composed of a plurality of physical communication interfaces, comprising: determining whether the plurality of physical communication interfaces are connected to a predetermined communication device; a step of setting a physical communication interface to be used preferentially from among the plurality of physical communication interfaces when the step of determining determines that none of the plurality of physical communication interfaces is connected to the predetermined communication device; a step of not setting the preferentially used physical communication interface when it is determined in the determining step that any one of the plurality of physical communication interfaces is connected to the predetermined communication device; A communication control method comprising: Program 1 A program for causing a computer to function as each of the means of the communication control device according to any one of configurations 1 to 8. [Explanation of symbols]
[0059] 101 communication device, 107 packet relay unit, 108 hub connection determination unit, 109 priority communication I / F setting cancellation unit, 110 physical communication I / F unit, 111 virtual communication I / F unit, 201 network hub, 204 hub connection determination device
Claims
1. A communication control device for a communication device having a virtual communication interface composed of a plurality of physical communication interfaces, a setting means for setting a physical communication interface to be used with priority from among the plurality of physical communication interfaces; a determination means for determining whether the plurality of physical communication interfaces are connected to a predetermined communication device; having When the determining means determines that none of the plurality of physical communication interfaces is connected to the predetermined communication device, the setting means sets the physical communication interface to be preferentially used, A communication control device characterized in that, when the determination means determines that any one of the plurality of physical communication interfaces is connected to the specified communication device, the setting means does not set the physical communication interface to be used preferentially.
2. 2. The communication control device according to claim 1, characterized in that when the determination means determines that the plurality of physical communication interfaces are connected to the specified communication device, if the physical communication interface to be preferentially used has already been set, the setting means cancels the setting.
3. 2. The communication control device according to claim 1, wherein the predetermined communication device is a network hub.
4. a packet transmission device is connected to the network hub, and the packet transmission device transmits a determination packet to the communication device indicating whether the network hub is connected to the communication device; 4. The communication control device according to claim 3, wherein, when the determination packet is received by all of the plurality of physical communication interfaces, the determining means determines that the plurality of physical communication interfaces are connected to the network hub.
5. 5. The communication control device according to claim 4, wherein when the determination packet is received by only one of the plurality of physical communication interfaces, the determination means determines that the plurality of physical communication interfaces are not connected to the network hub.
6. a packet transmission device is connected to the network hub, and the packet transmission device transmits a determination packet to the communication device indicating whether the network hub is connected to the communication device; The communication device has a relay unit capable of relaying the determination packet and other packets to another communication device, the relay unit not relaying the determination packet, 4. The communication control device according to claim 3, wherein, when said relay means receives said determination packet, said determination means determines that said plurality of physical communication interfaces are connected to said network hub.
7. 7. The communication control device according to claim 6, wherein, if said relay means does not receive said determination packet, said determination means determines that said plurality of physical communication interfaces are not connected to said network hub.
8. 8. The communication control device according to claim 1, wherein the virtual communication interface and the plurality of physical communication interfaces are used in an active / backup mode.
9. A communication control method for controlling a communication device having a virtual communication interface composed of a plurality of physical communication interfaces, comprising: determining whether the plurality of physical communication interfaces are connected to a predetermined communication device; a step of setting a physical communication interface to be used preferentially from among the plurality of physical communication interfaces when it is determined in the determining step that none of the plurality of physical communication interfaces is connected to the predetermined communication device; a step of not setting the preferentially used physical communication interface when it is determined in the determining step that any one of the plurality of physical communication interfaces is connected to the predetermined communication device; A communication control method comprising:
10. A program for causing a computer to function as each of the means of the communication control device according to claim 1.
Citation Information
Patent Citations
Image processing system, image processor, control method, and program
JP2017211828A
Communication device, control method of the same, and program
JP2021180385A
