KR20020035226A - internet connecting method and apparatus using masquerading technique - Google Patents

internet connecting method and apparatus using masquerading technique Download PDF

Info

Publication number
KR20020035226A
KR20020035226A KR1020000065419A KR20000065419A KR20020035226A KR 20020035226 A KR20020035226 A KR 20020035226A KR 1020000065419 A KR1020000065419 A KR 1020000065419A KR 20000065419 A KR20000065419 A KR 20000065419A KR 20020035226 A KR20020035226 A KR 20020035226A
Authority
KR
South Korea
Prior art keywords
path
address
route
ports
isp
Prior art date
Application number
KR1020000065419A
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 KR1020000065419A priority Critical patent/KR20020035226A/en
Publication of KR20020035226A publication Critical patent/KR20020035226A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

PURPOSE: An internet accessing method using a masquerading and an apparatus are provided to receive an internet service by using a private IP address given in an official IP address of a damaged line when one line is damaged. CONSTITUTION: Each of a plurality of terminal ports(10) is connected to a subscriber terminal and has a private IP address. A plurality of path ports(40) are connected to the plurality of terminal ports(10) and are paths which communicate with an ISP. Each of the plurality of path ports(40) has an official IP address. A path discriminator analyzes a subscriber signal from the plurality of terminal ports(10) and discriminates a path. A path checking section checks whether damaged ports are included in the plurality of path ports(40). A path determining section determines a path change with respect to a transmitting data path of the subscriber side according to a path discriminating result of the path discriminator. A path connector transmits an official IP address information of a determined path port to an official address when transmitting data to an ISP.

Description

마스크레이딩을 사용하는 인터넷 접속 방법 및 그 장치{internet connecting method and apparatus using masquerading technique }Internet connection method and apparatus using mask rading {internet connecting method and apparatus using masquerading technique}

본 발명은 네트워크 통신장비에 관한 것으로, 좀더 자세하게는 정적 라운팅된 리눅스 기반의 라우터에 관한 것이다.The present invention relates to network communication equipment, and more particularly to a statically rounded Linux based router.

최근 정보화 시대를 맞이하여 정보의 처리 및 정보의 공유 방법에 많은 사람들이 주목해 왔고, 이에 따라 통신 분야가 비약적인 개발을 거듭해 왔다.In the recent information age, many people have paid attention to information processing and information sharing methods, and accordingly, the field of communication has been remarkably developed.

통신(Communication 또는 Correspondence)이란 지역적으로 멀리 떨어져 있는 두 개의 장치 사이에서 중간 매체를 통하여 상대방에게 정보를 전달하는 활동을 말하는 것으로, 군의 암부호와 같은 부호 정보, 팩스와 같은 문자 정보, 전화와 같은 음성 정보, 그리고 방송과 같은 영상 정보 등을 유성, 무선, 광성 혹은 여타의 전자적 방식에 의해 송신, 수신하는 활동과, 이러한 활동을 수행하는데 필요한 기기, 장치 등을 의미한다.Communication or Correspondence is the act of transferring information to an opponent through an intermediate medium between two geographically remote devices. Code information such as military code, text information such as fax, and telephone Refers to an activity of transmitting and receiving voice information and video information such as broadcasting by voice, wireless, optical or other electronic methods, and devices and devices required to perform such activities.

예를 들어 지역적으로 떨어져 있는 컴퓨터 시스템 사이에서 전화망, 전용 회선, 인공 위성, 방송, 안테나 등과 같은 통신 매체를 통하여 정보를 교환하는 작업 등은 모두 통신의 예가 될 수 있는데, 이와 같이 두 개 이상의 장치들이 데이터 통신이라는 공통의 목적을 바탕으로 연결되어 있는 통신 구조 즉, 서로 연결된 요소들 간의 데이터 등을 전송하는 통신망을 네트워크 (Network)라 하며, 특히 컴퓨터를 이용한 컴퓨터 네트워크는, 근래에 들어 확산되는 개인용 컴퓨터의 보급 등의 시대상에 맞물려 일반인에게도 빠른 속도로 대중화되고 있다.For example, exchanging information between communication systems such as telephone networks, leased lines, satellites, broadcasts, and antennas between geographically separated computer systems can all be examples of communications. A communication structure that is connected based on a common purpose of data communication, that is, a communication network that transmits data between elements connected to each other, is called a network. In particular, a computer network using a computer is a personal computer that has recently been spread. It is becoming popular with the general public at a rapid pace due to the times of dissemination.

이러한 네크워크 시스템을 구성하기 위해서는 컴퓨터 시스템 뿐 만이 아니라, 전송장치, 교환장치 등과 더불어 전술한 여러 가지 전자적 방식의 통신선로가 필요하고, 이들은 서로 연결되어 상술한 네트워크를 구성함으로써 데이터 통신을 가능하게 한다.In order to configure such a network system, not only a computer system but also a transmission device and a switching device, etc., various electronic communication lines described above are required, and they are connected to each other to form a network as described above to enable data communication.

이러한 네트워크의 구조가 증가되고 네트워크를 이용한 정보 전송수요가 다양화되며, 소프트웨어와 하드웨어 장비가 계속 증가하는 최근의 환경에서 효율적인 정보의 전달을 위하여 일종의 규약이 필요하게 되고 이에 따라 통신을 원하는 두 개체간에 무엇을, 어떻게, 언제 통신을 할 것인가 등에 대한 서로의 약속들이 요구되게 되었고 이에 따라 컴퓨터끼리 또는 컴퓨터와 단말기 사이에 상호통신 할때 데이터를 에러 없이 원활하고 신뢰성 있게 주고받기 위해 필요한 약속을 규정하는 것이 프로토콜(protocol)이다.As the structure of the network increases, the demand for information transmission using the network is diversified, and in a recent environment in which software and hardware equipment continue to increase, a type of protocol is required for efficient information transfer. The promises of each other, such as what, how, and when to communicate, are required, and accordingly, it is necessary to define the promises required to exchange data smoothly and reliably without errors when communicating between computers or between computers and terminals. Protocol.

프로토콜은 통신기능의 확장이나 새로운 통신기술의 도입을 용이하게 하기 위해 프로토콜 기능의 레벨에 대응해 몇 개의 층으로 나누어지며 층마다에 독립된 프로토콜이 설정되는데 이것을 보통 통신규약의 계층화라고 한다.Protocols are divided into several layers corresponding to the level of protocol functions to facilitate the expansion of communication functions and the introduction of new communication technologies. Independent protocols are set up for each layer.

프로토콜의 계층구성은 프로세스간의 통신에 있어서의 회화제어를 분담하는 층, 암호화, 데이터 압축 등 정보형식의 규정을 분담하는 층, 업무내용에 관한 통신상의 규정을 분담하는 층으로 구성된 상위계층과 통신회선(망)상의 투명하고 명료(transparent)한 데이터전송에 관한 층으로 인터페이스를 분담하는 층, 인접노드간의 데이터전송을 분담하는 층, 통신회선(망)에 있어서의 방향 및 전송로제어를 분담하는 층 등으로 나뉘는 하위계층으로 구분되며 상기 하위 계층은 상위 계층을서비스 하는 구조를 가지고 있다.The hierarchical structure of the protocol consists of a layer that shares the conversation control in the communication between processes, a layer that shares the regulations of information formats such as encryption and data compression, and a layer that shares the communication regulations on the business content. A layer for transparent and transparent data transmission on a network, which shares an interface, a layer that shares data transmission between adjacent nodes, and a layer that shares direction and transmission path control in a communication line (network). The lower layer is divided into the lower layer, and the lower layer has a structure for serving the upper layer.

이때 이와 같은 동일한 프로토콜을 가지는 분리된 네트워크를 연결하는 장치로서 라우터가 필요하게 되는데, 이러한 라우터는 사용자가 인터넷이나 데이터 통신을 하고자 할 때, 이러한 서비스에 접속이 가능하도록 최적의 경로를 설정해 줌으로써 데이터 통신이 가능하게 하는 망 접속 장비로, 한 통신망에서 다른 통신망으로 통신 할 수 있도록 도와주는 역할을 하는 하드웨어와, 네트워크 상의 특정 목적지 까지의 경로를 기억하는 라우팅 테이블을 포함하는 소프트웨어로 구성된다.In this case, a router is needed as a device for connecting a separate network having the same protocol. When the user wants to communicate with the Internet or data, the router establishes an optimal path for accessing these services. This network connection equipment is made up of hardware that helps to communicate from one network to another, and software including a routing table for storing a route to a specific destination on the network.

이러한 라우터는 복수개의 회선을 가질 수 있고, 각 회선은 하나 이상의 다른 회선과 연결된 경로를 가지며 일정시간 마다 각각의 경로를 점검하여, 그 중 하나의 경로에 문제가 생기면 다른 경로를 통하여 데이터를 송출하고 이후 상기 손상된 경로가 복구되면 다시 이러한 경로를 사용하는 역할도 할 수 있다.Such a router may have a plurality of circuits, each of which has a path connected with one or more other circuits, and checks each path at a predetermined time, and if one of the paths has a problem, sends out data through the other path. Then, when the damaged path is restored, it may also play a role of using this path again.

이러한 라우터의 구체적인 작용을, 인터넷 서비스 공급업체(Internet Service Provider : ISP)로 부터 가입자(Customer Premises : CP)에 이르는 다수개의 경로를 가지고 있는 라우터(R)를 포함하는 네트워크 환경을 도시한 도 1을 통하여 상세히 설명한다.1 illustrates a network environment including a router (R) having a plurality of paths from an Internet service provider (ISP) to a subscriber (CP). It will be described in detail through.

라우터(R)는 복수개의 회선(a, b)이 연결가능하고, 각각의 회선에는 공인 IP주소(A0, B0)가 부여되고, 상기 각각의 회선(a, b)에 연결된 다수의 가입자는 상기 회선의 공인 IP주소(A0, B0)에 부여된 사설 IP주소(A, B)를 나누어 가짐으로써 ISP로부터 인터넷 서비스를 받을 수 있다.Router (R) is capable of connecting a plurality of lines (a, b), each line is given a public IP address (A0, B0), a plurality of subscribers connected to each of the lines (a, b) By dividing the private IP addresses (A, B) assigned to the public IP addresses (A0, B0) of the line, Internet service can be obtained from the ISP.

즉, 가입자들의 요청에 따라, 설치된 라우터(R)에 하나의 회선(a)이 개설되고, 상기 회선(a)이 가지는 공인 IP주소(A0)에 부여된 일정범위의 사설 IP주소(A)를 나누어 가진 가입자의 집단은, 상기 회선(a)의 경로를 통하여 ISP로부터 인터넷 서비스를 공급받는다.That is, at the request of subscribers, one line (a) is established in the installed router (R), and the private IP address (A) of a range given to the public IP address (A0) of the line (a) The group of subscribers who are divided receives Internet service from the ISP through the path of the circuit a.

이후 가입자가 증가하여 기존의 회선(a)에 부여받은 일정범위의 사설 IP주소(A)의 수보다 많아지면, 다른 새로운 회선(b)과 다른 공인 IP주소(B0)가 증설되고, 상기 새로운 가입자의 집단은 새로 증설된 회선(b)에 부여된 일정범위의 사설 IP주소(B)를 주소로 나누어 가짐으로써 마찬가지로 ISP로부터 인터넷 서비스를 공급받을 수 있다.After that, if the number of subscribers increases and becomes larger than the number of private IP addresses A in a range, the new public line B0 and another public IP address B0 are expanded. The group of can also be provided with Internet service from the ISP by dividing the range of private IP addresses (B) given to the newly expanded line (b) by addresses.

이때 각각의 회선(a, b)을 통하여 ISP로 송출된 데이터 정보를 가지고 있는 패킷은, 송출된 회선(a, b)을 통하여 ISP로 들어가는 경로와, 각 회선에 부여된 공인 IP주소(A0, B0)를 가지고 ISP측의 라우터에 접속되고, 상기 ISP의 라우터는 이러한 데이터 패킷을 감지하여 각각의 경로와 공인 IP주소를 확인한다.At this time, the packet having the data information sent to the ISP through each line (a, b), the path to the ISP through the sent line (a, b), and the public IP address (A0, B0) is connected to the router of the ISP side, and the router of the ISP detects this data packet and confirms each path and public IP address.

이후, ISP가 가입자들에게 리턴(return)서비스를 제공할 경우, 이러한 ISP측의 라우터는 가입자들로부터 접속된 데이터 패킷을 분석하여, 라우터 테이블이 가지고 있는 정보에 따라 리턴 서비스를 제공한다.Then, when the ISP provides the return service to the subscribers, the router of the ISP side analyzes the data packet connected from the subscribers, and provides the return service according to the information contained in the router table.

이때, 특히 초고속 인터넷 서비스 중의 하나로서 이더넷 등을 이용하는 B&A(Building and Apartment)의 경우에는 일반적으로 가입자측에 설치된 라우터에는 동적 라우팅 프로토콜을 운용하지 않고, 정적(static) 라우팅을 하기 때문에, ISP측의 라우터는 각 경로를 통하여 접속된 가입자들의 데이터 패킷에 따른 리턴 서비스는 데이터 패킷이 온 경로로 다시 송출된다.In this case, in particular, in the case of B & A (Building and Apartment) using Ethernet as one of the high-speed Internet services, the router installed at the subscriber side does not operate the dynamic routing protocol but performs static routing. Routers return services according to data packets of subscribers connected through each path, and the data packets are sent out on the path again.

즉, 상기 라우터가 가지는 A0의 공인 IP를 가지고 ISP측으로 접속된 가입자들의 데이터 패킷은 a의 경로를 통하여 ISP로 접속되므로, 이러한 데이터 패킷이 요청한 리턴 서비스를 ISP가 가입자에게 제공할 때에는 다시 a의 경로를 통하여 가입자들에게 제공되고, B0의 공인 IP를 가지고 b의 경로를 통하여 ISP측으로 접속된 데이터 패킷의 리턴 서비스는 다시 b의 경로를 통하여 가입자에게 제공된다.That is, since the data packets of subscribers connected to the ISP side with the public IP of A0 owned by the router are connected to the ISP through the path of a, when the ISP provides the subscriber with the return service requested by these data packets, the path of a is returned. The return service of the data packet which is provided to subscribers via B, and connected to the ISP side through the path of b with the public IP of B0, is again provided to the subscriber through the path of b.

그러나, 이러한 방식의 정적 라우팅 방법을 사용하는 네트워크 환경에서 가입자 측 라우터와 ISP를 연결하는 복수개의 회선 중 하나의 회선이 장애가 발생할 경우, 상기 장애가 발생한 회선에 연결된 다수의 가입자 집단은 다른 우회 경로가 있음에도 불구하고 이러한 장애 상황에 효과적으로 대처할 수 없는 경우가 발생한다However, in a network environment using this type of static routing method, if one of the plurality of circuits connecting the subscriber side router and the ISP fails, a plurality of subscriber groups connected to the failed circuit have different bypass paths. Nevertheless, cases of failure cannot be effectively dealt with.

즉, 도 2에 도시된 바와 같이, 상술한 구조를 가지는 네트워크 환경에서 하나의 회선(a)에 장애가 발생하여 회선을 사용할 수 없게 되면, 가입자 측의 라우터(R)를 수동으로 조절하는 등의 조치를 취하여, 상기 장애 회선(a)의 공인 IP주소(A0)에 부여된 사설 IP(A)를 가지고 있는 가입자의 집단을 다른 공인 IP(B)의 회선 (b)을 통하여 ISP 까지 접속할 수 있다.That is, as shown in Fig. 2, in the network environment having the above-described structure, if one line (a) fails and the line cannot be used, measures such as manually adjusting the router (R) on the subscriber side Then, the group of subscribers having the private IP (A) assigned to the public IP address (A0) of the faulty line (a) can be connected to the ISP through the line (b) of the other public IP (B).

그러나 전술한 바와 같이 공인 IP주소(A0)와 일치하는 회선(a)이 가지는 경로가 아닌, 다른 회선(b)의 경로를 통하여 송출한 데이터 패킷에는 상기 장애 회선(a)에 장애가 발생하지 않았을 때, 장애 회선(a)가 가지는 경로를 통하여 ISP까지 송출되는 경로와, 장애 회선(a)의 IP 주소(A0)를 가지고 있기 때문에, 이러한 데이터 패킷을 전달 받은 ISP측의 라우터는 이러한 공인 IP주소(A0)를 가지고 있는 가입자들에게 리턴 서비스를 제공할 수 있는 경로는 장애 회선(a)을 이용하는 것만을 알고 있기 때문에, 장애 회선(a)의 경로를 통하여 리턴 서비스를 제공하게 되고 따라서 상기 장애 회선(a)의 공인 IP(A0)에 할당된 사설 IP주소(A)를 사용하고 있는 가입자들은 원하는 서비스를 제공 받을 수 없게 된다.However, as described above, when the failure of the failure line (a) does not occur in the data packet transmitted through the path of the other line (b) other than the path of the line (a) that matches the public IP address (A0) The router on the ISP side receiving these data packets has a public IP address (B) because it has a route sent to the ISP through the path of the fault line (a) and the IP address (A0) of the fault line (a). Since the path capable of providing the return service to the subscribers having A0) only knows the use of the failure line (a), the return service is provided through the path of the failure line (a) and thus the failure line ( Subscribers using the private IP address (A) assigned to the public IP (A0) of a) will not be able to receive the desired service.

즉, ISP에 설치된 라우터는 A에 도달하기 위한 경로가 a 밖에 없는 것으로 알고 있기 때문에 A에서 ISP로 가는 패킷이 회선 b를 통하여 우회하도록 가입자 측의 라우터 R이 패킷을 전달하더라도, ISP에서 A로 들어가는 경로가 b가 될 수 있다는 사실을 ISP측 라우터가 알 수 없어 A에 속한 사용자는 통신 두절 상태가 된다.That is, because the router installed in the ISP knows that there is only a path to reach A, even if the router R of the subscriber forwards the packet so that the packet from A to the ISP bypasses the line b, The ISP side router does not know that the path could be b, so the user belonging to A is disconnected.

이러한 상황은 정적 라우팅 방식을 사용하는 가입자들에게 원하는 인터넷 서비스를 받을 수 없고 따라서 안정적인 네트워크 환경을 제공할 수 없는 문제점을 가지고 있다.This situation has a problem in that subscribers using static routing cannot receive desired Internet services and thus cannot provide a stable network environment.

본 발명은 상기와 같은 문제점을 해결하기 위하여 안출한 것으로, 각각 다른 경로의 복수개의 회선을 가지고 있는 가입자측 라우터에 있어서, 하나의 회선이 손상 되더라도, 상기 손상된 회선의 공인 IP주소에 부여된 사설 IP주소를 가지고 있는 가입자들이 정상적으로 인터넷 서비스를 받을 수 있도록 하기 위한 인터넷 접속방법 및 그 장치를 제공하는 것이다.The present invention has been made to solve the above problems, in the subscriber router having a plurality of circuits of different paths, even if one circuit is damaged, a private IP assigned to the public IP address of the damaged circuit The present invention provides an internet access method and a device for allowing subscribers having an address to normally receive an Internet service.

도 1은 ISP부터 가입자에 이르는 다수개의 경로를 가지고 있는 라우터를 포함하는 네트워크 환경을 도시한 도면1 is a diagram illustrating a network environment including a router having a plurality of paths from an ISP to a subscriber.

도2는 ISP부터 가입자에 이르는 다수개의 경로중 손상된 경로를 가지고 있는 라우터를 포함하는 네트워크 환경을 도시한 도면2 illustrates a network environment including a router having a damaged path among a plurality of paths from an ISP to a subscriber;

도 3은 본 발명에 따른 정적 세팅된 리눅스 기반의 라우터의 구조를 간략히 도시한 블럭도3 is a block diagram schematically showing the structure of a statically set Linux-based router according to the present invention.

도 4는 본 발명에 따른 정적 세팅된 리눅스 기반의 라우터의 작용 및 기능을 플로우 차트로 도시한 도면4 is a flowchart illustrating the operation and function of a statically set Linux-based router according to the present invention.

도 5는 ISP부터 가입자에 이르는 다수개의 경로중 손상된 경로를 가지고 있는 본 발명에 따른 정적 세팅된 리눅스 기반의 라우터를 포함하는 네트워크 혼경을 도시한 도면FIG. 5 illustrates a network environment including a statically set Linux-based router in accordance with the present invention having a compromised one of a plurality of paths from an ISP to a subscriber.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

10 : 단말기 포트40 : 경로포트10: terminal port 40: route port

본 발명은 상기와 같은 목적을 달성하기 위하여 가입자의 단말기와 연결되고 사설IP주소를 가진 다수개의 단말기포트와; 상기 사설IP주소를 가진 다수개의 단말기 포트 중 복수개와 연결되고 공인IP주소를 각각 가지고 있으며, ISP와 통신하는 경로인 복수개의 경로포트와; 상기 다수 개의 입력포트에서 수신되는 가입자 측의 신호를 분석하여 경로를 판별하는 경로 판별수단과; 상기 복수개의 경로포트 중 손상된 것이 있는 지를 감별하는 경로점검수단과; 상기 경로판별수단이 판별한 경로가 상기 경로점검수단에 의해 손상된 경로라고 판단된 경우 상기 가입자측의 전송데이터경로를 손상되지 않은 경로로 변경시키고, 손상된 경로가 아닌 경우에는 경로변경을 하지 않는 경로결정수단과; 상기 경로결정수단에서 확정된 경로포트를 통해 상기 ISP로 상기 전송데이터를 전송시킬 때 공인IP주소로서, 상기 확정된 경로포트의 공인 IP 주소 정보로 전송되도록 IP 마스크레이딩하는 경로연결수단을 포함하는 리눅스기반의 라우터를 제공한다.The present invention provides a plurality of terminal ports connected to the subscriber terminal and having a private IP address to achieve the above object; A plurality of route ports connected to a plurality of terminal ports having a private IP address, each having a public IP address, and a route for communicating with an ISP; Path determination means for determining a path by analyzing signals of subscribers received from the plurality of input ports; Path checking means for discriminating whether the plurality of path ports are damaged; If it is determined that the path determined by the path determining means is a damaged path, the transmission data path of the subscriber side is changed to an undamaged path, and if it is not a damaged path, the path decision is not made. Means; And route connection means for IP masking the transmission data to the ISP through the route port determined by the route determining means as a public IP address, and to be transmitted to the public IP address information of the determined route port. It provides a Linux based router.

또한 본 발명은 사설IP주소를 각각 가진 다수개의 단말기포트와, 상기 다수개의 사설IP주소 와 링크된 공인IP주소를 가진 다수개의 경로포트를 가진 정적 세팅 된 리눅스기반의 라우터와 ISP와의 통신방법으로서, 상기 다수개의 경로포트의 손상여부를 감별하는 단계와; 상기 단말기포트로 들어온 데이터를 전송할 상기 경로포트 중 하나를 판별하는 단계와; 상기 판별된 경로가 상기 감별단계에서 손상된 경로인지를 판단하여 손상된 경로인 경우 다른 경로로 바꾸어주는 단계와; 상기 다른 경로로 바꾸어 상기 바뀐 경로의 공인IP주소로 상기 ISP와 통신하는 단계와; 상기 ISP로부터의 리턴정보를 상기 바뀐 경로로 리턴시키는 단계와; 상기 바뀐 경로로 리턴된 리턴정보를 상기 단말기의 사설IP로 변환시키는 단계를 포함하는 통신방법을 제공한다.In addition, the present invention is a communication method between a statically set Linux-based router and ISP having a plurality of terminal ports each having a private IP address, and a plurality of route ports having a public IP address linked with the plurality of private IP addresses, Discriminating whether the plurality of path ports are damaged; Determining one of the path ports to transmit data entered into the terminal port; Determining whether the determined path is a damaged path in the discriminating step, and if the damaged path is a damaged path; Switching to the other route to communicate with the ISP at the public IP address of the changed route; Returning return information from the ISP to the changed path; And converting the return information returned by the changed path into a private IP of the terminal.

이하 본 발명에 대한 올바른 실시예를 도면을 통하여 상세히 설명한다.Best Mode for Carrying Out the Invention A preferred embodiment of the present invention will now be described in detail with reference to the drawings.

본 발명은 인터넷 서비스 공급업체(Internet Service Provider : ISP)와 가입자(Customer Premises : CP)를 다수개의 경로를 통하여 연결하는 본 발명에 따른 라우터(R)를 포함하는 네트워크 환경에 적용되는 것으로, 이러한 본 발명에 따른 라우터의 내부 블록도는 도 3에 도시되어 있다.The present invention is applicable to a network environment including a router (R) according to the present invention for connecting an Internet service provider (ISP) and a subscriber (Customer Premises: CP) through a plurality of paths. An internal block diagram of a router according to the invention is shown in FIG. 3.

본 발명에 따른 라우터(R)는 가입자(CP)의 단말기와 연결되고 사설IP주소를 가진 다수개의 단말기포트(10)와, 상기 다수개의 사설IP주소를 가지는 단말기 포트(10) 중 복수개와 연결되면서 ISP와 연결되는 공인IP주소를 각각 가진 복수개의 경로포트(40)와, 상기 다수 개의 단말기 포트(10)에서 수신되는 가입자 측의 데이터 패킷을 분석하여 경로와 공인 IP주소를 판별하는 경로 판별수단과, 상기 복수개의 경로포트 중 손상된 것이 있는 지를 감별하는 경로점검수단과, 상기 경로판별수단이 판별한 경로가 상기 경로점검수단에 의해 손상된 경로라고 판단된 경우에 상기 가입자측의 전송 데이터 패킷의 경로를 손상되지 않은 경로로 변경시키고, 손상된 경로가 아닌 경우에는 경로변경을 하지 않는 경로결정수단과, 상기 경로결정수단에서 확정된 경로포트(40)를 통해서 상기 ISP로 상기 전송 데이터 패킷을 전송시킬 때 상기 데이터 패킷이 가지는 IP주소를, 상기 확정된 경로포트(40)의 공인IP주소로 IP 마스크레이딩하는 경로연결수단을 포함하고 있다.The router (R) according to the present invention is connected to a plurality of terminal ports (10) having a private IP address and connected to a terminal of a subscriber (CP), and a plurality of terminal ports (10) having a plurality of private IP addresses. A plurality of route ports 40 each having a public IP address connected to an ISP, and a route discrimination means for determining a route and a public IP address by analyzing data packets of subscribers received from the plurality of terminal ports 10; Path checking means for discriminating whether any of the plurality of path ports are damaged, and if it is determined that the path determined by the path checking means is a damaged path by the path checking means, the path of the transmission data packet of the subscriber side is determined. A path determining means for changing to an undamaged path and not changing the path if the path is not damaged, and a path port 40 determined by the path determining means. And a path connection means for IP masking the IP address of the data packet to the public IP address of the determined route port 40 when transmitting the transmission data packet to the ISP.

특히 본 발명에 따른 라우터는 초고속 인터넷 서비스 중의 하나로서 이더넷 등을 이용하는 B&A(Building and Apartment)의 경우에 사용되는 라우터로, 동적 라우팅 프로토콜을 운용하지 않고, 정적(static) 라우팅을 하는 것을 특징으로 한다.In particular, the router according to the present invention is a router used in the case of B & A (Building and Apartment) using Ethernet as one of high-speed Internet services, and is characterized by static routing without operating a dynamic routing protocol. .

이러한 구성을 가진 본 발명에 따른 라우터의 기능 및 작용을 도 4의 플로우챠트를 통해 보다 자세히 설명한다.The function and operation of the router according to the present invention having such a configuration will be described in more detail through the flowchart of FIG. 4.

먼저, 상기 다수개의 단말기포트를 통해서 가입자측에서 ISP에 서비스를 요청하는 전송 데이터와, 가입자측의 사설IP주소, 가입자측의 단말기와 정적라우팅에 의해 미리 정해진 경로포트에 대한 경로정보, ISP측의 IP주소 등을 가진 패킷이 본 발명에 따른 라우터로 들어오게 된다.(S1)First, the transmission data for requesting service from the ISP through the plurality of terminal ports, the private IP address of the subscriber, the route information for the route port predetermined by the subscriber terminal and the static routing, and the ISP side. A packet having an IP address or the like enters the router according to the present invention. (S1)

상기 단말기포트를 통해 들어온 패킷내의 경로정보와 사설IP주소에 따라 상기 경로판별수단은, 상기 패킷이 전송될 경로 포트와 그에 따른 공인 IP를 판별하게 된다.(S2)According to the route information and the private IP address in the packet entered through the terminal port, the route discrimination means determines the route port to which the packet is to be transmitted and the corresponding public IP (S2).

한편, 상기 경로점검수단은 상기 경로포트의 손상여부를 정기적으로 감지하여, 상기 경로포트의 이상 유무에 대한 정보를 가지고 있는 경로점검정보를 경로결정수단으로 항시 전송하고 있다.(S3)On the other hand, the route checking means periodically detects whether the route port is damaged, and always transmits route inspection information having information on whether the route port is abnormal to the route determining means (S3).

이때 상기 경로점검수단이 경로 결정수단에 전송하는 경로점검정보는 각 경로포트와 ISP 또는 그 중간의 다른 라우터 등과의 통신을 통해서 특정 경로포트의 이상유무를 파악한 정보이다.At this time, the route checking information transmitted by the route checking means to the route determining means is information for identifying the abnormality of a specific route port through communication with each route port and an ISP or another router in between.

상기 경로결정수단은 상기 경로점검정보를 바탕으로 상기 가입자측의 단말기가 요청하여 상기 경로판별수단에 의해 판별된 경로가 손상된 경로인지를판단하고(S4), 만일 손상된 경로인 경우에는 손상되지 않은 경로로 경로를 변경시켜주고(S5), 경로판별수단이 판별한 경로가 경로점검정보에 의해서 손상되지 않은 경로인 경우에는 경로변경을 하지 않고(S4) 가입자의 단말기에서 전송된 데이터 패킷이 가지고 있는 경로 정보를 확정한다.The route determining means requests the terminal on the subscriber's side based on the route checking information to determine whether the route determined by the route discriminating means is a damaged route (S4). If the path determined by the path determining means is a path that is not damaged by the path check information, the path of the data packet transmitted from the subscriber's terminal is not changed (S4). Confirm the information.

즉, 이는 도 5에 도시된 바와 같이, 어느 하나의 회선(a)이 가지는 경로가 손상되었을 경우에 이를 손상되지 않은 다른 회선(b)이 가지는 경로로 변경시켜주게 된다.That is, as shown in FIG. 5, when a path of any one circuit a is damaged, it is changed to a path of another undamaged circuit b.

상기 경로결정수단에 의해 확정된 경로는 경로연결수단에 의해 출력포트 즉, 경로를 확정하여 ISP측과 연결시키게 된다.(S6)The path determined by the routing means is connected to the ISP by determining the output port, that is, the path, by the path connecting means (S6).

이때 특히 본 발명에 따른 라우터의 상기 경로연결수단은 IP 마스크레이딩(masquerading)기법을 사용하한다.In this case, in particular, the path connection means of the router according to the present invention uses an IP mask rading technique.

IP 마스크레이딩이란 리눅스의 네트워킹기능으로 네트웍 라우터에서 흔히 볼 수 있는 네트웍주소해석(NAT)와 유사하고, 이러한 리눅스 IP 마스커레이드를 통하면 리눅스박스에 연결된 (PPP, 이더넷 등) 내부의 컴퓨터들이 공식적으로 할당된 IP주소가 없어도 인터넷연결이 가능하게 되는 기능을 말한다.IP Masking is a networking feature of Linux that is similar to the Network Address Analysis (NAT) commonly found in network routers. With this Linux IP Masquerade, computers inside a Linux box (PPP, Ethernet, etc.) It is a function that enables internet connection without an assigned IP address.

즉, 이러한 본 발명에 따른 IP 마스크레이딩 기법을 상세히 설명한다.That is, the IP mask rading technique according to the present invention will be described in detail.

상술한 바와 같이 상기 경로결정수단이 상기 경로점검정보를 바탕으로, 상기 가입자측의 단말기가 요청한 데이터 패킷이 가지고 있는 경로정보에 의하여 상기 경로판별수단에 의해 판별된 경로가 도 5의 손상된 회선(a)의 경로일 경우 손상되지 않은 회선(b)의 경로로 경로를 변경시켜주는데, 이때 상기 경로 판별수단이 판별한 공인IP주소(A0)와 상기 데이터 패킷이 전송되는 경로포트의 공인 IP(B0)와 서로 상이하므로 이를 상기 경로 연결수단이 IP 마스크레이딩 하게 된다.As described above, based on the route checking information, the route determining means determines the path determined by the route discriminating means based on the route information of the data packet requested by the terminal on the subscriber's side. In the case of the path), the path is changed to the path of the undamaged line (b), wherein the public IP address (A0) determined by the path discriminating means and the public IP (B0) of the path port through which the data packet is transmitted. Since it is different from each other, the path connecting means performs IP mask rading.

즉, A의 사설 IP를 가지고 있는 가입자들이 상기 본 발명에 따른 라우터의 단말기 포트로 데이터 패킷을 전송할 경우, 이러한 데이터 패킷은 경로 판별 수단에 의하여 A0의 공인IP주소와 회선 a를 통한 경로를 가지게 되는데, 이때 상기 회선 a의 경로는 장애가 발생하였으므로 이러한 데이터 패킷은 상기 경로 결정수단에 의하여 b 회선의 경로를 가지게 되는데, 이는 결국 상기 데이터 패킷이 A0의 공인 IP를 가지고 b 회선의 경로를 가지게 되므로 이러한 데이터 패킷이 가지고 있는 A0의 공인 IP주소를 B0의 공인 IP로 마스크레이딩 할 필요가 있으며 이러한 역할을 상기 본 발명에 따른 라우터가 가지고 있는 경로연결수단이 하게 된다.That is, when subscribers having a private IP of A transmit data packets to the terminal port of the router according to the present invention, these data packets have a path through the public IP address of A0 and the circuit a by the path determining means. In this case, since the path of the circuit a has a failure, such a data packet has a path of the b line by the path determining means, which means that the data packet has a path of the b line with the public IP of A0. It is necessary to mask the public IP address of A0 owned by the packet to the public IP of B0, and the route connection means of the router according to the present invention plays this role.

이와 같이 본 발명에 따른 라우터에 따른 경로 연결수단에 의한 경로변경 및 IP 마스크레이딩 기법을 사용하면, A 사설 IP를 가지고 있는 가입자집단이 ISP로 전송하는 데이터 패킷은 회선 b의 경로에 대한 정보와, B0의 공인 IP주소로 마스크fp이딩 되었으므로 ISP의 라우터는 이러한 데이터 패킷을 통하여 회선 b의 경로와 B0의 공인 IP를 목적지로 하여 리턴 서비스를 제공하게 된다.As described above, when the route change and the IP mask rading method by the route connection means according to the present invention are used, the data packet transmitted to the ISP by the subscriber group having the private IP A includes information about the route of the circuit b; Since the mask is framed with the public IP address of B0, the router of the ISP provides a return service using the path of circuit b and the public IP of B0 as the destination through these data packets.

이때 상기 ISP로부터 전송된 리턴서비스는 A의 사설 IP주소를 가지고 있는 가입자에게 전달되어야 하므로 상기 본 발명에 따른 라우터는 하나의 내부테이블이 필요하게 되고, 이러한 내부 테이블은 상기 A의 사설IP주소를 가지고 있는 단말기로부터 전송된 데이터 패킷이 가진 경로가 b로 변경되었고, IP주소가 B0로 마스크 레이딩 되었다는 것을 기억하고 있다가 상기 ISP로부터 전송된 리턴서비스의 데이터 패킷정보를 다시 A의 사설 IP로 리턴 시켜 준다.In this case, since the return service transmitted from the ISP should be delivered to the subscriber having the private IP address of A, the router according to the present invention needs one internal table, and this internal table has the private IP address of A. It is remembered that the path of the data packet transmitted from the mobile terminal is changed to b, and the IP address is mask raided to B0. Then, the data packet information of the return service sent from the ISP is returned to A's private IP. give.

한편, 상기 경로점검수단에서 상기 손상된 경로가 정상적으로 작동된다는 경로점검정보를 경로변경수단에 보내올 경우에 경로는 변경되지 않고 경로 연결 되도록 하는 것은 당연하다.On the other hand, when the route check means sends the route check information indicating that the damaged route is normally operated to the route change means, it is natural that the route is not changed but connected to the route.

본 발명에 따른 방식을 통한 라우터를 가입자 측에 사용하여 네트워크 환경을 구축할 경우, 상기 라우터가 가지는 복수개의 회선 중 하나 또는 그 이상의 회선에 장애 상황이 발생하여도 남아있는 회선을 통하여 효과적으로 장애상황에 대처할 수 있음과 동시에, 두 개 이상의 전용선을 사용하여 두 개 이상의 ISP업체로부터 서비스를 제공받는 경우에, 하나 이상의 전용선에 장애가 발생하여 다른 ISP업체로 우회하는 경우에도 적용 될 수 있어 보다 개선된 통신 네트워크 환경을 제공 할 수 있다.When the network environment is established by using the router according to the present invention to the subscriber side, even if a failure situation occurs in one or more circuits among the plurality of circuits of the router, it is possible to effectively prevent the failure situation through the remaining circuits. Improved communication network can be applied when two or more leased lines are used to provide service from two or more ISPs, and when one or more leased lines fail and bypass the other ISPs. Can provide an environment.

Claims (2)

가입자의 단말기와 연결되고 사설IP주소를 가진 다수개의 단말기포트와;A plurality of terminal ports connected with subscriber terminals and having a private IP address; 상기 사설IP주소를 가진 다수개의 단말기포트 중 복수개와 연결되고 공인IP주소를 각각 가지고 있으며, ISP와 통신하는 경로인 복수개의 경로포트와;A plurality of route ports connected to a plurality of terminal ports having a private IP address, each having a public IP address, and a route for communicating with an ISP; 상기 다수 개의 단말기포트에서 수신되는 가입자 측의 신호를 분석하여 경로를 판별하는 경로 판별수단과;Path determination means for determining a path by analyzing signals of subscribers received from the plurality of terminal ports; 상기 복수개의 경로포트 중 손상된 것이 있는 지를 감별하는 경로점검수단과;Path checking means for discriminating whether the plurality of path ports are damaged; 상기 경로판별수단이 판별한 경로가 상기 경로점검수단에 의해 손상된 경로라고 판단된 경우 상기 가입자 측의 전송데이터경로를 손상되지 않은 경로로 변경시키고, 손상된 경로가 아닌 경우에는 경로변경을 하지 않는 경로결정수단과;If it is determined that the path determined by the path determining means is a damaged path, the transmission data path of the subscriber is changed to an undamaged path, and if it is not a damaged path, the path decision is not made. Means; 상기 경로결정수단에서 확정된 경로포트를 통해 상기 ISP로 상기 전송데이터를 전송시킬 때, 상기 확정된 경로포트의 공인 IP 주소 정보로 전송되도록 IP 마스크레이딩하는 경로연결수단Route connection means for IP masking the transmission data to the ISP through the route port determined by the route determining means to be transmitted to the public IP address information of the determined route port. 을 포함하는 리눅스기반의 라우터Linux-based router, including 사설IP주소를 각각 가진 다수개의 단말기포트와, 상기 다수개의 사설IP주소 와 링크된 공인IP주소를 가진 다수개의 경로포트를 가진 정적 세팅된 리눅스기반의라우터와 ISP와의 통신방법으로서,A communication method with a statically set Linux-based router and ISP having a plurality of terminal ports each having a private IP address, and a plurality of route ports having a public IP address linked with the plurality of private IP addresses, 상기 다수개의 경로포트의 손상여부를 감별하는 단계와;Discriminating whether the plurality of path ports are damaged; 상기 단말기포트로 들어온 데이터를 전송할 상기 경로포트 중 하나를 판별하는 단계와;Determining one of the path ports to transmit data entered into the terminal port; 상기 판별된 경로가 상기 감별단계에서 손상된 경로인지를 판단하여 손상된 경로인 경우 다른 경로로 바꾸어주는 단계와;Determining whether the determined path is a damaged path in the discriminating step, and if the damaged path is a damaged path; 상기 다른 경로로 바꾸어 상기 바뀐 경로의 공인IP주소로 상기 ISP와 통신하는 단계와;Switching to the other route to communicate with the ISP at the public IP address of the changed route; 상기 ISP로부터의 리턴정보를 상기 바뀐 경로로 리턴시키는 단계와;Returning return information from the ISP to the changed path; 상기 바뀐 경로로 리턴된 리턴정보를 상기 단말기의 사설IP로 변환시키는 단계Converting return information returned by the changed path into a private IP of the terminal; 를 포함하는 통신방법Communication method including
KR1020000065419A 2000-11-04 2000-11-04 internet connecting method and apparatus using masquerading technique KR20020035226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000065419A KR20020035226A (en) 2000-11-04 2000-11-04 internet connecting method and apparatus using masquerading technique

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000065419A KR20020035226A (en) 2000-11-04 2000-11-04 internet connecting method and apparatus using masquerading technique

Publications (1)

Publication Number Publication Date
KR20020035226A true KR20020035226A (en) 2002-05-11

Family

ID=19697292

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000065419A KR20020035226A (en) 2000-11-04 2000-11-04 internet connecting method and apparatus using masquerading technique

Country Status (1)

Country Link
KR (1) KR20020035226A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210094871A (en) * 2020-01-22 2021-07-30 주식회사 엘지유플러스 Communication mehtod and apparatus of recovering communication fault

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06164582A (en) * 1992-11-27 1994-06-10 Nec Corp Virtual router controlling system
JPH11261561A (en) * 1998-03-06 1999-09-24 Nec Corp Network system provided with dual connection device and connection failure avoiding method
KR20000025746A (en) * 1998-10-14 2000-05-06 윤종용 Method for routing services when link failure occurs temporarily on internet
JP2001333114A (en) * 2000-05-22 2001-11-30 Hitachi Ltd Bypass control method in internet gateway system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06164582A (en) * 1992-11-27 1994-06-10 Nec Corp Virtual router controlling system
JPH11261561A (en) * 1998-03-06 1999-09-24 Nec Corp Network system provided with dual connection device and connection failure avoiding method
KR20000025746A (en) * 1998-10-14 2000-05-06 윤종용 Method for routing services when link failure occurs temporarily on internet
JP2001333114A (en) * 2000-05-22 2001-11-30 Hitachi Ltd Bypass control method in internet gateway system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210094871A (en) * 2020-01-22 2021-07-30 주식회사 엘지유플러스 Communication mehtod and apparatus of recovering communication fault

Similar Documents

Publication Publication Date Title
US7130307B2 (en) Data relay method, its apparatus, and data relay system using the apparatus
US5280481A (en) Local area network transmission emulator
EP0884925A2 (en) Lan internet connection
US20020107961A1 (en) Secure internet communication system
US20060053231A1 (en) Method and apparatus for providing backup internet access
US8213299B2 (en) Methods and systems for locating redundant telephony call processing hosts in geographically separate locations
US7570647B2 (en) LAN type internet access network and subscriber line accommodation method for use in the same network
US5926105A (en) Router having a security function
JP2003078545A (en) Transmitter and frame transferring method
KR20050051632A (en) A filter for traffic separation
US8094564B2 (en) Communication system, method and apparatus for providing mirroring service in the communication system
KR19990001579A (en) Hybrid Gateway Structure and Its Operation Method
KR20020035226A (en) internet connecting method and apparatus using masquerading technique
Cisco Internetworking Fundamentals Self-Study Guide
AU607331B2 (en) A telecomunications system and a method of transmitting information in a telecommunications system
US8347075B1 (en) Methods to mitigate attacks against fiber-to-the-home network systems
JP2001186165A (en) Information communication system and connection method for call controller
KR100862500B1 (en) Communication system and communication method for enabling communication between customers connected same link that there is no layer 2 communication path
US7126919B2 (en) Method for assuring the quality of service of connections between subregions of a packet-oriented network having a resource manager
CN115883256B (en) Data transmission method, device and storage medium based on encryption tunnel
KR100233840B1 (en) Structure of the hub in satellite network to support public and private ip address and operating method thereof
KR20010074242A (en) Internet service system had traffic distributing and backup function on internet
JPH07154428A (en) Inter-lan connection system by isdn
JPH09214540A (en) Network and its group management system
JP4144341B2 (en) xDSL line accommodation mechanism and xDSL line accommodation method used therefor

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application