COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL SYSTEM, COMMUNICATION CONTROL METHOD, AND PROGRAM

A communication control system with multiple units and NAPT extension algorithms manages port numbers across units, addressing port exhaustion issues in large endpoint environments, enabling flexible and expanded network processing.

JP7582678B2Active Publication Date: 2024-11-13NEC PLATFROMS LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022002165
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-01-11
Publication Date
2024-11-13
Estimated Expiration
2042-01-11

AI Technical Summary

Technical Problem

In environments with a large number of endpoints under NAPT, port number exhaustion can lead to communication failures, necessitating restrictive network configurations to prevent such failures.

Method used

Implementing a communication control system with multiple communication control units, each with distinct global addresses, and utilizing a conversion table to manage port numbers, allowing for NAPT extension algorithms that distribute port usage across units when thresholds are met.

Benefits of technology

This approach expands the number of endpoints that can be processed, preventing communication failures due to port exhaustion and allowing for more flexible network configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007582678000001
    Figure 0007582678000001
  • Figure 0007582678000002
    Figure 0007582678000002
  • Figure 0007582678000003
    Figure 0007582678000003
Patent Text Reader

Abstract

To achieve a construction of a network environment in which a large number of end points are appropriately processed in a NAPT utilization environment.SOLUTION: A communication control system 1 comprises: a first communication control part 12 including a first global address; and a second communication control part 14 including a second global address. When a set of a private address and a pre-conversion port number included, as transmission source information, in a received IP packet is determined to be a novel combination, on the basis of a first conversion table used for the NAPT conversion, the first communication control part 12 determines whether or not the number of port numbers which are usable for a NAPT conversion corresponding to the first global address is a predetermined threshold value or less. When the number of port numbers is a threshold value or less, the first communication control part 12 registers, into the first conversion table, the set included in the received IP packet and the second global address in association with each other, and transfers the IP packet to the second communication control part 14.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a communication control device, a communication control system, a communication control method, and a program, and in particular to a communication control device, a communication control system, a communication control method, and a program in an environment using NAPT in a layer 3 network. [Background technology]

[0002] As a standard specification for communication control devices, the communication specification for IP packets is defined in Layer 3 (network layer) of the Open Systems Interconnection reference model (OSI reference model). In addition, NAPT (Network Address Port Translation) is known as a general address conversion technology for communicating between a global network and a private network (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2006-180362 A Summary of the Invention [Problem to be solved by the invention]

[0004] In environments where a large number of endpoints are processed under NAPT, problems can occur due to port number exhaustion, and to avoid this it was necessary to restrict the network configuration.

[0005] In view of the above-mentioned problems, the object of the present disclosure is to provide a communication control device, a communication control system, a communication control method, and a program that realize the creation of a network environment in which a large number of endpoints can be processed optimally in a NAPT-utilizing environment. [Means for solving the problem]

[0006] A communication control system according to an embodiment of the present disclosure includes: a first communication control unit connected to the private network and having a first global address; a second communication control unit connected to the private network and having a second global address different from the first global address; Equipped with. The first communication control unit is When a set of a private address and a pre-translation port number included in a received IP packet as source information is determined to be a new combination based on a first translation table used for NAPT translation in a network layer of the OSI reference model, the first translation table associating a private address and a pre-translation port number with a global address and a post-translation port number, the method determines whether the number of port numbers corresponding to the first global address and available for the NAPT translation is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet and the second global address in the first conversion table in association with each other; The received IP packet is transferred to the second communication control unit.

[0007] A communication control device according to an aspect of the present disclosure includes: When a set of a private address and a pre-translation port number included as source information in a received IP packet is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number, and that is used for NAPT conversion in the network layer of the OSI reference model, the device determines whether the number of port numbers that correspond to its own global address and are available for the NAPT conversion is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device; The received IP packet is transferred to the other communication control unit.

[0008] A communication control method according to one aspect of the present disclosure includes: When a set of a private address and a pre-translation port number included as source information in a received IP packet is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number and that is used for NAPT conversion in the network layer of the OSI reference model, the device determines whether the number of port numbers that correspond to its own global address and are available for the NAPT conversion is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device; The received IP packet is transferred to the other communication control unit.

[0009] A program according to one aspect of the present disclosure includes: On the computer, a process of determining whether the number of port numbers corresponding to the global address owned by the device and available for the NAPT conversion is equal to or less than a predetermined threshold when the set of private address and pre-translation port number included in the received IP packet as source information is determined to be a new combination based on a conversion table used for NAPT conversion in the network layer of the OSI reference model, the process comprising: determining whether the number of port numbers corresponding to the device's own global address and available for the NAPT conversion is equal to or less than a predetermined threshold; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device; A process of transferring the received IP packet to the other communication control device. Execute the command. Effect of the Invention

[0010] The present disclosure makes it possible to provide a communication control device, a communication control system, a communication control method, and a program that realize the construction of a network environment in which a large number of endpoints are appropriately processed in a NAPT-using environment. [Brief description of the drawings]

[0011] [Figure 1] 1 is a block diagram showing a configuration of a system according to a first embodiment. [Diagram 2] FIG. 4 is a diagram illustrating an example of a data structure of a first conversion table according to the first embodiment. [Diagram 3] 5 is a flowchart showing a flow of a communication control method by a first communication control unit according to the first embodiment. [Figure 4] 5 is a flowchart showing a flow of a communication control method by a first communication control unit according to the first embodiment. [Diagram 5] 5 is a flowchart showing a flow of a communication control method by a first communication control unit according to the first embodiment. [Figure 6] FIG. 11 is a block diagram showing a configuration of a system according to a second embodiment. [Figure 7] FIG. 11 is a sequence diagram showing a processing flow of the system according to the second embodiment. [Figure 8] FIG. 11 is a sequence diagram showing a processing flow of the system according to the second embodiment. [Figure 9] FIG. 11 is a block diagram showing a configuration of a system according to a third embodiment. [Figure 10] FIG. 13 is a block diagram showing a configuration of a system according to a fourth embodiment. [Figure 11] FIG. 13 is a diagram showing an example of a data structure of a conversion table according to the fourth embodiment. [Figure 12] FIG. 1 illustrates an example of the configuration of a computer. [Figure 13] FIG. 1 is a block diagram showing a configuration of a related system. [Figure 14] FIG. 13 is a diagram illustrating an example of a data structure of an associated conversion table. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In each drawing, the same or corresponding elements are denoted by the same reference numerals, and duplicated descriptions will be omitted as necessary for clarity of explanation.

[0013] <Issues of the embodiment> In a related technique, NAPT (Network Address Port Translation) is used in a network configuration such as a system 9 shown in Fig. 13. Fig. 13 is a block diagram showing the configuration of the related system 9.

[0014] The system 9 includes a communication control device 90, a plurality of client devices 20, and an external device 30. The communication control device 90 and the external device 30 are connected to a global network GN.

[0015] The communication control device 90 is a general communication control device in which NAPT operates. The communication control device 90 is installed in a gateway unit that connects a global network GN and a private network PN. A plurality of client devices 20 are connected under the private network PN. The communication control device 90 and the plurality of client devices 20 constitute a PN side system 900. A private IP address is assigned to each of the plurality of client devices 20. Hereinafter, the private IP address is simply referred to as a private address. The communication control device 90 performs address conversion by NAPT (hereinafter, sometimes referred to as NAPT conversion), thereby enabling each of the plurality of client devices 20 to communicate with an external device 30 present in the global network GN.

[0016] Address conversion by NAPT will be described with reference to Fig. 14. Fig. 14 is a diagram showing an example of the data structure of an associated conversion table T0. Address conversion by NAPT is performed according to the conversion table T0. In order to convert an address converted into the system on the global network GN back into the system on the private network, the communication control device 90 needs to establish a one-to-one correspondence between the information before conversion and the information after conversion.

[0017] The information before conversion is a set of the source private address and port number, and this set is called an endpoint in this embodiment. The information after conversion is a set of a global address and a port number. Only the global address G1 assigned to the communication control device 90 is used as the global IP address after conversion. In the following, the global IP address is simply called a global address. The range of port numbers that can be used as port numbers after NAPT conversion depends on the implementation of NAPT. For example, to ensure the widest possible conversion range excluding reserved port numbers, port numbers from 1024 to 65535 are used.

[0018] In NAPT, the endpoint before conversion and the port after conversion are converted one-to-one. Therefore, when the communication control device 90 performs NAPT conversion for many endpoints, there may be a shortage of ports at the conversion destination, making it impossible to perform further NAPT conversion. If the communication control device 90 is in an environment where port numbers from 1024 to 65535 can be used, the number of convertible ports is 64512, so if the number of endpoints exceeds this, further NAPT conversion is impossible. Therefore, IP packets received from the endpoint shown as R0 in FIG. 14 are discarded.

[0019] As an example, in the PN side system 900 of the system 9, there are 65 client devices assigned individual private addresses under one gateway router. The clients may connect to a server in the global network GN for purposes such as web conferencing, and it is necessary to generate 1000 sessions of communication with different source ports per connection. If 65 clients connect simultaneously for a company-wide conference, the total number of endpoints will be 65 x 1000 = 65000, exceeding the upper limit of 64512 for NAPT conversion. Under these circumstances, NAPT conversion for new communication cannot be performed, and new ports cannot be used for other functions of the communication control device 90, which may cause communication failure. To avoid this situation, measures such as restricting the number of clients that connect simultaneously and limiting the network configuration are required so that the available port numbers are not exhausted due to the generation of a large number of sessions.

[0020] In this way, in environments where a large number of endpoints are processed under NAPT, problems can occur due to port number exhaustion, and to avoid this, it is necessary to restrict the network configuration.

[0021] At least one of the following embodiments is intended to solve such problems.

[0022] <Embodiment 1> The first embodiment may be explained as an outline of the second to fourth embodiments described later. In the first embodiment, in a line environment in which a plurality of global addresses can be used, a communication control device capable of performing the following address conversion by NAPT on each line is used.

[0023] FIG. 1 is a block diagram showing a configuration of a system 1 according to the first embodiment. The system 1 is a computer system for communication between a client device 20 under a private network PN and an external device 30 on a global network GN. The system 1 includes a plurality of client devices 20 and an external device 30, similar to the system 9 shown in Fig. 13, but differs in that it includes a communication control system 10 instead of a communication control device 90. The communication control system 10 may be one computer device (communication control device), or may be a computer system including a plurality of computer devices (communication control devices).

[0024] A plurality of client devices 20 are connected under the private network PN. An external device 30 is connected to the global network GN.

[0025] The communication control system 10 includes a first communication control unit 12 and a second communication control unit 14. The first communication control unit 12 is connected to the private network PN and the global network GN, and has a first global address G1. The second communication control unit 14 is connected to the private network PN and the global network GN, similar to the first communication control unit 12. The second communication control unit 14 has a second global address G2 that is different from the first global address G1.

[0026] The first communication control unit 12 has a normal communication control function including a normal NAPT according to the provisions of the OSI reference model, and also has a function of operating according to a NAPT extension algorithm described later. The second communication control unit 14 has a function of operating in conjunction with the first communication control unit 12.

[0027] A first conversion table is stored in a storage device accessible by the first communication control unit 12, and a second conversion table is stored in a storage device accessible by the second communication control unit 14. The first conversion table and the second conversion table are NAPT conversion tables used by the first communication control unit 12 and the second communication control unit 14 to execute address conversion by NAPT, respectively. The above storage device may be included in the communication control system 10. In the present embodiment 1, the storage devices accessible by the first communication control unit 12 and the second communication control unit 14 may be the same storage device or different storage devices. In the present embodiment 1, the first conversion table and the second conversion table are different tables, but they may be the same table.

[0028] Here, the first communication control unit 12 and the second communication control unit 14 each hold each other's global address and the private address of each client device 20. For example, by user setting, these addresses may be stored in a storage device accessible by the first communication control unit 12 and a storage device accessible by the second communication control unit 14. Furthermore, when there are multiple communication control units included in the communication control system 10, it is determined in advance which communication control unit will use which communication control unit as a substitute when its own port number runs out.

[0029] 2 is a diagram showing an example of a data structure of the first conversion table T1 according to the first embodiment. The first conversion table T1 associates a private address and a pre-conversion port number with a global address and a post-conversion port number in a one-to-one manner. In the first conversion table T1, in a record R1 in which the available port number is greater than a predetermined threshold, the set of the private address and the pre-conversion port number is associated with a first global address G1 and a set of a post-conversion port number that is uniquely determined based on the reception order. On the other hand, in a record R2 in which the available port number is equal to or less than the predetermined threshold, the first conversion table T1 associates a set of the private address and the pre-conversion port number with a second global address G2.

[0030] In the following, a one-line record may be referred to as an entry, and the information stored in a one-line record may be collectively referred to as address translation information.

[0031] The second conversion table has a similar data structure. However, in the second conversion table, the first global address G1 and the second global address G2 described above are replaced with the second global address G2 and the first global address G1, respectively. The values ​​of the addresses and port numbers registered may be different from those in the first conversion table.

[0032] At least when the first communication control unit 12 attempts to add a new entry to the first conversion table T1 by the address conversion process using NAPT, the subsequent process differs depending on whether or not a port number shortage occurs. When there is no port number shortage due to NAPT conversion, the first communication control unit 12 executes the same process as normal NAPT conversion. That is, the first communication control unit 12 first registers the first global address G1 and the newly assigned port number in the first conversion table T1 as usual. Then, the first communication control unit 12 executes NAPT conversion and packet forwarding by NAPT as usual.

[0033] On the other hand, when a port number shortage occurs in normal NAPT conversion, the first communication control unit 12 updates the converted global address portion of the first conversion table T1 by using the second global address G2 stored in advance instead of the first global address G1. The second global address G2 is a global address of the second communication control unit 14 that works in conjunction with the first communication control unit 12. Note that the value written as the converted port number may be any value.

[0034] In this way, the first communication control unit 12 employs a NAPT extension algorithm that adds an extended operation to the normal NAPT operation.

[0035] 3 to 5 are flowcharts showing the flow of a communication control method by the first communication control unit 12 according to embodiment 1. Figs. 2 to 4 show a NAPT expansion algorithm that operates when the communication control device 90 receives an IP packet from a private network PN.

[0036] First, when the first communication control unit 12 receives an IP packet from one of the client devices 20 under the private network PN (S10), it refers to the first conversion table (S11). Next, the first communication control unit 12 determines whether or not a set of a private address and a pre-conversion port number included as source information in the received IP packet is a new combination based on the first conversion table T1 (S12). Specifically, the first communication control unit 12 extracts the set of the private address and the pre-conversion port number included as the source IP address and source port number from the header portion of the received IP packet. Then, the first communication control unit 12 determines whether or not the set is registered in the conversion table T1.

[0037] If the set is not registered in the conversion table T1, that is, if it is a new combination (Yes in S12), the first communication control unit 12 advances the process to S13.

[0038] In S13, it is determined whether the number of port numbers corresponding to the first global address G1 and available for NAPT conversion is equal to or less than a predetermined threshold. The port number corresponding to the first global address G1 is a port number that can be combined with the first global address G1. The threshold may be 0 or may be greater than 0. In the latter case, it is possible to prevent the consumption of more port numbers while leaving some room for available port numbers. Therefore, it is possible to reduce the possibility that other functions that use port numbers are affected by a shortage of port numbers more than in the former case.

[0039] If the number of port numbers available for NAPT conversion is equal to or less than a predetermined threshold (Yes in S13), the first communication control unit 12 registers the set included in the IP packet as source information in the first conversion table T1 in association with the second global address G2 (S14). The first communication control unit 12 then transfers the packet being processed, i.e., the received IP packet, to the second communication control unit 14 that is linked with it (S15). At this time, the first communication control unit 12 transfers the IP packet while maintaining all the source information, destination information, and data section information of the packet to be processed in layers 3 and above without rewriting them. If the second communication control unit 14 is a device separate from the first communication control unit 12, the transfer to the second communication control unit 14 is realized by specifying a MAC address (Media Access Control address) corresponding to the second communication control unit 14 as the destination of layer 2 and transmitting the packet via the private network PN.

[0040] The forwarded IP packet is acquired by the second communication control unit 14. The second communication control unit 14 applies normal NAPT conversion processing to the received IP packet, and transmits the IP packet with the source information converted to a device corresponding to the destination information, that is, an external device 30 on the global network GN.

[0041] On the other hand, if the number of port numbers available for NAPT conversion is greater than the predetermined threshold (No in S13), the communication control system 10 advances the process to S16 to S19 (flow A). Flow A is a normal NAPT conversion process. In S16, the first communication control unit 12 first assigns one available port number as a converted port number to a set included in the received IP packet as source information. Next, the first communication control unit 12 associates the set included in the received IP packet as source information with a set of the first global address G1 and the converted port number (converted set) and registers them in the first conversion table T1 (S17). Next, the first communication control unit 12 converts the set included in the received IP packet as source information to the converted set (S18; NAPT conversion). Note that conversion means replacement. The processes shown in S17 and S18 may be performed in parallel, or the process shown in S17 may be performed after S18. Finally, the first communication control unit 12 transmits the IP packet with the converted source information to a device corresponding to the destination information, that is, to the external device 30 on the global network GN (S19).

[0042] If the set included in the received IP packet as source information is registered in the conversion table T1, that is, if it is not a new combination (No in S12), the first communication control unit 12 advances the process to S20 to S24 (flow B).

[0043] In S20, the first communication control unit 12 reads out a set of a global address and a post-translation port number associated with a set included in the received IP packet as source information in the first conversion table T1. Next, if the global address included in the read out set is the first global address G1 (Yes in S21), the first communication control unit 12 advances the process to S22.

[0044] In S22, the first communication control unit 12 executes a normal NAPT conversion process. That is, the first communication control unit 12 converts the set included in the source information of the received IP packet to the read set. Then, the first communication control unit 12 transmits the IP packet with the converted source information to the external device 30 corresponding to the destination information (S23).

[0045] If the global address included in the read set is the second global address G2 (No in S21), the first communication control unit 12 transfers the IP packet to the second communication control unit 14 (S24), similarly to S15.

[0046] When communication with the global network GN occurs again from the endpoint to which the NAPT extension algorithm is applied, the endpoint does not know about the NAPT extension algorithm and therefore transmits the IP packet to the first communication control unit 12. In this case, the first communication control unit 12 can determine that the translated address corresponding to the source information of the received IP packet is that of the second communication control unit 14 by referring to the first conversion table T1. Therefore, the first communication control unit 12 transfers the IP packet to the second communication control unit 14 in the same manner as S24 in FIG. 5.

[0047] Thus, according to the first embodiment, when a NAPT port number shortage occurs in the first communication control unit 12, the IP packet is transferred to the second communication control unit 14 using the above-mentioned NAPT extension algorithm, and the second communication control unit 14 performs the NAPT conversion process instead. Therefore, even if there is a port number shortage, a new communication can be established without causing a communication failure. The above-mentioned NAPT process can be performed as long as there are vacant port numbers available in the second communication control unit 14. Also, even if three or more communication control units are used, the same mechanism can be used to perform the NAPT process.

[0048] This makes it possible to expand the upper limit of the number of endpoints that can be converted by the NAPT conversion process according to the number of available lines. In other words, a large number of endpoints can be processed appropriately in a NAPT environment. As a result, communication failures due to a lack of port numbers can be avoided and the limitations of network configuration can be expanded.

[0049] In the above description, the second communication control unit 14 that receives the forwarded IP packet applies normal NAPT conversion processing, but instead, it may apply an extended NAPT conversion algorithm similar to that of the first communication control unit 12. In this case, if the second communication control unit 14 also has a shortage of port numbers, the second communication control unit 14 forwards the IP packet to another communication control unit. This forwarding destination may be the first communication control unit 12 or another communication control unit.

[0050] In the above description, the first communication control unit 12 uses the NAPT extension algorithm when transmitting an IP packet from the client device 20 to the external device 30, but a normal algorithm may be used when transmitting an IP packet from the external device 30 to the client device 20. That is, when the first communication control unit 12 receives an IP packet including a set of a global address and a post-translation port number as destination information, the first communication control unit 12 may execute the following process. First, the first communication control unit 12 may read out a set of a private address and a post-translation port number associated with the set included as the destination information in the first conversion table T1. Then, the first communication control unit 12 may transfer the received IP packet to the client device 20 corresponding to the read set.

[0051] <Embodiment 2> Next, a second embodiment of the present disclosure will be described. Fig. 6 is a block diagram showing a configuration of a system 1a according to the second embodiment. In the second embodiment, the first communication control unit and the second communication control unit are in a master-substitute relationship.

[0052] System 1a has basically the same configuration as system 1, but includes a main device 12a as an example of the first communication control unit 12, a secondary device 14a as an example of the second communication control unit 14, and a server 31 as an example of an external device 30.

[0053] Both the main device 12a and the secondary device 14a are computer devices capable of operating NAPT. The same private network PN exists under both devices. In the private network PN, multiple client devices 20-1, 20-2, and 20-3 exist. The number of client devices 20 is not limited to this. The multiple client devices 20 attempt to communicate with a server 31 existing on a global network GN and attempt to generate multiple sessions. The multiple client devices 20 use the main device 12a as a default route, and when communicating with the server 31, they first go through the main device 12a. In other words, when the client device 20 and the server 31 communicate with each other, the main device 12a receives IP packets related to the communication in priority over the secondary device 14a.

[0054] The main device 12a and the secondary device 14a can implement the same NAPT extension algorithm as in the first embodiment.

[0055] 7 and 8 are sequence diagrams showing the flow of processing in the system according to the second embodiment. FIG. 7 shows the flow of processing in the system when the set of source information is new and there is no shortage of port numbers.

[0056] When the client device 20-1 attempts to establish a new session with the server 31, the client device 20-1 transmits an IP packet requesting the server 31 to establish a session to the master device 12a (S100). The transmitted IP packet includes a private address P1 and a port number p1 as source information.

[0057] In this case, since the set of source information is new and there is no shortage of port numbers, the main device 12a that receives the IP packet processes the received IP packet according to the normal NAPT conversion process.

[0058] At this time, the main device 12a first executes the registration process of the first conversion table T1 shown in S16 to S17 of Fig. 4 (S101). Then, the main device 12a executes the NAPT conversion process shown in S18 of Fig. 4 (S102). Then, the main device 12a transmits the IP packet with the converted source information to the server 31 (S103). The transmitted IP packet includes the global address G1 and the port number p11 as the source information.

[0059] The server 31 that has received the IP packet responds to the master device 12a corresponding to the global address G1 by using a response packet including the global address G1 and the port number p11 as destination information (S104). The master device 12a executes a NAPT conversion process by using the first conversion table T1 (S105). That is, the master device 12a reads out the set of the private address P1 and the port number p1 that is associated with the set included in the destination information in the first conversion table T1. The master device 12a then converts the set of the destination information to the read set, and transmits the converted response packet to the corresponding endpoint (client device 20-1) (S106).

[0060] Each time the client device 20 attempts to generate a new session, the processes shown in S100 to S106 may be executed.

[0061] Then, assume that the client device 20-1, which has once been registered in the first conversion table T1, subsequently transmits an IP packet to the master device 12a in the same session with respect to the server 31 (S110). In this case, the master device 12a executes a NAPT conversion process using the first conversion table T1 (S111), and transmits the IP packet with the source information converted to the server 31 (S112).

[0062] Next, a case where the above process is repeated and all available port numbers in the main device 12a are used up will be described.

[0063] FIG. 8 shows the flow of processing in the system when the set of source information is new and there is a shortage of port numbers.

[0064] When the client device 20-2 attempts to establish a new session with the server 31, the client device 20-2 transmits an IP packet requesting the server 31 to establish a session to the master device 12a (S120). The transmitted IP packet includes a private address P2 and a port number p2 as source information.

[0065] In this case, since the set of source information is new and there is a shortage of port numbers, the main device 12a that receives the IP packet processes the received IP packet in accordance with the above-mentioned NAPT extension algorithm.

[0066] At this time, the primary device 12a first executes the registration process of the first conversion table T1 shown in S11 to S14 of Fig. 3 (S121). At this time, the primary device 12a uses the global address G2 of the secondary device 14a as the global address to be registered. Then, the primary device 12a transfers the received IP packet to the secondary device 14a without changing the source information, as in S15 of Fig. 3 (S122). At this time, the primary device 12a does not need to share the first conversion table T1 with the secondary device 14a.

[0067] The secondary device 14a receives the IP packet at the private network PN side interface. The secondary device 14a that receives the IP packet executes normal NAPT processing in the same manner as S101 to S102 in FIG. 7. Specifically, in order to apply normal NAPT conversion processing to the IP packet, the secondary device 14a assigns one available port number as a post-conversion port number and additionally registers address conversion information in the second conversion table T2 (S123). The address conversion information is information that associates a set of a private address and a pre-conversion port number included in the source information with a set of a second global address G2 and a post-conversion port number. Next, the secondary device 14a converts the set of the private address and the pre-conversion port number included in the source information into a set of a second global address G2 and a post-conversion port number (S124). Then, the secondary device 14a transmits the NAPT-converted IP packet to a device corresponding to the destination information, that is, the server 31 (S125). The source information of the transmitted IP packet includes a set of the second global address G2 and a port number p21.

[0068] Since the server 31 recognizes the source of the communication as the secondary device 14a, the response from the server 31 is transmitted to the secondary device 14a (S126). The secondary device 14a converts the response packet from the server 31 by normal NAPT conversion processing (S127), and transmits the response packet to the endpoint (client device 20-2) corresponding to the converted destination information (S128).

[0069] When the client device 20-2 communicates with the server 31 again, the IP packet is sent to the primary device 12a along the default route (S130). The primary device 12a transfers the received IP packet to the secondary device 14a according to the NAPT extension algorithm. The secondary device 14a performs NAPT conversion on the IP packet according to the second conversion table T2 (S132), and transmits the IP packet with the converted source information to the server 31 (S133).

[0070] In this way, even if the port numbers in the main device 12a run out, the IP packet can be transferred to the secondary device 14a to perform the NAPT conversion process, thereby establishing a new address conversion between the client devices 20 and the server 31 and establishing a session.

[0071] <Effects of the second embodiment> In the related NAPT environment, the upper limit of the number of ports that can be used for NAPT conversion is 64512, and therefore the upper limit of the number of endpoints that can be processed by NAPT is also 64512. However, according to the second embodiment, it is possible to perform NAPT conversion on a number of endpoints that exceeds the above-mentioned upper limit.

[0072] In the second embodiment, the number of port numbers available for NAPT can be virtually doubled by performing NAPT conversion processing using port numbers of both the primary device 12a and secondary device 14a. By increasing the number of devices that function as global addresses and communication control units, the number of port numbers that can be virtually expanded can be further increased. Furthermore, since conversion tables do not need to be shared between devices, management of the conversion tables is simple even if the number of devices is increased. Therefore, the number of devices can be easily increased.

[0073] In the second embodiment, the number of port numbers available for NAPT is expanded, which prevents failure of NAPT conversion processing due to a shortage of port numbers and suppresses communication failures. In addition, since the number of endpoints that can be processed is increased, restrictions on network configuration can be relaxed and a larger-scale network can be constructed.

[0074] <Embodiment 3> Next, a third embodiment of the present disclosure will be described. In the third embodiment, a plurality of communication control units included in a communication control system are load-balanced or made redundant, and a default route is not determined.

[0075] 9 is a block diagram showing the configuration of a system 1b according to the third embodiment. The system 1b according to the third embodiment has a configuration basically similar to that of the system 1a according to the second embodiment, but differs in that the system 1b according to the third embodiment includes a first communication control device 12b, a second communication control device 14b, and a third communication control device 16b instead of the main device 12a and the secondary device 14a. The number of communication control devices is not limited to three, and may be two, or may be four or more.

[0076] In the third embodiment, the administrator of the system 1b pre-sets a proxy device for each communication control device when port number shortage occurs. For example, the first communication control device 12b, the second communication control device 14b, and the third communication control device 16b are set to use the second communication control device 14b, the third communication control device 16b, and the first communication control device 12b as proxy devices when port number shortage occurs. When there are two communication control devices, the two communication control devices may be set to be each other's proxy devices.

[0077] The communication between the client devices 20 and the server 31 is load-balanced or made redundant by the first communication control device 12b, the second communication control device 14b, and the third communication control device 16b. In the third embodiment, the default route of the client devices 20 is not limited to one communication control device, and any of the three communication control devices can be the next hop of the communication transmitted from the client devices 20.

[0078] When the first communication control device 12b, the second communication control device 14b, and the third communication control device 16b run out of port numbers, they transfer IP packets to the proxy destination device according to the above-mentioned NAPT expansion algorithm. Then, the proxy destination device executes the NAPT conversion process.

[0079] For example, if a port number shortage occurs in the first communication control unit 12b, the IP packet can be transferred to the second communication control unit 14b according to the NAPT expansion algorithm, and the second communication control unit 14b can perform NAPT conversion processing. At this time, if the port number shortage has been exhausted in the second communication control unit 14b, the second communication control unit 14b can further transfer the IP packet to the third communication control unit 16b, and have the third communication control unit 16b perform NAPT conversion processing.

[0080] If port numbers are congested in all communication control devices included in the communication control system 10, a loop occurs in which transfer to the proxy device using the NAPT extension algorithm is repeated. To prevent this, when the number of IP packet transfers between multiple communication control devices reaches a predetermined number or more, any of the communication control devices among the multiple communication control devices may discard the IP packet. Specifically, when the communication control device transfers an IP packet to the proxy device, it subtracts the TTL (Time to live) field of the IP packet to be transferred. This makes it possible to eliminate the IP packet when the transfer of the IP packet has been repeated a predetermined number of times.

[0081] According to the third embodiment, even if it is unknown which communication control device will have a port number shortage, if a port number shortage occurs in one communication control device, the port number can be supplemented by another communication control device. Therefore, more flexible failure prevention and network configuration are possible.

[0082] In the above-mentioned third embodiment, the case where the communication control system 10b includes three communication control devices has been described, but the number of communication control devices is not limited to this. For example, when the number of communication control devices is two, the first communication control device 12b and the second communication control device 14b, the first communication control device 12b and the second communication control device 14b each serve as a proxy device for the other.

[0083] <Embodiment 4> Next, a fourth embodiment of the present disclosure will be described. In the fourth embodiment, the NAPT extension algorithm is realized by a single device.

[0084] 10 is a block diagram showing the configuration of a system 1c according to the embodiment 4. The system 1c of the embodiment 4 basically has the same configuration as the system 1a of the embodiment 2. However, the system 1c includes a single communication control device 10c instead of the communication control system 10a.

[0085] The communication control device 10c is connected to the global network GN via multiple interfaces, and different global addresses G1 and G2 are assigned to each interface. When the client device 20 communicates with the server 31, the global address G1 is selected as the destination of the default route.

[0086] That is, the communication control device 10c can be considered to include a first communication control unit 12c having a first interface to which a global address G1 is assigned, and a second communication control unit 14c having a second interface to which a global address G2 of a different line is assigned. The communication control device 10c has in a storage device or is in a state where it can refer to a conversion table T3 that is an integration of the first conversion table T1 and the second conversion table T2.

[0087] 11 is a diagram showing an example of a data structure of a conversion table T3 according to embodiment 4. In the conversion table T3, in a record R2 that is recorded when the port number corresponding to the global address G1 is insufficient, in addition to the global address G2, the port number corresponding to the global address G2 is recorded as a converted address.

[0088] In such a system 1c, the communication control device 10c executes the NAPT extension algorithm shown in Fig. 3 to Fig. 5. That is, the communication control device 10c executes normal NAPT conversion processing when there is a shortage of port numbers corresponding to the global address G1. Specifically, when the first communication control unit 12c receives an IP packet addressed to the server 31 from a new endpoint of the client devices 20, it executes the processing shown in S16 to S18 using the global address G1 on the default route as the post-conversion address. Then, in S19, the first communication control unit 12c transmits the IP packet from the global address G1 to the server 31.

[0089] On the other hand, in a situation where the port number corresponding to the global address G1 is insufficient, the communication control device 10c executes the extended part of the algorithm. That is, the first communication control unit 12c of the communication control device 10c executes the NAPT conversion process using the global address G2 instead of the global address G1, and updates the conversion table T3. Next, the second communication control unit 14c of the communication control device 10c acquires the IP packet and refers to the conversion table T3. Next, the second communication control unit 14c converts the address information of the IP packet. Next, the second communication control unit 14c transmits the source information of the IP packet to the server 31 on the global network GN as the address-converted address and port number. Since this address conversion is held in the conversion table T3 of the communication control device 10c, when the communication control device 10c receives an IP packet with the same endpoint as the source or destination, it transmits the IP packet by the normal NAPT conversion process.

[0090] According to the fourth embodiment, in an environment in which one communication control device is connected to multiple external lines, the NAPT expansion algorithm can be executed without preparing multiple communication control devices.

[0091] Next, the physical configuration of the communication control device included in the communication control system will be described. Fig. 12 is a diagram showing an example of the configuration of a computer that can be used as the communication control device. The computer 1000 has a processor 1010, a storage unit 1020, a ROM (Read Only Memory) 1030, a RAM (Random Access Memory) 1040, a communication interface (IF: Interface) 1050, and a user interface 1060.

[0092] The communication interface 1050 is an interface for connecting the computer 1000 to a communication network via wired communication means or wireless communication means. The user interface 1060 includes a display unit such as a display. The user interface 1060 also includes an input unit such as a keyboard, a mouse, and a touch panel. The user interface 1060 is not essential.

[0093] The storage unit 1020 is an auxiliary storage device that can hold various data. The storage unit 1020 does not necessarily need to be a part of the computer 1000, and may be an external storage device or a cloud storage connected to the computer 1000 via a network.

[0094] The ROM 1030 is a non-volatile storage device. For example, a semiconductor storage device with a relatively small capacity, such as a flash memory, is used for the ROM 1030. The programs executed by the processor 1010 can be stored in the storage unit 1020 or the ROM 1030. The storage unit 1020 or the ROM 1030 stores various programs for implementing the functions of each unit in the communication control device, for example.

[0095] The above program includes a set of instructions (or software code) for making the computer perform one or more functions described in the embodiments when the program is loaded into the computer. The program may be stored in a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, the computer-readable medium or the tangible storage medium includes random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disc (DVD), Blu-ray® disk or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may be transmitted on a transitory computer-readable medium or a communication medium. By way of example and not limitation, the transitory computer-readable medium or the communication medium includes electrical, optical, acoustic, or other forms of propagated signals.

[0096] The RAM 1040 is a volatile storage device. Various semiconductor memory devices such as a dynamic random access memory (DRAM) or a static random access memory (SRAM) are used for the RAM 1040. The RAM 1040 can be used as an internal buffer for temporarily storing data and the like. The processor 1010 loads a program stored in the storage unit 1020 or the ROM 1030 into the RAM 1040 and executes it. The processor 1010 may be a central processing unit (CPU) or a graphics processing unit (GPU). The processor 1010 executes a program to realize the functions of each unit in the communication control device. The processor 1010 may have an internal buffer for temporarily storing data and the like.

[0097] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit and scope of the present invention.

[0098] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. (Appendix 1) a first communication control unit connected to the private network and having a first global address; a second communication control unit connected to the private network and having a second global address different from the first global address; Equipped with The first communication control unit is When a set of a private address and a pre-translation port number included in a received IP packet as source information is determined to be a new combination based on a first translation table used for NAPT (Network Address Port Translation) translation in the network layer of the OSI reference model, the first translation table associating a private address and a pre-translation port number with a global address and a post-translation port number, the method determines whether the number of port numbers corresponding to the first global address and available for the NAPT translation is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet and the second global address in the first conversion table in association with each other; The received IP packet is transferred to the second communication control unit. Communications control system. (Appendix 2) The first communication control unit is If the number of port numbers available for the NAPT conversion is greater than the threshold, Allocating one available port number as a post-translation port number for the set included in the received IP packet as source information; converting the set included in the received IP packet as source information into a set of the first global address and the converted port number; registering the set included as source information in the received IP packet and the converted set in the first conversion table in association with each other; The IP packet with the converted source information is sent to the destination device. 2. The communication control system of claim 1. (Appendix 3) The first communication control unit is When the set included in the received IP packet as source information is not determined to be a new combination based on the first conversion table, a set of a global address and a post-conversion port number associated with the set included in the received IP packet as source information is read out from the first conversion table; If the global address included in the read set is the first global address, converting the set included in the received IP packet as source information into the read set; Transmitting the IP packet with the converted source information to a destination device; If the global address included in the read set is the second global address, the received IP packet is transferred to the second communication control unit. 3. The communication control system according to claim 1 or 2. (Appendix 4) When an IP packet including a set of a global address and a post-translation port number as destination information is received, a set of a private address and a post-translation port number associated with the set included in the received IP packet as destination information is read from the first translation table; The received IP packet is forwarded to a client device associated with the read set. 4. A communication control system according to any one of claims 1 to 3. (Appendix 5) The first communication control unit, when a client device under the private network communicates with a device on an external network, receives IP packets related to the communication in priority over the second communication control unit. 5. A communication control system according to any one of claims 1 to 4. (Appendix 6) The first communication control unit and the second communication control unit are made redundant. 5. A communication control system according to any one of claims 1 to 4. (Appendix 7) The second communication control unit is When a set of a private address and a pre-conversion port number included as source information in the received IP packet is determined to be a new combination based on a second conversion table used for NAPT conversion by the second communication control unit, the second conversion table correlating a private address and a pre-conversion port number with a global address and a post-conversion port number, the method determines whether the number of port numbers corresponding to the second global address and available for the NAPT conversion is equal to or less than a predetermined second threshold value; If the number of port numbers available for the NAPT conversion is greater than the second threshold, Allocating one available port number as a post-translation port number for the set included in the received IP packet as source information; converting the set included in the received IP packet as source information into a set of the second global address and the converted port number; registering the set included as source information in the received IP packet and the converted set in the second conversion table in association with each other; Transmitting the IP packet with the converted source information to a destination device; If the number of port numbers available for the NAPT conversion is equal to or less than the second threshold, registering the set included as source information in the received IP packet and the first global address in the second conversion table in association with each other; The received IP packet is transferred to the first communication control unit. 7. A communication control system according to any one of claims 1 to 6. (Appendix 8) When the number of times the IP packet is transferred between a plurality of communication control devices becomes equal to or greater than a predetermined number of times, any one of the plurality of communication control devices discards the IP packet. 8. The communications control system of claim 7. (Appendix 9) When a set of a private address and a pre-translation port number included as source information in a received IP packet is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number, and that is used for NAPT (Network Address Port Translation) conversion in the network layer of the OSI reference model, the device determines whether the number of port numbers corresponding to its own global address and available for the NAPT conversion is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device; The received IP packet is transferred to the other communication control device. Communications control device. (Appendix 10) If the number of port numbers available for the NAPT conversion is greater than the threshold, Allocating one available port number as a post-translation port number for the set included in the received IP packet as source information; converting the set included as source information in the received IP packet into a set of the global address and the converted port number that the device has; registering the set included as source information in the received IP packet and the converted set in the conversion table in association with each other; The received IP packet is sent to the destination device. 10. The communication control device according to claim 9. (Appendix 11) When a set of a private address and a pre-translation port number included as source information in a received IP packet is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number, and that is used for NAPT (Network Address Port Translation) conversion in the network layer of the OSI reference model, the device determines whether the number of port numbers corresponding to its own global address and available for the NAPT conversion is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device; The received IP packet is transferred to the other communication control device. Communications control method. (Appendix 12) On the computer, a process of determining whether the number of port numbers corresponding to a global address owned by the device and available for NAPT conversion is equal to or less than a predetermined threshold value when a set of a private address and a pre-translation port number included in a received IP packet as source information is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number and that is used for NAPT conversion in the network layer of the OSI reference model; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device; A process of transferring the received IP packet to the other communication control device. A program for executing the above. [Explanation of symbols]

[0099] 1,1a,1b,1c system 9. System 10, 10a, 10b Communication control system 10c Communication control device (communication control system) 12, 12c First communication control unit 12a Main device (first communication control unit) 12b First communication control device (first communication control unit) 14, 14c Second communication control unit 14b Second communication control device (second communication control unit) 14a Subsystem device (second communication control unit) 16b Third communication control device 90 Communication control device 20 Client Device 30 External device 31 Server 1000 Computers 1010 Processor 1020 Storage section 1030 ROM 1040 RAM 1050 Communication Interface (IF) 1060 User Interface (IF) G1, G2 global address GN Global Network PN Private Network

Claims

1. a first communication control unit connected to the private network and having a first global address; a second communication control unit connected to the private network and having a second global address different from the first global address; Equipped with The first communication control unit is When a set of a private address and a pre-translation port number included in a received IP packet as source information is determined to be a new combination based on a first translation table used for NAPT (Network Address Port Translation) translation in the network layer of the OSI reference model, the first translation table associating a private address and a pre-translation port number with a global address and a post-translation port number, the method determines whether the number of port numbers corresponding to the first global address and available for the NAPT translation is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet and the second global address in the first conversion table in association with each other; Transferring the received IP packet to the second communication control unit; When a client device under the private network communicates with a device on an external network, the client device receives IP packets related to the communication in priority over the second communication control unit. Communications control system.

2. The first communication control unit is If the number of port numbers available for the NAPT conversion is greater than the threshold, Allocating one available port number as a post-translation port number to the set included in the received IP packet as source information; converting the set included in the received IP packet as source information into a set of the first global address and the converted port number; registering the set included as source information in the received IP packet and the converted set in the first conversion table in association with each other; The IP packet with the converted source information is sent to the destination device. The communication control system according to claim 1 .

3. The first communication control unit is When the set included in the received IP packet as source information is not determined to be a new combination based on the first conversion table, a set of a global address and a converted port number associated with the set included in the received IP packet as source information is read out from the first conversion table; If the global address included in the read set is the first global address, converting the set included in the received IP packet as source information into the read set; Transmitting the IP packet with the converted source information to a destination device; If the global address included in the read set is the second global address, the received IP packet is transferred to the second communication control unit.

3. The communication control system according to claim 1 or 2.

4. When an IP packet including a set of a global address and a post-translation port number as destination information is received, a set of a private address and a post-translation port number associated with the set included in the received IP packet as destination information is read from the first translation table; The received IP packet is forwarded to a client device associated with the read set. The communication control system according to any one of claims 1 to 3.

5. The second communication control unit is when a set of a private address and a pre-conversion port number included as source information in the received IP packet is determined to be a new combination based on a second conversion table used for NAPT conversion by the second communication control unit, the second conversion table associating a private address and a pre-conversion port number with a global address and a post-conversion port number, determining whether or not the number of port numbers corresponding to the second global address and available for the NAPT conversion is equal to or less than a predetermined second threshold value; If the number of port numbers available for the NAPT conversion is greater than the second threshold, Allocating one available port number as a post-translation port number to the set included in the received IP packet as source information; converting the set included in the received IP packet as source information into a set of the second global address and the converted port number; registering the set included as source information in the received IP packet and the converted set in the second conversion table in association with each other; Transmitting the IP packet with the converted source information to a destination device; If the number of port numbers available for the NAPT conversion is equal to or less than the second threshold, registering the set included as source information in the received IP packet and the first global address in the second conversion table in association with each other; The received IP packet is transferred to the first communication control unit. The communication control system according to any one of claims 1 to 4.

6. When the number of times the IP packet is transferred between a plurality of communication control devices becomes equal to or exceeds a predetermined number, any one of the plurality of communication control devices discards the IP packet. The communication control system according to claim 5.

7. When a set of a private address and a pre-translation port number included as source information in a received IP packet is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number, and that is used for NAPT (Network Address Port Translation) conversion in the network layer of the OSI reference model, the device determines whether the number of port numbers corresponding to its own global address and available for the NAPT conversion is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device connected to the private network; Transferring the received IP packet to the other communication control device; When a client device under the private network communicates with a device of an external network, the client device receives IP packets related to the communication in priority over the other communication control devices. Communications control device.

8. If the number of port numbers available for the NAPT conversion is greater than the threshold, Allocating one available port number as a post-translation port number to the set included in the received IP packet as source information; converting the set included as source information in the received IP packet into a set of the global address and the converted port number that the IP packet has; registering the set included in the received IP packet as source information and the converted set in the conversion table in association with each other; The received IP packet is sent to a destination device. The communication control device according to claim 7.

9. When a set of a private address and a pre-translation port number included as source information in a received IP packet is determined to be a new combination based on a conversion table that associates a set of a private address and a pre-translation port number with a set of a global address and a post-translation port number, and that is used for NAPT (Network Address Port Translation) conversion in the network layer of the OSI reference model, the device determines whether the number of port numbers corresponding to its own global address and available for the NAPT conversion is equal to or less than a predetermined threshold value; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device connected to the private network; Transferring the received IP packet to the other communication control device; When a client device under the private network communicates with a device of an external network, the client device receives IP packets related to the communication in priority over the other communication control devices. Communications control method.

10. On the computer, a process of determining whether the number of port numbers corresponding to the global address owned by the device and available for the NAPT conversion is equal to or less than a predetermined threshold value when the set of private address and pre-translation port number included in the received IP packet as source information is determined to be a new combination based on a conversion table that associates the set of private address and pre-translation port number with a set of global address and post-translation port number, the conversion table being used for NAPT conversion in the network layer of the OSI reference model; If the number of port numbers available for the NAPT conversion is equal to or less than the threshold, registering the set included as source information in the received IP packet in the conversion table in association with a global address of another communication control device connected to the private network; A process of transferring the received IP packet to the other communication control device; When a client device under the private network communicates with a device of an external network, the client device receives IP packets related to the communication in priority to the other communication control devices; A program for executing the above.

Citation Information

Patent Citations

  • Address conversion system, address conversion method, and address conversion program

    JP2006180362A

  • System for network address translation

    US10237235B1

  • Efficient port management for a distributed network address translation

    US20130185404A1