Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS FOR ACCESSING A PRIVATE SURVEILLANCE NETWORK THROUGH L2TP
Document Type and Number:
WIPO Patent Application WO/2012/126262
Kind Code:
A1
Abstract:
In a method and apparatus for accessing a surveillance network through L2TP, a configuration "use default gateway on remote network" on an L2TP virtual interface of a public network user device is canceled in advance, an L2TP call initiated by the public network user device is received by an L2TP server, a private network IP address is assigned to the public network user device, and a route of a surveillance segment is transmitted to the public network user device, such that, after the route of the surveillance segment is received by the public network user device, the IP address of the L2TP virtual interface is configured as a next-hop of the route by the public network user device, and the route to a routing table of the public network user device is distributed by the public network user device, when an access request to a surveillance device in the private network is initiated, the routing table is searched by the public network user device to find a matching route of the surveillance segment according to an IP address of the surveillance device and the access request is transmitted to the L2TP server through the L2TP virtual interface, the access request is received by the L2TP server and forwarded to the surveillance device.

Inventors:
REN JUNFENG (CN)
ZHOU DI (CN)
Application Number:
PCT/CN2011/083702
Publication Date:
September 27, 2012
Filing Date:
December 08, 2011
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HANGZHOU H3C TECH CO LTD (CN)
REN JUNFENG (CN)
ZHOU DI (CN)
International Classes:
H04L12/26; H04L12/24; H04L12/56; H04L29/06
Foreign References:
CN102111311A2011-06-29
CN101141372A2008-03-12
JP2010147687A2010-07-01
Other References:
See also references of EP 2686984A4
Attorney, Agent or Firm:
DEQI INTELLECTUAL PROPERTY LAW CORPORATION (No. 1 Zhichun Road Haidian District, Beijing 3, CN)
Download PDF:
Claims:
WHAT IS CLAIMED IS:

1 . A method for accessing a private surveillance network through Layer 2 Tunnel Protocol (L2TP), wherein a configuration, use default gateway on remote network, is cancelled on an L2TP virtual interface of a public network user device, the method comprising:

receiving, by an L2TP server, an L2TP call initiated by the public network user device, assigning a private network IP address to the public network user device, and transmitting a route of a surveillance segment to the public network user device, such that, after receiving the route of the surveillance segment, the public network user device is to configure the IP address of the L2TP virtual interface as a next-hop of the route, and distributing the route to a routing table of the public network user device; when initiating an access request to a surveillance device in the private surveillance network, searching, by the public network user device, the routing table for a matching route of the surveillance segment according to an IP address of the surveillance device and transmitting the access request to the L2TP server through the L2TP virtual interface;

receiving, by the L2TP server, the access request and forwarding the access request to the surveillance device.

2. The method of claim 1 , wherein transmitting, by the L2TP server, the route of the surveillance segment to the public network user device further comprises: transmitting, by the L2TP server, the route of the surveillance segment configured by a network manager on the L2TP server to the public network user device; or

filtering, by the L2TP server, dynamic routes or static routes of the L2TP server to obtain the route of the surveillance segment, and transmitting the route of the surveillance segment to the public network user device.

3. The method of claim 1 , further comprising:

when transmitting the route of the surveillance segment to the public network user device, setting, by the L2TP server, a response timer, if the L2TP server does not receive an acknowledgment from the public network user device before the response timer expires, retransmitting, by the L2TP server, the route of the surveillance segment to the public network user device.

4. The method of claim 1 , wherein distributing the route of the surveillance segment to the routing table of the public network user device further comprises: setting, by the public network user device, an aging time for the route of the surveillance segment; and

after transmitting, by the L2TP server, the route of the surveillance segment to the public network user device, distributing, by the L2TP server, a newest route of the surveillance segment to the public network user device every other updating time period, and after receiving the newest route of the surveillance segment, resetting, by the public network user device, the aging time of the route.

5. The method of claim 1 , further comprising:

after transmitting, by the L2TP server, the route of the surveillance segment to the public network user device, when the L2TP server finds a new route of the surveillance segment, transmitting, by the L2TP server, the new route to the public network user device, and after receiving the new route, taking, by the public network user device, the L2TP virtual interface as a next-hop of the new route and distributing the new route to the routing table; or when the L2TP server finds that the route of the surveillance segment is deleted, transmitting a route delete packet carrying the route being deleted to the public network user device, and after receiving the route delete packet, the public network user device deleting the route.

6. A Layer 2 Tunnel Protocol (L2TP) server, comprising:

a memory; and

a processor in communication with the memory; wherein the memory stores machine readable instructions executable by the processor, the machine readable instructions comprise instructions: to receive an L2TP call initiated by a public network user device, to assign a private network IP address to the public network user device and to transmit a route of a surveillance segment to the public network user device, wherein after the route is received by the public network user device, an IP address of an L2TP virtual interface of the public network user device is configured as a next-hop of the route and the route is distributed to a routing table of the public network user device, when an access request is initiated by the public network user device towards a surveillance device in a private network, the routing table is searched by the public network user device for a matching route according to an IP address of the surveillance device, and the access request is transmitted to the L2TP server via the L2TP virtual interface according to the next-hop of the matching route; and

to receive the access request transmitted by the public network user device requesting to access the surveillance device, and to forward the access request to the surveillance device.

7. The L2TP server of claim 6, wherein the memory further comprises machine readable instructions executed to obtain the route of the surveillance segment configured by a network manager on the L2TP server to the assigning module, or to filter dynamic routes or static routes of the L2TP server to obtain the route of the surveillance segment and transmit the route of the surveillance segment to the public network user device.

8. The L2TP server of claim 6, wherein the memory further comprises machine readable instructions executed to distribute a newest route of the surveillance segment to the public network user device every updating time period, or to transmit, when a new route of the surveillance segment is found, the new route to the public network user device, or to transmit, when the route of the surveillance segment is deleted, a route deleting packet carrying the route being deleted to the public network user device.

9. A public network user device, wherein the public network user device is not configured to use default gateway on remote network, comprising:

a memory;

a routing table; and

a processor in communication with the memory; the memory storing machine readable instructions executable by the processor; wherein machine readable instructions comprise instructions:

to receive a route of a surveillance segment transmitted by an L2TP server, configure an L2TP virtual interface of the public network user device as a next-hop of the route of the surveillance segment, and distribute the route of the surveillance segment to the routing table;

to search, when an access request is initiated to a surveillance device, the routing table for a matching route according to an IP address of the surveillance device, and transmit the access request to the L2TP server through the L2TP virtual interface according to a next-hop of the matching route.

10. The public network user device of claim 9, wherein the memory further comprises machine readable instructions executed to set an aging time for the route when the route of the surveillance segment is distributed to the routing table, to reset the aging time of the route when an updated route of the surveillance segment distributed by the L2TP server is received, and to delete the route when a route deleting packet is received from the L2TP server.

Description:
METHOD AND APPARATUS FOR ACCESSING A PRIVATE SURVEILLANCE

NETWORK THROUGH L2TP

BACKGROUND

[0001 ] With the continuous development of networking and internet protocol (IP) techniques, intelligent surveillance techniques based on IP and networking have developed rapidly. In addition, IP surveillance has become a main surveillance technique. Due to security and cost, most surveillance networks are disposed in private networks. In these types of surveillance networks, a mobile user or a public network user, acting as a Video Client (VC), will dial into a private enterprise network through L2TP when they access surveillance resources in the private enterprise network, as shown in FIG. 1 .

[0002] After the user dials into the private enterprise network, a default route with a high priority is added to a host of the user. The next-hop of the route is an L2TP interface of the host of the user. A result of this is that when the user visits other servers on the public network, packets will first be transmitted to the L2TP server, i.e., the export of the private enterprise network, before being forwarded to a public network server, as shown in FIG. 2. If there is an access restriction on the export of the private enterprise network or access to the public network is prohibited on the export of the private enterprise network, the public network user will be affected and bandwidth resources of the export of the private enterprise network are wasted. BRIEF DESCRIPTION OF THE DRAWINGS

[0003] FIG. 1 is a schematic diagram illustrating a scenario of a public network user device accessing a private network in an existing L2TP network.

[0004] FIG. 2 is a schematic diagram illustrating a scenario of a public network user device accessing a public network in an existing L2TP network.

[0005] FIG. 3 is a flowchart illustrating a method for accessing a private surveillance network through L2TP according to an example of the present disclosure.

[0006] FIG. 4 is a block diagram illustrating a structure of an L2TP server according to an example of the present disclosure.

[0007] FIG. 5 is a block diagram illustrating a structure of a public network user device according to an example of the present disclosure.

DETAILED DESCRIPTION

[0008] Examples of the present disclosure provide a method, an L2TP server and a public network user device for accessing a private surveillance network through L2TP, so as to enable a public network user to visit the private surveillance network conveniently and without affecting access to the public network.

[0009] According to one aspect of the present disclosure, a method for accessing a private surveillance network through L2TP is provided, wherein a configuration, use default gateway on remote network, is cancelled on an L2TP virtual interface of a public network user device, the method includes:

receiving, by an L2TP server, an L2TP call initiated by the public network user device, assigning a private network IP address to the public network user device, and transmitting a route of a surveillance segment to the public network user device, such that, after receiving the route of the surveillance segment, configuring, by the public network user device, the IP address of the L2TP virtual interface as a next-hop of the route, and distributing the route to a routing table of the public network user device; when initiating an access request to a surveillance device in the private surveillance network, searching, by the public network user device, the routing table for a matching route of the surveillance segment according to an IP address of the surveillance device and transmitting the access request to the L2TP server through the L2TP virtual interface;

receiving, by the L2TP server, the access request and forwarding the access request to the surveillance device.

[0010] According to another aspect of the present disclosure, an L2TP server is provided. The L2TP server includes:

a memory; and

a processor in communication with the memory; wherein the memory includes machine readable instructions executable by the processor, the machine readable instructions is:

to receive an L2TP call initiated by a public network user device, to assign a private network IP address to the public network user device and to transmit a route of a surveillance segment to the public network user device, wherein after the route is received by the public network user device, an IP address of an L2TP virtual interface of the public network user device is configured as a next-hop of the route and the route is distributed to a routing table of the public network user device, when an access request is initiated by the public network user device towards a surveillance device in a private network, the routing table is searched by the public network user device for a matching route according to an IP address of the surveillance device, and the access request is transmitted to the L2TP server via the L2TP virtual interface according to the next-hop of the matching route; and to receive the access request transmitted by the public network user device requesting to access the surveillance device, and to forward the access request to the surveillance device.

[0011 ] According to still another aspect of the present disclosure, a public network user device is provided. An L2TP virtual interface of the public network user device is not configured to "use default gateway on remote network". The public network user device includes:

a memory;

a routing table, to store a routing table; and

a processor in communication with the memory; the memory comprising machine readable instructions executable by the processor; wherein the machine readable instructions is:

to receive a route of a surveillance segment transmitted by an L2TP server, configure an L2TP virtual interface of the public network user device as a next-hop of the route of the surveillance segment, and distribute the route of the surveillance segment to the routing table;

to search, when an access request is initiated to a surveillance device, the routing table for a matching route according to an IP address of the surveillance device, and transmit the access request to the L2TP server through the L2TP virtual interface according to a next-hop of the matching route.

Hereinafter, the present disclosure will be described in further detail with reference to the accompanying drawings and examples to make the technical solution and merits therein clearer. [0012] FIG. 3 is a flowchart illustrating a method for accessing a private surveillance network through L2TP according to an example of the present disclosure. As shown in FIG. 3, the method includes the following operations.

[0013] Block 301 , a create L2TP connection command is received in a public network user device from a user and starts to create an L2TP connection. An L2TP virtual interface is obtained when the L2TP connection is created. Then the public network user device receives a command to cancel a configuration of "use default gateway on remote network" on the L2TP virtual interface and the configuration "use default gateway on remote network" on the L2TP virtual interface is canceled.

[0014] Block 302, the public network user device detects that the user is dialing using L2TP and initiates an L2TP call to an L2TP server.

[0015] Block 303, the L2TP server receives the L2TP call, assigns a private network IP address for the public network user device, and returns an L2TP call response carrying the private network IP address to the public network user device. Meanwhile, the L2TP server transmits a route of a surveillance segment to the public network user device through a PPP IPCP negotiation packet.

[001 6] A network manager may configure the route of the surveillance on the L2TP server directly or the L2TP server may obtain the route of the surveillance from dynamic routes or static routes of the L2TP server itself. If the enterprise network includes multiple types of networks, e.g., surveillance network, office network, etc., the L2TP server may obtain the route of the surveillance segment through filtering all private network routes according to a routing policy. For example, if the surveillance segment is 192.1 68.0.0, the L2TP server searches a dynamic routing table and/or a static routing table for the route of this segment.

[0017] Herein, if the route of the surveillance segment is directly configured on the L2TP server by the network manager, the L2TP server directly carries the route of the surveillance segment in the PPP IPCP negotiation packet and transmits the PPP IPCP negotiation packet to the public network user device. If the route of the surveillance segment is obtained from the dynamic routes or static routes of the L2TP server, the L2TP server may obtain the route of the surveillance segment from the dynamic routes or static routes after receiving the L2TP call and then the route of the surveillance segment is carried in the PPP IPCP negotiation packet and the PPP IPCP negotiation packet is transmitted to the public network user device.

[0018] A format of the PPP I PCP negotiation packet in this block may be as follows:

0 1 2 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+

Type I Length I Code I

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+

I Network (1) I

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+

I MASK ( 1 ) I

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+

I Network (2) I

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+

I MASK (2) I

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+ [0019] The meaning and value of each field are as follows.

[0020] Type: indicates type of the packet. In this example, the value of this field may be 133, denoting that this packet is a surveillance segment route notification packet.

[0021 ] Length: indicates length of the packet.

[0022] Code: used for differentiating different functions of the packet. In this example, the meanings of different values are as follows:

[0023] 0: update route. This is used by the L2TP server for periodically updating the route of the surveillance segment. After receiving this packet, the public network user device refreshes an aging time of a corresponding route;

[0024] 1 : add route. This is used for distributing the route when the public network user device comes online or the server adds a new route. After receiving this packet, the public network user device adds the route in this packet in a routing table.

[0025] 2: delete route. This is used for notifying the public network user device after the server deletes a route. After receiving this packet, the public network user device deletes the route indicated by the packet.

[0026] Network: segment of the route.

[0027] Mask: mask length of the segment of the route.

[0028] When there are multiple surveillance segments, the routes of all the surveillance segments may be transmitted to the public network user device via the same PPP IPCP negotiation packet.

[0029] Certainly, the PPP IPCP negotiation packet is merely one example packet for carrying the route of the surveillance segment. In practical applications, other packets may also be adopted.

[0030] Block 304, the public network user device receives the PPP IPCP negotiation packet, obtains the route of the surveillance segment from the PPP IPCP negotiation packet, configures a next-hop of the route to be the L2TP virtual interface and distributes the route to the routing table.

[0031 ] Block 305, when it is to access a surveillance device, the public network user device constructs an access request packet. The source IP address of the access request packet is the private IP address of the L2TP server and the destination IP address of the access request packet is the IP address of the surveillance device.

[0032] Block 306, the public network user device searches the routing table for a route that matches the destination IP address of the access request packet, and transmits the access request packet to the L2TP virtual interface according to the next-hop of the route. [0033] For instance, if the IP address of the surveillance device is 192.1 68.0.5, the matching route that the public network user device found in the routing table is a route of surveillance segment 192.1 68.0.0/24, the next-hop of the route is the L2TP virtual interface.

[0034] Block 307, when the access request packet arrives at the L2TP virtual interface, the public network user device encapsulates the access request packet on the L2TP virtual interface. The encapsulated outer layer source IP address is the public network IP address of the public network user device and the encapsulated outer layer destination IP address is the IP address of the L2TP server.

[0035] Block 308, the public network user device transmits out the encapsulated access request packet. When the access request packet arrives at the L2TP server, the L2TP server removes the outer layer addresses and forwards the access request packet to a corresponding surveillance device according to the inner layer destination IP address.

[0036] Block 309, when the public network user device initiates an access request packet whose destination address is a public network IP address, the public network user device searches the routing table for a corresponding route according the destination IP address of the access request packet and forwards the access request packet according to the route.

[0037] Since the public network user device is not configured to "use default gateway on remote network", after the public network user device visits the private network, the route of the private network will not be configured as a default route with high priority. Thus, subsequent access request packets directed toward the public network will be forwarded to the public network server directly according to a regular route searching procedure instead of being forwarded to the L2TP server firstly.

[0038] In this example, in block 304, when distributing the route of the surveillance segment to the routing table, the public network user device sets an aging time a for the route. [0039] The L2TP server will transmit a PPP IPCP negotiation packet used for updating the route to the public network user device every other updating time b. The PPP IPCP negotiation packet carries updated route of the surveillance segment. After receiving the PPP IPCP negotiation packet, the public network user device resets the aging time of the corresponding route in the routing table according to the PPP IPCP negotiation packet, wherein b<a.

[0040] When the route reaches the aging time, the public network user device deletes the route.

[0041 ] When finding that a new route of a surveillance segment has been added, the L2TP server transmits a PPP IPCP negotiation packet carrying the newly-added route to the public network user device. After receiving the PPP IPCP negotiation packet, the public network user device takes the L2TP virtual interface as the next-hop of the route, distributes the route to the routing table and sets an aging time for the route.

[0042] When finding that the route of the surveillance segment has been deleted, the L2TP server transmits a PPP IPCP negotiation packet carrying the route being deleted to the public network user device. After receiving the PPP IPCP negotiation packet, the public network user device finds the route from the routing table and deletes the route.

[0043] In an example of the present disclosure, when the L2TP server transmits the PPP IPCP negotiation packet, it is possible to set a response timer. When receiving the PPP IPCP negotiation packet, the public network user device returns a PPP IPCP acknowledgement to the L2TP server. If the L2TP does not receive the PPP IPCP acknowledgement from the public network user device before the timer expires, the L2TP server retransmits the PPP IPCP negotiation packet to the public network user device.

[0044] FIG. 4 is a block diagram illustrating a structure of an L2TP server according to an example of the present disclosure. As shown in FIG. 4, the L2TP server includes: a memory 41 and a processor 42 in communication with the memory 41 . The memory 41 may be a computer readable storage media including machine readable instructions. The processor 42 may execute the stored machine readable instructions.

[0045] The memory 41 includes receiving instructions 411 , forwarding instructions 412, obtaining instructions 413 and assigning instructions 414.

[0046] The receiving instructions 411 may be executed to receive an L2TP call initiated by a public network user device.

[0047] The forwarding instructions 412 may be executed to receive an access request transmitted by the public network user device requesting to access a surveillance device, and to forward the access request to the surveillance device.

[0048] The obtaining instructions 413 may be executed to obtain the route of the surveillance segment configured by a network manager on the L2TP server, or to filter dynamic routes or static routes of the L2TP server to obtain the route of the surveillance segment.

[0049] The assigning instructions 414 may be executed to transmit the route of the surveillance segment obtained by the obtaining instructions 413 to the public network user device.

[0050] The memory 41 may further include instructions executed to distribute the newest route of the surveillance segment to the public network user device every other updating time period, or to transmit, when finding a new route of the surveillance segment, the new route to the public network user device, or to transmit, when finding that a route of the surveillance segment has been deleted, a route deleting packet carrying the route being deleted to the public network user device.

[0051 ] FIG. 5 is a block diagram illustrating a public network user device according to an example of the present disclosure. The public network user device is not configured to "use default gateway on remote network". As shown in FIG. 5, the public network user device includes: a memory 51 , a routing table 52 and a processor 53 in communication with the memory 51 . The memory 51 may be a computer readable storage media including machine readable instructions. The processor 53 may execute the stored machine readable instructions.

[0052] The routing table 52 is to store a routing table.

[0053] The memory 51 includes configuring instructions 511 , distributing instructions 512, searching instructions 513 and transmitting instructions 514.

[0054] The configuring instructions 511 may be executed to receive a route of a surveillance segment transmitted by an L2TP server, and to configure an L2TP virtual interface of the public network user device as a next-hop of the route of the surveillance segment.

[0055] The distributing instructions 512 may be executed to distribute the route of the surveillance segment to the routing table 52.

[0056] The searching instructions 513 may be executed to search, when an access request is initiated to a surveillance device, the routing table 52 for a matching route according to an IP address of the surveillance device.

[0057] The transmitting instructions 514 may be executed to transmit the access request to the L2TP server through the L2TP virtual interface according to the next-hop of the matching route.

[0058] The memory 51 may further include instructions executed to set an aging time for the route of the surveillance segment when the route of the surveillance segment is distributed to the routing table, to reset the aging time of the route of the surveillance segment when an updated route of the surveillance segment distributed by the L2TP server is received, and to delete the route of the surveillance segment when a route deleting packet is received from the L2TP server.

[0059] What has been described and illustrated herein is an example of the disclosure along with some of its variations. The terms, descriptions and figures used herein are set forth by way of illustration only and are not meant as limitations. Many variations are possible within the spirit and scope of the disclosure, which is intended to be defined by the following claims - and their equivalents - in which all terms are meant in their broadest reasonable sense unless otherwise indicated.