KR101367180B1 - An apparatus for switching and sharing network services and the method thereof - Google Patents

An apparatus for switching and sharing network services and the method thereof Download PDF

Info

Publication number
KR101367180B1
KR101367180B1 KR1020120053391A KR20120053391A KR101367180B1 KR 101367180 B1 KR101367180 B1 KR 101367180B1 KR 1020120053391 A KR1020120053391 A KR 1020120053391A KR 20120053391 A KR20120053391 A KR 20120053391A KR 101367180 B1 KR101367180 B1 KR 101367180B1
Authority
KR
South Korea
Prior art keywords
terminal
network service
service
network
sharing
Prior art date
Application number
KR1020120053391A
Other languages
Korean (ko)
Other versions
KR20130129495A (en
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 KR1020120053391A priority Critical patent/KR101367180B1/en
Publication of KR20130129495A publication Critical patent/KR20130129495A/en
Application granted granted Critical
Publication of KR101367180B1 publication Critical patent/KR101367180B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • 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/256NAT traversal
    • H04L61/2575NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

본 발명은 NAT를 이용하여 구성된 각기 다른 네트워크에 속하는 단말 상호간에 P2P 네트워크 서비스를 수행하던 상태에서, 상기 단말 중 어느 하나가 속한 네트워크에서 상기 서비스를 상기 네트워크의 다른 단말로 전환해서 계속 수행하거나, 상기 어느 하나의 단말과 다른 단말이 네트워크 서비스를 공유할 수 있도록 함으로써 사용자의 편의성을 향상시킬 수 있는 네트워크 서비스를 전환 및 공유하는 장치와 그 방법에 관한 것이다.According to the present invention, while a P2P network service is performed between terminals belonging to different networks configured by using NAT, the service is switched to another terminal of the network in a network to which one of the terminals belongs, or continuously performed. The present invention relates to an apparatus and method for switching and sharing a network service that can improve user convenience by allowing one terminal and another terminal to share a network service.

Description

네트워크 서비스를 전환 및 공유하는 장치와 그 방법{AN APPARATUS FOR SWITCHING AND SHARING NETWORK SERVICES AND THE METHOD THEREOF}Devices and methods for switching and sharing network services {AN APPARATUS FOR SWITCHING AND SHARING NETWORK SERVICES AND THE METHOD THEREOF}

본 발명은 네트워크 서비스를 전환 및 공유하는 장치와 그 방법에 관한 것으로, 더욱 상세하게는 NAT를 이용하여 구성된 각기 다른 네트워크에 속하는 단말 상호간에 P2P 네트워크 서비스를 수행하던 상태에서, 상기 서비스를 제공받는 단말이 속한 네트워크에서 상기 서비스를 다른 단말로 전환해서 계속 제공받거나, 상기 서비스를 제공받는 단말과 상기 다른 단말이 상기 서비스를 공유할 수 있도록 하는 네트워크 서비스를 전환 및 공유하는 장치와 그 방법에 관한 것이다.
The present invention relates to an apparatus and method for switching and sharing a network service, and more particularly, a terminal receiving a service while performing P2P network service between terminals belonging to different networks configured using NAT. The present invention relates to a device and a method for switching and sharing a network service in which the service is switched to another terminal and continuously provided to the other network, or allowing the other terminal to share the service with the terminal receiving the service.

도1은 종래의 NAT를 이용하여 구성된 네트워크에서의 단말 상호간의 P2P 통신 방법을 설명하기 위한 예시도로서, 이에 도시된 바와 같이 NAT(Network Address Translation, 201, 202)를 이용하여 구성된 제1 네트워크(10)와 제2 네트워크(20)에 속하는 특정 단말(101, 103)이 상호간에 P2P(Peer to Peer) 통신을 수행하고 있다고 가정한다. 상기 NAT는 공유기 또는 홈 게이트웨이일 수 있다.FIG. 1 is an exemplary diagram for explaining a P2P communication method between terminals in a network configured using a conventional NAT, and as shown in FIG. 1, a first network configured using a network address translation (NAT) 201, 202 ( It is assumed that 10) and specific terminals 101 and 103 belonging to the second network 20 are performing peer to peer (P2P) communication with each other. The NAT may be a router or a home gateway.

상기 제1 네트워크(10) 및 제2 네트워크(20)는 서로 다른 공인 IP주소를 사용하며, 각 네트워크에 속하는 단말들은 NAT1(201) 또는 NAT2(202)를 통하여 설정된 사설 IP주소를 사용한다.The first network 10 and the second network 20 use different public IP addresses, and terminals belonging to each network use a private IP address set through NAT1 201 or NAT2 202.

상기 NAT(201, 202)는 사설 IP주소를 공인 IP주소로 바꿔주는 역할을 수행한다. 상기 NAT를 사용할 경우, 첫째, 인터넷의 공인 IP주소를 절약할 수 있고, 둘째, 인터넷이라는 공공망과 연결되는 사용자들의 고유한 사설망을 침입자들로부터 보호할 수 있는 효과가 있다. 다시 말해, 인터넷의 공인 IP주소는 한정되어 있기 때문에 가급적 많은 사람들이 인터넷을 사용할 수 있도록 하는 기술이 필요한데, NAT를 이용하여 사설 IP주소를 공인 IP주소로 변환할 수 있도록 함으로써 하나의 공인 IP주소를 다수가 함께 사용할 수 있도록 하는 것이다.The NAT 201 and 202 converts a private IP address into a public IP address. When using the NAT, first, it is possible to save the public IP address of the Internet, and second, there is an effect that can protect the unique private network of users connected to the public network called the Internet from intruders. In other words, the public IP address of the Internet is limited, so that as many people as possible need to use the Internet, it is necessary to convert a private IP address into a public IP address using NAT. It is intended to be used by many.

또한 상기 NAT는 공개된 인터넷과 사설망 사이에 방화벽(Firewall)을 설치하여 외부 공격으로부터 사용자의 통신망을 보호하는 기본적인 수단으로 활용할 수 있다. 예컨대, 외부 통신망, 즉 인터넷망과 연결하는 장비인 라우터에 NAT를 설정할 경우, 라우터는 자신에게 할당된 공인 IP주소만 외부로 알려지게 하고, 내부에서는 사설 IP주소만 사용하도록 하여 필요시에 이를 서로 변환시켜 줌으로써, 외부 침입자가 공격하기 위해서는 사설망의 내부 사설 IP주소를 알아야 하기 때문에 공격이 불가능해지므로 내부 네트워크를 보호할 수 있도록 한다.In addition, the NAT may be used as a basic means of protecting a user's communication network from an external attack by installing a firewall between the public Internet and a private network. For example, when NAT is set up on a router, which is a device that connects to an external communication network, that is, an Internet network, the router makes the public IP address assigned to itself known only to the outside, and only the private IP address is used internally. By converting, it is possible to protect the internal network because the attack is impossible because the external intruder needs to know the private IP address of the private network in order to attack.

스턴(STUN) 서버(300)는 NAT 외부에 위치하며, STUN(Simple Traversal of User Datagram Protocol Through Network Address Translators) 프로토콜을 통하여 NAT의 존재유무와, NAT 공인 IP주소, 그리고 NAT 환경에서 동작하는 어플리케이션의 UDP 포트(NAT가 현재 어플리케이션의 접속에 어떤 포트를 할당했는지) 정보를 알아내는 역할을 수행한다. The STUN server 300 is located outside the NAT and uses the Simple Traversal of User Datagram Protocol Through Network Address Translators (STUN) protocol to determine the existence of NAT, NAT public IP addresses, and applications running in the NAT environment. It finds out the UDP port (what port NAT assigned to the current application).

도1에 도시된 바와 같이, 단말1(101)과 단말3(103)이 P2P 통신을 수행하기 위해서는 외부 STUN 서버(300)를 이용하여 홀 펀칭(Hall Punching)을 수행한다. As shown in FIG. 1, terminal 1 101 and terminal 3 103 perform hole punching using an external STUN server 300 to perform P2P communication.

여기서 홀 펀칭은 P2P 통신을 목적으로 사전에 STUN 서버를 통해 상대 단말의 NAT 공인 IP주소, 그리고 어플리케이션의 UDP 포트 정보를 취득하여 각 단말의 NAT(또는 공유기)에 테이블을 작성하는 것을 의미한다. 예컨대 단말1과 단말3이 통신 연결을 하고 싶을 경우, 상기 STUN 서버(300)에서 단말1과 단말3에 동시에 서로의 IP 정보를 보내주어 단말1과 단말3에서 각기 NAT에 테이블을 만들어 저장한 후 그 테이블을 참조하여 직접 연결을 시도하여 통신하는 방식을 의미한다.Here, hole punching means obtaining a NAT public IP address of a counterpart terminal and UDP port information of an application through a STUN server in advance for P2P communication, and creating a table in each terminal's NAT (or router). For example, when the terminal 1 and the terminal 3 wants to communicate, the STUN server 300 sends the IP information to the terminal 1 and the terminal 3 at the same time, and the terminal 1 and the terminal 3 respectively make a table in the NAT and store it. Refers to the table, it means the method of direct connection and communication.

상기 P2P 통신은 중간매개자 없이 정보 제공자와 정보 수신자가 직접 연결되어 원하는 정보를 교환할 수 있어 각 개인이 가지고 있는 정보를 손쉽게 공유할 수 있도록 하는 기술로서, 음악은 물론 동영상, 비디오, 텍스트파일 등의 데이터를 상대방과 1 대1(또는 1 대 다(多))로 공유할 수 있도록 한다.The P2P communication is a technology that allows the information provider and the information receiver to be directly connected and exchange information without intermediary, so that they can easily share the information each individual has, such as music, video, video, text files, etc. Allows you to share data one-to-one (or one-to-many) with the other party.

그런데 종래에는 단말1(101)과 단말3(103)이 P2P 통신을 수행하고 있다고 가정한 상태에서, 상기 어느 하나의 단말(예 : 단말1)이 속한 네트워크(예 : 제1 네트워크)의 다른 단말(예 : 단말2)로 전환하여 상기 단말3(103)과 P2P 통신 서비스를 계속 수행하거나, 또는 상기 단말1(101)과 단말2(102)에서 패킷을 공유하여 상기 단말3(103)과 P2P 통신 서비스를 수행할 수 없었다.By the way, conventionally, the terminal 1 (101) and the terminal 3 (103) assuming that the P2P communication, the other terminal of the network (for example, the first network) to which one terminal (for example, terminal 1) belongs (Eg, terminal 2) to continue the P2P communication service with the terminal 3 (103), or by sharing a packet between the terminal 1 (101) and the terminal 2 (102) and the terminal 3 (103) and P2P The communication service could not be performed.

예를 들어, 종래에는 단말1(101)과 단말3(103)이 P2P 통신을 연결하여 단말1에서 동영상을 수신하던 중 같은 네트워크의 단말2(102)로 전환하여 상기 동영상을 계속해서 수신할 수 없었다. 만약 단말2(102)가 단말3(103)로부터 동영상을 수신하기 위해서는 단말2(102)와 단말3(103)을 P2P 연결한 후, 상기 단말3(103)에서 동영상을 선택하여 수신하는 모든 절차를 처음부터 수행해야 하는 문제점이 있었다.
For example, while the terminal 1 101 and the terminal 3 103 are connected to the P2P communication and receive the video from the terminal 1, the terminal 1 101 and the terminal 3 103 may switch to the terminal 2 102 of the same network to continuously receive the video. There was no. If terminal 2 (102) in order to receive the video from the terminal 3 (103) P2P connection between the terminal 2 (102) and the terminal 3 (103), all procedures for selecting and receiving the video in the terminal 3 (103) There was a problem that must be performed from the beginning.

본 발명은 상기와 같은 문제점을 개선하기 위해 창작된 것으로서, 단말 상호간에 P2P 네트워크 서비스를 수행하던 상태에서 어느 하나의 단말을 다른 단말로 전환하더라도 계속해서 네트워크 서비스를 수행할 수 있도록 하는 네트워크 서비스를 전환 및 공유하는 장치와 그 방법을 제공하는데 그 목적이 있다.The present invention was created to improve the above problems, and switching between network services to continue to perform network services even if one terminal is switched to another terminal while performing P2P network services between the terminals. And a device and method for sharing the same.

본 발명은 상기와 같은 문제점을 개선하기 위해 창작된 것으로서, 상호간에 P2P 네트워크 서비스를 수행하던 단말들 중 어느 하나의 단말에 다른 단말을 추가하여 상기 네트워크 서비스를 공유할 수 있도록 하는 네트워크 서비스를 전환 및 공유하는 장치와 그 방법을 제공하는데 그 목적이 있다.
The present invention was created to improve the above problems, and switching a network service to share the network service by adding another terminal to any one of terminals that were performing P2P network services. Its purpose is to provide a sharing device and a method thereof.

본 발명의 일 측면에 따른 네트워크 서비스를 전환 및 공유하는 장치는 제1 NAT(Network Address Translation)에 연결된 제1 단말, 제2 NAT에 연결되며 상기 제1 단말과 P2P 네트워크 서비스를 수행하는 제2 단말, 상기 제2 NAT에 연결되며 상기 네트워크 서비스의 전환이나 공유 서비스를 신청하는 제3 단말을 포함하는 네트워크에 있어서, 상기 제3 단말의 서비스 신청신호를 수신하는 서비스 신청신호 수신부; 상기 네트워크 서비스가 수행되고 있는 목적지 주소를 검출하는 목적지 주소 검출부; 상기 검출된 네트워크 서비스의 목적지 주소를 상기 서비스를 신청한 제3 단말로 변경하여 네트워크 서비스를 전환하거나, 상기 서비스를 신청한 제3 단말을 목적지 주소로 더 추가하여 네트워크 서비스를 공유하는 목적지 주소 변경/추가부; 를 포함하여 구성된 것을 특징으로 한다.An apparatus for switching and sharing a network service according to an aspect of the present invention may include a first terminal connected to a first network address translation (NAT) and a second terminal connected to a second NAT and performing a P2P network service with the first terminal. And a third terminal connected to the second NAT and including a third terminal for applying for switching or sharing service of the network service, the network comprising: a service request signal receiving unit receiving a service request signal of the third terminal; A destination address detector for detecting a destination address where the network service is being performed; Change the destination address of the detected network service to the third terminal applying for the service to switch the network service, or change the destination address sharing the network service by adding the third terminal applying for the service as a destination address; Additional part; And a control unit.

본 발명의 다른 일 측면에 따른 네트워크 서비스를 전환 및 공유하는 방법은 제1 NAT(Network Address Translation에 연결된 제1 단말, 제2 NAT에 연결되며 상기 제1 단말과 P2P 네트워크 서비스를 수행하는 제2 단말, 상기 제2 NAT에 연결되며 상기 P2P 네트워크 서비스의 전환이나 공유 서비스를 신청하는 제3 단말을 포함하는 네트워크에 있어서, 상기 제3 단말의 서비스 신청 신호를 수신하는 제1 단계; 상기 네트워크 서비스가 수행되고 있는 목적지 주소를 검출하는 제 2단계; 상기 검출된 네트워크 서비스의 목적지 주소를 상기 서비스를 신청한 제3 단말로 변경하여 네트워크 서비스를 전환하거나, 상기 서비스를 신청한 제3 단말을 목적지 주소로 더 추가하여 네트워크 서비스를 공유하는 제3 단계; 를 포함하여 구성된 것을 특징으로 한다.
According to another aspect of the present invention, a method of switching and sharing a network service includes: a first terminal connected to a first NAT, a second terminal connected to a second NAT and performing a P2P network service with the first terminal; In the network comprising a third terminal connected to the second NAT and applying for switching or sharing service of the P2P network service, a first step of receiving a service request signal of the third terminal; A second step of detecting a destination address being changed; changing a detected destination address of the network service to a third terminal applying for the service to switch network services, or further adding a third terminal applying for the service as a destination address; In addition, a third step of sharing a network service;

본 발명은 상호간에 P2P 네트워크 서비스를 수행하던 단말들 중 어느 하나의 단말을 다른 단말로 전환하더라도 계속해서 서비스를 수행할 수 있도록 함으로써 사용자의 편의성을 향상시키는 효과가 있다.The present invention has the effect of improving the user's convenience by enabling the service to continue even if any one of the terminals performing the P2P network service is switched to another terminal.

본 발명은 상호간에 P2P 네트워크 서비스를 수행하던 단말들 중 어느 하나의 단말과 다른 단말을 더 추가하여 상기 서비스를 공유할 수 있도록 함으로써 사용자의 편의성을 향상시키는 효과가 있다.
The present invention has the effect of improving the convenience of the user by allowing the sharing of the service by further adding any one terminal and another terminal among the terminals performing the P2P network service.

도 1은 종래의 NAT를 이용하여 구성된 네트워크에서의 단말 상호간의 P2P 통신 방법을 설명하기 위한 예시도.
도 2는 본 발명의 일 실시예에 따른 P2P 통신을 위한 단말의 전환 및 공유 방법을 설명하기 위한 예시도.
도 3은 상기 도2에 있어서, P2P 통신을 위한 단말의 전환 및 공유 방법을 설명하기 위한 흐름도.
도 4는 본 발명의 일 실시예에 따라 홀 펀칭을 이용하여 타겟 단말 리스트를 검색하는 방법을 설명하기 위한 예시도.
도 5a와 도 5b는 본 발명의 일 실시예에 따라 NAT에서 네트워크 서비스의 전환이나 공유를 실행하는 방법을 설명하기 위한 예시도.
도 6은 본 발명의 일 실시예에 따라 네트워크 서비스의 전환이나 공유를 신청하는 장치의 구성을 보인 예시도.
도 7은 상기 도6에 있어서, 상기 네트워크 서비스의 전환이나 공유를 신청하는 장치의 사용자 인터페이스 화면을 보인 예시도.
도 8은 본 발명의 일 실시예에 따라 네트워크 서비스의 전환 및 공유 장치의 구성을 보인 예시도.
1 is an exemplary diagram for explaining a P2P communication method between terminals in a network configured using a conventional NAT.
2 is an exemplary view for explaining a method of switching and sharing a terminal for P2P communication according to an embodiment of the present invention.
3 is a flowchart illustrating a method of switching and sharing a terminal for P2P communication in FIG.
4 is an exemplary diagram for describing a method of searching for a target terminal list using hole punching according to an embodiment of the present invention.
5A and 5B are exemplary diagrams for explaining a method of performing switching or sharing of a network service in a NAT according to an embodiment of the present invention.
6 is an exemplary view showing the configuration of an apparatus for applying for switching or sharing of a network service according to an embodiment of the present invention.
FIG. 7 is an exemplary view illustrating a user interface screen of a device for applying for switching or sharing of the network service in FIG. 6.
8 is an exemplary view illustrating a configuration of a device for switching and sharing a network service according to an embodiment of the present invention.

이하, 첨부된 도면을 참조하여 본 발명에 따른 네트워크 서비스를 전환 및 공유하는 장치와 그 방법의 일 실시예를 설명한다. Hereinafter, an embodiment of an apparatus and method for switching and sharing a network service according to the present invention will be described with reference to the accompanying drawings.

도2는 본 발명의 일 실시예에 따른 P2P 통신을 위한 단말의 전환 및 공유 방법을 설명하기 위한 예시도이고, 도3은 상기 도2에 있어서, P2P 통신을 위한 단말의 전환 및 공유 방법을 설명하기 위한 흐름도이다.FIG. 2 is an exemplary diagram for describing a method of switching and sharing a terminal for P2P communication according to an embodiment of the present invention, and FIG. 3 is a diagram illustrating a method for switching and sharing a terminal for P2P communication in FIG. 2. It is a flowchart for doing this.

도2에 도시된 바와 같이, 제1 네트워크(10)의 NAT1(201)에 연결되어 있는 단말1(101)과 제2 네트워크(20)의 NAT2(202)에 연결되어 있는 단말3(103)이 특정 네트워크 서비스(예 : Service A)의 P2P 통신을 수행하고 있다고 가정한다. As shown in FIG. 2, the terminal 1 101 connected to the NAT1 201 of the first network 10 and the terminal 3 103 connected to the NAT2 202 of the second network 20 are provided. It is assumed that P2P communication of a specific network service (eg, Service A) is performed.

이때 도3에 도시된 바와 같이, 상기 제1 네트워크(10)의 NAT1(201)에 연결되어 있는 단말2(102)에서 본 발명에 따른 네트워크 서비스를 전환 및 공유하는 장치(예 : NAT1)로 네트워크 서비스(예 : Service A)에 대한 전환/공유(또는 단말 전환/공유) 신청을 할 경우(S101), 본 발명에 따른 네트워크 서비스를 전환 및 공유하는 장치는 내부에 기저장된 특정 테이블(T1)을 참조하여, 상기 네트워크 서비스(예 : Service A)의 목적지 주소(예 : 상기 네트워크 서비스를 수행하는 특정 단말의 IP 주소와 포트번호)를 검출한다(S102). At this time, as shown in Figure 3, the terminal 2 (102) connected to NAT1 (201) of the first network (10) to the network device (for example, NAT1) for switching and sharing the network service according to the present invention When applying for switching / sharing (or terminal switching / sharing) for a service (for example, Service A) (S101), the device for switching and sharing the network service according to the present invention uses a specific table T1 stored therein. With reference, the destination address (eg, IP address and port number of the specific terminal performing the network service) of the network service (eg, Service A) is detected (S102).

그리고 상기 검출된 목적지 주소가 단말1(101)이라고 가정할 경우, 상기 단말1(101)로 향하는 네트워크 서비스(예 : Service A)의 모든 패킷의 목적지 주소(예 : IP 주소와 포트번호)를 단말2(102)로 변경하거나 추가하여 전달한다(S103). In addition, when the detected destination address is assumed to be terminal 1 (101), the terminal receives destination addresses (eg, an IP address and a port number) of all packets of a network service (eg, Service A) destined for the terminal 1 (101). Change to 2 (102) or add (S103).

예컨대, 상기 도3의 S101 단계에 있어서 상기 단말2가 네트워크 서비스의 전환 신청을 할 경우, 도2의 (a)에 도시된 바와 같이, 단말1(101)로 향하는 네트워크 서비스의 모든 패킷을 단말2(102)로 변경하여 전달한다. 그리고 상기 도3의 S101 단계에 있어서 상기 단말2가 네트워크 서비스의 공유 신청을 할 경우, 도2의 (b)에 도시된 바와 같이, 상기 단말1(101)로 향하는 네트워크 서비스의 모든 패킷의 목적지 주소에 단말2(102)를 더 추가하여 네트워크 서비스를 공유할 수 있도록 한다. For example, in the step S101 of FIG. 3, when the terminal 2 requests to switch the network service, as shown in FIG. 2 (a), all packets of the network service directed to the terminal 1 101 are transmitted to the terminal 2. Change to 102 and pass. In the step S101 of FIG. 3, when the terminal 2 requests to share a network service, as shown in FIG. 2B, destination addresses of all packets of the network service directed to the terminal 1 101 are provided. Terminal 2 (102) is further added to enable network services to be shared.

여기서, 상기 본 발명에 따른 네트워크 서비스를 전환 및 공유하는 장치는 NAT 내부에 포함되거나 별도로 구성될 수 있다. 그리고 상기 특정 테이블(T1)은 특정 네트워크 서비스가 수행되는 단말의 IP 주소와 포트번호가 매핑된 테이블을 의미한다. Here, the apparatus for switching and sharing the network service according to the present invention may be included in a NAT or configured separately. The specific table T1 refers to a table in which an IP address and a port number of a terminal on which a specific network service is performed are mapped.

제1 실시예로서, 상기 특정 테이블(T1)은 NAT에 연결된 단말들로부터 전송되는 모든 패킷의 페이로드(Payload)를 파싱(Parsing)하여, 특정 데이터(예 : 네트워크 서비스의 시작을 알리는 데이터)를 감지하고, 그 해당 패킷의 IP 주소와 포트 번호를 테이블 형식으로 저장한다. 이때 상기 NAT는 새로운 네트워크 서비스가 시작될 때 마다 그 네트워크 서비스를 수행하는 단말의 IP 주소와 포트 번호를 검출하여 상기 특정 테이블(T1)을 업데이트 한다. In a first embodiment, the specific table T1 parses payloads of all packets transmitted from terminals connected to NAT, and thus, transmits specific data (for example, data indicating start of a network service). Detect and store the packet's IP address and port number in table format. At this time, the NAT updates the specific table T1 by detecting the IP address and port number of the terminal performing the network service whenever a new network service is started.

제2 실시예로서, 상기 NAT의 특정 테이블(T1)은 외부의 STUN 서버(300)로부터 수신된 정보를 이용하여 업데이트 할 수 있다. 예컨대, 도4에 도시된 바와 같이, 외부의 STUN 서버(300)는 P2P 통신중인 양측 단말(예 : 단말1과 단말3)의 내부/외부 접속 IP(예 : Local IP address, Global IP address)와 포트 정보를 알아내어 STUN 서버(300)에 특정 테이블(T2)을 만들어 저장한다. 상기와 같이 단말1(101)과 단말3(103)이 특정 네트워크 서비스(예 : Service A)의 P2P 통신을 수행하고 있는 상황에서 단말2(102)가 STUN 서버(300)로 NAT1(201)을 통해서 연결된 모든 P2P 정보를 요청할 경우, STUN 서버(300)는 상기 특정 테이블(T2)로부터 각 단말이 연결된 NAT(예 : NAT1, NAT2)에 매핑되는 P2P 정보(P2P 서비스 및 그 서비스를 수행하는 단말의 IP 주소 및 포트번호)를 검출하여 단말2(102)로 응답한다. 이에 따라 상기 P2P 정보를 얻은 단말2(102)는 홀 펀칭을 수행하여 NAT1(201)의 특정 테이블(T1)을 업데이트한다.As a second embodiment, the specific table T1 of the NAT may be updated using information received from an external STUN server 300. For example, as shown in Figure 4, the external STUN server 300 and the internal / external access IP (eg, Local IP address, Global IP address) of both terminals (eg, terminal 1 and terminal 3) in P2P communication Port information is found and stored in the STUN server 300 by creating a specific table (T2). As described above, in the situation where terminal 1 (101) and terminal 3 (103) are performing P2P communication of a specific network service (eg, Service A), terminal 2 (102) connects NAT1 (201) to STUN server (300). When requesting all P2P information connected through the STUN server 300, the STUN server 300 is the P2P information (P2P service and the terminal performing the service) mapped to the NAT (eg, NAT1, NAT2) connected to each terminal from the specific table (T2) IP address and port number) are detected and responds to terminal 2 (102). Accordingly, the terminal 2 102 having the P2P information updates the specific table T1 of the NAT1 201 by performing hole punching.

제3 실시예로서, 상기 NAT의 특정 테이블(T1)은 단말간에 수행중인 네트워크 서비스를 검색하여 업데이트 할 수 있다. 예컨대 단말1과 단말3이 특정 네트워크 서비스(예 : Service A)의 P2P 통신을 수행하고 있는 상황에서, 단말2(102)가 단말1(101)로 특정 네트워크 서비스(예 : Service A)의 P2P 연결 여부와 P2P 연결 정보(예 : IP 주소, 포트 번호)를 질의 할 경우, 단말1은 특정 네트워크 어플리케이션(예 : Service A)의 연결 정보를 단말2로 응답한다. 이에 따라 상기 연결 정보를 얻은 단말2(102)는 NAT1(201)의 특정 테이블(T1)을 업데이트 할 수 있다. 이때 상기 각 네트워크 서비스(또는 각 단말)는 상대방의 질의에 대하여 P2P 연결 정보를 알려주는 기능을 포함한다.As a third embodiment, the specific table T1 of the NAT may search for and update a network service being performed between terminals. For example, when UE 1 and UE 3 are performing P2P communication of a specific network service (eg, Service A), UE 2 102 connects to P1P of a specific network service (eg, Service A) to UE 1 101. When inquiring whether the P2P connection information (eg, IP address, port number), the terminal 1 responds to the terminal 2 with the connection information of a specific network application (eg, Service A). Accordingly, the terminal 2 102 obtained the connection information may update the specific table T1 of the NAT1 201. In this case, each network service (or each terminal) includes a function of informing P2P connection information about a query of the counterpart.

여기서 상기 특정 테이블(T1)에는 단말의 IP 주소와 포트번호 뿐만 아니라, 서비스 정보(예 : Service A, Service B, Service C)와 단말 ID 정보(예 : MAC 어드레스, 디폴트로 설정되거나 사용자가 설정한 기기명칭)를 더 포함하여 저장할 수 있다. 그리고 상기와 같이 단말이 전환/공유될 경우에도 상기 특정 테이블(T1)을 업데이트 하고, 또한 STUN 서버(300)를 이용했을 경우에는 STUN 서버(300)의 특정 테이블(T2)도 업데이트 한다.In this particular table (T1), not only the IP address and port number of the terminal, but also service information (eg, Service A, Service B, Service C) and terminal ID information (eg, MAC address, set by default or set by the user). Device name) may be further stored. When the terminal is switched / shared as described above, the specific table T1 is updated, and when the STUN server 300 is used, the specific table T2 of the STUN server 300 is also updated.

도5a와 도5b는 본 발명의 일 실시예에 따라 NAT에서 네트워크 서비스의 전환이나 공유를 실행하는 방법을 설명하기 위한 예시도이다. 상술한 바와 같이 단말1과 단말3이 네트워크 서비스를 수행하는 상태에서 단말2가 서비스의 수신/공유(단말의 전환/공유)를 신청할 경우, NAT는 상기 단말1(101)로 향하는 네트워크 서비스(예 : Service A)의 모든 패킷의 목적지 주소(예 : IP 주소와 포트번호)를 단말2(102)로 변경하거나 추가한다. 5A and 5B are exemplary diagrams for describing a method of performing switching or sharing of a network service in a NAT according to an embodiment of the present invention. As described above, when the terminal 2 and the terminal 2 requests the reception / sharing (switching / sharing of the terminal) in the state that the terminal 1 and the terminal 3 performs the network service, the NAT is directed to the terminal 1 (101) network service (eg : Change or add a destination address (for example, an IP address and a port number) of all packets of the service A to the terminal 2 (102).

이하, 상기 NAT에서 네트워크 서비스의 전환이나 공유를 실행하는 방법에 대하여 설명한다.Hereinafter, a description will be given of a method of switching or sharing a network service in the NAT.

제1 실시예로서, 도5a에 도시된 바와 같이, 단말2(102)로부터 네트워크 서비스의 전환/공유 신청을 받은 NAT는 동적 포워딩 방식을 이용하여, 단말3(103)으로부터 수신한 패킷의 목적지 주소를 단말2로 변경하거나 추가한다.As a first embodiment, as shown in FIG. 5A, a NAT that receives an application for switching / sharing a network service from terminal 2 102 uses a dynamic forwarding method, and thus a destination address of a packet received from terminal 3 103. Change or add to terminal 2.

예컨대 ‘원본 목적지 단말(단말1)의 IP 주소/소스포트’와 ‘변경될 단말(단말2)의 IP 주소/소스포트’를 포함한 목적지 변경 요청 메시지(네트워크 서비스 전환신청)를 수신한 NAT1(201)는 상기 원본 목적지 단말(단말1)의 포트로 생성된 NAT 세션을 강제로 삭제한 후, 변경될 단말2의 주소로 동적 포워딩 룰을 설정한다. 여기서 상기 NAT 세션을 강제로 삭제하는 이유는 포워딩 룰의 우선순위가 일반적인 방법으로 생성된 P2P 세션에 비하여 낮기 때문이다. 따라서 NAT 세션을 강제로 삭제해주는 절차가 필요하다. For example, NAT1 201 receiving a destination change request message (network service switch request) including 'IP address / source port of original destination terminal (terminal 1)' and 'IP address / source port of terminal (terminal 2) to be changed'. ) Forcibly deletes the NAT session created by the port of the original destination terminal (terminal 1), and sets a dynamic forwarding rule to the address of terminal 2 to be changed. The reason why the NAT session is forcibly deleted is because the priority of the forwarding rule is lower than that of the P2P session generated by the general method. Therefore, a procedure to forcibly delete the NAT session is required.

제2 실시예로서, 도5b에 도시된 바와 같이, 단말2(102)로부터 네트워크 서비스의 전환/공유 신청을 받은 NAT1(201)는 OS(Operating System) 방식을 이용하여, 단말3(103)으로부터 수신한 패킷의 목적지 주소를 단말2로 변경하거나 추가한다.As a second embodiment, as shown in FIG. 5B, the NAT1 201 that receives a request for switching / sharing a network service from the terminal 2 102 uses the OS (Operating System) method from the terminal 3 (103). Change or add the destination address of the received packet to terminal 2.

예컨대 목적지 변경 요청을 받은 NAT1(201)은 OS(Operating System) 레벨의 네트워크 스택에서 해당 네트워크 서비스의 단말3(103)으로부터 P2P 패킷을 수신 할 때마다, 상기 단말3(103)으로부터 수신한 패킷의 목적지 주소를 강제로 단말2로 변경하거나 추가한다. 이를 위하여 NAT에 ALG(Application Level Gateway)기능을 추가할 수 있다. For example, each time NAT1 201 received a destination change request receives a P2P packet from terminal 3 103 of a corresponding network service in an OS (Operating System) level network stack, the NAT1 201 receives a packet from the terminal 3 103. Forcibly change or add the destination address to terminal 2. To this end, ALG (Application Level Gateway) can be added to NAT.

상기와 같이 단말2로부터 네트워크 서비스의 전환이나 공유(또는 단말의 전환이나 공유)를 신청 받은 NAT는 (1)동적 포워딩 방식이나 (2)NAT의 OS 방식 중, 어느 한 가지 방식을 이용하여, 단말3(103)으로부터 수신된 패킷의 목적지 주소를 단말2로 변경하거나 추가하여 전달한다.As described above, the NAT, which has been applied for the switching or sharing of the network service (or the switching or sharing of the terminal) from the terminal 2, uses one of the following methods: (1) dynamic forwarding or (2) OS of the NAT. The destination address of the packet received from the third 103 is changed or added to the terminal 2, and then forwarded.

상기와 같이 NAT에 에이전트(Agent) 기능이 포함되어 있을 경우, NAT 자체적으로 구비한 P2P 연결 정보 테이블(T1)을 이용하거나 STUN 서버로부터 P2P 연결 정보를 요청하여 네트워크 서비스의 전환이나 공유를 수행할 수 있다. 그러나 에이전트 기능이 없을 경우(Legacy 방식)에는 특정 단말로부터 네트워크 서비스의 전환이나 공유 신청을 받을 경우, 목적지 주소를 상기 서비스 전환/공유를 신청한 단말로 기 설정된 특정 시간(예 : 1초) 이내에 자동으로 변경하거나 추가한다.If the NAT includes an agent function as described above, the network service can be switched or shared by using a P2P connection information table (T1) provided by the NAT itself or by requesting P2P connection information from a STUN server. have. However, when there is no agent function (Legacy method), when receiving network service switching or sharing request from a specific terminal, the destination address is automatically transferred within a predetermined time (eg 1 second) to the terminal applying for service switching / sharing. Change or add

이때 상기 네트워크 서비스의 전환/공유를 신청하는 단말은 전원을 온 시킬 경우에 자동으로 신청이 이루어지거나, 단순히 기 설정된 특정 버튼이 입력될 경우에 자동으로 신청이 이루어거나, 임의의 단말이 네트워크에 새로 접속하는 경우에 자동으로 신청이 이루어질 수 있다. 또는 다음과 같이 사용자 인터페이스(User Interface)를 이용하여 더 다양한 방식으로 서비스의 전환/공유를 신청할 수 있다.At this time, the terminal applying for the switching / sharing of the network service is automatically applied when the power is turned on, or when a predetermined specific button is input, the application is automatically made, or a random terminal is newly added to the network. The application can be made automatically when you are connected. Alternatively, the service interface may be applied for switching / sharing in a more various manner using a user interface as follows.

도6은 본 발명의 일 실시예에 따라 네트워크 서비스의 전환이나 공유를 신청하는 장치의 구성을 보인 예시도이다. 6 is an exemplary view showing the configuration of an apparatus for applying for switching or sharing of a network service according to an embodiment of the present invention.

이에 도시된 바와 같이 네트워크 서비스의 전환 및 공유를 신청하는 장치는 UI 부(111), 서비스 검색부(112), 서비스정보 저장부(113), 전환/공유 신청부(114), 단말 제어부(115)를 포함하여 구성된다. As shown therein, the apparatus for requesting the switching and sharing of the network service includes the UI unit 111, the service searching unit 112, the service information storage unit 113, the switching / sharing application unit 114, and the terminal controller 115. It is configured to include).

상기 네트워크 서비스의 전환 및 공유를 신청하는 장치는 하드웨어 또는 소프트웨어 모듈로 구성될 수 있고, NAT에 연결된 각 단말에 장착(또는 설치)되어 네트워크 서비스의 전환이나 공유를 신청한다. 여기서 상기 NAT에 연결된 각 단말은 TV, 유/무선 전화기, 스마트폰, 이동 단말기, Tablet-PC, 컴퓨터 또는 PDA 등 유/무선 방식으로 NAT에 연결되어 네트워킹이 가능한 모든 단말을 포함한다.The device for applying for the switching and sharing of the network service may be configured as a hardware or software module, and is installed (or installed) in each terminal connected to NAT to apply for the switching or sharing of the network service. Here, each terminal connected to the NAT includes all terminals capable of networking by connecting to the NAT in a wired / wireless manner such as a TV, a wired / wireless phone, a smartphone, a mobile terminal, a Tablet-PC, a computer, or a PDA.

상기 UI(User Interface) 부(111)은 NAT에 서비스 전환이나 공유 신청을 위한 사용자 인터페이스 화면을 출력한다. 상기 사용자 인터페이스 화면에는 현재 P2P 네트워크 서비스 중인 단말1의 정보, 서비스 전환이나 공유를 신청하는 단말2의 정보, 상기 서비스 전환이나 공유를 신청하는 단말2의 사용자 인증을 위한 인증정보(비밀번호) 및 신청할 서비스(전환/공유 서비스)의 선택 정보 중 적어도 한 가지 이상의 정보를 포함한다. The UI unit 111 outputs a user interface screen for service switching or sharing request to NAT. The user interface screen includes information of terminal 1 currently serving P2P network service, information of terminal 2 applying for service switching or sharing, authentication information (password) for user authentication of terminal 2 applying for service switching or sharing, and service to be applied. At least one or more pieces of information of the selection information of the (switching / sharing service) are included.

상기 서비스정보 저장부(113)은 현재 P2P 네트워크 서비스를 실행하고 있는 단말들의 내/외부 접속 IP, 포트 번호, 단말의 ID 중 적어도 하나 이상의 정보를 저장하고, 요청 시 그 단말들의 리스트(현재 NAT에 연결된 단말들의 리스트)를 사용자 인터페이스 화면에 표시하여 사용자가 원하는 단말을 선택할 수 있도록 한다. 이때 상기 서비스정보 저장부(113)에 저장되는 정보는 서비스 검색부(112)을 통해서 검색된 정보들이다. 상기 서비스 검색부(112)는 도2 내지 도3에서 설명한 세 가지 실시예 중 어느 한 가지 방식을 이용하여 검출할 수 있다.The service information storage unit 113 stores at least one or more information of internal / external access IPs, port numbers, and IDs of terminals currently executing P2P network services, and, upon request, lists the terminals (currently in NAT). A list of connected terminals) is displayed on a user interface screen so that a user can select a desired terminal. In this case, the information stored in the service information storage unit 113 is information retrieved through the service search unit 112. The service searching unit 112 may detect using any one of the three embodiments described with reference to FIGS.

상기 전환/공유 신청부(114)은 기 설정된 특정 정보(예 : 현재 P2P 네트워크 서비스 중인 단말1의 정보, 서비스 전환/공유를 신청하는 단말2의 정보, 신청할 서비스(전환/공유 서비스)의 선택 정보)를 포함한 서비스 신청 메시지를 NAT에 전송 한다. 이때 상기 서비스 신청신호는 UPnP 방식을 이용하여 전송할 수 있으며, 상기 서비스 신청 메시지에는 단말2의 사용자 인증을 위한 인증정보(비밀번호)를 더 포함할 수 있다.The switch / sharing application unit 114 may be configured with predetermined information (eg, information of UE1 currently serving P2P network service, information of UE2 applying for service switching / sharing, and selection information of a service (switching / sharing service) to apply for). Send service request message including) to NAT. In this case, the service request signal may be transmitted using the UPnP method, and the service request message may further include authentication information (password) for user authentication of the terminal 2. FIG.

상기 단말 제어부(115)는 상기 구성 요소들을 유기적으로 제어하여, 상기 서비스 검색부(112)을 통해서 검색된 단말에 관련된 정보(예 : 내/외부 IP 및 포트 번호, 단말의 아이디)를 서비스정보 저장부(113)에 저장하고, 상기 UI 부(111)을 통해 입력받은 정보에 따라, 상기 서비스정보 저장부(113)에 저장된 정보를 사용자 인터페이스 화면에 출력하거나, 상기 전환/공유 신청부(114)을 통해서 단말의 전환 또는 공유 서비스를 신청한다.The terminal controller 115 controls the components organically, and stores information related to the terminal searched through the service search unit 112 (eg, internal / external IP and port number, ID of the terminal). The information stored in the service information storage unit 113 on the user interface screen, or the switching / sharing application unit 114 according to the information received through the UI unit 111. Apply for switching or sharing service of the terminal through.

도7은 상기 도6에 있어서, 상기 네트워크 서비스의 전환이나 공유를 신청하는 장치의 사용자 인터페이스 화면을 보인 예시도이다. FIG. 7 is an exemplary view showing a user interface screen of a device for requesting switching or sharing of the network service in FIG. 6.

상기 네트워크 서비스의 전환이나 공유 신청을 위한 사용자 인터페이스 화면(120)은 현재 P2P 네트워크 서비스 중인 단말1의 아이디(예 : MAC 어드레스, 디폴트로 설정되거나 사용자가 설정한 기기명칭)(123), 서비스 전환이나 공유를 신청하는 단말2의 아이디(124) 및 상기 전환이나 공유를 신청하는 단말2의 사용자 인증을 위한 비밀번호(125) 중 적어도 어느 한 가지 정보를 포함할 수 있다.The user interface screen 120 for the switching or sharing application of the network service includes an ID (eg, MAC address, device name set by default or set by the user) 123 of the terminal 1 currently serving P2P network service, or service switching or the like. It may include at least one information of the ID 124 of the terminal 2 applying for sharing and the password 125 for user authentication of the terminal 2 applying for the switching or sharing.

여기서 상기 현재 P2P 네트워크 서비스 중인 단말(예 : 단말1)은 리스트에서 선택할 수 있다. Here, the terminal (eg, terminal 1) currently serving P2P network may be selected from the list.

상기 단말 리스트(현재 NAT에 연결되어 P2P 네트워크 서비스를 수행하고 있는 단말 리스트)는 특정 버튼(122)을 입력받아 풀다운 방식으로 출력할 수 있으며, 사용자는 상기 풀다운 된 단말 리스트에서 원하는 단말을 선택하여 그 단말에서 수행중인 서비스의 전환이나 공유를 신청할 수 있다. The terminal list (terminal list currently connected to NAT and performing P2P network service) may receive a specific button 122 and output the pull-down method, and the user selects a desired terminal from the pulled-down terminal list and selects the terminal. It can apply for the switching or sharing of services being performed in the terminal.

다른 실시예로서, 상기 단말 리스트 대신에 현재 수행중인 P2P 네트워크 서비스 리스트를 풀다운 방식으로 출력할 수 있다. 사용자는 그 서비스 리스트에서 어느 하나의 서비스를 선택하여 서비스 전환이나 공유를 신청할 수 있다.In another embodiment, the P2P network service list currently being executed may be output in a pull-down manner instead of the terminal list. The user can select a service from the service list and apply for service switching or sharing.

상기 단말 리스트는 사용자가 검색 버튼(121)을 입력하면 네트워크 서비스 중인 단말을 검색한다. 상기 네트워크 서비스 중인 단말은 상기 도2 내지 도3에서 설명한 세 가지 실시예 중 어느 한 가지 방식을 이용하여 검출할 수 있다.When the user inputs the search button 121, the terminal list searches for a terminal in network service. The terminal in the network service may be detected using any one of the three embodiments described with reference to FIGS. 2 to 3.

또한 상기 사용자 인터페이스 화면(120)은 단말2에서 신청할 서비스(전환/공유)를 선택할 수 있는 선택 버튼(126, 127)을 더 포함할 수 있다. 예컨대 단말2에서 단말1의 서비스 전환을 신청할 경우에는 제1 선택버튼(126)을 체크하고, 단말2에서 단말1과의 공유를 신청할 경우에는 제2 선택버튼(127)을 체크한다.In addition, the user interface screen 120 may further include selection buttons 126 and 127 for selecting a service (switching / sharing) to apply for in terminal 2. For example, when the terminal 2 applies for service switching of the terminal 1, the first selection button 126 is checked, and when the terminal 2 requests sharing with the terminal 1, the second selection button 127 is checked.

상기와 같이 단말의 전환이나 공유 신청을 위해 필요한 정보를 모두 입력한 후, 사용자가 서비스 신청 버튼(128)을 입력하면, 단말2는 상기 정보들을 포함하는 서비스 신청 메시지를 NAT1(201)로 전송함으로써 서비스 전환/공유 신청을 수행 한다.After inputting all the information necessary for switching or sharing of the terminal as described above, if the user enters the service request button 128, the terminal 2 transmits a service request message including the information to NAT1 (201) Perform service switch / share application.

이때 상기 단말2는 UPnP(Universal Plug and Play) 방식을 이용하여 서비스의 전환/공유 신청을 수행한다. 이때 NAT에는 UPnP 서버(미도시)가 구동되며, 상기 NAT는 상기 UPnP 서버를 이용하여 패킷의 목적지 주소를 변경하는데 필요한 정보를 송수신 할 수 있는 기능을 포함한다. 또는 UPnP 서버 대신에 다른 별도의 서버를 구동하여 목적지 주소 변경에 필요한 정보를 송수신 할 수도 있다.In this case, the terminal 2 performs a switch / sharing request of the service by using a Universal Plug and Play (UPnP) method. In this case, a UPnP server (not shown) is driven in the NAT, and the NAT includes a function of transmitting and receiving information necessary to change a destination address of a packet by using the UPnP server. Alternatively, instead of the UPnP server, another separate server may be driven to transmit and receive information necessary to change the destination address.

상기와 같이 단말2에서 원하는 서비스(예 : 전환/공유)를 선택하여 신청하면, NAT에서는 상기 단말2에서 신청한 서비스의 전환이나 공유를 실행하여, 단말3으로부터 수신한 패킷의 목적지 주소를 상기 단말2로 변경하거나 추가하여 전달한다. When the terminal 2 selects and applies a desired service (eg, switching / sharing) as described above, the NAT performs switching or sharing of the service requested by the terminal 2, and sends the destination address of the packet received from the terminal 3 to the terminal. Change or add to 2 to pass.

도8은 본 발명의 일 실시예에 따라 네트워크 서비스의 전환 및 공유 장치의 구성을 보인 예시도이다. 8 is an exemplary view illustrating a configuration of a device for switching and sharing a network service according to an embodiment of the present invention.

이에 도시된 바와 같이 상기 네트워크 서비스의 전환 및 공유 장치는 네트워크 서비스의 전환/공유 신청신호를 수신하는 서비스 신청신호 수신부(211), 상기 네트워크 서비스의 목적지 주소를 검출하는 목적지 주소 검출부(212) 및 상기 신청된 서비스에 따라 네트워크 서비스의 목적지 주소를 변경하거나 추가하는 목적지 주소 변경/추가부(213)를 포함하여 구성된다. As shown in the drawing, the network service switching and sharing apparatus includes a service request signal receiving unit 211 for receiving a switching / sharing request signal of a network service, a destination address detecting unit 212 for detecting a destination address of the network service, and the And a destination address changing / adding unit 213 for changing or adding a destination address of a network service according to the requested service.

상기 서비스 신청신호 수신부(211)는 특정 네트워크의 NAT에 연결되어 있는 단말2(102)로부터 네트워크 서비스 전환/공유 신청신호를 수신한다. The service request signal receiving unit 211 receives a network service switching / sharing request signal from the terminal 2 102 connected to the NAT of a specific network.

상기 서비스 신청신호는 UPnP 방식을 이용하여 수신할 수 있으며, 상기 서비스 신청신호에는 현재 P2P 네트워크 서비스 중인 단말1의 정보, 서비스 전환/공유를 신청하는 단말2의 정보, 신청할 서비스(전환/공유 서비스)의 선택 정보를 포함하고, 추가로 단말2의 사용자 인증을 위한 인증정보(비밀번호)를 더 포함할 수도 있다.The service request signal may be received by using the UPnP method, and the service request signal includes information of terminal 1 currently serving P2P network service, information of terminal 2 applying for service switching / sharing, and service to be applied (switching / sharing service). It may include selection information of, and may further include authentication information (password) for user authentication of the terminal 2.

상기 목적지 주소 검출부(212)는 P2P 연결정보가 저장된 특정 테이블(T1)을 참조하여, 상기 네트워크 서비스의 목적지 주소(예 : 현재 네트워크 서비스를 수행하는 단말1의 IP 주소와 포트번호)를 검출한다. The destination address detection unit 212 detects a destination address of the network service (eg, an IP address and a port number of the terminal 1 currently performing a network service) by referring to a specific table T1 in which P2P connection information is stored.

상기 목적지 주소 변경/추가부(213)는 상기 검출된 단말1의 목적지 주소로 향하는 네트워크 서비스의 모든 패킷의 목적지 주소를 상기 전환/공유 서비스를 신청한 단말2로 변경하거나 추가한다. 상기 변경하거나 추가된 목적지 주소는 상기 특정 테이블(T1)를 업데이트 한다. 상기 목적지 주소 변경/추가부(213)는 기 설정된 방식(예 : (1)동적 포워딩 방식, (2)OS 방식)중 어느 한 가지 방식으로 네트워크 서비스의 전환이나 공유를 실행한다.The destination address changing / adding unit 213 changes or adds the destination address of all packets of the network service destined for the detected destination address of the terminal 1 to the terminal 2 applying for the switching / sharing service. The changed or added destination address updates the specific table T1. The destination address changing / adding unit 213 performs the switching or sharing of network services in any one of a preset manner (eg, (1) dynamic forwarding method and (2) OS method).

본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나, 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 기술적 보호범위는 아래의 특허청구범위에 의해서 정하여져야 할 것이다.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. I will understand. Accordingly, the technical scope of the present invention should be defined by the following claims.

111 : UI 부 112 : 서비스 검색부
113 : 서비스정보 저장부 114 : 전환 및 공유 신청부
115 : 단말 제어부 211 : 서비스 신청신호 수신부
212 : 목적지 주소 검출부 213 : 목적지 주소 변경/추가부
111: UI unit 112: service search unit
113: service information storage unit 114: conversion and sharing application unit
115: terminal control unit 211: service request signal receiving unit
212: destination address detection unit 213: destination address change / addition unit

Claims (12)

제1 NAT(Network Address Translation)에 연결된 제1 단말, 제2 NAT에 연결되며 상기 제1 단말과 P2P 네트워크 서비스를 수행하는 제3 단말, 상기 제1 NAT에 연결되며 상기 네트워크 서비스의 전환이나 공유를 신청하는 제2 단말을 포함하는 네트워크에서, 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 장치에 있어서,
상기 제2 단말로부터 상기 네트워크 서비스의 전환이나 공유에 대한 신청신호를 수신하는 서비스 신청신호 수신부;
상기 네트워크 서비스가 수행되고 있는 목적지 주소를 검출하는 목적지 주소 검출부;
동적 포워딩 방식이나 OS(Operating System) 방식을 이용하여, 상기 검출된 네트워크 서비스의 목적지 주소를 상기 네트워크 서비스를 신청한 제2 단말로 변경하여 네트워크 서비스를 전환하거나, 상기 네트워크 서비스를 신청한 제2 단말을 목적지 주소로 더 추가하여 상기 네트워크 서비스를 공유하는 목적지 주소 변경/추가부; 를 포함하는 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 장치.
A first terminal connected to a first NAT (Network Address Translation), a third terminal connected to a second NAT and performing a P2P network service with the first terminal, and a switch or sharing of the network service connected to the first NAT. An apparatus for supporting switching or sharing of a network service in a network including a requesting second terminal,
A service request signal receiver configured to receive a request signal for switching or sharing the network service from the second terminal;
A destination address detector for detecting a destination address where the network service is being performed;
By using a dynamic forwarding method or an operating system (OS) method, a destination address of the detected network service is changed to a second terminal that has applied for the network service to switch network services, or a second terminal which has applied for the network service. A destination address changing / adding unit further adding a network address as a destination address; Device that supports switching or sharing a network service comprising a.
청구항 1에 있어서,
상기 목적지 주소 검출부는,
P2P 연결정보가 저장된 특정 테이블을 참조하여 목적지 주소를 검출하도록 구성되며,
상기 P2P 연결정보는 네트워크 서비스를 수행하고 있는 단말의 공인 혹은 사설 IP 주소, 포트번호, 서비스 정보 또는 단말 ID 정보 중 적어도 하나 이상의 정보를 포함하는 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 장치.
The method according to claim 1,
The destination address detection unit,
It is configured to detect a destination address by referring to a specific table in which P2P connection information is stored.
The P2P connection information supports switching or sharing a network service, including at least one of public or private IP addresses, port numbers, service information, or terminal ID information of a terminal performing a network service. Device.
청구항 2에 있어서,
상기 특정 테이블은,
NAT에 연결된 단말들로부터 전송되는 모든 패킷의 페이로드를 파싱하여, 네트워크 서비스의 시작을 알리는 특정 데이터를 감지하고, 그 해당 패킷으로부터 P2P 연결정보를 검출하거나,
STUN(Simple Traversal of User Datagram Protocol Through Network Address Translators) 서버로부터 P2P 연결정보를 수신하거나, 또는
단말 상호간에 특정 네트워크 서비스의 P2P 연결 여부와 P2P 연결정보를 질의하고, 그 질의에 대한 응답으로서 P2P 연결정보를 수신하여 저장하도록 구성된 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 장치.
The method according to claim 2,
The specific table,
Parses the payload of all packets transmitted from the terminals connected to the NAT, detects specific data indicating the start of the network service, and detects P2P connection information from the corresponding packet,
Receive P2P connection information from a Simple Traversal of User Datagram Protocol Through Network Address Translators (STUN) server, or
An apparatus for supporting switching or sharing of a network service, characterized in that the terminal is configured to query whether P2P connection of a specific network service and P2P connection information, and to receive and store P2P connection information as a response to the query.
청구항 1에 있어서,
상기 동적 포워딩 방식은,
상기 제1 단말의 포트로 생성된 NAT 세션을 강제로 삭제한 후, 상기 제2 단말로 동적 포워딩 룰을 설정하여 목적지 주소를 변경하도록 구성된 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 장치.
The method according to claim 1,
The dynamic forwarding method,
And forcibly deleting the NAT session created by the port of the first terminal, and setting a dynamic forwarding rule to the second terminal to change the destination address. .
청구항 1에 있어서,
상기 OS(Operating System) 방식은,
OS 레벨의 네트워크 스택에서 해당 네트워크 서비스에 대한 제1 단말로의 패킷을 수신 할 때마다, 상기 패킷의 목적지 주소를 강제로 제2 단말로 변경하거나 추가하도록 구성된 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 장치.
The method according to claim 1,
The OS (Operating System) method,
Whenever an OS level network stack receives a packet to a first terminal for a corresponding network service, the network service is configured to switch or share a network service, forcibly changing or adding a destination address of the packet to a second terminal. Devices that support doing so.
제1 NAT(Network Address Translation)에 연결된 제1 단말, 제2 NAT에 연결되며 상기 제1 단말과 P2P 네트워크 서비스를 수행하는 제3 단말, 상기 제1 NAT에 연결되며 상기 네트워크 서비스의 전환이나 공유를 신청하는 제2 단말을 포함하는 네트워크에서, 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 방법에 있어서,
상기 제2 단말로부터 상기 네트워크 서비스의 전환이나 공유에 대한 신청신호를 수신하는 제1 단계;
상기 네트워크 서비스가 수행되고 있는 목적지 주소를 검출하는 제 2단계;
동적 포워딩 방식이나 OS(Operating System) 방식을 이용하여, 상기 검출된 네트워크 서비스의 목적지 주소를 상기 네트워크 서비스를 신청한 제2 단말로 변경하여 네트워크 서비스를 전환하거나, 상기 네트워크 서비스를 신청한 제2 단말을 목적지 주소로 더 추가하여 상기 네트워크 서비스를 공유하는 제3 단계; 를 포함하여 구성된 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 방법.
A first terminal connected to a first NAT (Network Address Translation), a third terminal connected to a second NAT and performing a P2P network service with the first terminal, and a switch or sharing of the network service connected to the first NAT. In a network including a second terminal for applying, in a method for supporting switching or sharing of network services,
A first step of receiving an application signal for switching or sharing of the network service from the second terminal;
Detecting a destination address where the network service is being performed;
By using a dynamic forwarding method or an operating system (OS) method, a destination address of the detected network service is changed to a second terminal that has applied for the network service to switch network services, or a second terminal which has applied for the network service. A third step of sharing the network service by further adding as a destination address; Method for supporting switching or sharing the network service, characterized in that configured to include.
청구항 6에 있어서,
상기 제2 단계는,
P2P 연결정보가 저장된 특정 테이블을 참조하여 목적지 주소를 검출하도록 구성되며,
상기 P2P 연결정보는 네트워크 서비스를 수행하고 있는 단말의 공인 혹은 사설 IP 주소, 포트번호, 서비스 정보 또는 단말 ID 정보 중 적어도 하나 이상의 정보를 포함하는 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 방법.
The method of claim 6,
The second step comprises:
It is configured to detect a destination address by referring to a specific table in which P2P connection information is stored.
The P2P connection information supports switching or sharing a network service, including at least one of public or private IP addresses, port numbers, service information, or terminal ID information of a terminal performing a network service. Way.
청구항 7에 있어서,
상기 특정 테이블은,
NAT에 연결된 단말들로부터 전송되는 모든 패킷의 페이로드를 파싱하여, 네트워크 서비스의 시작을 알리는 특정 데이터를 감지하고, 그 해당 패킷으로부터 P2P 연결정보를 검출하거나,
STUN(Simple Traversal of User Datagram Protocol Through Network Address Translators) 서버로부터 P2P 연결정보를 수신하거나, 또는
단말 상호간에 특정 네트워크 서비스의 P2P 연결 여부와 P2P 연결정보를 질의하고, 그 질의에 대한 응답으로서 P2P 연결정보를 수신하여 저장하도록 구성된 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 방법.
The method of claim 7,
The specific table,
Parses the payload of all packets transmitted from the terminals connected to the NAT, detects specific data indicating the start of the network service, and detects P2P connection information from the corresponding packet,
Receive P2P connection information from a Simple Traversal of User Datagram Protocol Through Network Address Translators (STUN) server, or
A method for supporting switching or sharing of a network service, characterized in that the terminal is configured to query whether P2P connection of a specific network service and P2P connection information, and to receive and store P2P connection information as a response to the query.
청구항 6에 있어서,
상기 동적 포워딩 방식은,
상기 제1 단말의 포트로 생성된 NAT 세션을 강제로 삭제한 후, 상기 제2 단말로 동적 포워딩 룰을 설정하여 목적지 주소를 변경하도록 구성된 것을 특징으로 하는 네트워크 서비스를 전환 및 공유하는 방법.
The method of claim 6,
The dynamic forwarding method,
And forcibly deleting the NAT session created by the port of the first terminal, and setting a dynamic forwarding rule to the second terminal to change the destination address.
청구항 6에 있어서,
상기 OS(Operating System) 방식은,
OS 레벨의 네트워크 스택에서 해당 네트워크 서비스에 대한 제1 단말로의 패킷을 수신 할 때마다, 상기 패킷의 목적지 주소를 강제로 제2 단말로 변경하거나 추가하도록 구성된 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 방법.
The method of claim 6,
The OS (Operating System) method,
Whenever an OS level network stack receives a packet to a first terminal for a corresponding network service, the network service is configured to switch or share a network service, forcibly changing or adding a destination address of the packet to a second terminal. How to support.
청구항 6에 있어서,
상기 네트워크 서비스의 전환이나 공유에 대한 신청신호는,
UPnP(Universal Plug and Play) 방식을 이용하여 수신하는 것을 특징으로 하는 네트워크 서비스를 전환하거나 공유하는 것을 지원하는 방법.
The method of claim 6,
The application signal for switching or sharing of the network service,
A method of supporting switching or sharing of a network service, characterized by receiving by using a Universal Plug and Play (UPnP) method.
제1 NAT(Network Address Translation)에 연결된 제1 단말, 제2 NAT에 연결되며 상기 제1 단말과 P2P 네트워크 서비스를 수행하는 제3 단말, 상기 제1 NAT에 연결되며 상기 네트워크 서비스의 전환이나 공유를 신청하는 제2 단말을 포함하는 네트워크에서, 동적 포워딩 방식이나 OS(Operating System) 방식을 이용하여, 네트워크 서비스의 목적지 주소를 상기 네트워크 서비스를 신청한 제2 단말로 변경하여 네트워크 서비스를 전환하거나, 상기 네트워크 서비스를 신청한 제2 단말을 목적지 주소로 더 추가하여 상기 네트워크 서비스를 공유하는 상기 네트워크의 상기 제2 단말에서 네트워크 서비스의 전환이나 공유를 신청하는 장치에 있어서,
상기 제1 NAT, 제2 NAT 또는 이들의 조합에 서비스 전환이나 공유를 신청하기 위한 사용자 인터페이스(UI)부;
네트워크 서비스를 실행하고 있는 단말들의 내부 및 외부 접속 IP 주소, 포트번호, 서비스 정보 또는 단말 ID 중 적어도 하나 이상의 정보를 저장하고 있는 서비스정보 저장부;
상기 서비스정보 저장부에 저장되는 정보를 검색하는 서비스 검색부;
기 설정된 제1 단말의 정보, 서비스 전환이나 공유를 신청하는 제2 단말의 정보, 신청할 전환 혹은 공유에 대한 서비스의 선택정보를 포함하는 서비스신청 메시지를 상기 제1 NAT, 제2 NAT 또는 이들의 조합에 전송하는 전환/공유 신청부; 및
상기 사용자 인터페이스부, 서비스 검색부, 서비스정보 저장부 및 전환/공유 신청부;를 제어하는 단말 제어부;를 포함하는 것을 특징으로 하는 네트워크 서비스의 전환이나 공유를 신청하는 장치.
A first terminal connected to a first NAT (Network Address Translation), a third terminal connected to a second NAT and performing a P2P network service with the first terminal, and a switch or sharing of the network service connected to the first NAT. In a network including a subscribing second terminal, a network service is switched by changing a destination address of a network service to a second terminal applying for the network service using a dynamic forwarding method or an operating system (OS) method, or An apparatus for applying for switching or sharing of a network service in the second terminal of the network sharing the network service by further adding a second terminal applying for network service as a destination address,
A user interface (UI) unit for requesting service switching or sharing to the first NAT, the second NAT, or a combination thereof;
A service information storage unit which stores at least one or more information of internal and external access IP addresses, port numbers, service information, and terminal IDs of the terminals executing the network service;
A service search unit for searching for information stored in the service information storage unit;
The first NAT, the second NAT or a combination thereof includes a service request message including information on a preset first terminal, information on a second terminal applying for service switching or sharing, and information on selection of a service for switching or sharing to be applied. A conversion / sharing application to send to; And
And a terminal controller for controlling the user interface unit, the service search unit, the service information storage unit, and the switching / sharing application unit.
KR1020120053391A 2012-05-21 2012-05-21 An apparatus for switching and sharing network services and the method thereof KR101367180B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120053391A KR101367180B1 (en) 2012-05-21 2012-05-21 An apparatus for switching and sharing network services and the method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120053391A KR101367180B1 (en) 2012-05-21 2012-05-21 An apparatus for switching and sharing network services and the method thereof

Publications (2)

Publication Number Publication Date
KR20130129495A KR20130129495A (en) 2013-11-29
KR101367180B1 true KR101367180B1 (en) 2014-02-26

Family

ID=49856067

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120053391A KR101367180B1 (en) 2012-05-21 2012-05-21 An apparatus for switching and sharing network services and the method thereof

Country Status (1)

Country Link
KR (1) KR101367180B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004248228A (en) * 2003-02-17 2004-09-02 Nippon Telegr & Teleph Corp <Ntt> Service switchover apparatus, service provision node, communication system, program, and recording medium stored with the program
JP2010535004A (en) * 2007-07-27 2010-11-11 株式会社ソニー・コンピュータエンタテインメント Collaborative NAT behavior discovery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004248228A (en) * 2003-02-17 2004-09-02 Nippon Telegr & Teleph Corp <Ntt> Service switchover apparatus, service provision node, communication system, program, and recording medium stored with the program
JP2010535004A (en) * 2007-07-27 2010-11-11 株式会社ソニー・コンピュータエンタテインメント Collaborative NAT behavior discovery

Also Published As

Publication number Publication date
KR20130129495A (en) 2013-11-29

Similar Documents

Publication Publication Date Title
US9948686B2 (en) Method and apparatus for sharing DLNA device
KR100791298B1 (en) Apparatus and method for controlling device of home network
JP4909277B2 (en) Network communication device, network communication method, address management device
US20030063608A1 (en) Multicast discovery protocol uses tunneling of unicast message
US11924164B2 (en) Cloud access to local network addresses
KR20120071121A (en) Virtual tunnel router, ip camera management server and ip camera service method based on position information
US20130064250A1 (en) Remotely accessing and controlling user equipment in a private network
KR100429902B1 (en) Apparatus and method for controlling devices in private network from public network
KR20090078719A (en) Upnp apparatus for providing remote access service and method thereof
US10405244B2 (en) Communication method, system, and device
CN104519077A (en) Multimedia sharing method, registration method, server and proxy server
JP4642652B2 (en) Radio control terminal, radio communication system, and radio communication method
JP2010004344A (en) Method, device, system, and program for conducting remote accessing
JP2009147428A (en) Method of switching connection to wide area/narrow area network, mobile terminal, and program
CN103516820A (en) Port forwarding method and apparatus based on MAC address
KR100585669B1 (en) Network device controlling method using internet
KR101367180B1 (en) An apparatus for switching and sharing network services and the method thereof
JP2011248673A (en) Service disclosure device, method and program
US20070064696A1 (en) Method for automatically setting network
JP2007329791A (en) Gateway device
JP2007104438A (en) Outdoor access system, server, and communication method
US20230319917A1 (en) Dual-network casting system
KR20170084626A (en) Screen apparatus for providing multi-screen using NAT, NAT and method for network address translation
KR20040110941A (en) Remote controlling method for device in home network
KR101523997B1 (en) A Method and Appartus for providing a presence service

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20170217

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180309

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190612

Year of fee payment: 6