KR20140072667A - Gateway and method for converting ip address in gateway - Google Patents

Gateway and method for converting ip address in gateway Download PDF

Info

Publication number
KR20140072667A
KR20140072667A KR1020120140438A KR20120140438A KR20140072667A KR 20140072667 A KR20140072667 A KR 20140072667A KR 1020120140438 A KR1020120140438 A KR 1020120140438A KR 20120140438 A KR20120140438 A KR 20120140438A KR 20140072667 A KR20140072667 A KR 20140072667A
Authority
KR
South Korea
Prior art keywords
address
gateway
ipv6
communication node
ipv4
Prior art date
Application number
KR1020120140438A
Other languages
Korean (ko)
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 KR1020120140438A priority Critical patent/KR20140072667A/en
Publication of KR20140072667A publication Critical patent/KR20140072667A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions

Abstract

When receiving data from the communication node, the storage unit of the gateway stores the correspondence between the ID of the communication node and the IPv6 address. The communication protocol conversion control unit of the gateway converts the IPv6 data including the collection information received from the communication node into IPv4 data having the IPv4 address of the gateway and the IPv4 address of the collection server as the source address and the destination address respectively, The IPv4 command message received from the collection server is converted into an IPv6 command message having the IPv6 address of the gateway and the IPv6 address of the communication node as the source address and the destination address, respectively.

Figure P1020120140438

Description

GATEWAY AND METHOD FOR CONVERTING IP ADDRESS IN GATEWAY [0002]

The present invention relates to a method of converting an IP address in a gateway and a gateway, and more particularly, to a method of converting an IP address in a gateway supporting different network protocols.

The existing Internet or network communication network is composed of the internet protocol version 4 (IPv4) address system. However, due to the IPv4 address shortage, international organizations that allocate internet protocol (IP) addresses officially declared the suspension of IPv4 address allocation due to depletion of IPv4 address. In the future, countries or organizations that have been assigned IP addresses will be assigned Internet protocol version 6 (IPv6) addresses. Therefore, the number of networks using IPv6 addresses will increase, and the demand is likely to be used not only on a personal computer (PC) basis but also in areas such as a smart phone-based mobile network, a sensor network, a growth management system and a smart grid It is getting higher.

In particular, the growth management system is a system that can directly monitor and manage the sensors and control nodes that can be installed in the vinyl house in the rural area, You can manage the house in real time without having to visit the house yourself.

Such a growth management system includes a sensor, a controller, a sensor communication node, a control communication node, a gateway and a remote collection server, which are also formed by an IP network. In this case, since the number of communication nodes is very large, the remaining IPv4 addresses can not satisfy the number. Therefore, the IPv6 node is likely to be assigned to the communication node. However, it is expected that it will not be easy for networks to form IPv6 addresses between the gateway and the remote collection server. The reason for this is that the remote collection server is not connected to the gateway and one local network, but to different networks through several routers or gateways. At this time, in order for the communication node and the remote collection server to communicate with the IPv6 address, the network between the gateway and the remote collection server must be replaced with an IPv6 network. However, replacing the existing IPv4 network with the IPv6 network requires considerable cost and time to build the IPv6 network.

Disclosure of Invention Technical Problem [8] The present invention provides a gateway communication method capable of ensuring smooth communication between a communication node using an IPv6 address and a collection server using an IPv4 address.

According to one embodiment of the invention, a gateway is provided between the communication node and the collection server. The gateway includes an IPv6 data transmission / reception unit, an IPv4 data transmission / reception unit, a storage unit, and a communication protocol conversion control unit. The IPv6 data transmitting and receiving unit exchanges data in IPv6 format with the communication node, and the IPv4 data transmitting and receiving unit exchanges IPv4 format data with the collection server. When receiving the data from the communication node, the storage unit associates and stores the ID of the communication node with the IPv6 address. Wherein the communication protocol conversion control unit converts IPv6 data including collection information received from the communication node into IPv4 data having an IPv4 address of the gateway and an IPv4 address of the collection server as a source address and a destination address, Converts the IPv4 command message received from the collection server into an IPv6 command message having the source address and the destination address of the IPv6 address of the gateway and the IPv6 address of the communication node, respectively, based on the ID of the node.

According to an embodiment of the present invention, a communication protocol is automatically converted between an IPv6 address and an IPv4 address in a gateway, thereby enabling communication between a communication node using an IPv6 address and a collection server using an IPv4 address.

In addition, since the gateway can not use the TCP protocol having a complicated procedure in the communication node, the gateway performs UDP communication with the communication node and performs TCP communication with the collection server that considers reliability, Can be achieved.

1 is a diagram illustrating a network system according to an embodiment of the present invention.
2 is a diagram illustrating a process of converting IPv6 data received from a communication node into IPv4 data and collecting the IPv6 data according to an embodiment of the present invention.
3 is a diagram illustrating a process of converting an IPv4 command message received from a collection server into an IPv6 command message and transmitting the IPv6 command message to a communication node.
4 is a flowchart illustrating an IP address conversion method in a gateway according to an embodiment of the present invention.

Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.

1 is a diagram illustrating a network system according to an embodiment of the present invention.

1, a network system according to an embodiment of the present invention includes a gateway 10 connecting a communication node 20, a collection server 30, and a communication node 20 to a collection server 30 . Such a network system may be, for example, a growth management system.

A network system such as a growth management system may be provided with sensors (not shown) such as temperature, humidity, rainfall, wind direction, wind speed, ventilator, The communication node 20 is installed in a sensor or a controller, and transmits the measured usage information to the sensor or the controller to the gateway 10. Such a communication node 20 may be in a network using an IPv6 address scheme.

The collection server 30 is operated by an administrator managing a network system such as a growth management system, performs data collection, and manages collection information. This collection server 30 may be in a network using an IPv4 address scheme.

The gateway 10 includes a communication protocol conversion control unit 11, a storage unit 12, an IPv6 communication data transmission and reception unit 13, and an IPv4 communication data transmission and reception unit 14.

When the communication node 20 using the IPv6 address transmits data including the collection information to the collection server 30 using the IPv4 address, it generates data of a user data protocol (UDP) / IPv6 type . Since the destination collection server 30 uses the IPv4 address, it can not use the IPv4 address that the communication node 20 can not recognize as the destination address. Therefore, the communication node 20 sets the IPv6 address of the gateway 10 as a destination and transmits the data.

Since the communication node 20 uses a transmission control protocol (TCP) having a complex procedure, the communication node 20 transmits data using UDP. Since the UDP does not undergo a separate connection procedure before data transmission / reception, the communication node 20 generates data and transmits data directly to the UDP. The data includes an identifier (ID) of the communication node 20 so that the gateway 10 can identify the communication node 20 in addition to the IPv6 address of the gateway 10.

The storage unit 12 associates the IPv6 address of the IPv6 data transmitted from the communication node 20 with the communication node ID included in the data area and stores the IPv6 address for each communication node 20.

The communication protocol conversion control unit 11 extracts data received from the communication node 20 in the UDP protocol and stores the extracted data in the storage unit 12 and transmits the data through the TCP connection session already connected to the collection server 30 To the collection server 30 using the protocol. At this time, if the same information as the data received from the communication node 20 is stored, the communication protocol conversion control unit 11 may skip the data storing process.

In this way, the UDP / IPv6 data received from the communication node 20 can be converted into TCP / IPv4 data from the gateway 10 and then transmitted to the collection server 30 using the IPv4 address.

Also, the collecting server 30 may transmit an instruction message to the communication node 20. [ In this case, the collection server 30 sets the destination address of the command message to the IPv4 address used by the gateway 10.

When the gateway 10 receives a command message using the IPv4 address from the collection server 30, the communication protocol conversion control unit 11 determines whether the ID of the communication node 20 in the data field of the IPv4 command message is stored in the storage unit 12 Or the ID stored in the storage unit. The communication protocol conversion control unit 11 acquires the destination address of the IPv6 command message to be transmitted from the storage unit 12 to the communication node 20 and sets the source address to the IPv6 address of the gateway 10 itself To the communication node (20).

The gateway 10 uses the IPv6 data transmission unit 13 to exchange data with the communication node 20 and uses the IPv4 data transmission and reception unit 14 to exchange data with the collection server 30.

Next, a method of converting an IP address of a gateway according to an embodiment of the present invention will be described in detail with reference to FIG. 2 to FIG.

FIG. 2 is a diagram illustrating a process of converting IPv6 data received from a communication node into IPv4 data and collecting the IPv4 data according to an embodiment of the present invention. FIG. To a communication node.

2, the communication node 20 included in the IPv6 network 200 transmits data including the collection information, and the gateway 10 converts the data into a collection To the server (30). The gateway 10 may store the mapping table 15 in the storage unit 12 for data conversion. The mapping table 15 stores the IPv6 address of the communication node 20 and the ID of the communication node 20 in association with each other.

The data 16 transmitted from the communication node 20 to the gateway 10 includes the ID of the communication node and the IPv6 address of the gateway 10 as the source address and the IPv6 address of the communication node 20 as the destination address .

Upon receipt of this data 16, the gateway 10 confirms whether the destination address of the data 16 is the IPv6 address of the gateway 10 itself. The gateway 10 stores the IPv6 address and the ID of the communication node 10 in the form of a mapping table 15 in the storage unit 12 if the gateway 10 has its own IPv6 address. Meanwhile, since the IPv6 address and ID of the communication node 10 are already stored in the form of a mapping table, the gateway 10 omits the storing process.

Next, the gateway 10 generates the IPv4 data 17 in order to transmit the received IPv6 data 16 to the collection server 30. For this purpose, the gateway 10 confirms whether there is a TCP connection session connected to the collection server 30. When there is a connected TCP connection session, the gateway 10 sets its IPv4 address as a source address and sets the IPv4 address of the collection server 30 as a destination address to generate IPv4 data 17. [ When the gateway 10 transfers the thus converted IPv4 data 17 to the network interface, the IPv4 data 17 is transmitted to the collection server 30 based on the destination address. On the other hand, the collection server 30 may exist as a plurality of collection servers for other purposes. In this case, the gateway 10 can transmit data to a plurality of collection servers.

3, after the collection server 30 included in the IPv4 network 300 transmits a command message and the gateway 10 converts the command message, the communication node 20 included in the IPv6 network 200 ).

The collection server 30 sets its IPv4 address to the IPv4 source address of the command message and sets the IPv4 address of the gateway 10 to the destination address before transmitting the IPv4 command message to the gateway 10. [

Upon receipt of the IPv4 command message from the collection server 30, the gateway 10 converts the IPv4 command message to IPv6 data and transmits it to the communication node 20. [ To this end, the gateway 10 acquires the ID of the communication node in the data area of the command message and searches the mapping table 15 stored in the storage 12 for the ID of the communication node acquired. If there is an ID of the corresponding communication node, the gateway 10 uses its IPv6 address as a source address, sets the IPv6 address of the matching communication node as a destination address in the mapping table, As shown in FIG. At this time, if there is no ID matching the ID of the specific communication node in the mapping table 15, the gateway 10 discards the received command message because it is not the data of the communication node managed by the gateway 10 itself. Through this process, the gateway 10 transmits a command message converted into the IPv6 data format to the communication node 20.

4 is a flowchart illustrating an IP address conversion method in a gateway according to an embodiment of the present invention.

Referring to FIG. 4, the gateway 10 establishes a TCP connection session with the collection server 30 (S41). Accordingly, the gateway 10 becomes a TCP client, and the collection server 30 becomes a TCP server.

When the gateway 10 receives the IPv6 data including the collection information from the communication node 20 in step S42, the IPv6 address and the ID of the communication node 20 are stored in the mapping table 16 in step S43. Next, the gateway 10 sets its own IPv4 address as a source address, sets the IPv4 address of the collection server 30 as a destination address, and converts IPv6 data into IPv4 data (S44). Then, the gateway 10 transmits the IPv4 data using the TCP / IPv4 protocol to the collection server 30 in which the TCP connection session is established (S45).

Next, when the gateway 10 receives the IPv4 command message from the collection server 30 (S46), it searches the communication node ID of the command message (S47). The gateway 10 sets its own IPv6 address as a source address and sets the IPv6 address of the retrieved communication node 20 as a destination address to convert the IPv4 command message into an IPv6 command message (S48). Then, the gateway 10 transmits the IPv6 data to the communication node 20 using the UDP / IPv6 protocol (S49).

As described above, according to the embodiment of the present invention, the gateway automatically communicates between the IPv6 address and the IPv4 address, thereby enabling communication between the communication node using the IPv6 address and the collection server using the IPv4 address.

In addition, since the gateway can not use the TCP protocol having a complicated procedure in the communication node, the gateway performs UDP communication with the communication node and performs TCP communication with the collection server that considers reliability, Can be achieved.

While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, It belongs to the scope of right.

Claims (1)

A gateway connected between the communication node and the collection server,
An IPv6 data transceiver for exchanging IPv6 format data with the communication node,
An IPv4 data transmission / reception unit for exchanging IPv4 format data with the collection server,
A storage unit for storing the ID of the communication node and the IPv6 address in association with each other when receiving data from the communication node,
Converting IPv6 data including collection information received from the communication node into IPv4 data having an IPv4 address of the gateway and an IPv4 address of the collection server as a source address and a destination address, And converting the IPv4 command message received from the collection server into an IPv6 command message having an IPv6 address of the gateway and an IPv6 address of the communication node as a source address and a destination address, respectively,
.
KR1020120140438A 2012-12-05 2012-12-05 Gateway and method for converting ip address in gateway KR20140072667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120140438A KR20140072667A (en) 2012-12-05 2012-12-05 Gateway and method for converting ip address in gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120140438A KR20140072667A (en) 2012-12-05 2012-12-05 Gateway and method for converting ip address in gateway

Publications (1)

Publication Number Publication Date
KR20140072667A true KR20140072667A (en) 2014-06-13

Family

ID=51126473

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120140438A KR20140072667A (en) 2012-12-05 2012-12-05 Gateway and method for converting ip address in gateway

Country Status (1)

Country Link
KR (1) KR20140072667A (en)

Similar Documents

Publication Publication Date Title
CN101577722B (en) Method for realizing MAC forced forwarding function and device
EP2148518A1 (en) Packet communication method using node identifier and locator
CN102209121A (en) Method and device for intercommunication between Internet protocol version 6 (IPv6) network and Internet protocol version 4 (IPv4) network
EP2579519A1 (en) Method, network device and system for automatically configuring network device in internet protocol version 6 network
CN102938735B (en) Advertising of route is used to carry the method that option issues NAT64 address prefix
CN104427010A (en) NAT (network address translation) method and device applied to DVPN (dynamic virtual private network)
JP2012156656A (en) Network address translation method, network address translation proxy response method, network address translation device, and network address translation proxy response device
CN102594885B (en) Sensor network resolves interoperation A platform, sensor network interoperability methods and system
CN110121864A (en) Network bridging between heterogeneous networks communication protocol
US20090198806A1 (en) Data structure for managing sensor network using id of sensor node and method using the same
CN106413127B (en) Method, system and the Relay equipment of Relay equipment connection remote network management server
CN105591798A (en) Method and device for transmitting OAM information in DCN
CN103428303A (en) Method and system for IPv6 host to have access to IPv4 server
JP5851374B2 (en) Data management system
CN102801823A (en) DNS (domain name server) relay method and device
CN102404417A (en) Method and device for accessing external network
KR20170124055A (en) APPARATUS FOR COMPATIBILITY BETWEEN ZIGBEE AND CoAP
JP5091217B2 (en) Home device information collecting apparatus and home device information collecting method
CN102447747A (en) Method, device and system for interacting with private network
CN106713528B (en) A kind of method of home gateway and IPv6 host access network server
JP6012496B2 (en) Smart meter and smart meter system
CN102685269A (en) Method and device for obtaining broadband dynamic IP (Internet protocol) address in real time
CN102480476A (en) Multi-service access method based on DHCP protocol extension
KR100902841B1 (en) Home network system and method for home networking
US9015280B2 (en) Communication terminal, address resolution server, and computer program

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination