WO2016120983A1 - Country identification information adding device, country identification information adding method, and program - Google Patents

Country identification information adding device, country identification information adding method, and program Download PDF

Info

Publication number
WO2016120983A1
WO2016120983A1 PCT/JP2015/052108 JP2015052108W WO2016120983A1 WO 2016120983 A1 WO2016120983 A1 WO 2016120983A1 JP 2015052108 W JP2015052108 W JP 2015052108W WO 2016120983 A1 WO2016120983 A1 WO 2016120983A1
Authority
WO
WIPO (PCT)
Prior art keywords
identification information
country identification
port number
packet
country
Prior art date
Application number
PCT/JP2015/052108
Other languages
French (fr)
Japanese (ja)
Inventor
尚厳 大瀧
準史郎 神田
渉 伏見
井上 淳
渡邊 明彦
Original Assignee
三菱電機株式会社
三菱電機ビルテクノサービス株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社, 三菱電機ビルテクノサービス株式会社 filed Critical 三菱電機株式会社
Priority to CN201580068102.XA priority Critical patent/CN107005465B/en
Priority to PCT/JP2015/052108 priority patent/WO2016120983A1/en
Priority to JP2016571534A priority patent/JP6253813B2/en
Priority to TW104119358A priority patent/TWI574527B/en
Publication of WO2016120983A1 publication Critical patent/WO2016120983A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M11/00Telephonic communication systems specially adapted for combination with other electrical systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present invention relates to packet transmission / reception.
  • monitoring centers collect information on devices installed in multiple countries via a network.
  • communication between the device and the monitoring center is performed using TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • a method is also conceivable in which a device acquires position information using GPS (Global Positioning System) and attaches the acquired position information to a packet for transmission.
  • GPS Global Positioning System
  • the present invention has been made in view of the above circumstances, and does not depend on the IP address and the GPS system, and can make it possible to identify the packet transmission country without any prior setting work on the device.
  • the main purpose is to provide
  • the country identification information adding device is: A country identification information acquisition unit that receives a communication carrier code of a carrier of a mobile phone network and acquires, as country identification information, a code representing a country to which the communication carrier belongs from the received communication carrier code; A country identification information addition unit for adding the country identification information acquired by the country identification information acquisition unit to a packet; A communication unit that transmits the packet with the country identification information added by the country identification information addition unit.
  • a carrier code of a carrier of the mobile phone network is received, and a code representing a country to which the carrier belongs in the received carrier code is added to the packet as country identification information. For this reason, it is possible to identify the packet transmission country without depending on the IP address and the GPS system, and without prior setting work on the device.
  • FIG. 1 is a diagram illustrating a configuration example of a device remote monitoring system according to a first embodiment. The figure which shows the function structural example of the country identification information addition apparatus which concerns on Embodiment 1.
  • FIG. FIG. 3 is a diagram illustrating a functional configuration example of a country identification device according to the first embodiment.
  • FIG. 4 is a flowchart showing an operation example of the country identification information adding device according to the first embodiment.
  • FIG. 4 is a flowchart showing an operation example of the country identification information adding device according to the first embodiment.
  • FIG. 3 shows an example of a port number correspondence table according to the first embodiment.
  • FIG. 4 shows an example of a port number after rewriting according to the first embodiment.
  • FIG. 4 is a flowchart showing an operation example of the country identification device according to the first embodiment.
  • FIG. 4 is a diagram showing an example of a transfer destination information table according to the first embodiment.
  • FIG. 4 is a flowchart showing an operation example of the country identification information adding device according to the first embodiment.
  • FIG. 4 is a diagram illustrating an example of a destination IP address, a destination port number, a source IP address, and a source port number of a response packet according to the first embodiment.
  • FIG. 6 shows an example of a port number after rewriting according to the second embodiment.
  • FIG. 6 shows an example of a port number after rewriting according to the second embodiment.
  • FIG. 6 shows a configuration example of a device according to Embodiment 3.
  • FIG. 6 shows a configuration example of a device according to Embodiment 3.
  • the flowchart figure which shows the operation example of the country identification information addition apparatus which concerns on Embodiment 4.
  • FIG. which shows the example of the area
  • FIG. 10 is a flowchart showing an operation example of the country identification device according to the fourth embodiment.
  • FIG. 10 is a diagram illustrating a configuration example of a device remote monitoring system according to a fifth embodiment.
  • FIG. 6 is a diagram showing a hardware configuration example of a country identification information adding device according to the first to fifth embodiments. The figure which shows the structural example of a general apparatus remote monitoring system.
  • FIG. 24 shows a configuration example of a general device remote monitoring system.
  • the device 100 is installed in, for example, a factory, collects information on devices in the factory, and transmits the collected information to the center device 400 by IP communication.
  • Various measuring devices, sensors, and the like are connected under the device 100, but the description of these devices is omitted in FIG.
  • the device remote monitoring system the device 100 is installed across a plurality of countries.
  • the center device 400 collects information from the device 100 and issues a control command to the device.
  • the center device 400 is installed in one monitoring center.
  • the cellular phone network 500 is a packet switching network that connects the device 100 and the monitoring center.
  • the mobile phone network 500 is connected to the monitoring center via the Internet.
  • the communication apparatuses 200 in countries A, B, and C are illustrated as wirelessly connected to one mobile phone network 500. In reality, however, mobile phones are provided for each country.
  • a net 500 is provided.
  • the communication device 200 is installed between the device 100 and the mobile phone network 500.
  • the communication device 300 is installed between the center device 400 and the mobile phone network 500.
  • the communication apparatus 200 connects to the mobile phone network 500, transfers the packet from the device 100 to the mobile phone network 500, and transfers the packet sent from the mobile phone network 500 to the device 100 to the device 100. Perform the process.
  • the communication device 300 is sent to the mobile phone network 500 via the Internet, the processing for transferring a packet from the center device 400 to the mobile phone network 500, and the mobile device 500 sent to the center device 400.
  • a process of transferring the packet to the center apparatus 400 is performed.
  • FIG. 1 shows a configuration of a device remote monitoring system according to the present embodiment.
  • a country identification information adding device 600 is installed between the device 100 and the communication device 200
  • the country identification device 700 is installed between the center device 400 and the communication device 300 of the monitoring center.
  • a plurality of center devices 400a to 400c are installed in the monitoring center in order to distribute the center devices 400 that perform processing according to the packet transmission country.
  • Center device 400a processes a packet from country A
  • center device 400b processes a packet from country B
  • center device 400c processes a packet from country C.
  • FIG. 2 shows a functional configuration example of the country identification information adding device 600.
  • the country identification information addition device 600 includes a country identification information acquisition unit 601, a country identification information addition unit 602, a port number correspondence table storage unit 603, and a communication unit 604.
  • the country identification information acquisition unit 601 receives the telecommunications carrier code of the telecommunications carrier of the mobile phone network 500 from the mobile phone network 500 via the communication unit 604, and determines the country to which the telecommunications carrier belongs from the received telecommunications carrier code. The code to represent is acquired as country identification information. Then, the country identification information acquisition unit 601 stores the country identification information in a storage area in the country identification information adding device 600. Note that the telecommunications carrier code is assigned only to the telecommunications carrier of the mobile phone network 500, and other types of networks such as a wired network cannot obtain the same code from the network. Therefore, the country identification information acquisition unit 601 receives the communication carrier code of the communication carrier of the mobile phone network 500 from the mobile phone network 500.
  • the country identification information adding unit 602 adds the country identification information acquired by the country identification information acquiring unit 601 to the packet addressed to the center device 400. More specifically, the country identification information adding unit 602 monitors packets transmitted / received between the device 100 and the center device 400, and transmits TCP / UDP of packets transmitted from the device 100 to the center device 400. Rewrite the original port number field with a number generated from the country identification information. That is, the country identification information adding unit 602 deletes the transmission source port number from the transmission source port number field of the packet, and transmits the transmission source port number including the country identification information (hereinafter also referred to as country identification information port number). Describe in the port number field.
  • the country identification information adding unit 602 returns the TCP / UDP destination port number of the packet transmitted from the center apparatus 400 to the device 100 to the port number before rewriting. That is, the country identification information adding unit 602 deletes the country identification information port number from the destination port number field of the response packet from the center apparatus 400 that is the packet transmission destination, and the original transmission source port number (the port number of the device 100). ) In the destination port number field of the response packet.
  • the port number correspondence table storage unit 603 stores a port number correspondence table.
  • the port number correspondence table is generated by the country identification information adding unit 602.
  • the port number correspondence table is a table that stores information on packets before rewriting and port numbers after rewriting in association with each other. More specifically, as shown in FIG. 6, the port number correspondence table includes a destination IP address, a destination port number, a source IP address, a source port number, and a port number after rewriting that is a country identification information port number. Is a table shown in association with each other. If no response packet is transmitted from the center apparatus 400 to the device 100, the country identification information adding apparatus 600 may not include the port number correspondence table storage unit 603 and the port number correspondence table.
  • the communication unit 604 receives a packet addressed to the center device 400 from the device 100, outputs the received packet to the country identification information adding unit 602, and adds the country identification information to the transmission source port number field by the country identification information adding unit 602.
  • the packet addressed to the center apparatus 400 is transmitted to the communication apparatus 200.
  • the communication unit 604 receives the response packet returned from the center device 400, outputs the received response packet to the country identification information adding unit 602, and the country identification information adding unit 602 sends the original transmission to the destination port number field.
  • a response packet addressed to the device 100 describing the original port number (port number of the device 100) is transmitted to the device 100.
  • FIG. 3 shows a functional configuration example of the country identification device 700.
  • the country identification device 700 includes a country identification unit 701, a packet transfer destination designation unit 702, a transfer destination information table storage unit 703, and a communication unit 704.
  • the communication unit 704 receives a packet to which country identification information indicating the country of the transmission source is added. More specifically, the communication unit 704 receives a packet addressed to the center device 400 in which the country identification information port number is described in the transmission source port number field by the country identification information adding device 600, and the received packet is transmitted to the country identification unit. To 701. Further, the communication unit 704 transfers the packet to the center device 400 designated as the packet transfer destination by the packet transfer destination designation unit 702. Further, the communication unit 704 receives a response packet from the center device 400 and transmits the received response packet to the device 100.
  • the country identification unit 701 extracts country identification information from the packet received by the communication unit 704. That is, the country identification unit 701 monitors packets transmitted / received between the device 100 and the center device 400, and determines the country identification information port number from the transmission source port number field of the packet transmitted from the device 100 to the center device 400. And the country identification information is extracted from the country identification information port number.
  • the packet transfer destination designation unit 702 selects the center device 400 corresponding to the country identification information extracted by the country identification unit 701 from the center devices 400 provided for each country, and selects the selected center device 400 for the packet. Specify the transfer destination.
  • the packet transfer destination designation unit 702 refers to the transfer destination information table stored in the transfer destination information table storage unit 703 and designates the packet transfer destination.
  • the transfer destination information table storage unit 703 stores a transfer destination information table.
  • the transfer destination information table as shown in FIG. 12, the IP address of the center device 400 serving as the transfer destination is described for each country identification information.
  • the packet transmission country identification operation consists of the following four steps. (1) Acquisition of country identification information by the country identification information adding device 600 (2) Transmission of a packet from the device 100 to the center device 400 (3) Identification of a packet transmission country in the country identification device 700 (4) From the center device 400 Transmission of response packet to device The details of each step will be described below.
  • FIG. 4 shows an acquisition flow of country identification information by the country identification information obtaining unit 601 of the country identification information adding device 600.
  • the country identification information acquisition unit 601 checks whether the country identification information is stored in the country identification information adding device 600. If the country identification information is not stored, the process proceeds to S002. If the country identification information is stored, the process ends.
  • the country identification information acquisition unit 601 issues an AT command for acquiring a communication carrier code to the communication device 200.
  • the AT command is a standard command for controlling the communication device 200.
  • the country identification information acquisition unit 601 can acquire the communication carrier code of the communication carrier of the communication network to which the communication device 200 is currently connected. In the configuration of FIG.
  • the country identification information acquisition unit 601 can acquire the communication carrier code of the communication carrier of the mobile phone network 500 from the mobile phone network 500.
  • the carrier code is an integer value of 5 digits, and the code system is defined by the standardization organization 3GPP (Third Generation Partnership Project).
  • the country identification information acquisition unit 601 extracts the first three digits of the carrier code acquired in S002, and uses the extracted first three digits as country identification information. Since the first three digits of the carrier code are defined as a code representing the country, the country can be identified in this part.
  • the country identification information acquisition unit 601 stores the extracted country identification information in a storage area in the country identification information adding device 600. If acquisition of the carrier code has failed in S002, the country identification information acquisition unit 601 stores “000” as country identification information that does not apply to any country in the storage area in the country identification information adding device 600. To do. In addition, when acquisition of a communication carrier code has failed, a process in which the country identification information acquisition unit 601 periodically redoes the procedure after S002 may be added. S001 to S005 shown in FIG. 4 correspond to country identification information acquisition processing.
  • the device 100 transmits a TCP or UDP packet to the center device 400 according to a predefined communication protocol. At this time, an arbitrary value is set in the TCP or UDP port number of the packet transmitted from the device 100. All the packets transmitted from the device 100 reach the country identification information adding device 600.
  • FIG. 5 shows a flow when the country identification information adding device 600 receives a packet transmitted from the device 100 and the country identification information adding unit 602 processes the packet.
  • the country identification information adding unit 602 enters an entry in the port number correspondence table (FIG. 6) in which the received packet, the destination IP address, the destination port number, the source IP address, and the source port number match. Check if exists. If there is a matching entry, the process proceeds to S104. If there is no matching entry, the process proceeds to S102.
  • the country identification information adding unit 602 generates a rewritten port number by combining the country identification information stored in S005 and an arbitrary application identification number.
  • the port number after rewriting is an integer of a maximum of 5 digits having the application identification number as the first two digits (however, values from 0 to 64) and the country identification information as the last three digits.
  • the port number after rewriting is 10440.
  • the application identification number is set to an arbitrary value such that a combination of four items other than the transmission source port number in the port number correspondence table does not overlap with other entries.
  • a packet having information shown in FIG. 8 is newly received when the port number correspondence table is in the state shown in FIG. Since this newly received packet is the same as the first entry in the port number correspondence table of FIG. 6 except for the source port number, a value other than 10440 must be set for the port number after rewriting. Since the last three digits (440) corresponding to the country identification information are fixed, it is necessary to set a value other than 10 to the application identification number.
  • the country identification information adding unit 602 adds the rewritten port number generated in S102 and the received packet information to the port number correspondence table.
  • the port number correspondence table is as shown in FIG.
  • the country identification information adding unit 602 rewrites the transmission source port number of the packet with the rewritten port number described in the entry corresponding to the received packet information in the port number correspondence table.
  • the communication unit 604 transfers the packet to the communication device 200.
  • S101 to S104 in FIG. 5 correspond to country identification information addition processing
  • S105 corresponds to communication processing.
  • FIG. 11 shows a flow when the country identification device 700 receives a packet transmitted from the device 100 and whose source port number is rewritten by the country identification information adding device 600 and processes the received packet.
  • the country identification unit 701 of the country identification device 700 extracts the last three digits of the transmission source port number of the packet received by the communication unit 704, and uses the extracted last three digits as country identification information.
  • the packet transfer destination designation unit 702 of the country identification device 700 acquires the transfer destination IP address corresponding to the country identification information acquired in S201 from the transfer destination information table shown in FIG.
  • the packet transfer destination designation unit 702 rewrites the destination IP address of the received packet with the IP address acquired in S202, and the communication unit 704 transfers the packet after the destination IP address is rewritten.
  • a response packet from center device 400 may be generated.
  • the source port number of the received packet is set as the destination port number and the response packet is transmitted.
  • the rewritten port number is designated as the destination port number. Since the device 100 is not aware of rewriting the port number, communication cannot be performed with the port number after rewriting, and it is necessary to return the destination port number of the response packet to the original port number when the device 100 transmitted.
  • the country identification information adding unit 602 performs this process using the port number correspondence table.
  • FIG. 13 shows a processing flow of the country identification information adding unit 602.
  • the destination IP address, the destination port number, and the source IP address shown in FIG. 14 as a response packet of the packet having the destination IP address, destination port number, source IP address, and source port number shown in FIG.
  • a process when the country identification information adding device 600 receives a response packet having a transmission source port number will be described. Further, it is assumed that the port number correspondence table when receiving the response packet is in the state shown in FIG.
  • the country identification information adding unit 602 searches the port number correspondence table (FIG. 9) for an entry corresponding to the received response packet.
  • the country identification information adding unit 602 includes a source IP address, a port number after rewriting, a destination IP address, and a destination port number, the destination IP address, the destination port number, the source IP address of the received response packet, An entry matching the transmission source port number is searched from the port number correspondence table.
  • the entry corresponding to the packet in FIG. 14 is the bottom entry in FIG. It can be seen from the transmission source port number of this entry that the transmission source port number of the packet before rewriting was 11122.
  • the country identification information adding unit 602 rewrites the destination port number of the response packet with the port number acquired in S301.
  • the communication unit 604 transfers the packet with the rewritten destination port number to the device 100.
  • the country identification information adding unit 602 matches the destination IP address of the response packet with the transmission source IP address in the port number correspondence table, and the destination port number of the response packet matches the country identification information port in the port number correspondence table.
  • the source IP address of the response packet matches the destination IP address in the port number correspondence table, and the source port number of the response packet matches the destination port number in the port number correspondence table. If they match, the port number after rewriting that is the country identification information port number is deleted from the destination port number field of the response packet, and the source port number in the port number correspondence table is described in the destination port number field of the response packet. .
  • the country identification information adding device receives the communication carrier code of the mobile phone network carrier, and represents the country to which the communication carrier in the received carrier carrier code belongs. The code is added to the packet as country identification information. For this reason, it is possible to notify the monitoring center of the packet transmission country without depending on the IP address and the GPS system, and without any prior setting work for the device.
  • the country identification information adding device adds the country identification information port number to the transmission source port number field of the packet, so that the data format of the communication protocol used between the device and the center device is changed. The packet sending country can be notified to the monitoring center without correction.
  • Embodiment 2 FIG. In S102 of FIG. 5 of the first embodiment, the 2-digit application identification number and the 3-digit country identification information are concatenated to obtain the port number after rewriting.
  • a method for generating a port number after rewriting other than that will be described. Except for the method of generating the port number after rewriting, it is the same as in the first embodiment.
  • the country identification information adding unit 602 uses the remaining 6 bits as the application identification number as shown in FIG. Then, the country identification information adding unit 602 combines the 10-bit country identification information and the 6-bit application identification number as the port number after rewriting.
  • the country identification information is a three-digit integer, but the number of countries is 256 or less.
  • the country identification information adding unit 602 defines a conversion table for converting the country identification information into 8-bit data, and represents the country identification information with 8 bits, as shown in FIG.
  • the bit may be an application identification number.
  • any method that can generate a unique port number after rewriting from the country identification information and the application identification number can be used.
  • Embodiment 3 FIG. In the first embodiment and the second embodiment, the case where the device 100, the country identification information adding device 600, and the communication device 200 are separate hardware has been described.
  • the function of the country identification information adding device 600 and the function of the communication device 200 may be provided in one piece of hardware.
  • the communication unit 604 in FIG. 17 performs the same operation as that of the communication apparatus 200 according to the first embodiment.
  • only the communication device 200 may be different hardware. Other combinations of functions and hardware may be used.
  • the hardware configuration of the device 100, the country identification information adding device 600, and the communication device 200 is the same as that of the first embodiment.
  • Embodiment 4 FIG.
  • the method of embedding country identification information in the port number field of the packet is shown.
  • a method of inserting country identification information into an arbitrary area in a packet instead of the port number field is shown.
  • the configuration example of the device remote monitoring system is as shown in FIG. 1
  • the functional configuration example of the country identification information adding device 600 is as shown in FIG.
  • An example is as shown in FIG.
  • the operation for identifying the packet transmission country according to this embodiment is largely composed of the following four steps. (1) Acquisition of country identification information by the country identification information adding device 600 (2) Transmission of a packet from the device 100 to the center device 400 (3) Identification of a packet transmission country in the country identification device 700 (4) From the center device 400 Transmission of response packet to device 100
  • the device 100 transmits a TCP or UDP packet to the center device 400 according to a predefined communication protocol. All the packets transmitted from the device 100 reach the country identification information adding device 600.
  • FIG. 19 shows a flow when the country identification information adding device 600 receives a packet transmitted from the device 100 and the country identification information adding unit 602 processes the packet.
  • the country identification information adding unit 602 inserts the country identification information in a predetermined area of the received packet.
  • the country identification information adding unit 602 adds a 16-bit area between the header area and the data area of the TCP or UDP packet, and the country is added to the 16-bit area. Insert identification information. Other methods may be used for the country identification information insertion position and the size and format of the area.
  • the communication unit 604 transfers the packet with the country identification information added to the communication device 200.
  • FIG. 21 shows a flow when the country identification device 700 receives a packet transmitted from the device 100 and after country identification information is inserted by the country identification information adding device 600, and processes the received packet.
  • the country identification unit 701 of the country identification device extracts 16 bits immediately after the header area of the received packet, and recognizes the extracted 16 bits as country identification information.
  • the packet transfer destination designation unit 702 of the country identification device acquires a transfer destination IP address corresponding to the country identification information acquired in S501 from the transfer destination information table.
  • the packet transfer destination designation unit 702 rewrites the destination IP address of the received packet with the transfer destination IP address acquired in S502, deletes the region of the country identification information from the packet, and the communication unit 704 transfers the packet to the transfer destination. Are transferred to the center device 400.
  • Both the country identification device 700 and the country identification information addition device 600 perform any processing on the packet transmitted from the center device 400 to the device 100. Instead, the packet is transferred as it is.
  • the country identification information adding device inserts the country identification information into the specific area of the packet, and the country identification apparatus simply deletes the country identification information from the specific area. Can be notified.
  • Embodiment 5 FIG. In the present embodiment, a method of connecting the mobile phone owned by the equipment installation worker and the country identification information adding device 600 when installing the equipment 100 and acquiring the country identification information via the mobile phone will be described.
  • FIG. 22 shows a configuration example of the device remote monitoring system according to the present embodiment. Since the configuration on the monitoring center side is the same as that of the first to fourth embodiments, the illustration is omitted.
  • the device 100 and the communication device 200 are the same as those shown in FIG. However, the communication device 200 is connected to an IP network 800 which is a communication network other than the cellular phone network 500.
  • the country identification information adding unit 602, the port number correspondence table storage unit 603, and the communication unit 604 in the country identification information adding device 600 are the same as those shown in FIG.
  • the device installation worker owns the mobile phone 1000 having the country identification information transmission unit 1001, and the mobile phone 1000 is connected to the country identification information adding device 600 by wire or wireless when the device 100 is installed.
  • the country identification information adding unit 601 transmits a request for country identification information to the mobile phone 1000.
  • the country identification information transmitting unit 1001 of the mobile phone 1000 receives the communication carrier code of the currently connected communication carrier, and receives the country identification information adding device. 600.
  • the country identification information transmission unit 1001 transmits the carrier code of the carrier of the mobile phone network 500 to the country identification information adding device 600. Any of the methods described in the first to fourth embodiments may be used by the country identification information adding device 600 to transmit the carrier code acquired from the mobile phone 1000 to the monitoring center.
  • the country identification information can be added to the packet even if the network used when the device and the monitoring center communicate is not the mobile phone network.
  • the country identification information adding device 600 is a computer, and each element of the country identification information adding device 600 can be realized by a program.
  • an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
  • the arithmetic device 901 is a CPU (Central Processing Unit) that executes a program.
  • the external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
  • the main storage device 903 is a RAM (Random Access Memory).
  • the communication device 904 corresponds to the physical layer of the communication unit 604 and is, for example, a NIC (Network Interface Card).
  • the input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
  • the program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
  • the program is a program that realizes the function described as “ ⁇ unit” (excluding the port number correspondence table storage unit 603, the same applies hereinafter) shown in FIG.
  • an operating system (OS) is also stored in the external storage device 902. At least a part of the OS is loaded into the main storage device 903, and the arithmetic device 901 executes “OS” shown in FIG. ”Is executed.
  • FIG. 23 is merely an example of the hardware configuration of the country identification information adding device 600, and the hardware configuration of the country identification information adding device 600 is not limited to the configuration shown in FIG. It may be a configuration.
  • country identification information adding method according to the present invention can be realized by the procedures shown in the first to fifth embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A country identification information acquiring unit (601) receives a carrier code of a carrier of a portable telephone network, and acquires, as country identification information, a code indicating a country to which the carrier belongs from the received carrier code. A country identification information adding unit (602) adds, to a packet, the country identification information acquired by the country identification information acquiring unit (601). A communication unit (604) transmits the packet to which the country identification information is added by the country identification information adding unit (602).

Description

国識別情報付加装置及び国識別情報付加方法及びプログラムCountry identification information addition apparatus, country identification information addition method, and program
 本発明は、パケットの送受信に関する。 The present invention relates to packet transmission / reception.
 監視センタが複数の国に設置されている機器の情報をネットワークを介して収集するシステムを想定する。
 また、機器と監視センタ間の通信はTCP(Transmission Control Protocol)またはUDP(User Datagram Protocol)を使用して行われると想定する。
 このシステムにおいて、機器が設置されている国に応じて監視センタでの処理を変更するためには、監視センタで受信したパケットがどの国から発信されているかを識別する必要がある。
Assume a system in which monitoring centers collect information on devices installed in multiple countries via a network.
In addition, it is assumed that communication between the device and the monitoring center is performed using TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).
In this system, in order to change the processing in the monitoring center according to the country in which the device is installed, it is necessary to identify from which country the packet received by the monitoring center is transmitted.
 パケットの発信国を識別する方法として、パケットの送信元IP(Internet Protocol)アドレスを確認し、グローバルIPアドレスの割り当て情報から国を特定し、パケットの発信国を識別する方法(例えば、特許文献1)が知られている。
 しかしながら、監視センタと機器間の通信に通信事業者が提供する閉域網サービスを利用する場合は、機器にグローバルIPアドレスが割り当てられないため、送信元IPアドレスで発信国を特定することはできない。
 他の手段として、機器設置時に機器に国識別情報を設定し、機器がパケットに国識別情報を付与して送信する方法が考えられる。
 しかしながら、この方法では機器への設定作業が発生するため、設定負荷の増加や設定ミスが問題になる。
 機器がGPS(Global Positioning System)を利用して位置情報を取得し、取得した位置情報をパケットに付与して送信する方法も考えられるが、法律によってGPS情報の国外送信が規制されている国では当該方法は利用できない。
As a method of identifying the country of transmission of a packet, a method of confirming the source IP (Internet Protocol) address of the packet, specifying the country from global IP address assignment information, and identifying the country of transmission of the packet (for example, Patent Document 1) )It has been known.
However, when a closed network service provided by a telecommunications carrier is used for communication between the monitoring center and the device, a global IP address is not assigned to the device, and thus the country of origin cannot be specified by the source IP address.
As another means, a method is conceivable in which country identification information is set in a device when the device is installed, and the device adds the country identification information to a packet and transmits the packet.
However, in this method, setting work to the device occurs, so that an increase in setting load and a setting error become problems.
A method is also conceivable in which a device acquires position information using GPS (Global Positioning System) and attaches the acquired position information to a packet for transmission. However, in countries where GPS information is restricted from being transmitted overseas. This method cannot be used.
特開2007-104509号公報JP 2007-104509 A
 本発明は、上記の事情に鑑みてなされたものであり、IPアドレス及びGPSシステムに依存せず、また、機器への事前の設定作業がなくても、パケット発信国の識別を可能にする仕組みを提供することを主な目的とする。 The present invention has been made in view of the above circumstances, and does not depend on the IP address and the GPS system, and can make it possible to identify the packet transmission country without any prior setting work on the device. The main purpose is to provide
 本発明に係る国識別情報付加装置は、
 携帯電話網の通信事業者の通信事業者コードを受信し、受信した通信事業者コードから前記通信事業者が属する国を表すコードを国識別情報として取得する国識別情報取得部と、
 前記国識別情報取得部により取得された前記国識別情報をパケットに付加する国識別情報付加部と、
 前記国識別情報付加部により前記国識別情報が付加された前記パケットを送信する通信部とを有する。
The country identification information adding device according to the present invention is:
A country identification information acquisition unit that receives a communication carrier code of a carrier of a mobile phone network and acquires, as country identification information, a code representing a country to which the communication carrier belongs from the received communication carrier code;
A country identification information addition unit for adding the country identification information acquired by the country identification information acquisition unit to a packet;
A communication unit that transmits the packet with the country identification information added by the country identification information addition unit.
 本発明では、携帯電話網の通信事業者の通信事業者コードを受信し、受信した通信事業者コード内の通信事業者が属する国を表すコードを国識別情報としてパケットに付加する。
 このため、IPアドレス及びGPSシステムに依存せず、また、機器への事前の設定作業がなくても、パケット発信国の識別が可能になる。
In the present invention, a carrier code of a carrier of the mobile phone network is received, and a code representing a country to which the carrier belongs in the received carrier code is added to the packet as country identification information.
For this reason, it is possible to identify the packet transmission country without depending on the IP address and the GPS system, and without prior setting work on the device.
実施の形態1に係る機器遠隔監視システムの構成例を示す図。1 is a diagram illustrating a configuration example of a device remote monitoring system according to a first embodiment. 実施の形態1に係る国識別情報付加装置の機能構成例を示す図。The figure which shows the function structural example of the country identification information addition apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る国識別装置の機能構成例を示す図。FIG. 3 is a diagram illustrating a functional configuration example of a country identification device according to the first embodiment. 実施の形態1に係る国識別情報付加装置の動作例を示すフローチャート図。FIG. 4 is a flowchart showing an operation example of the country identification information adding device according to the first embodiment. 実施の形態1に係る国識別情報付加装置の動作例を示すフローチャート図。FIG. 4 is a flowchart showing an operation example of the country identification information adding device according to the first embodiment. 実施の形態1に係るポート番号対応テーブルの例を示す図。FIG. 3 shows an example of a port number correspondence table according to the first embodiment. 実施の形態1に係る書き換え後ポート番号の例を示す図。FIG. 4 shows an example of a port number after rewriting according to the first embodiment. 実施の形態1に係るパケットの宛先IPアドレス、宛先ポート番号、送信元IPアドレス、送信元ポート番号の例を示す図。The figure which shows the example of the destination IP address of the packet which concerns on Embodiment 1, a destination port number, a transmission source IP address, and a transmission source port number. 実施の形態1に係る応答パケット受信時のポート番号対応テーブルの例を示す図。FIG. 6 shows an example of a port number correspondence table when a response packet is received according to the first embodiment. 実施の形態1に係るパケットの宛先IPアドレス、宛先ポート番号、送信元IPアドレス、送信元ポート番号の例を示す図。The figure which shows the example of the destination IP address of the packet which concerns on Embodiment 1, a destination port number, a transmission source IP address, and a transmission source port number. 実施の形態1に係る国識別装置の動作例を示すフローチャート図。FIG. 4 is a flowchart showing an operation example of the country identification device according to the first embodiment. 実施の形態1に係る転送先情報テーブルの例を示す図。FIG. 4 is a diagram showing an example of a transfer destination information table according to the first embodiment. 実施の形態1に係る国識別情報付加装置の動作例を示すフローチャート図。FIG. 4 is a flowchart showing an operation example of the country identification information adding device according to the first embodiment. 実施の形態1に係る応答パケットの宛先IPアドレス、宛先ポート番号、送信元IPアドレス、送信元ポート番号の例を示す図。FIG. 4 is a diagram illustrating an example of a destination IP address, a destination port number, a source IP address, and a source port number of a response packet according to the first embodiment. 実施の形態2に係る書き換え後ポート番号の例を示す図。FIG. 6 shows an example of a port number after rewriting according to the second embodiment. 実施の形態2に係る書き換え後ポート番号の例を示す図。FIG. 6 shows an example of a port number after rewriting according to the second embodiment. 実施の形態3に係る機器の構成例を示す図。FIG. 6 shows a configuration example of a device according to Embodiment 3. 実施の形態3に係る機器の構成例を示す図。FIG. 6 shows a configuration example of a device according to Embodiment 3. 実施の形態4に係る国識別情報付加装置の動作例を示すフローチャート図。The flowchart figure which shows the operation example of the country identification information addition apparatus which concerns on Embodiment 4. FIG. 実施の形態4に係る国識別情報を付加する領域の例を示す図。The figure which shows the example of the area | region to which the country identification information which concerns on Embodiment 4 is added. 実施の形態4に係る国識別装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the country identification device according to the fourth embodiment. 実施の形態5に係る機器遠隔監視システムの構成例を示す図。FIG. 10 is a diagram illustrating a configuration example of a device remote monitoring system according to a fifth embodiment. 実施の形態1~5に係る国識別情報付加装置のハードウェア構成例を示す図。FIG. 6 is a diagram showing a hardware configuration example of a country identification information adding device according to the first to fifth embodiments. 一般的な機器遠隔監視システムの構成例を示す図。The figure which shows the structural example of a general apparatus remote monitoring system.
 実施の形態1.
***構成の説明***
 図24に、一般的な機器遠隔監視システムの構成例を示す。
 機器100は、例えば工場に設置され、工場内の装置の情報を収集し、収集した情報をIP通信によってセンタ装置400へ送信する。
 機器100の配下には様々な計測装置やセンサなどが接続されているが、図24ではそれら装置の記載は省略している。
 図24に示すように、機器遠隔監視システムは、機器100が複数の国にまたがって設置されている。
 センタ装置400は、機器100からの情報収集や機器への制御指令を行う。
 センタ装置400は、1箇所の監視センタ内に設置されている。
 携帯電話網500は、機器100と監視センタとを接続するパケット交換ネットワークである。
 図示を省略しているが携帯電話網500はインターネットを介して監視センタと接続されている。
 また、図24では、1つの携帯電話網500にA国、B国、C国の各々の通信装置200が無線接続されているように図示しているが、現実には、国ごとに携帯電話網500が設けられている。
 通信装置200は、機器100と携帯電話網500の間に設置されている。
 また、通信装置300は、センタ装置400と携帯電話網500の間に設置されている。
 通信装置200は、携帯電話網500への接続処理と、機器100からのパケットを携帯電話網500へ転送する処理と、携帯電話網500から機器100宛に送られてきたパケットを機器100に転送する処理を行う。
 通信装置300は、インターネットを介した携帯電話網500への接続処理と、センタ装置400からのパケットを携帯電話網500へ転送する処理と、携帯電話網500からセンタ装置400宛に送られてきたパケットをセンタ装置400に転送する処理を行う。
Embodiment 1 FIG.
*** Explanation of configuration ***
FIG. 24 shows a configuration example of a general device remote monitoring system.
The device 100 is installed in, for example, a factory, collects information on devices in the factory, and transmits the collected information to the center device 400 by IP communication.
Various measuring devices, sensors, and the like are connected under the device 100, but the description of these devices is omitted in FIG.
As shown in FIG. 24, in the device remote monitoring system, the device 100 is installed across a plurality of countries.
The center device 400 collects information from the device 100 and issues a control command to the device.
The center device 400 is installed in one monitoring center.
The cellular phone network 500 is a packet switching network that connects the device 100 and the monitoring center.
Although not shown, the mobile phone network 500 is connected to the monitoring center via the Internet.
In FIG. 24, the communication apparatuses 200 in countries A, B, and C are illustrated as wirelessly connected to one mobile phone network 500. In reality, however, mobile phones are provided for each country. A net 500 is provided.
The communication device 200 is installed between the device 100 and the mobile phone network 500.
The communication device 300 is installed between the center device 400 and the mobile phone network 500.
The communication apparatus 200 connects to the mobile phone network 500, transfers the packet from the device 100 to the mobile phone network 500, and transfers the packet sent from the mobile phone network 500 to the device 100 to the device 100. Perform the process.
The communication device 300 is sent to the mobile phone network 500 via the Internet, the processing for transferring a packet from the center device 400 to the mobile phone network 500, and the mobile device 500 sent to the center device 400. A process of transferring the packet to the center apparatus 400 is performed.
 図1は、本実施の形態に係る機器遠隔監視システムの構成を示す。
 図1では、図24の構成に加え、機器100と通信装置200との間に国識別情報付加装置600が設置され、監視センタのセンタ装置400と通信装置300との間に国識別装置700が設置されている。
 また、パケット発信国によって処理を行うセンタ装置400を振り分けるため、監視センタには複数のセンタ装置400a~400cが設置されている。
 なお、センタ装置400aはA国からのパケットを処理し、センタ装置400bはB国からのパケットを処理し、センタ装置400cはC国からのパケットを処理する。
FIG. 1 shows a configuration of a device remote monitoring system according to the present embodiment.
In FIG. 1, in addition to the configuration of FIG. 24, a country identification information adding device 600 is installed between the device 100 and the communication device 200, and the country identification device 700 is installed between the center device 400 and the communication device 300 of the monitoring center. is set up.
In addition, a plurality of center devices 400a to 400c are installed in the monitoring center in order to distribute the center devices 400 that perform processing according to the packet transmission country.
Center device 400a processes a packet from country A, center device 400b processes a packet from country B, and center device 400c processes a packet from country C.
 図2に、国識別情報付加装置600の機能構成例を示す。
 国識別情報付加装置600は、国識別情報取得部601と、国識別情報付加部602と、ポート番号対応テーブル記憶部603と、通信部604とで構成される。
FIG. 2 shows a functional configuration example of the country identification information adding device 600.
The country identification information addition device 600 includes a country identification information acquisition unit 601, a country identification information addition unit 602, a port number correspondence table storage unit 603, and a communication unit 604.
 国識別情報取得部601は、携帯電話網500の通信事業者の通信事業者コードを通信部604を介して携帯電話網500から受信し、受信した通信事業者コードから通信事業者が属する国を表すコードを国識別情報として取得する。
 そして、国識別情報取得部601は、国識別情報を、国識別情報付加装置600内の記憶領域に格納する。
 なお、通信事業者コードは、携帯電話網500の通信事業者にしか割り当てられておらず、有線ネットワーク等の他の種類のネットワークでは同様のコードをネットワークから取得することはできない。
 このため、国識別情報取得部601は、携帯電話網500の通信事業者の通信事業者コードを携帯電話網500から受信する。
The country identification information acquisition unit 601 receives the telecommunications carrier code of the telecommunications carrier of the mobile phone network 500 from the mobile phone network 500 via the communication unit 604, and determines the country to which the telecommunications carrier belongs from the received telecommunications carrier code. The code to represent is acquired as country identification information.
Then, the country identification information acquisition unit 601 stores the country identification information in a storage area in the country identification information adding device 600.
Note that the telecommunications carrier code is assigned only to the telecommunications carrier of the mobile phone network 500, and other types of networks such as a wired network cannot obtain the same code from the network.
Therefore, the country identification information acquisition unit 601 receives the communication carrier code of the communication carrier of the mobile phone network 500 from the mobile phone network 500.
 国識別情報付加部602は、国識別情報取得部601により取得された国識別情報をセンタ装置400宛てのパケットに付加する。
 より具体的には、国識別情報付加部602は、機器100とセンタ装置400との間で送受信されるパケットを監視し、機器100からセンタ装置400宛に送信されるパケットのTCP/UDPの送信元ポート番号フィールドを国識別情報から生成される番号に書き換える。
 つまり、国識別情報付加部602は、パケットの送信元ポート番号フィールドから送信元ポート番号を削除し、国識別情報が含まれる送信元ポート番号(以下、国識別情報ポート番号ともいう)を送信元ポート番号フィールドに記述する。
 また、国識別情報付加部602は、センタ装置400から機器100宛に送信されるパケットのTCP/UDPの宛先ポート番号を書き換え前のポート番号に戻す。
 つまり、国識別情報付加部602は、パケットの送信先であるセンタ装置400からの応答パケットの宛先ポート番号フィールドから国識別情報ポート番号を削除し、元の送信元ポート番号(機器100のポート番号)を応答パケットの宛先ポート番号フィールドに記述する。
The country identification information adding unit 602 adds the country identification information acquired by the country identification information acquiring unit 601 to the packet addressed to the center device 400.
More specifically, the country identification information adding unit 602 monitors packets transmitted / received between the device 100 and the center device 400, and transmits TCP / UDP of packets transmitted from the device 100 to the center device 400. Rewrite the original port number field with a number generated from the country identification information.
That is, the country identification information adding unit 602 deletes the transmission source port number from the transmission source port number field of the packet, and transmits the transmission source port number including the country identification information (hereinafter also referred to as country identification information port number). Describe in the port number field.
Further, the country identification information adding unit 602 returns the TCP / UDP destination port number of the packet transmitted from the center apparatus 400 to the device 100 to the port number before rewriting.
That is, the country identification information adding unit 602 deletes the country identification information port number from the destination port number field of the response packet from the center apparatus 400 that is the packet transmission destination, and the original transmission source port number (the port number of the device 100). ) In the destination port number field of the response packet.
 ポート番号対応テーブル記憶部603は、ポート番号対応テーブルを記憶する。
 ポート番号対応テーブルは、国識別情報付加部602により生成される。
 ポート番号対応テーブルは、書き換え前のパケットの情報と書き換え後ポート番号とを対応付けて記憶しておくテーブルである。
 より具体的には、ポート番号対応テーブルは、図6に示すように、宛先IPアドレスと宛先ポート番号と送信元IPアドレスと送信元ポート番号と、国識別情報ポート番号である書き換え後ポート番号とが対応付けて示されるテーブルである。
 なお、センタ装置400から機器100に応答パケットが送信されない場合は、国識別情報付加装置600は、ポート番号対応テーブル記憶部603及びポート番号対応テーブルを備えていなくてもよい。
The port number correspondence table storage unit 603 stores a port number correspondence table.
The port number correspondence table is generated by the country identification information adding unit 602.
The port number correspondence table is a table that stores information on packets before rewriting and port numbers after rewriting in association with each other.
More specifically, as shown in FIG. 6, the port number correspondence table includes a destination IP address, a destination port number, a source IP address, a source port number, and a port number after rewriting that is a country identification information port number. Is a table shown in association with each other.
If no response packet is transmitted from the center apparatus 400 to the device 100, the country identification information adding apparatus 600 may not include the port number correspondence table storage unit 603 and the port number correspondence table.
 通信部604は、機器100からセンタ装置400宛てのパケットを受信し、受信したパケットを国識別情報付加部602に出力し、国識別情報付加部602により送信元ポート番号フィールドに国識別情報が付加されたセンタ装置400宛てのパケットを通信装置200に送信する。
 また、通信部604は、センタ装置400から返信された応答パケットを受信し、受信した応答パケットを国識別情報付加部602に出力し、国識別情報付加部602により宛先ポート番号フィールドに元の送信元ポート番号(機器100のポート番号)が記述された機器100宛ての応答パケットを機器100に送信する。
The communication unit 604 receives a packet addressed to the center device 400 from the device 100, outputs the received packet to the country identification information adding unit 602, and adds the country identification information to the transmission source port number field by the country identification information adding unit 602. The packet addressed to the center apparatus 400 is transmitted to the communication apparatus 200.
Further, the communication unit 604 receives the response packet returned from the center device 400, outputs the received response packet to the country identification information adding unit 602, and the country identification information adding unit 602 sends the original transmission to the destination port number field. A response packet addressed to the device 100 describing the original port number (port number of the device 100) is transmitted to the device 100.
 図3に、国識別装置700の機能構成例を示す。 FIG. 3 shows a functional configuration example of the country identification device 700.
 国識別装置700は、国識別部701と、パケット転送先指定部702と、転送先情報テーブル記憶部703と、通信部704とで構成される。 The country identification device 700 includes a country identification unit 701, a packet transfer destination designation unit 702, a transfer destination information table storage unit 703, and a communication unit 704.
 通信部704は、送信元の国を表す国識別情報が付加されたパケットを受信する。
 より具体的には、通信部704は、国識別情報付加装置600により送信元ポート番号フィールドに国識別情報ポート番号が記述されたセンタ装置400宛てのパケットを受信し、受信したパケットを国識別部701に出力する。
 また、通信部704は、パケット転送先指定部702によりパケット転送先に指定されたセンタ装置400にパケットを転送する。
 更に、通信部704は、センタ装置400からの応答パケットを受信し、受信した応答パケットを機器100に対して送信する。
The communication unit 704 receives a packet to which country identification information indicating the country of the transmission source is added.
More specifically, the communication unit 704 receives a packet addressed to the center device 400 in which the country identification information port number is described in the transmission source port number field by the country identification information adding device 600, and the received packet is transmitted to the country identification unit. To 701.
Further, the communication unit 704 transfers the packet to the center device 400 designated as the packet transfer destination by the packet transfer destination designation unit 702.
Further, the communication unit 704 receives a response packet from the center device 400 and transmits the received response packet to the device 100.
 国識別部701は、通信部704により受信されたパケットから国識別情報を抽出する。
 つまり、国識別部701は、機器100とセンタ装置400との間で送受信されるパケットを監視し、機器100からセンタ装置400宛に送信されるパケットの送信元ポート番号フィールドから国識別情報ポート番号を取り出し、国識別情報ポート番号から国識別情報を抽出する。
The country identification unit 701 extracts country identification information from the packet received by the communication unit 704.
That is, the country identification unit 701 monitors packets transmitted / received between the device 100 and the center device 400, and determines the country identification information port number from the transmission source port number field of the packet transmitted from the device 100 to the center device 400. And the country identification information is extracted from the country identification information port number.
 パケット転送先指定部702は、国単位で設けられたセンタ装置400の中から、国識別部701により抽出された国識別情報に対応するセンタ装置400を選択し、選択したセンタ装置400をパケットの転送先に指定する。
 パケット転送先指定部702は、転送先情報テーブル記憶部703に記憶されている転送先情報テーブルを参照して、パケットの転送先を指定する。
The packet transfer destination designation unit 702 selects the center device 400 corresponding to the country identification information extracted by the country identification unit 701 from the center devices 400 provided for each country, and selects the selected center device 400 for the packet. Specify the transfer destination.
The packet transfer destination designation unit 702 refers to the transfer destination information table stored in the transfer destination information table storage unit 703 and designates the packet transfer destination.
 転送先情報テーブル記憶部703は転送先情報テーブルを記憶している。
 転送先情報テーブルには、図12に示すように、国識別情報ごとに転送先となるセンタ装置400のIPアドレスが記述されている。
The transfer destination information table storage unit 703 stores a transfer destination information table.
In the transfer destination information table, as shown in FIG. 12, the IP address of the center device 400 serving as the transfer destination is described for each country identification information.
***動作の説明***
 本実施の形態におけるパケット送信国の識別動作を説明する。
 パケット送信国の識別動作は大きく以下の4つのステップからなる。
(1)国識別情報付加装置600による国識別情報の取得
(2)機器100からセンタ装置400へのパケットの送信
(3)国識別装置700でのパケット発信国の識別
(4)センタ装置400から機器への応答パケットの送信
 以下にて各ステップの詳細を説明する。
*** Explanation of operation ***
The operation of identifying the packet transmission country in this embodiment will be described.
The packet transmission country identification operation consists of the following four steps.
(1) Acquisition of country identification information by the country identification information adding device 600 (2) Transmission of a packet from the device 100 to the center device 400 (3) Identification of a packet transmission country in the country identification device 700 (4) From the center device 400 Transmission of response packet to device The details of each step will be described below.
(1)国識別情報付加装置600による国識別情報の取得
 図4に、国識別情報付加装置600の国識別情報取得部601による国識別情報の取得フローを示す。
 S001では、国識別情報取得部601は、国識別情報付加装置600に国識別情報が保存されているかを確認する。
 国識別情報が保存されていない場合は、S002へ進み、国識別情報が保存されている場合は処理を終了する。
 S002では、国識別情報取得部601は、通信装置200に対して通信事業者コードを取得するためのATコマンドを発行する。
 ATコマンドは通信装置200を制御するための標準的なコマンドである。
 国識別情報取得部601は、ATコマンドを用いると、通信装置200が現在接続中の通信ネットワークの通信事業者の通信事業者コードを取得することができる。
 図2の構成では、国識別情報取得部601は、携帯電話網500から、携帯電話網500の通信事業者の通信事業者コードを取得することができる。
 通信事業者コードは5桁の整数値であり、標準化団体3GPP(Third Generation Partnership Project)によってコード体系が規定されている。
 S003では、通信装置200からの通信事業者コードの取得に成功した場合はS004へ、失敗した場合はS005へ進む。
 S004では、国識別情報取得部601は、S002で取得した通信事業者コードの先頭3桁のコードを抽出し、抽出した先頭3桁のコードを国識別情報とする。
 通信事業者コードの先頭3桁は国を表すコードとして規定されているため、この部分で国の識別が可能である。
 S005では、S002で通信事業者コードの取得に成功している場合は、国識別情報取得部601は、抽出した国識別情報を国識別情報付加装置600内の記憶領域に保存する。
 S002で通信事業者コードの取得に失敗している場合は、国識別情報取得部601は、どの国にも当てはまらない国識別情報として“000”を国識別情報付加装置600内の記憶領域に保存する。
 なお、通信事業者コードの取得に失敗している場合は、国識別情報取得部601が定期的にS002以降の手順をやり直すという処理を加えてもよい。
 図4に示すS001~S005は、国識別情報取得処理に相当する。
(1) Acquisition of Country Identification Information by Country Identification Information Adding Device 600 FIG. 4 shows an acquisition flow of country identification information by the country identification information obtaining unit 601 of the country identification information adding device 600.
In S001, the country identification information acquisition unit 601 checks whether the country identification information is stored in the country identification information adding device 600.
If the country identification information is not stored, the process proceeds to S002. If the country identification information is stored, the process ends.
In S002, the country identification information acquisition unit 601 issues an AT command for acquiring a communication carrier code to the communication device 200.
The AT command is a standard command for controlling the communication device 200.
Using the AT command, the country identification information acquisition unit 601 can acquire the communication carrier code of the communication carrier of the communication network to which the communication device 200 is currently connected.
In the configuration of FIG. 2, the country identification information acquisition unit 601 can acquire the communication carrier code of the communication carrier of the mobile phone network 500 from the mobile phone network 500.
The carrier code is an integer value of 5 digits, and the code system is defined by the standardization organization 3GPP (Third Generation Partnership Project).
In S003, if acquisition of the communication carrier code from the communication device 200 is successful, the process proceeds to S004, and if it fails, the process proceeds to S005.
In S004, the country identification information acquisition unit 601 extracts the first three digits of the carrier code acquired in S002, and uses the extracted first three digits as country identification information.
Since the first three digits of the carrier code are defined as a code representing the country, the country can be identified in this part.
In S005, if the communication carrier code has been successfully acquired in S002, the country identification information acquisition unit 601 stores the extracted country identification information in a storage area in the country identification information adding device 600.
If acquisition of the carrier code has failed in S002, the country identification information acquisition unit 601 stores “000” as country identification information that does not apply to any country in the storage area in the country identification information adding device 600. To do.
In addition, when acquisition of a communication carrier code has failed, a process in which the country identification information acquisition unit 601 periodically redoes the procedure after S002 may be added.
S001 to S005 shown in FIG. 4 correspond to country identification information acquisition processing.
(2)機器100からセンタ装置400へのパケットの送信
 機器100は、あらかじめ規定された通信プロトコルに応じてTCPまたはUDPのパケットをセンタ装置400宛に送信する。
 このとき機器100から送信されるパケットのTCPまたはUDPのポート番号には、任意の値が設定されている。
 機器100から送信されたパケットはすべて国識別情報付加装置600に到達する。
 図5に、機器100から送信されたパケットを国識別情報付加装置600が受信し、国識別情報付加部602がパケットを処理するときのフローを示す。
(2) Transmission of Packet from Device 100 to Center Device 400 The device 100 transmits a TCP or UDP packet to the center device 400 according to a predefined communication protocol.
At this time, an arbitrary value is set in the TCP or UDP port number of the packet transmitted from the device 100.
All the packets transmitted from the device 100 reach the country identification information adding device 600.
FIG. 5 shows a flow when the country identification information adding device 600 receives a packet transmitted from the device 100 and the country identification information adding unit 602 processes the packet.
 S101では、国識別情報付加部602は、ポート番号対応テーブル(図6)内に、受信したパケットと、宛先IPアドレスと宛先ポート番号と送信元IPアドレスと送信元ポート番号の組が一致するエントリが存在するか確認する。
 一致するエントリが存在する場合はS104へ、一致するエントリが存在しない場合はS102へ進む。
 S102では、国識別情報付加部602は、上記のS005で保存されている国識別情報と、任意のアプリケーション識別番号を組み合わせて書き換え後ポート番号を生成する。
 本実施の形態では、書き換え後ポート番号は、アプリケーション識別番号を先頭の2桁(ただし、0~64までの値)に、国識別情報を末尾の3桁に持つ最大5桁の整数とする。
 図7に示すように、アプリケーション識別番号が10で、国識別情報が440のとき、書き換え後ポート番号は10440となる。
 アプリケーション識別番号は、ポート番号対応テーブル内の送信元ポート番号以外の4項目の組み合わせが他のエントリと重複しないような任意の値を設定する。
 ポート番号対応テーブルが図6に示す状態のとき、新たに図8で示す情報を持つパケットを受信したとする。
 この新たに受信したパケットは、図6のポート番号対応テーブルの最初のエントリと送信元ポート番号以外が同じであるため、書き換え後ポート番号には10440以外の値を設定しなければならない。
 国識別情報にあたる末尾の3桁(440)は固定なので、アプリケーション識別番号に10以外の値を設定する必要がある。
 S103では、国識別情報付加部602は、上記S102で生成した書き換え後ポート番号と、受信したパケットの情報を合わせてポート番号対応テーブルに追加する。
 ポート番号対応テーブルが図6に示す状態のとき、新たに図8で示す情報を持つパケットを受信し、この新たに受信したパケットに対応する書き換え後ポート番号を11440とした場合、エントリ追加後のポート番号対応テーブルは図9で示すようになる。
 S104では、国識別情報付加部602は、パケットの送信元ポート番号を、ポート番号対応テーブル内の、受信したパケットの情報が対応するエントリに記載されている書き換え後ポート番号に書き換える。
 S105では、通信部604がパケットを通信装置200に転送する。
 図5のS101~S104は国識別情報付加処理に相当し、S105は通信処理に相当する。
In S101, the country identification information adding unit 602 enters an entry in the port number correspondence table (FIG. 6) in which the received packet, the destination IP address, the destination port number, the source IP address, and the source port number match. Check if exists.
If there is a matching entry, the process proceeds to S104. If there is no matching entry, the process proceeds to S102.
In S102, the country identification information adding unit 602 generates a rewritten port number by combining the country identification information stored in S005 and an arbitrary application identification number.
In the present embodiment, the port number after rewriting is an integer of a maximum of 5 digits having the application identification number as the first two digits (however, values from 0 to 64) and the country identification information as the last three digits.
As shown in FIG. 7, when the application identification number is 10 and the country identification information is 440, the port number after rewriting is 10440.
The application identification number is set to an arbitrary value such that a combination of four items other than the transmission source port number in the port number correspondence table does not overlap with other entries.
Assume that a packet having information shown in FIG. 8 is newly received when the port number correspondence table is in the state shown in FIG.
Since this newly received packet is the same as the first entry in the port number correspondence table of FIG. 6 except for the source port number, a value other than 10440 must be set for the port number after rewriting.
Since the last three digits (440) corresponding to the country identification information are fixed, it is necessary to set a value other than 10 to the application identification number.
In S103, the country identification information adding unit 602 adds the rewritten port number generated in S102 and the received packet information to the port number correspondence table.
When the port number correspondence table is in the state shown in FIG. 6, when a packet having the information shown in FIG. 8 is newly received and the port number after rewriting corresponding to the newly received packet is 11440, The port number correspondence table is as shown in FIG.
In S104, the country identification information adding unit 602 rewrites the transmission source port number of the packet with the rewritten port number described in the entry corresponding to the received packet information in the port number correspondence table.
In S <b> 105, the communication unit 604 transfers the packet to the communication device 200.
S101 to S104 in FIG. 5 correspond to country identification information addition processing, and S105 corresponds to communication processing.
(3)国識別装置700でのパケット発信国の識別
 機器100からセンタ装置400宛に送信されたパケットは、すべて国識別装置700を経由する。
 図11に、機器100から送信され、国識別情報付加装置600によって送信元ポート番号を書き換えられた後のパケットを国識別装置700が受信し、受信したパケットを処理するときのフローを示す。
(3) Identification of packet transmission country in country identification device 700 All packets transmitted from device 100 to center device 400 pass through country identification device 700.
FIG. 11 shows a flow when the country identification device 700 receives a packet transmitted from the device 100 and whose source port number is rewritten by the country identification information adding device 600 and processes the received packet.
 S201では、国識別装置700の国識別部701が、通信部704が受信したパケットの送信元ポート番号の末尾3桁を取り出し、取り出した末尾3桁を国識別情報として用いる。
 S202では、国識別装置700のパケット転送先指定部702が、図12で示す転送先情報テーブルからS201で取得した国識別情報に対応する転送先IPアドレスを取得する。
 S203では、パケット転送先指定部702が、受信したパケットの宛先IPアドレスをS202で取得したIPアドレスに書き換え、通信部704が宛先IPアドレスが書き換えられた後のパケットを転送する。
In S201, the country identification unit 701 of the country identification device 700 extracts the last three digits of the transmission source port number of the packet received by the communication unit 704, and uses the extracted last three digits as country identification information.
In S202, the packet transfer destination designation unit 702 of the country identification device 700 acquires the transfer destination IP address corresponding to the country identification information acquired in S201 from the transfer destination information table shown in FIG.
In S203, the packet transfer destination designation unit 702 rewrites the destination IP address of the received packet with the IP address acquired in S202, and the communication unit 704 transfers the packet after the destination IP address is rewritten.
(4)センタ装置400から機器への応答パケットの送信
 機器100からセンタ装置400に送信するパケットがTCPパケットの場合、センタ装置400からの応答パケットが発生する場合がある。
 TCPでは、受信したパケットの送信元ポート番号を逆に宛先ポート番号に設定して応答パケットを送信する。
 このため、国識別情報付加装置600によって送信元ポート番号が書き換えられたパケットに対しての応答パケットでは、書き換え後ポート番号が宛先ポート番号に指定されている。
 機器100はポート番号の書き換えを関知していないため、書き換え後ポート番号では通信ができず、応答パケットの宛先ポート番号を、機器100が送信したときの元のポート番号に戻す必要がある。
 この処理を国識別情報付加装置600の国識別情報付加部602がポート番号対応テーブルを用いて行う。
 図13に国識別情報付加部602の処理フローを示す。
 ここでは、具体的に図10に示す宛先IPアドレス、宛先ポート番号、送信元IPアドレス、送信元ポート番号を有するパケットの応答パケットとして図14に示す宛先IPアドレス、宛先ポート番号、送信元IPアドレス、送信元ポート番号を有する応答パケットを国識別情報付加装置600が受信したときの処理を説明する。
 また、応答パケット受信時のポート番号対応テーブルは図9に示す状態であるとする。
(4) Transmission of Response Packet from Center Device 400 to Device When the packet transmitted from device 100 to center device 400 is a TCP packet, a response packet from center device 400 may be generated.
In TCP, the source port number of the received packet is set as the destination port number and the response packet is transmitted.
For this reason, in the response packet to the packet in which the transmission source port number is rewritten by the country identification information adding device 600, the rewritten port number is designated as the destination port number.
Since the device 100 is not aware of rewriting the port number, communication cannot be performed with the port number after rewriting, and it is necessary to return the destination port number of the response packet to the original port number when the device 100 transmitted.
The country identification information adding unit 602 performs this process using the port number correspondence table.
FIG. 13 shows a processing flow of the country identification information adding unit 602.
Here, the destination IP address, the destination port number, and the source IP address shown in FIG. 14 as a response packet of the packet having the destination IP address, destination port number, source IP address, and source port number shown in FIG. A process when the country identification information adding device 600 receives a response packet having a transmission source port number will be described.
Further, it is assumed that the port number correspondence table when receiving the response packet is in the state shown in FIG.
 S301では、国識別情報付加部602は、ポート番号対応テーブル(図9)から、受信した応答パケットに対応するエントリを検索する。
 具体的には、国識別情報付加部602は、送信元IPアドレス、書き換え後ポート番号、宛先IPアドレス、宛先ポート番号が、受信した応答パケットの宛先IPアドレス、宛先ポート番号、送信元IPアドレス、送信元ポート番号と一致するエントリをポート番号対応テーブルから検索する。
 図14のパケットに対応するエントリは図9の一番下のエントリになる。
 このエントリの送信元ポート番号より、書き換え前のパケットの送信元ポート番号は11122であったことがわかる。
 S302では、国識別情報付加部602は、応答パケットの宛先ポート番号を、S301で取得したポート番号に書き換える。
 S303では、通信部604が、宛先ポート番号が書き換えられたパケットを機器100に転送する。
 このように、国識別情報付加部602は、応答パケットの宛先IPアドレスがポート番号対応テーブル内の送信元IPアドレスに一致し、応答パケットの宛先ポート番号がポート番号対応テーブル内の国識別情報ポート番号である書き換え後ポート番号に一致し、応答パケットの送信元IPアドレスがポート番号対応テーブル内の宛先IPアドレスに一致し、応答パケットの送信元ポート番号がポート番号対応テーブル内の宛先ポート番号に一致する場合に、応答パケットの宛先ポート番号フィールドから国識別情報ポート番号である書き換え後ポート番号を削除し、ポート番号対応テーブル内の送信元ポート番号を応答パケットの前記宛先ポート番号フィールドに記述する。
In S301, the country identification information adding unit 602 searches the port number correspondence table (FIG. 9) for an entry corresponding to the received response packet.
Specifically, the country identification information adding unit 602 includes a source IP address, a port number after rewriting, a destination IP address, and a destination port number, the destination IP address, the destination port number, the source IP address of the received response packet, An entry matching the transmission source port number is searched from the port number correspondence table.
The entry corresponding to the packet in FIG. 14 is the bottom entry in FIG.
It can be seen from the transmission source port number of this entry that the transmission source port number of the packet before rewriting was 11122.
In S302, the country identification information adding unit 602 rewrites the destination port number of the response packet with the port number acquired in S301.
In S <b> 303, the communication unit 604 transfers the packet with the rewritten destination port number to the device 100.
As described above, the country identification information adding unit 602 matches the destination IP address of the response packet with the transmission source IP address in the port number correspondence table, and the destination port number of the response packet matches the country identification information port in the port number correspondence table. The source IP address of the response packet matches the destination IP address in the port number correspondence table, and the source port number of the response packet matches the destination port number in the port number correspondence table. If they match, the port number after rewriting that is the country identification information port number is deleted from the destination port number field of the response packet, and the source port number in the port number correspondence table is described in the destination port number field of the response packet. .
***効果の説明***
 以上のように、本実施の形態では、国識別情報付加装置が、携帯電話網の通信事業者の通信事業者コードを受信し、受信した通信事業者コード内の通信事業者が属する国を表すコードを国識別情報としてパケットに付加する。
 このため、IPアドレス及びGPSシステムに依存せず、また、機器への事前の設定作業がなくても、パケット発信国を監視センタに通知することができる。
 また、本実施の形態では、国識別情報付加装置はパケットの送信元ポート番号フィールドに国識別情報ポート番号を付加するので、機器とセンタ装置との間で使用されている通信プロトコルのデータフォーマットを修正することなく、パケット発信国を監視センタに通知することができる。
*** Explanation of effects ***
As described above, in the present embodiment, the country identification information adding device receives the communication carrier code of the mobile phone network carrier, and represents the country to which the communication carrier in the received carrier carrier code belongs. The code is added to the packet as country identification information.
For this reason, it is possible to notify the monitoring center of the packet transmission country without depending on the IP address and the GPS system, and without any prior setting work for the device.
In this embodiment, the country identification information adding device adds the country identification information port number to the transmission source port number field of the packet, so that the data format of the communication protocol used between the device and the center device is changed. The packet sending country can be notified to the monitoring center without correction.
 実施の形態2.
 実施の形態1の図5のS102では、書き換え後ポート番号を得るために2桁のアプリケーション識別番号と3桁の国識別情報を連結した。
 本実施の形態では、それ以外の書き換え後ポート番号の生成方法を説明する。
 書き換え後ポート番号の生成方法以外は実施の形態1と同じである。
Embodiment 2. FIG.
In S102 of FIG. 5 of the first embodiment, the 2-digit application identification number and the 3-digit country identification information are concatenated to obtain the port number after rewriting.
In this embodiment, a method for generating a port number after rewriting other than that will be described.
Except for the method of generating the port number after rewriting, it is the same as in the first embodiment.
 国識別情報は3桁の整数であるので、10ビットに収まる。
 送信元ポート番号は16ビットのフィールドであるため、本実施の形態では、国識別情報付加部602は、図15に示すように、残り6ビットをアプリケーション識別番号とする。
 そして、国識別情報付加部602は、10ビットの国識別情報と6ビットのアプリケーション識別番号を合わせて書き換え後ポート番号とする。
 また、国識別情報は3桁の整数であるが、国自体の数は256以下である。
 これを利用して、国識別情報付加部602は、国識別情報を8ビットのデータに変換する変換表を定義し、図16に示すように、8ビットで国識別情報を表現し、残り8ビットをアプリケーション識別番号とするようにしてもよい。
 ここで具体的に示した方法以外にも、国識別情報とアプリケーション識別番号から一意の書き換え後ポート番号を生成できる方法であればどんな方法でも用いることができる。
Since the country identification information is a 3-digit integer, it fits in 10 bits.
Since the transmission source port number is a 16-bit field, in this embodiment, the country identification information adding unit 602 uses the remaining 6 bits as the application identification number as shown in FIG.
Then, the country identification information adding unit 602 combines the 10-bit country identification information and the 6-bit application identification number as the port number after rewriting.
The country identification information is a three-digit integer, but the number of countries is 256 or less.
Using this, the country identification information adding unit 602 defines a conversion table for converting the country identification information into 8-bit data, and represents the country identification information with 8 bits, as shown in FIG. The bit may be an application identification number.
In addition to the method specifically shown here, any method that can generate a unique port number after rewriting from the country identification information and the application identification number can be used.
 実施の形態3.
 実施の形態1及び実施の形態2では、機器100と国識別情報付加装置600と通信装置200とが別々のハードウェアである場合を示した。
 これに対し、図17に示すように、1つのハードウェアの中に国識別情報付加装置600の機能と通信装置200の機能を持ち合わせてもよい。
 図17の通信部604は、実施の形態1の通信装置200と同じ動作を行う。
 また、図18のように、通信装置200のみ別のハードウェアであってもよい。
 他にも機能とハードウェアの組み合わせはどのようなものであってもよい。
 機器100と国識別情報付加装置600と通信装置200のハードウェア構成以外は実施の形態1と同じである。
Embodiment 3 FIG.
In the first embodiment and the second embodiment, the case where the device 100, the country identification information adding device 600, and the communication device 200 are separate hardware has been described.
On the other hand, as shown in FIG. 17, the function of the country identification information adding device 600 and the function of the communication device 200 may be provided in one piece of hardware.
The communication unit 604 in FIG. 17 performs the same operation as that of the communication apparatus 200 according to the first embodiment.
Further, as shown in FIG. 18, only the communication device 200 may be different hardware.
Other combinations of functions and hardware may be used.
The hardware configuration of the device 100, the country identification information adding device 600, and the communication device 200 is the same as that of the first embodiment.
 実施の形態4.
 実施の形態1では、パケットのポート番号フィールドに国識別情報を埋め込む方法を示した。
 本実施の形態では、ポート番号フィールドではなく、パケット中の任意の領域に国識別情報を挿入する方法を示す。
 なお、本実施の形態でも、機器遠隔監視システムの構成例は図1に示す通りであり、国識別情報付加装置600の機能構成例は図2に示す通りであり、国識別装置700の機能構成例は図3に示す通りである。
Embodiment 4 FIG.
In the first embodiment, the method of embedding country identification information in the port number field of the packet is shown.
In the present embodiment, a method of inserting country identification information into an arbitrary area in a packet instead of the port number field is shown.
Also in the present embodiment, the configuration example of the device remote monitoring system is as shown in FIG. 1, the functional configuration example of the country identification information adding device 600 is as shown in FIG. An example is as shown in FIG.
 本実施の形態によるパケット発信国の識別動作を説明する。
 本実施の形態に係るパケット発信国の識別動作は、実施の形態1と同様に、動作は大きく以下の4つのステップからなる。
(1)国識別情報付加装置600による国識別情報の取得
(2)機器100からセンタ装置400へのパケットの送信
(3)国識別装置700でのパケット発信国の識別
(4)センタ装置400から機器100への応答パケットの送信
The operation of identifying the packet transmission country according to this embodiment will be described.
Similar to the first embodiment, the operation for identifying the packet transmission country according to the present embodiment is largely composed of the following four steps.
(1) Acquisition of country identification information by the country identification information adding device 600 (2) Transmission of a packet from the device 100 to the center device 400 (3) Identification of a packet transmission country in the country identification device 700 (4) From the center device 400 Transmission of response packet to device 100
(1)国識別情報付加装置600による国識別情報の取得
 実施の形態1と同じであるため説明を省略する。
(1) Acquisition of country identification information by country identification information adding device 600 Since this is the same as in the first embodiment, description thereof is omitted.
(2)機器100からセンタ装置400へのパケットの送信
 機器100は、あらかじめ規定された通信プロトコルに応じてTCPまたはUDPのパケットをセンタ装置400宛に送信する。
 機器100から送信されたパケットはすべて国識別情報付加装置600に到達する。
 図19に、機器100から送信されたパケットを国識別情報付加装置600が受信し、国識別情報付加部602がパケットを処理するときのフローを示す。
 S401では、国識別情報付加部602は、受信したパケットの既定の領域に国識別情報を挿入する。
 本実施の形態では、国識別情報付加部602は、図20に示すように、TCPまたはUDPパケットのヘッダ領域とデータ領域との間に16ビットの領域を追加し、この16ビットの領域に国識別情報を挿入する。
 国識別情報の挿入位置と、領域の大きさ及び形式についてはこの他の方法を用いてもよい。
 S402では、通信部604が、国識別情報が付加されたパケットを通信装置200に転送する。
(2) Transmission of Packet from Device 100 to Center Device 400 The device 100 transmits a TCP or UDP packet to the center device 400 according to a predefined communication protocol.
All the packets transmitted from the device 100 reach the country identification information adding device 600.
FIG. 19 shows a flow when the country identification information adding device 600 receives a packet transmitted from the device 100 and the country identification information adding unit 602 processes the packet.
In S401, the country identification information adding unit 602 inserts the country identification information in a predetermined area of the received packet.
In this embodiment, as shown in FIG. 20, the country identification information adding unit 602 adds a 16-bit area between the header area and the data area of the TCP or UDP packet, and the country is added to the 16-bit area. Insert identification information.
Other methods may be used for the country identification information insertion position and the size and format of the area.
In S <b> 402, the communication unit 604 transfers the packet with the country identification information added to the communication device 200.
(3)国識別装置でのパケット発信国の識別
 機器100からセンタ装置400宛に送信されたパケットは、すべて国識別装置700を経由する。
 図21に、機器100から送信され、国識別情報付加装置600によって国識別情報を挿入された後のパケットを国識別装置700が受信し、受信したパケットを処理するときのフローを示す。
 S501では、国識別装置の国識別部701は、受信したパケットのヘッダ領域の直後から16ビットを取り出し、取り出した16ビットを国識別情報として認識する。
 S502では、国識別装置のパケット転送先指定部702は、転送先情報テーブルからS501で取得した国識別情報に対応する転送先IPアドレスを取得する。
 S503では、パケット転送先指定部702は、受信したパケットの宛先IPアドレスをS502で取得した転送先IPアドレスに書き換え、さらにパケットから国識別情報の領域を削除し、通信部704がパケットを転送先のセンタ装置400に転送する。
(3) Identification of packet transmission country by country identification device All packets transmitted from the device 100 to the center device 400 pass through the country identification device 700.
FIG. 21 shows a flow when the country identification device 700 receives a packet transmitted from the device 100 and after country identification information is inserted by the country identification information adding device 600, and processes the received packet.
In step S501, the country identification unit 701 of the country identification device extracts 16 bits immediately after the header area of the received packet, and recognizes the extracted 16 bits as country identification information.
In S502, the packet transfer destination designation unit 702 of the country identification device acquires a transfer destination IP address corresponding to the country identification information acquired in S501 from the transfer destination information table.
In S503, the packet transfer destination designation unit 702 rewrites the destination IP address of the received packet with the transfer destination IP address acquired in S502, deletes the region of the country identification information from the packet, and the communication unit 704 transfers the packet to the transfer destination. Are transferred to the center device 400.
(4)センタ装置400から機器100への応答パケットの送信
 センタ装置400が機器100宛に送信したパケットに対しては、国識別装置700及び国識別情報付加装置600のどちらも何の処理も行わず、そのままパケットを転送する。
(4) Transmission of Response Packet from Center Device 400 to Device 100 Both the country identification device 700 and the country identification information addition device 600 perform any processing on the packet transmitted from the center device 400 to the device 100. Instead, the packet is transferred as it is.
 本実施の形態では、国識別情報付加装置で国識別情報をパケットの特定領域に挿入し、また、国識別装置で特定領域から国識別情報を削除するだけでよく、簡易な処理でパケット発信国を通知することができる。 In the present embodiment, the country identification information adding device inserts the country identification information into the specific area of the packet, and the country identification apparatus simply deletes the country identification information from the specific area. Can be notified.
 実施の形態5.
 本実施の形態では、機器100の設置時に、機器設置作業員が所有する携帯電話機と国識別情報付加装置600を接続し、携帯電話機経由で国識別情報を取得する方法を示す。
Embodiment 5 FIG.
In the present embodiment, a method of connecting the mobile phone owned by the equipment installation worker and the country identification information adding device 600 when installing the equipment 100 and acquiring the country identification information via the mobile phone will be described.
 図22は、本実施の形態に係る機器遠隔監視システムの構成例を示す。
 監視センタ側の構成は実施の形態1~4と同じであるため図示を省略している。
 機器100及び通信装置200は、図1に示すものと同じである。
 但し、通信装置200は携帯電話網500以外の通信ネットワークであるIPネットワーク800に接続している。
 また、国識別情報付加装置600内の国識別情報付加部602、ポート番号対応テーブル記憶部603、通信部604は図2に示したものと同じである。
 本実施の形態では、国識別情報送信部1001を持つ携帯電話機1000を機器設置作業員が所有し、機器100の設置時に国識別情報付加装置600に携帯電話機1000を有線または無線で接続する。
 国識別情報付加装置600の国識別情報取得部601は、携帯電話機1000の接続を検知すると、国識別情報の要求を携帯電話機1000に送信する。
 携帯電話機1000の国識別情報送信部1001は、国識別情報付加装置600から国識別情報の要求を受けると、現在接続している通信事業者の通信事業者コードを受信し、国識別情報付加装置600に送信する。
 具体的には、国識別情報送信部1001は、携帯電話網500の通信事業者の通信事業者コードを国識別情報付加装置600に送信する。
 国識別情報付加装置600が、携帯電話機1000から取得した通信事業者コードを監視センタに送信する方法は実施の形態1~4で示した方法のいずれかでよい。
FIG. 22 shows a configuration example of the device remote monitoring system according to the present embodiment.
Since the configuration on the monitoring center side is the same as that of the first to fourth embodiments, the illustration is omitted.
The device 100 and the communication device 200 are the same as those shown in FIG.
However, the communication device 200 is connected to an IP network 800 which is a communication network other than the cellular phone network 500.
The country identification information adding unit 602, the port number correspondence table storage unit 603, and the communication unit 604 in the country identification information adding device 600 are the same as those shown in FIG.
In the present embodiment, the device installation worker owns the mobile phone 1000 having the country identification information transmission unit 1001, and the mobile phone 1000 is connected to the country identification information adding device 600 by wire or wireless when the device 100 is installed.
When the country identification information acquisition unit 601 detects the connection of the mobile phone 1000, the country identification information adding unit 601 transmits a request for country identification information to the mobile phone 1000.
When receiving the country identification information request from the country identification information adding device 600, the country identification information transmitting unit 1001 of the mobile phone 1000 receives the communication carrier code of the currently connected communication carrier, and receives the country identification information adding device. 600.
Specifically, the country identification information transmission unit 1001 transmits the carrier code of the carrier of the mobile phone network 500 to the country identification information adding device 600.
Any of the methods described in the first to fourth embodiments may be used by the country identification information adding device 600 to transmit the carrier code acquired from the mobile phone 1000 to the monitoring center.
 本実施の形態によれば、機器と監視センタとが通信する際に使用するネットワークが携帯電話網でなくても、パケットに国識別情報を付加することができる。 According to the present embodiment, the country identification information can be added to the packet even if the network used when the device and the monitoring center communicate is not the mobile phone network.
 以上、本発明の実施の形態について説明したが、これら2つの実施の形態を組み合わせて実施しても構わない。
 あるいは、これらの実施の形態のうち、1つを部分的に実施しても構わない。
 あるいは、これらの実施の形態を部分的に組み合わせて実施しても構わない。
 なお、本発明は、これらの実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。
Although the embodiments of the present invention have been described above, these two embodiments may be combined and implemented.
Alternatively, one of these embodiments may be partially implemented.
Or you may implement combining these embodiment partially.
In addition, this invention is not limited to these embodiment, A various change is possible as needed.
 最後に、実施の形態1~5に示した国識別情報付加装置600のハードウェア構成例を図23を参照して説明する。
 国識別情報付加装置600はコンピュータであり、国識別情報付加装置600の各要素をプログラムで実現することができる。
 国識別情報付加装置600のハードウェア構成としては、バスに、演算装置901、外部記憶装置902、主記憶装置903、通信装置904、入出力装置905が接続されている。
Finally, a hardware configuration example of the country identification information adding device 600 shown in the first to fifth embodiments will be described with reference to FIG.
The country identification information adding device 600 is a computer, and each element of the country identification information adding device 600 can be realized by a program.
As a hardware configuration of the country identification information adding device 600, an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
 演算装置901は、プログラムを実行するCPU(Central Processing Unit)である。
 外部記憶装置902は、例えばROM(Read Only Memory)やフラッシュメモリ、ハードディスク装置である。
 主記憶装置903は、RAM(Random Access Memory)である。
 通信装置904は、通信部604の物理層に対応し、例えばNIC(Network Interface Card)である。
 入出力装置905は、例えばマウス、キーボード、ディスプレイ装置等である。
The arithmetic device 901 is a CPU (Central Processing Unit) that executes a program.
The external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
The main storage device 903 is a RAM (Random Access Memory).
The communication device 904 corresponds to the physical layer of the communication unit 604 and is, for example, a NIC (Network Interface Card).
The input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
 プログラムは、通常は外部記憶装置902に記憶されており、主記憶装置903にロードされた状態で、順次演算装置901に読み込まれ、実行される。
 プログラムは、図2に示す「~部」(但し、ポート番号対応テーブル記憶部603を除く、以下も同様)として説明している機能を実現するプログラムである。
 更に、外部記憶装置902にはオペレーティングシステム(OS)も記憶されており、OSの少なくとも一部が主記憶装置903にロードされ、演算装置901はOSを実行しながら、図2に示す「~部」の機能を実現するプログラムを実行する。
 また、実施の形態1~5の説明において、「取得する」、「生成する」、「受信する」、「抽出する」、「確認する」、「選択する」、「検知する」、「設定する」等として説明している処理の結果を示す情報やデータや信号値や変数値が主記憶装置903にファイルとして記憶されている。
 また、暗号鍵・復号鍵や乱数値やパラメータが、主記憶装置903にファイルとして記憶されてもよい。
The program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
The program is a program that realizes the function described as “˜unit” (excluding the port number correspondence table storage unit 603, the same applies hereinafter) shown in FIG.
Further, an operating system (OS) is also stored in the external storage device 902. At least a part of the OS is loaded into the main storage device 903, and the arithmetic device 901 executes “OS” shown in FIG. ”Is executed.
In the description of Embodiments 1 to 5, “Acquire”, “Generate”, “Receive”, “Extract”, “Confirm”, “Select”, “Detect”, “Set” The information, data, signal values, and variable values indicating the results of the processing described as “etc.” are stored in the main storage device 903 as files.
Further, the encryption key / decryption key, random number value, and parameter may be stored in the main storage device 903 as a file.
 なお、図23の構成は、あくまでも国識別情報付加装置600のハードウェア構成の一例を示すものであり、国識別情報付加装置600のハードウェア構成は図23に記載の構成に限らず、他の構成であってもよい。 Note that the configuration of FIG. 23 is merely an example of the hardware configuration of the country identification information adding device 600, and the hardware configuration of the country identification information adding device 600 is not limited to the configuration shown in FIG. It may be a configuration.
 また、実施の形態1~5に示す手順により、本発明に係る国識別情報付加方法を実現可能である。 Further, the country identification information adding method according to the present invention can be realized by the procedures shown in the first to fifth embodiments.
 100 機器、200 通信装置、300 通信装置、400 センタ装置、500 携帯電話網、600 国識別情報付加装置、601 国識別情報取得部、602 国識別情報付加部、603 ポート番号対応テーブル記憶部、604 通信部、700 国識別装置、701 国識別部、702 パケット転送先指定部、703 転送先情報テーブル記憶部、704 通信部、800 IPネットワーク、1000 携帯電話機、1001 国識別情報送信部。 100 device, 200 communication device, 300 communication device, 400 center device, 500 mobile phone network, 600 country identification information addition device, 601 country identification information acquisition unit, 602 country identification information addition unit, 603 port number correspondence table storage unit, 604 Communication unit, 700 country identification device, 701 country identification unit, 702 packet transfer destination designation unit, 703 transfer destination information table storage unit, 704 communication unit, 800 IP network, 1000 mobile phone, 1001 country identification information transmission unit.

Claims (10)

  1.  携帯電話網の通信事業者の通信事業者コードを受信し、受信した通信事業者コードから前記通信事業者が属する国を表すコードを国識別情報として取得する国識別情報取得部と、
     前記国識別情報取得部により取得された前記国識別情報をパケットに付加する国識別情報付加部と、
     前記国識別情報付加部により前記国識別情報が付加された前記パケットを送信する通信部とを有する国識別情報付加装置。
    A country identification information acquisition unit that receives a communication carrier code of a carrier of a mobile phone network and acquires, as country identification information, a code representing a country to which the communication carrier belongs from the received communication carrier code;
    A country identification information addition unit for adding the country identification information acquired by the country identification information acquisition unit to a packet;
    A country identification information addition apparatus comprising: a communication unit that transmits the packet to which the country identification information is added by the country identification information addition unit.
  2.  前記通信部は、
     前記携帯電話網に対して前記国識別情報が付加された前記パケットを送信する請求項1に記載の国識別情報付加装置。
    The communication unit is
    2. The country identification information adding device according to claim 1, wherein the packet to which the country identification information is added is transmitted to the mobile phone network.
  3.  前記国識別情報付加部は、
     前記パケットの送信元ポート番号フィールドから送信元ポート番号を削除し、前記国識別情報が含まれる国識別情報ポート番号を前記送信元ポート番号フィールドに記述する請求項1に記載の国識別情報付加装置。
    The country identification information adding unit
    2. The country identification information adding device according to claim 1, wherein a transmission source port number is deleted from a transmission source port number field of the packet, and a country identification information port number including the country identification information is described in the transmission source port number field. .
  4.  前記国識別情報付加部は、
     前記パケットに含まれる宛先IP(Internet Protocol)アドレスと宛先ポート番号と送信元IPアドレスと前記送信元ポート番号と、前記国識別情報ポート番号とが対応付けて示されるポート番号対応テーブルを生成する請求項3に記載の国識別情報付加装置。
    The country identification information adding unit
    A port number correspondence table in which a destination IP (Internet Protocol) address, a destination port number, a source IP address, a source port number, and a country identification information port number included in the packet are associated with each other is generated. Item 3. The country identification information adding device according to Item 3.
  5.  前記通信部は、
     前記パケットの送信先から返信された、前記パケットに対する応答パケットを受信し、
     前記国識別情報付加部は、
     前記応答パケットの宛先IPアドレスが前記ポート番号対応テーブル内の前記送信元IPアドレスに一致し、前記応答パケットの宛先ポート番号が前記ポート番号対応テーブル内の前記国識別情報ポート番号に一致し、前記応答パケットの送信元IPアドレスが前記ポート番号対応テーブル内の前記宛先IPアドレスに一致し、前記応答パケットの送信元ポート番号が前記ポート番号対応テーブル内の宛先ポート番号に一致する場合に、前記応答パケットの宛先ポート番号フィールドから前記国識別情報ポート番号を削除し、前記ポート番号対応テーブル内の前記送信元ポート番号を前記応答パケットの前記宛先ポート番号フィールドに記述し、
     前記通信部は、
     前記宛先ポート番号フィールドに前記送信元ポート番号が記述された前記応答パケットを前記パケットの送信元に対して送信する請求項4に記載の国識別情報付加装置。
    The communication unit is
    Receiving a response packet to the packet returned from the destination of the packet;
    The country identification information adding unit
    The destination IP address of the response packet matches the source IP address in the port number correspondence table, the destination port number of the response packet matches the country identification information port number in the port number correspondence table, When the source IP address of the response packet matches the destination IP address in the port number correspondence table and the source port number of the response packet matches the destination port number in the port number correspondence table, the response Deleting the country identification information port number from the destination port number field of the packet, describing the source port number in the port number correspondence table in the destination port number field of the response packet;
    The communication unit is
    5. The country identification information adding device according to claim 4, wherein the response packet in which the transmission source port number is described in the destination port number field is transmitted to a transmission source of the packet.
  6.  前記国識別情報付加部は、
     前記パケット内の既定の位置に前記国識別情報を付加する請求項1に記載の国識別情報付加装置。
    The country identification information adding unit
    The country identification information adding device according to claim 1, wherein the country identification information is added to a predetermined position in the packet.
  7.  前記国識別情報取得部は、
     前記携帯電話網から前記携帯電話網の通信事業者の通信事業者コードを受信した携帯電話機から、前記携帯電話網の通信事業者の通信事業者コードを受信する請求項1に記載の国識別情報付加装置。
    The country identification information acquisition unit
    2. The country identification information according to claim 1, wherein the country code information of the carrier of the mobile phone network is received from the mobile phone that has received the carrier code of the carrier of the mobile phone network from the mobile phone network. Additional equipment.
  8.  前記通信部は、
     前記携帯電話網以外の通信ネットワークに対して前記国識別情報が付加された前記パケットを送信する請求項1に記載の国識別情報付加装置。
    The communication unit is
    2. The country identification information adding device according to claim 1, wherein the packet to which the country identification information is added is transmitted to a communication network other than the cellular phone network.
  9.  コンピュータが、
     携帯電話網の通信事業者の通信事業者コードを受信し、受信した通信事業者コードから前記通信事業者が属する国を表すコードを国識別情報として取得し、
     取得した前記国識別情報をパケットに付加し、
     前記国識別情報が付加された前記パケットを送信する国識別情報付加方法。
    Computer
    Receiving the carrier code of the carrier of the mobile phone network, obtaining a code representing the country to which the carrier belongs from the received carrier code as country identification information;
    Add the obtained country identification information to the packet,
    A country identification information addition method for transmitting the packet to which the country identification information is added.
  10.  携帯電話網の通信事業者の通信事業者コードを受信し、受信した通信事業者コードから前記通信事業者が属する国を表すコードを国識別情報として取得する国識別情報取得処理と、
     前記国識別情報取得処理により取得された前記国識別情報をパケットに付加する国識別情報付加処理と、
     前記国識別情報付加処理により前記国識別情報が付加された前記パケットを送信する通信処理とをコンピュータに実行させるプログラム。
    Country identification information acquisition processing for receiving a carrier code of a carrier of a mobile phone network and acquiring a code representing the country to which the carrier belongs from the received carrier code as country identification information;
    Country identification information addition processing for adding the country identification information acquired by the country identification information acquisition processing to a packet;
    A program for causing a computer to execute communication processing for transmitting the packet to which the country identification information is added by the country identification information addition processing.
PCT/JP2015/052108 2015-01-27 2015-01-27 Country identification information adding device, country identification information adding method, and program WO2016120983A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201580068102.XA CN107005465B (en) 2015-01-27 2015-01-27 Country identification information adding device, country identification information adding method, and program storage medium
PCT/JP2015/052108 WO2016120983A1 (en) 2015-01-27 2015-01-27 Country identification information adding device, country identification information adding method, and program
JP2016571534A JP6253813B2 (en) 2015-01-27 2015-01-27 Country identification information addition apparatus, country identification information addition method, and program
TW104119358A TWI574527B (en) 2015-01-27 2015-06-16 Country identification information add-ons, and country identification information add-ons and program products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/052108 WO2016120983A1 (en) 2015-01-27 2015-01-27 Country identification information adding device, country identification information adding method, and program

Publications (1)

Publication Number Publication Date
WO2016120983A1 true WO2016120983A1 (en) 2016-08-04

Family

ID=56542641

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2015/052108 WO2016120983A1 (en) 2015-01-27 2015-01-27 Country identification information adding device, country identification information adding method, and program

Country Status (4)

Country Link
JP (1) JP6253813B2 (en)
CN (1) CN107005465B (en)
TW (1) TWI574527B (en)
WO (1) WO2016120983A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108072885A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Collocation method, device, storage medium and the terminal of locating module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014072759A (en) * 2012-09-28 2014-04-21 Fujitsu Mobile Communications Ltd Control program, wireless terminal device, and control method
JP2014220596A (en) * 2013-05-02 2014-11-20 富士通株式会社 Information processing device, information processing method, and information processing program
JP2014236376A (en) * 2013-06-03 2014-12-15 株式会社エーピーコミュニケーションズ Access distribution system, access distribution device, operation terminal and computer program

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5699408A (en) * 1995-08-07 1997-12-16 Motorola, Inc. International mobile station identification method and signaling system for cellular radiotelephones and systems
US6167279A (en) * 1996-03-13 2000-12-26 Telcordia Technologies, Inc. Method and system for supporting PACS using a GSM mobile switching center
CN1327630C (en) * 1998-04-01 2007-07-18 松下图像通信系统公司 Start of multiple xDSL modem with hidden channel probe
US7042526B1 (en) * 1998-04-08 2006-05-09 Microsoft Corporation Worldwide television tuning system with country code based tuning
AU5927400A (en) * 1999-07-12 2001-01-30 Nokia Mobile Phones Limited Protocol utilization based on mobile country code
US6754834B2 (en) * 2001-11-23 2004-06-22 Nokia Corporation Technique for generating correlation number for use in lawful interception of telecommunications traffic
US7542451B2 (en) * 2003-05-19 2009-06-02 Qualcomm Incorporated Network operator identification for CDMA communication networks
KR101033556B1 (en) * 2003-07-10 2011-05-11 엘지전자 주식회사 IMSI, and method for identifying mobile-network using the same in mobile communication system
US20050117540A1 (en) * 2003-10-07 2005-06-02 Ravi Kuchibhotla Method and apparatus for routing messages in a network
CN100370877C (en) * 2004-09-28 2008-02-20 华为技术有限公司 Method for displaying current network operator information
US8320819B2 (en) * 2005-11-01 2012-11-27 Nokia Corporation Mobile TV channel and service access filtering
CN100561947C (en) * 2007-07-05 2009-11-18 中兴通讯股份有限公司 Carry out the system and method for business flow processing according to code
FI121132B (en) * 2008-04-16 2010-07-15 Teliasonera Ab Providing a roaming service for a user terminal in a communication system
CN102724657B (en) * 2012-06-19 2015-08-19 惠州Tcl移动通信有限公司 The mobile terminal parameter automatic configuration method of android system and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014072759A (en) * 2012-09-28 2014-04-21 Fujitsu Mobile Communications Ltd Control program, wireless terminal device, and control method
JP2014220596A (en) * 2013-05-02 2014-11-20 富士通株式会社 Information processing device, information processing method, and information processing program
JP2014236376A (en) * 2013-06-03 2014-12-15 株式会社エーピーコミュニケーションズ Access distribution system, access distribution device, operation terminal and computer program

Also Published As

Publication number Publication date
JP6253813B2 (en) 2017-12-27
JPWO2016120983A1 (en) 2017-04-27
CN107005465A (en) 2017-08-01
CN107005465B (en) 2020-06-09
TWI574527B (en) 2017-03-11
TW201628375A (en) 2016-08-01

Similar Documents

Publication Publication Date Title
JP6540283B2 (en) Communication apparatus, communication method, and communication program
US8737396B2 (en) Communication method and communication system
JP6402583B2 (en) Relay device, relay system, relay method, and program
US20110238975A1 (en) Information processing device, route control device, and data relay method
CN107078975A (en) Dispensing device, sending method, reception device and method of reseptance
WO2017163645A1 (en) Communication control device, wireless machine, communication control system, communication control method and program
JP6253813B2 (en) Country identification information addition apparatus, country identification information addition method, and program
JP5676067B1 (en) Communication method and communication system
US20150215277A1 (en) Network address translation apparatus with cookie proxy function and method for nat supporting cookie proxy function
JP6951380B2 (en) Gateway device, communication method and program
US9942823B2 (en) Communication terminal, communication method, and communication program
JP6392709B2 (en) Setting information generating apparatus, method, setting terminal and method
CN100479457C (en) Implementation method for transferring data in virtual private network
EP3235188B1 (en) Method for resolving a host name, related system and computer program product
JP2005197936A (en) Communication system, registering device, and communication device
CN107483203A (en) Internet of Things access point receives the encryption method at times and device of data
JP2013126219A (en) Transfer server and transfer program
CN115152180A (en) Improved packet transmission
JP2014120828A (en) Address conversion method and address conversion device
JP2019033363A (en) Communication device, control method of communication device, and program
JP6227476B2 (en) Access control device, access control method, and program
CN111083247B (en) Address conversion method, device, equipment and storage medium
WO2015129727A1 (en) Communication terminal, communication method and program
KR20150089894A (en) Network Address Translation apparatus with cookie proxy function and method for NAT supporting cookie proxy function
TW201735600A (en) Connection maintaining apparatus, connection maintaining method, and connection maintaining program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15879880

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016571534

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15879880

Country of ref document: EP

Kind code of ref document: A1