Communication apparatus and communication method
The communication device achieves reliable packet redundancy through middleware-based path management, reducing device count and ensuring high reliability in confined spaces.
Patent Information
- Application Number
- JP2023029538
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2043-02-28
AI Technical Summary
Existing communication systems require additional devices for data redundancy, increasing the number of devices needed, which is impractical in confined spaces where installing a relay device is difficult.
A communication device that redundantly converts packets into multiple transmission packets via multiple communication paths using middleware, without increasing the number of physical devices, by employing a redundancy control unit that manages and routes packets through available paths.
Ensures high reliability of communication while minimizing device count, reducing failure points and costs, especially in challenging environments.
Smart Images

Figure 00000000_0000
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a communication device and a communication method. [Background technology]
[0002] Conventionally, in the field of communications, in order to improve the reliability of networks, server redundancy and packet redundancy have been implemented. For example, Patent Document 1 discloses a communications system in which data is made redundant between a transmitting device and a receiving device and transmitted to a plurality of networks, and the redundant data is unified on the receiving side. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2015-097349 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the technology described in Patent Document 1, a transmitting device makes data from a processing device that executes an application that transmits data redundant. Therefore, a transmitting device that functions as a data relay device is required in addition to the processing device, which causes a problem of increasing the number of devices. For this reason, it is difficult to ensure high reliability of communication used for remote operation of a device in a place where it is difficult to install a relay device, such as a narrow place where people cannot enter.
[0005] An object of the present disclosure is to provide a communication device and a communication method that are capable of making packets redundant while suppressing an increase in the number of devices. [Means for solving the problem]
[0006] A communication device according to one aspect of the present disclosure is a communication device that is communicatively connected to an external device via multiple communication paths, and has a recording unit and a processor, wherein the recording unit records an application and middleware, and the processor executes the application to realize an application unit that sends packets addressed to the external device, and the processor executes the middleware to realize a redundancy control unit that converts packets sent from the application unit into multiple transmission packets corresponding to each of the multiple communication paths, and transmits each transmission packet to the external device via the multiple communication paths. Effect of the Invention
[0007] According to the present invention, it is possible to provide redundancy to packets while suppressing an increase in the number of devices. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 illustrates a communication system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram illustrating a packet configuration. [Diagram 3] 11 is a flowchart illustrating an example of a route management process. [Figure 4] 11 is a flowchart for explaining an example of a life-or-death confirmation process. [Diagram 5] FIG. 2 is a diagram illustrating an example of a hardware configuration of a terminal. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0010] Fig. 1 is a diagram showing a communication system according to an embodiment of the present disclosure. The communication system shown in Fig. 1 includes terminals A and B, which are connected to each other so as to be able to communicate with each other via a plurality of communication paths 1 to n.
[0011] Terminal A has a communication application unit A101, a virtual network interface A121, a routing / IP address setting unit A131, a route management unit A132, an encapsulation unit A133, a decapsulation unit A134, and a plurality of NICs (Network Interface Cards) A151 to A15n. Terminal B has a configuration equivalent to that of terminal A. In the following, the elements of terminal B corresponding to the elements of terminal A are assigned with a reference character obtained by replacing the letter "A" of the reference character assigned to the elements of terminal A with "B". Therefore, for example, the communication application unit of terminal B corresponding to the communication application unit A101 of terminal A is assigned with the reference character "B101". In the following, the functions of terminal A will be described, and the functions of terminal B will be omitted as appropriate because they are equivalent to those of terminal A.
[0012] NICA151-A15n are communication devices corresponding to a plurality of communication paths 1-n, respectively, and have different IP addresses. In this embodiment, NICA151-A15n have IP addresses A1-An, respectively. n may be an integer of 2 or more. In other words, the number of NICs and communication paths is not limited as long as there are multiple NICs and communication paths. NICA151-A15n transmit packet A112, which will be described later, to terminal B, and receive packet A112 from terminal B.
[0013] The communication application unit A101 is realized by an application (application program) that performs data communication. The communication application unit A101 transmits a packet A111 addressed to a terminal B, which is an external device.
[0014] The virtual network interface A121 is a virtual NIC realized by software, and has an IP address α1 as the source IP address of the packet A111.
[0015] The routing / IP address setting unit A131 is, for example, realized by middleware, and is a routing setting unit that manages routing within the device of terminal A. For example, the routing / IP address setting unit A131 assigns an IP address α1 to the virtual network interface A121 of its own terminal A in advance, and further sets the IP address α1 of the virtual network interface A121 in the routing table A122 as a gateway for the network address of the IP address β1 of the virtual network interface B121 of the communication partner terminal B. As a result, the routing / IP address setting unit A131 can route the packet A111 sent from the communication application unit A101 and addressed to terminal B (more specifically, addressed to the IP address β1 of the virtual network interface B121 of terminal B) to the virtual network interface A121 of its own terminal A by the routing table A122.
[0016] The route management unit A132, the encapsulating unit A133, and the decapsulating unit A134 are realized by middleware, and constitute a redundancy control unit that makes the packet A111 sent from the communication application unit A101 redundant and transmits the packet A111 to the terminal B that is the destination of the packet A111.
[0017] The route management unit A132 checks whether each of the communication paths 1 to n is available, and adds the check result to the route management table A141. Specifically, the route management unit A132 periodically transmits a live / dead check packet A113 to the terminal B using each of the communication paths 1 to n to check whether the communication paths 1 to n can be used. In addition, the route management unit A132 checks whether the communication paths 1 to n can be used based on the live / dead check packet B113 from the terminal B for each of the communication paths 1 to n. For example, when the route management unit A132 receives the live / dead check packet B113 for each communication path within a certain period, it determines that the communication path is available, and when the route management unit A132 does not receive the live / dead check packet within the certain period, it determines that the communication path is not available for communication. Then, the route management unit A132 sets the availability of each of the communication paths 1 to n as a route state in the route management table A141.
[0018] The path management table A141 is information indicating the path status of each communication path. In this embodiment, the path status in the path management table A141 indicates "Up" when the communication path is available, and indicates "Down" when the communication path is not available.
[0019] The encapsulating unit A133 harvests the packet A111, which is sent from the communication application unit A101 and routed to the virtual network interface A121, from the virtual network interface A121. The encapsulating unit A133 identifies the destination terminal (terminal B in this case) of the harvested packet A111 by using the destination-source correspondence table A142. The destination-source correspondence table A142 is preset information that indicates the correspondence relationship between the destination and the source of the packet A111.
[0020] Furthermore, the encapsulating unit A133 duplicates the harvested packet A111 into a plurality of transmission packets A112 corresponding to each of the available paths, which are communication paths in an available state among the plurality of communication paths 1 to n, based on the path management table A141. Then, the encapsulating unit A133 transmits the packets A112 corresponding to each of the available paths to terminal B (specifically, to the NICs corresponding to the available paths among NICs B151 to B15n of terminal B) via the NICs corresponding to the available paths among NICs A151 to A15n.
[0021] The packet A111 is made redundant by adding a header to the packet A111 according to each of the communication paths 1 to n (specifically, available paths).
[0022] FIG. 2 is a diagram for explaining the redundancy of the packet A111, and shows the configurations of packets A111 and A112.
[0023] 2, the packet A111 includes application data 10 and an IP header 11. The application data 10 is data of the communication application unit A101. The IP header 11 includes the IP address α1 of the virtual network interface A121 of the terminal A as the source IP address, and includes the IP address of the virtual network interface B121 of the terminal B as the destination IP address.
[0024] On the other hand, packet A112 includes a sequence header 12 and an additional IP header 13 in addition to application data 10 and IP header 11. The sequence header 12 includes a sequence number that specifies the order of the packets. The sequence number is managed for each combination of source and destination, and the same sequence number is assigned to multiple packets A112 that are made redundant from the same packet A111. The additional IP header 13 includes the IP address of the NIC in terminal A that corresponds to packet A112, and the IP address of the NIC in terminal B that corresponds to that NIC. Note that NICB151-NIC15n of terminal B have IP addresses B1-Bn, respectively.
[0025] The sequence header 12 and the additional IP header 13 are added to the packet A111 by the encapsulating unit A133. Hereinafter, the process of adding the sequence header 12 and the additional IP header 13 to the packet A111 in the encapsulating unit A133 to make it redundant may be referred to as encapsulation.
[0026] Returning to the explanation of Fig. 1, the decapsulating unit A134 receives packets B112, which are external device packets transmitted from the terminal B via an available route, from the NICs A151 to A15n. When there are multiple packets B112 including the same sequence number, the decapsulating unit A134 keeps only the earliest received packet among the multiple packets B112 and discards the rest.
[0027] The decapsulating unit B131 sends packet B114, which is a received packet obtained by decapsulating the received packet B112 to remove the sequence header and IP header, to the communication application unit A101. Specifically, the packet B114 sent from the decapsulating unit B131 is routed to the virtual network interface A121 of the terminal A by the routing table A122. Then, the packet B114 routed to the virtual network interface A121 is harvested by the communication application unit A101.
[0028] Furthermore, the decapsulating unit B131 may detect a missing packet, a reversal of the packet arrival order, etc., based on the sequence number in the packet B112. When a reversal of the packet arrival order is detected, the decapsulating unit B131 may temporarily save the packets in the memory 52 (see FIG. 5) or the like, rearrange the packets in the correct order, and send them to the communication application unit A101, thereby correcting the packet arrival order.
[0029] In the above explanation, the configuration of terminal A has been described, but as described above, terminal B has a similar configuration, and therefore mutual communication is possible between terminals A and B. However, terminal A may be the transmitting side and terminal B the receiving side. Also, although the number of terminals is shown as one transmitting side and one receiving side in the figure, it is possible to increase or decrease the number of terminals to any desired number. Also, the encapsulating unit A133 and the like may be provided with a packet encryption function, a communication function with response confirmation, a retransmission control function using a protocol such as TCP (Transmission Control Protocol), and a teaming function.
[0030] FIG. 3 is a flowchart for explaining an example of the route management process performed by the route management unit A132.
[0031] In the route management process, the route management unit A132 waits for a time period equivalent to one predetermined route monitoring cycle (step S301). After one cycle has elapsed, the route management unit A132 executes a live / dead confirmation process to confirm whether the communication routes 1 to n are available (step S302), and then returns to the process of step S301.
[0032] Fig. 4 is a flowchart for explaining an example of the alive / dead confirmation process in step S302 in Fig. 3. The alive / dead confirmation process is performed for each of the communication paths 1 to n.
[0033] In the alive / dead confirmation process, the route management unit A132 confirms whether or not a alive / dead confirmation packet corresponding to a target communication route has been received from the terminal B (step S401).
[0034] If a live / dead confirmation packet is received (step S401: Yes), the route management unit A132 determines that the target communication route is available, sets the route status of the target communication route in the route management table A141 to "Up" (step S402), and terminates the processing.
[0035] On the other hand, if the live / dead confirmation packet has not been received (step S401: No), the route management unit A132 determines whether a certain time has elapsed since the start of the live / dead confirmation process (step S403).
[0036] If the fixed time has elapsed (step S403: Yes), the route management unit A132 determines that the target communication route is not available, sets the route status of the target communication route in the route management table A141 to "Down" (step S404), and ends the process. On the other hand, if the fixed time has not elapsed (step S403: No), the route management unit A132 returns to the process of step S401.
[0037] Fig. 5 is a diagram showing an example of the hardware configuration of terminal A. As shown in Fig. 5, terminal A has a processor 51, a memory 52, a recording device 53, an input device 54, and a display device 55, which are connected via a bus 56. Terminal B can be realized by a device having the same hardware configuration as terminal A.
[0038] The recording device 53 is a device for recording data in a writable and readable manner, and records various information. For example, the recording device 53 records a program that defines the operation of the processor 51, a routing table A122, a path management table A141, and a destination-source correspondence table A142. The processor 51 reads the program recorded in the recording device 53 into the memory 52, and executes processing according to the program using the memory 52. The processor 51 realizes each unit (communication application unit A101, virtual network interface A121, routing / IP address setting unit A131, path management unit A132, encapsulating unit A133, and decapsulating unit A134) of the terminal A shown in FIG. 1. The input device 54 is a device into which various information is input from the user of the terminal A and an external device (not shown), and the information is used for processing by the processor 51. The display device 55 is a device for displaying various information.
[0039] As described above, according to this embodiment, the processor 51 executes an application to realize the communication application unit A101 that transmits the packet A111 addressed to the terminal B. The processor also executes middleware to realize a redundancy control unit that converts the packet A111 transmitted from the application unit into a plurality of packets A112 corresponding to each of the plurality of communication paths 1 to n, and transmits each packet A112 to the terminal B via the plurality of communication paths 1 to n. Therefore, since it is possible to make the packet A111 redundant in the terminal A, it is possible to make the packet A111 redundant while suppressing an increase in the number of devices. Furthermore, since the packet A111 is made redundant by the middleware, it is possible to make the packet A111 redundant in the terminal A without changing the application. Therefore, it is possible to ensure high reliability of communication used for remote work of a device in a place where it is difficult to install a relay device, such as a narrow place where people cannot enter. Furthermore, it is possible to reduce the number of places where a failure may occur and to reduce costs.
[0040] In this embodiment, the redundancy control unit intercepts and makes redundant the packet A111 sent from the communication application unit A101 and routed to the virtual network interface A121. This makes it possible to accurately deliver the packet A111 to the redundancy control unit.
[0041] Furthermore, in this embodiment, the redundancy control unit adds, for each NIC, an additional IP header including the IP address of the NIC and the IP address of terminal B corresponding to the NIC, and a sequence header including a sequence number indicating the order of packet A111 to packet A111 to generate a encapsulating packet as packet A112, thereby making packet A111 redundant. In this case, it is possible to make packet A111 redundant more appropriately.
[0042] Furthermore, in this embodiment, a sequence number is assigned to each combination of the source and destination of the packet A111, which makes it possible to assign the sequence number more appropriately.
[0043] In this embodiment, the redundancy control unit sends to the communication application unit A101 packet B113 obtained by deleting the additional IP header and sequence header from packet B111 from terminal B. This makes it possible to receive redundant packets from an external device without changing the communication application.
[0044] In this embodiment, the redundancy control unit discards all packets B112 other than the earliest received packet B112 among the multiple packets B112 received by each of the NICAs 151 to 15n. In this case, it is possible to suppress a decrease in communication speed while ensuring high reliability through redundancy.
[0045] Furthermore, in this embodiment, the routing / IP address setting unit A131 routes the packet B114 sent from the redundancy control unit to the application unit A101 via the virtual network interface A121. This makes it possible for the packet B114 to be delivered accurately to the communication application unit A101.
[0046] In this embodiment, the redundancy control unit checks whether each of the communication paths 1 to n is available, and converts the packet A111 into a packet A112 corresponding to each of the communication paths 1 to n that is available. In this case, the packet A111 can be efficiently converted into a redundant packet.
[0047] The above-described embodiments of the present disclosure are illustrative examples of the present disclosure, and are not intended to limit the scope of the present disclosure to only these embodiments. A person skilled in the art can implement the present disclosure in various other forms without departing from the scope of the present disclosure. [Explanation of symbols]
[0048] 1 to n: communication path 10: application data 11: IP header 12: sequence header 13: additional IP header 51: processor 52: memory 53: recording device 54: input device 55: display device 56: bus A, B: terminals A101, B101: communication application unit A121, B121: virtual network interface A131, B131: routing / IP address setting unit A132, B132: route management unit A133, B133: encapsulation unit A134, B134: decapsulation unit
Claims
1. A communication device communicatively connected to an external device via a plurality of communication paths, A memory and a processor, The memory stores applications and middleware; The processor executes the application to realize an application unit that transmits a packet addressed to the external device; The processor executes the middleware to realize a redundancy control unit that converts packets sent from the application unit into multiple transmission packets corresponding to each of the multiple communication paths, and transmits each transmission packet to the external device via the multiple communication paths.
2. A virtual network interface; a routing setting unit that routes a packet sent from the application unit to the virtual network interface; The communication device according to claim 1 , wherein the redundancy control unit cuts off packets routed to the virtual network interface and makes the packets redundant.
3. a plurality of NICs (Network Interface Cards) corresponding to the plurality of communication paths, 2. The communication device according to claim 1, wherein the redundancy control unit makes the packets redundant by generating, for each NIC, an encapsulating packet to which an additional IP header including an IP address of the NIC and an IP address of the external device corresponding to the NIC and a sequence header including a sequence number indicating the order of the packet are added as the transmission packet.
4. The communication device according to claim 3 , wherein the sequence number is assigned to each combination of a source and a destination of the packet.
5. Each of the plurality of NICs receives an external device packet that is the transmission packet of the external device; 4. The communication device according to claim 3, wherein the redundancy control unit transmits a received packet obtained by deleting the additional IP header and the sequence header from the external device packet to the application unit.
6. The communication device according to claim 5 , wherein the redundancy control unit discards all but the earliest received external device packet among the plurality of external device packets received by each of the plurality of NICs.
7. A virtual network interface; 2. The communication device according to claim 1, further comprising: a routing setting unit that routes a received packet sent from said redundancy control unit to said application unit via said virtual network interface.
8. 2. The communication device according to claim 1, wherein the redundancy control unit checks whether each of the plurality of communication paths is in an available state, and redundancies the packet into a plurality of transmission packets corresponding to each of the plurality of communication paths that are in an available state.
9. A communication method for a communication device communicatively connected to an external device via a plurality of communication paths, comprising: The communication device includes a memory and a processor. The memory stores applications and middleware; causing the processor to execute the application to realize an application unit that transmits a packet addressed to the external device; A communication method in which the processor executes the middleware to realize a redundancy control unit that converts packets sent from the application unit into multiple transmission packets corresponding to each of the multiple communication paths, and transmits each transmission packet to the external device via the multiple communication paths.
Citation Information
Patent Citations
Reception program, transmission program, transmission / reception system, and transmission / reception method
JP2008211682A
Transmission device, communication control method, and communication system
JP2015097349A
Communication method
WO2017119219A1
Cited By
Communication device and communication route change instruction method
EP4815399A1
Communication device and method for instructing changes to communication paths
JP2026160469A
