Communication system and program
The communication system for devices with multiple interfaces uses network and DNS information to accurately identify and connect to communication destinations, addressing the limitations of DNS-based route identification and enhancing communication efficiency.
Patent Information
- Application Number
- JP2023053053
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Existing communication systems struggle to accurately identify the communication route to a specific communication destination when connected to multiple networks, relying solely on DNS server name resolution, which may not provide sufficient information for route identification.
A communication system for an information processing device with multiple interfaces that associates network numbers with communication interfaces, using gateway route information and DNS server addresses to determine the correct interface for connection, enabling route identification and communication.
This approach allows for precise identification of communication routes, reduces the time required to determine the communication interface, supports host name specification, and enables connection to networks without gateways, even with multiple DNS servers.
Smart Images

Figure 2024141420000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication system and a program. [Background technology]
[0002] In an information processing device that communicates with an external device via a network, a configuration may be adopted in which multiple network adapters are provided and each is connected to a different network. In such a configuration, when it is unclear which network to connect to in order to connect to a specific communication destination, there is a conventional technology that identifies the communication destination using the result of name resolution by a DNS (Domain Name System) server on the network.
[0003] Patent Document 1 discloses a communication system that more securely performs name resolution for accessing other communication devices by acquiring information on an IP network to be accessed from among multiple IP networks, sending a name resolution request to a DNS server corresponding to the acquired IP network, and controlling so as not to send a name resolution request to DNS servers that do not correspond to the acquired IP network.
[0004] Patent Document 2 discloses a communication system that requests name resolution of a host name from an external party, and if the name resolution of the requested host name is successful, identifies a communication interface associated with the DNS server that succeeded in the name resolution, and registers in a routing table route information for communicating with an external device identified by the IP address obtained as a result of the name resolution via the identified communication interface. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent Publication No. 2021-118437 [Patent Document 2] Patent Publication No. 2021-197687 Summary of the Invention [Problem to be solved by the invention]
[0006] When sending data only to a specific destination on a specific network, it is necessary to identify the exact communication route to the destination. However, depending on the network configuration, it may not be possible to identify the communication route to the destination using only the results of name resolution by the DNS server.
[0007] The present invention aims to provide a communication system that is capable of identifying a communication path to a destination in an information processing device connected to multiple networks, as compared to a method of identifying a destination using the results of name resolution by a DNS server. [Means for solving the problem]
[0008] The present invention according to claim 1 is A communication system for an information processing device having a plurality of communication interfaces for connecting to a plurality of networks, one or more processors; The processor, determining, based on correspondence information associating a network number of a network that can be reached via a gateway in each of the plurality of connectable networks with a communication interface used to connect to the gateway, a communication interface to be used to connect to the network having a network number that matches a network number of a destination address, from among the plurality of communication interfaces; Connecting to a communication destination using the determined communication interface. The present invention relates to a communication system. The present invention according to claim 2 is The processor, acquiring route information from a gateway on each of the plurality of networks that can be connected using the plurality of communication interfaces; storing in a storage device correspondence information associating a network number of a network reachable via the gateway obtained from the acquired route information with a communication interface used to connect to the gateway; determining the communication interface for connecting to a network having a network number that matches a network number of a communication destination address based on the correspondence information stored in the storage device; The communication system according to claim 1, characterized in that The present invention according to claim 3 is The processor, 3. The communication system according to claim 2, wherein the route information is acquired according to a predetermined acquisition condition independent of the presence or absence of communication to the communication destination address. The present invention according to claim 4 is The processor, If the destination is specified by host name, the device requests name resolution from a DNS server that the device can connect to, A network number of the destination address obtained as a result of the name resolution is extracted, and a communication interface to be used for connecting to a network having a network number that matches the extracted network number is determined. The communication system according to claim 1, characterized in that The present invention according to claim 5 is storing DNS information in a storage device of the information processing device, the DNS information associating an address of a DNS server connectable using the plurality of communication interfaces with a communication interface among the plurality of communication interfaces that can be used to connect to the DNS server; The communication system according to claim 4, wherein the processor uses the DNS information to determine the communication interface to connect to the DNS server, and requests name resolution from the DNS server using the communication interface. The present invention according to claim 6 is The communication system of any of claims 1 to 5, characterized in that when the network number of any of the networks to which each of the multiple communication interfaces connects matches the network number of the communication destination address, the processor connects to the communication destination using the communication interface connected to the network with the matching network number, regardless of the correspondence information. The present invention according to claim 7 is The communication system according to claim 6, wherein the processor obtains a network number of the network based on an address of the device itself in the network to which each of the plurality of communication interfaces is connected and a subnet mask for the network. The present invention according to claim 8 is A program for controlling a computer that can be connected to multiple networks, The computer includes: a function of acquiring route information from a gateway on each of the plurality of connectable networks; a function of storing in a storage device correspondence information that associates a network number of a network that can be reached via the gateway obtained from the acquired route information with a communication interface used to connect to the gateway; a function of determining a communication interface to be used based on a network number of a communication destination address and the corresponding information stored in the storage device; A function of connecting to a communication destination using the determined communication interface; The present invention is a program characterized by realizing the above. Effect of the Invention
[0009] According to the invention of claim 1, a communication system can be realized in which, in an information processing device connected to multiple networks, a communication path to a destination can be identified, as compared to a method of identifying a destination using the results of name resolution by a DNS server. According to the invention of claim 2, it is possible to obtain information used to identify a communication path to a communication destination from information published on a network. According to the invention of claim 3, since information for identifying a communication path is obtained in advance, the time required to determine the communication interface to be used is reduced compared to a configuration in which a communication path is searched for during communication. According to the invention of claim 4, it is possible to accommodate designation by host name, as compared to a configuration in which only an address is used as information for identifying a communication destination. According to the invention of claim 5, even if there are a plurality of DNS servers on a plurality of networks, it is possible to select a communication interface to connect to a DNS server. According to the invention of claim 6, it is possible to connect to a network in which no gateway exists. According to the invention of claim 7, the network number of the destination network can be obtained based on information already known in the own device. According to the invention of claim 8, in an information processing device connected to multiple networks and having the program of the present invention installed, a communication system can be realized that is capable of identifying a communication path to a destination, as compared to a method of identifying a destination using the results of name resolution by a DNS server. [Brief description of the drawings]
[0010] [Figure 1] 1 is a diagram illustrating an example of the configuration of a network environment including an information processing apparatus to which the present embodiment is applied. [Diagram 2] FIG. 1 is a diagram illustrating a configuration of an information processing device. [Diagram 3] FIG. 2 is a diagram illustrating an example of a hardware configuration of a document processing system. [Figure 4] FIG. 11 is a diagram illustrating an example of interface information. [Diagram 5] FIG. 13 is a diagram illustrating an example of a routing table. [Figure 6] FIG. 11 is a diagram illustrating an example of DNS information. [Figure 7]11 is a flowchart showing a method for determining a communication interface to be used in communication. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. <System configuration> FIG. 1 is a diagram showing an example of the configuration of a network environment including an information processing device to which the present embodiment is applied. The information processing device 100 has a plurality of communication interfaces (I / FA, I / FB) and is connected to a plurality of networks. In the example shown in FIG. 1, the information processing device 100 is connected to two networks (network A, network B). The type of the information processing device 100 is not limited as long as it is a device that can be connected to a network and exchange data with other information devices. For example, in addition to a personal computer, an image processing device equipped with a communication function for connecting to a network can also be used as the information processing device 100.
[0012] A router 210 and a terminal device 220 are connected to the network A200. A router 310, a terminal device 320, and a DNS server 330 are connected to the network B300. A network C400 is also connected to the network B300 via the router 310. A terminal device 410 is connected to the network C400. The information processing device 100 can also be connected to the network C400 via the router 310 of the network B300. Note that the networks A200, B300, and C400 are assumed to be IP (Internet Protocol) networks.
[0013] 1 shows one terminal device 220 connected to network A200, one terminal device 320 connected to network B300, and one terminal device 410 connected to network C400, but this is a schematic diagram of the configurations of networks A200, B300, and C400. In reality, multiple terminal devices can be connected to each of networks A200, B300, and C400.
[0014] <Configuration of information processing device 100> 2 is a diagram showing the configuration of the information processing device 100. The information processing device 100 includes a processing unit 110, a communication control unit 120, a first communication interface 130, a second communication interface 140, and a storage unit 150.
[0015] The processing unit 110 executes various types of processing such as arithmetic processing and control. The types of processing executed by the processing unit 110 vary depending on the type of information processing device 100, the programs executed in the information processing device 100, and the like, and are not particularly limited. For example, when an image processing device is used as the information processing device 100, image reading processing, image conversion processing, image formation processing, control of each function of the information processing device 100, and the like are executed. In addition, the processing executed by the processing unit 110 includes processing for transmitting data to an external device and processing for receiving data from an external device.
[0016] The communication control unit 120 controls data transmission and reception when data is exchanged between the information processing device 100 and an external device. The communication control unit 120 also determines the communication interface to be used (here, either the first communication interface 130 or the second communication interface 140) depending on the communication destination in the data transmission and reception. A method of determining the communication interface to be used will be described later.
[0017] The first communication interface 130 is an interface for connecting to the network A200. The first communication interface 130 has an address (IP address) in the network A200. The second communication interface 140 is an interface for connecting to the network B300. The second communication interface 140 has an address (IP address) in the network B300. The first communication interface 130 and the second communication interface 140 may be realized by individual network cards and connectors.
[0018] The storage unit 150 holds data and processing results used in processing by the processing unit 110. The storage unit 150 also holds information used for communication control by the communication control unit 120. The information used for communication control includes interface information 151, which is information on the first communication interface 130 and the second communication interface 140, a routing table 152, which is route information in the network, DNS information 153, which is information on DNS servers on the network, and the like.
[0019] <Hardware configuration> FIG. 3 is a diagram showing an example of a hardware configuration of an information processing device 100. The information processing device 100 is realized by, for example, a computer as shown in FIG. 3. The computer shown in FIG. 3 includes one or more processors 101 as a calculation means, and a main storage device (main memory) 102 and an auxiliary storage device 103 as storage means. The processor 101 realizes each function of the information processing device 100 by loading a program stored in the auxiliary storage device 103 into the main storage device 102 and executing it. For example, a central processing unit (CPU), a micro processing unit (MPU), a graphics processing unit (GPU), a digital signal processor (DSP), or the like is used as the processor 101. For example, a random access memory (RAM) is used as the main storage device 102. For example, a magnetic disk device or a solid state drive (SSD) is used as the auxiliary storage device 103.
[0020] The computer also includes a display mechanism 104 for displaying on a display device, and an input device 105 through which an operator of the computer performs input operations. For example, a keyboard or a mouse is used as the input device 105. As described with reference to FIG. 2, the computer also includes a first communication interface 130 and a second communication interface 140 for connecting to a network. Note that the configuration of the computer shown in FIG. 3 is merely an example, and the computer used in this embodiment is not limited to the configuration example of FIG. 2. For example, the computer may be configured to include a non-volatile memory such as a flash memory or a ROM (Read Only Memory) as a storage device.
[0021] 2 is configured by the computer shown in FIG 3, the functions of the processing unit 110 and the communication control unit 120 are realized, for example, by the processor 101 executing a program. The storage unit 150 is realized, for example, by the main storage unit 102 and the auxiliary storage unit 103.
[0022] <Information used for communication control> As described above, the storage unit 150 of the information processing device 100 holds, as information used for communication control, the interface information 151, the routing table 152, the DNS information 153, etc. Below, these pieces of information will be explained.
[0023] Fig. 4 is a diagram showing an example of the interface information 151. In the interface information 151, information on each of the items of communication interface identification information (indicated as "I / F" in the figure), IP address, subnet mask, and network number is registered and managed for each of the first communication interface 130 and the second communication interface 140. In Fig. 4, A in the identification information (I / F) is the first communication interface 130, and B is the second communication interface 140.
[0024] The IP address field contains the IP addresses of the communication interfaces 130, 140 in the networks to which the communication interfaces 130, 140 are connected. In the example shown in Fig. 4, the IP address of the first communication interface 130 is 192.168.0.10, and the IP address of the second communication interface 140 is 172.27.94.154.
[0025] The subnet mask item registers the subnet masks set for the first communication interface 130 and the second communication interface 140. In the example shown in Fig. 4, the subnet masks for both the first communication interface 130 and the second communication interface 140 are 255.255.255.0.
[0026] The network numbers registered are the network numbers of network A200 to which the first communication interface 130 is connected and network B300 to which the second communication interface 140 is connected. The network number is obtained by multiplying the IP address value by the subnet mask value. In the example shown in Fig. 4, the network number of network A200 is 192.168.0.0, and the network number of network B300 is 172.27.94.0.
[0027] 5 is a diagram showing an example of the routing table 152. In the routing table 152, information on the network number, subnet mask, identification information of the communication interface (indicated as "I / F" in the figure), and gateway is registered and managed for each network that can be connected from the first communication interface 130 and the second communication interface 140. The information in the routing table 152 is information exchanged between routers on the network, and can be acquired from the router of each network using a routing protocol. Acquisition of information by the routing protocol is performed based on a predetermined acquisition condition, such as periodically inquiring of the router, separate from communication to the destination address.
[0028] The network number field contains registered network numbers of networks reachable by the first communication interface 130 and the second communication interface 140. In the example shown in Fig. 5, three network numbers, 192.168.0.0, 172.27.94.0, and 172.27.99.0, are registered. In the illustrated example, the network with the network number 172.27.99.0 is the network number of network C400 connected to router 310 of network B300.
[0029] The subnet mask item registers the subnet masks set for network A 200, network B 300, and network C 400. In the example shown in Fig. 5, the subnet mask for each network is 255.255.255.0.
[0030] The identification information (I / F) item registers the identification information of the communication interface used to connect to the network of each network number when obtaining the information of the routing table 152. In the example shown in Fig. 5, the communication interface used to connect to the network of network number 192.168.0.0 has identification information A, so it is the first communication interface 130. The communication interface used to connect to the network of network number 172.27.94.0 has identification information B, so it is the second communication interface 140. The communication interface used to connect to the network of network number 172.27.99.0 has identification information B, so it is the second communication interface 140.
[0031] In the gateway field, identification information of the gateway passed through when connecting to the network of each network number is registered. Here, the router of each network corresponds to the gateway. Also, in FIG. 5, router 210 of network A200 is described as "Router A", and router 310 of network B300 is described as "Router B". Therefore, in the example shown in FIG. 5, the router passed through when connecting to the network of network number 192.168.0.0 is router 210. Also, the router passed through when connecting to the network of network number 172.27.94.0 is router 310. Also, the router passed through when connecting to the network of network number 172.27.99.0 is router 310.
[0032] Fig. 6 is a diagram showing an example of DNS information 153. In the DNS information 153, various information regarding DNS servers to which the information processing device 100 can connect, such as DNS addresses and identification information of communication interfaces (indicated as "I / F" in the figure), is registered and managed. Information on DNS servers is registered in advance in the DNS information 153 by a user. In the network environment shown in Fig. 1, the only DNS server to which the information processing device 100 can connect is the DNS server 330 of network B300, so information on the DNS server 330 is registered in Fig. 6.
[0033] The IP address of the DNS server is registered in the DNS address field. In the example shown in Fig. 6, the IP address 172.27.94.10 of the DNS server 330 of the network B 300 is registered.
[0034] The identification information (I / F) field contains the identification information of the communication interface used to connect to the DNS server. In the example shown in Fig. 6, the communication interface used to connect to the DNS server 330 of the network B300 has the identification information B, so it is the second communication interface 140.
[0035] <How to determine the communication interface to be used> Next, a method for determining a communication interface to be used when the information processing device 100 connects to an external device will be described. As can be seen from the network environment shown in Fig. 1, the information processing device 100 determines whether to use the first communication interface 130 or the second communication interface 140 depending on the network to which it is connected. The various pieces of information shown in Figs. 4 to 6 are used to determine the communication interface to be used.
[0036] 7 is a flowchart showing a method for determining a communication interface to be used in communication. When communicating with an external device, the information processing device 100 first acquires the address of the communication destination (S701). The communication destination address may be acquired by accepting an input operation by a user, or may be acquired by a function of an application program or the like.
[0037] The communication control unit 120 of the information processing device 100 calculates the network number of the acquired communication destination address (S702). The network number of the communication destination address is obtained by multiplying the value of the communication destination address acquired in S701 by the value of a preset subnet mask.
[0038] Next, the communication control unit 120 searches for the network numbers of the first communication interface 130 and the second communication interface 140 (S703). The network numbers of each of the communication interfaces 130, 140 are read out, for example, from the interface information 151 described with reference to Fig. 4. In the example shown in Fig. 4, the network number of the first communication interface 130 is 192.168.0.0, and the network number of the second communication interface 140 is 172.27.94.0.
[0039] Next, the communication control unit 120 determines whether the network numbers of the first communication interface 130 and the second communication interface 140 detected in S703 match the network number calculated from the communication destination address. If there is a communication interface whose network number matches the communication destination address (YES in S704), the communication control unit 120 determines the communication interface whose network number matches the communication destination address as the communication interface to be used for communication (S705).
[0040] If there is no communication interface whose network number matches the destination address (NO in S704), then communication control unit 120 searches routing table 152 (S706) and determines whether the network number of a router registered in routing table 152 matches the network number calculated from the destination address. If there is a router whose network number matches the destination address (YES in S707), communication control unit 120 determines the communication interface to be used for communication to be the communication interface connected to the network having the router whose network number matches the destination address (S708).
[0041] If there is no router whose network number matches the destination address (NO in S707), the communication control unit 120 cannot determine the communication interface to be used for communication. Therefore, the information processing device issues an error notification to inform the user that communication with the destination address acquired in S701 is not possible, and ends the process (S709).
[0042] 4 to 6 are registered in the interface information 151, the routing table 152, and the DNS information 153, an example of determining the communication interface to be used will be described below based on the flowchart in Fig. 7. Here, the communication interface to be used is determined for the communication destinations of the terminal device 220 connected to the network A200, the terminal device 320 connected to the network B300, and the terminal device 410 connected to the network C400 shown in Fig. 1. It is also assumed that the address of the terminal device 220 is 192.168.0.13, the address of the terminal device 320 is 172.27.94.23, and the address of the terminal device 410 is 172.27.99.33.
[0043] When communicating with the terminal device 220, the information processing device 100 first acquires the address 192.168.0.13 of the terminal device 220 (S701). Next, the communication control unit 120 of the information processing device 100 uses the subnet mask 255.255.255.0 to calculate the network number 192.168.0.0 of the network to which the terminal device 220 is connected (S702).
[0044] Next, the communication control unit 120 searches for the network numbers of the first communication interface 130 and the second communication interface 140 (S703). According to the interface information 151 shown in Fig. 4, the network number 192.168.0.0 of the first communication interface 130 matches the network number calculated in S702 (YES in S704). Therefore, the communication control unit 120 determines the first communication interface 130 as the communication interface to be used for communicating with the terminal device 220 (S705).
[0045] Furthermore, when communicating with the terminal device 320, the information processing device 100 first acquires the address 172.27.94.23 of the terminal device 320 (S701). Next, the communication control unit 120 of the information processing device 100 uses the subnet mask 255.255.255.0 to calculate the network number 172.27.94.0 of the network to which the terminal device 320 is connected (S702).
[0046] Next, the communication control unit 120 searches for the network numbers of the first communication interface 130 and the second communication interface 140 (S703). According to the interface information 151 shown in Fig. 4, the network number 172.27.94.0 of the second communication interface 140 matches the network number calculated in S702 (YES in S704). Therefore, the communication control unit 120 determines the second communication interface 140 as the communication interface to be used for communicating with the terminal device 320 (S705).
[0047] Furthermore, when communicating with the terminal device 410, the information processing device 100 first acquires the address 172.27.99.33 of the terminal device 410 (S701). Next, the communication control unit 120 of the information processing device 100 uses the subnet mask 255.255.255.0 to calculate the network number 172.27.99.0 of the network to which the terminal device 320 is connected (S702).
[0048] Next, the communication control unit 120 searches for the network numbers of the first communication interface 130 and the second communication interface 140 (S703). However, the network numbers of neither the first communication interface 130 nor the second communication interface 140 match the network number calculated in S702 (NO in S704). Therefore, the communication control unit 120 next searches the routing table 152 (S706).
[0049] 5, network number 172.27.99.0 that matches the network number calculated in S702 is registered (YES in S707), and the gateway used to connect to the network having this network number is router 310 of network B300. Therefore, communication control unit 120 determines second communication interface 140 connected to network B300 as the communication interface to be used to communicate with terminal device 320 (S708).
[0050] When the communication destination is specified by a fully qualified domain name (FQDN) including a host name or a domain name instead of an address, it is necessary to perform name resolution by DNS. In this case, the communication control unit 120 connects to a DNS server connectable from the first communication interface 130 or the second communication interface 140 and performs name resolution. Name resolution is a process of converting an FQDN into an IP address. In the network environment shown in FIG. 1, the only DNS server connectable from the information processing device 100 is the DNS server 330 of the network B300, and information on a communication interface (here, the second communication interface 140) that can reach this DNS server 330 is registered in the DNS information 153 shown in FIG. 6. Therefore, the communication control unit 120 refers to the DNS information 153 to connect to the DNS server 330, performs name resolution, and acquires the address of the communication destination.
[0051] Although the embodiments of the present invention have been described above, the technical scope of the present invention is not limited to the above-mentioned embodiments. For example, in the above-mentioned embodiments, the information processing device 100 has two communication interfaces, the first communication interface 130 and the second communication interface 140, but the information processing device 100 may have three or more communication interfaces. In addition, various modifications and alternative configurations that do not deviate from the scope of the technical concept of the present invention are included in the present invention.
[0052] <Additional Notes> (((1))) A communication system for an information processing device having multiple communication interfaces for connecting to multiple networks, the communication system comprising one or more processors, the processor determining, based on correspondence information that associates network numbers of networks that can be reached via gateways in each of the multiple connectable networks with communication interfaces used to connect to the gateways, a communication interface from among the multiple communication interfaces to be used to connect to a network having a network number that matches the network number of a destination address, and connecting to the destination using the determined communication interface. (((2))) The processor acquires route information from a gateway on each of the plurality of networks that can be connected using the plurality of communication interfaces, stores in a storage device correspondence information that associates the network numbers of the networks that can be reached via the gateway obtained from the acquired route information with the communication interfaces used to connect to the gateways, and determines the communication interface for connecting to a network having a network number that matches the network number of a destination address based on the correspondence information stored in the storage device. (((3))) The communication system according to (((2))), wherein the processor acquires the route information in accordance with a predetermined acquisition condition independent of the presence or absence of communication to the destination address. (((4))) The communication system described in any one of (((1))) to (((3))), characterized in that, when a destination is specified by a host name, the processor requests name resolution from a DNS server to which the device can connect, extracts a network number of the destination address obtained as a result of the name resolution, and determines a communication interface to be used for connecting to a network having a network number that matches the network number. (((5))) The communication system described in any one of (((1))) to (((4))) is characterized in that DNS information that associates addresses of DNS servers that can be connected using the multiple communication interfaces with communication interfaces among the multiple communication interfaces that can be used to connect to the DNS servers is stored in a storage device of the information processing device, and the processor uses the DNS information to determine the communication interface that connects to the DNS server and requests name resolution from the DNS server using the communication interface. (((6))) The communication system according to any one of (((1))) to (((5))), characterized in that when the network number of any of the networks to which each of the plurality of communication interfaces connects matches the network number of a destination address, the processor connects to the destination using the communication interface connected to the network with the matching network number, regardless of the correspondence information. (((7))) The communication system according to any one of (((1))) to (((6))), characterized in that the processor obtains a network number of the network based on an address of the device itself in the network to which each of the plurality of communication interfaces is connected and a subnet mask for the network. (((8))) A program for controlling a computer that can be connected to multiple networks, the program causing the computer to realize the following functions: for each of the multiple networks that can be connected to the computer, acquiring route information from a gateway on the network; storing in a storage device correspondence information that associates the network number of a network that can be reached via the gateway obtained from the acquired route information with the communication interface used to connect to the gateway; determining a communication interface to be used based on the network number of a destination address and the correspondence information stored in the storage device; and connecting to the destination using the determined communication interface.
[0053] According to the communication system relating to (((1))), a communication system can be realized in which, in an information processing device connected to a plurality of networks, a communication path to a communication destination can be identified, as compared to a method of identifying a communication destination using the result of name resolution by a DNS server. According to the communication system of (((2))), it is possible to obtain information used to identify a communication path to a communication destination from information published on a network. According to the communication system of (((3))), since information for identifying a communication path is obtained in advance, the time required to determine the communication interface to be used is reduced compared to a configuration in which a communication path is searched for during communication. The communication system according to (((4))) can accommodate designation by host name, as compared to a configuration in which only an address is used as information for identifying a communication destination. According to the communication system of (((5))), even if there are a plurality of DNS servers on a plurality of networks, it is possible to select a communication interface to connect to a DNS server. According to the communication system of (((6))), it is possible to connect to a network in which no gateway exists. According to the communication system of (((7))), it is possible to obtain the network number of the destination network based on information already known in the own device. According to the program of (((8))), in an information processing device connected to multiple networks and having the program of the present invention installed, a communication system can be realized that is capable of identifying a communication path to a communication destination, as compared to a method of identifying a communication destination using the result of name resolution by a DNS server. [Explanation of symbols]
[0054] Reference Signs List 100: information processing device, 110: processing unit, 120: communication control unit, 130: first communication interface, 140: second communication interface, 150: storage unit, 151: interface information, 152: routing table, 153: DNS information, 200: network A, 210: router, 220: terminal device, 300: network B, 310: router, 320: terminal device, 330: DNS server, 400: network C, 410: terminal device
Claims
1. A communication system for an information processing device having a plurality of communication interfaces for connecting to a plurality of networks, One or more processors; The processor, determining, based on correspondence information associating a network number of a network that can be reached via a gateway in each of the plurality of connectable networks with a communication interface used to connect to the gateway, a communication interface to be used to connect to the network having a network number that matches a network number of a destination address, from among the plurality of communication interfaces; Connecting to a communication destination using the determined communication interface. A communication system comprising:
2. The processor, acquiring route information from a gateway on each of the plurality of networks that can be connected using the plurality of communication interfaces; storing in a storage device correspondence information associating a network number of a network reachable via the gateway obtained from the acquired route information with a communication interface used to connect to the gateway; determining the communication interface for connecting to a network having a network number that matches a network number of a communication destination address based on the correspondence information stored in the storage device; 2. The communication system according to claim 1,
3. 3. The communication system according to claim 2, wherein the processor acquires the route information in accordance with a predetermined acquisition condition independent of whether or not communication is occurring with the communication destination address.
4. The processor, If the destination is specified by a host name, the device requests name resolution from a DNS server that the device can connect to; A network number of the destination address obtained as a result of the name resolution is extracted, and a communication interface to be used for connecting to a network having a network number that matches the extracted network number is determined.
2. The communication system according to claim 1,
5. storing DNS information in a storage device of the information processing device, the DNS information associating an address of a DNS server connectable using the plurality of communication interfaces with a communication interface among the plurality of communication interfaces that can be used to connect to the DNS server; 5. The communication system according to claim 4, wherein the processor uses the DNS information to determine the communication interface for connecting to the DNS server, and uses the communication interface to request name resolution from the DNS server.
6. The communication system according to any one of claims 1 to 5, characterized in that when the network number of any of the networks to which each of the multiple communication interfaces connects matches the network number of the communication destination address, the processor connects to the communication destination using the communication interface connected to the network with the matching network number, regardless of the correspondence information.
7. 7. The communication system according to claim 6, wherein the processor acquires a network number of the network to which each of the plurality of communication interfaces is connected based on an address of the device itself in the network and a subnet mask related to the network.
8. A program for controlling a computer that can be connected to multiple networks, The computer includes: a function of acquiring route information from a gateway on each of the plurality of connectable networks; a function of storing in a storage device correspondence information that associates a network number of a network that can be reached via the gateway obtained from the acquired route information with a communication interface used to connect to the gateway; a function of determining a communication interface to be used based on a network number of a communication destination address and the corresponding information stored in the storage device; A function of connecting to a communication destination using the determined communication interface; A program for realizing the above.
Citation Information
Patent Citations
Communication device, control method of communication device, and program
JP2021118437A
Communication apparatus, method of controlling communication apparatus, and program
JP2021197687A
