WO2017041660A1 - 一种路由器远程管理方法、系统和设备 - Google Patents

一种路由器远程管理方法、系统和设备 Download PDF

Info

Publication number
WO2017041660A1
WO2017041660A1 PCT/CN2016/097749 CN2016097749W WO2017041660A1 WO 2017041660 A1 WO2017041660 A1 WO 2017041660A1 CN 2016097749 W CN2016097749 W CN 2016097749W WO 2017041660 A1 WO2017041660 A1 WO 2017041660A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
server
public network
information
mobile terminal
Prior art date
Application number
PCT/CN2016/097749
Other languages
English (en)
French (fr)
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 上海斐讯数据通信技术有限公司
Publication of WO2017041660A1 publication Critical patent/WO2017041660A1/zh

Links

Images

Classifications

    • 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/32Specific management aspects for broadband networks
    • 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

Definitions

  • the present application mainly relates to communication technologies, and in particular, to a router remote management method, system and device.
  • a router is a network device that connects various LANs and WANs in a network. Its main function is to automatically select and set routes according to the channel conditions to forward data through the best path and in the order.
  • APPs applications
  • the traditional router remote management needs to establish a TCP long connection between the router and the server for communication.
  • the mobile terminal device needs to remotely manage the router, the mobile terminal device sends the router access request to the server through the APP, and then the server accesses the request through the TCP long connection. Forwarded to the router; the router returns the message to the server after processing the access request, and the server forwards the packet to the mobile terminal device.
  • One of the purposes of the present application is to provide a remote management method for a router to solve the above problems.
  • Another object of the present application is to provide a system and device using the above-described router remote management method.
  • the remote management method of the router provided by the application includes: requesting, by the server, type information of the router;
  • the address information is used to directly initiate an access request to the router by using the public network IP address information, and receive a processing result returned by the router, so as to directly perform remote access and management on the router.
  • the method further includes: if the router is a private network IP router, the router establishes a TCP long connection with the server, and initiates access to the router by using the server. Requesting, and receiving a processing result forwarded by the router through the server, to implement remote access and management of the router by a pre-established TCP long connection between the server and the router.
  • the method further includes: the server receiving a first UDP packet from the router, where the first UDP packet carries a WAN port IP address of the router And the port information, the server determining, according to the WAN port IP address and port information, whether the router is a public network IP router or a private network IP router; the server records the type information of the router and passes the second UDP report. The text is returned to the router.
  • the method further includes: when the router learns that it is a private network IP router according to the type information returned by the server, establishing a TCP long connection with the server.
  • the method further includes: after receiving the router access request from the mobile terminal device, the server forwards the router access request to the router through the TCP long connection
  • the router receives, by the TCP long connection, a processing result of the router responding to the router access request, and forwards the processing result to the mobile terminal device.
  • the router remote management system includes a router, a server, and a mobile terminal device.
  • the mobile terminal device is configured to request, by the server, type information of the router, and determine, according to the type information provided by the server.
  • the router is a public network IP router, request the public IP address information of the router from the server, and directly access and manage the router by using the public network IP address information; Providing the type information of the router to the mobile terminal in response to the request of the mobile terminal device, and providing the public IP address of the router to the mobile terminal device when the router is a public network IP router information.
  • the mobile terminal device is further configured to: when the router is a private network IP router, initiate an access request to the router by using the server, and receive the router to pass
  • the processing result forwarded by the server is to implement remote access and management of the router by a pre-established TCP long connection between the server and the router.
  • the server is further configured to receive WAN port IP address and port information provided by the router, and obtain the router according to the WAN port IP address and port information. Type information, and record type information of the router and return to the router.
  • the router remote management device includes: a first information acquiring module, configured to acquire type information of a router from a server; and a determining module, configured to determine, according to the type information of the router provided by the server, that the router is The public network IP router is also a private network IP router; the second information acquisition module is configured to acquire the public network IP address information of the router from the server when the router is a public network IP router; the router management module is configured to utilize The public network IP address information directly initiates an access request to the router, and receives a processing result returned by the router, so as to directly perform remote access and management on the router. Reason.
  • the router management module is further configured to: when the router is a private network IP router, initiate an access request to the router by using the server, and receive the router. The processing result forwarded by the server.
  • the router remote management method, system, and device provided by the present application may first distinguish that the router is a public network IP router and a private network IP router, and the user accesses the public network IP router through the mobile terminal device.
  • the server When performing remote management, the server will provide the public network device with the public network IP address of the router, so the mobile terminal device can directly access the public network IP router according to the public network IP address information. Management, no need to forward packets through the server, which can effectively reduce the cost and cost of the server.
  • FIG. 1 is a schematic diagram of an embodiment of a remote management method of a router provided by the present application
  • FIG. 2 is a schematic structural diagram of an embodiment of a router remote management device provided by the present application.
  • the remote management method of the router mainly divides the router into two types according to the IP address and port information of the router: a public network IP router and a private network IP router, and for the public network IP router, the server may indicate the mobile terminal device. Directly access and manage the router through the public IP address, without establishing a long TCP connection between the public IP router and the server, and forwarding packets through the server, thereby effectively reducing the server.
  • the cost and cost are examples according to the IP address and port information of the router: a public network IP router and a private network IP router, and for the public network IP router, the server may indicate the mobile terminal device.
  • FIG. 1 is a schematic diagram of an embodiment of a remote management method for a router provided by the present application;
  • a general message applicable to a private network IP router and a public IP router is indicated by a solid line and private.
  • Messages related to the network IP router are indicated by dashed lines, and messages related to the public IP router are indicated by dotted lines.
  • the router remote management method mainly includes:
  • Step S1 The server receives the first UDP packet reported by the router, where the UDP packet carries the IP address and port information of all the WAN ports.
  • the router may send a first UDP (User Datagram Protocol) packet to the server when the power is turned on, or the WAN port is disconnected, or the WAN port IP address is changed.
  • the UDP packet carries the IP address information of the router, such as its WAN port IP address and port information.
  • Step S2 the server determines, according to the IP address and port information of the WAN port of the router, whether the router is a public network IP router or a private network IP router;
  • the server may extract the WAN port IP address and port information carried by the first UDP packet, and determine the WAN port IP address and port information. Whether it is the same as the IP address and port information of the peer in the Socket communication. If the two are consistent, the router can be determined to be a public IP router; if the two are inconsistent, the router can be determined to be a private IP router.
  • Step S3 the server records the type information of the router and returns the information to the router through the second UDP packet;
  • the server may record the type information of the router, so that the type information of the router may be directly obtained from the internal information record and provided by the subsequent mobile terminal device. To the mobile terminal device.
  • the server may also carry the type information of the router in the second UDP packet, and output the second UDP packet to the router.
  • Step S4 the router establishes a TCP long connection with the server when it learns that it is a private network IP router according to the second UDP packet;
  • the router may receive the second UDP packet returned by the server, and extract type information of the router from the second UDP packet; according to the type information, the router may learn the Whether it is a private IP router or a public IP router. If the router is a private network IP router, it can establish a TCP long connection with the server; on the contrary, if the router is a public network IP router, there is no need to establish a TCP long connection with the server, that is, In this case, the step S4 can be omitted.
  • Step S5 The mobile terminal device requests the type information of the router from the server.
  • the user may first send a first TCP packet to the server by using the APP of the mobile terminal device, where the first TCP packet is sent.
  • the text may carry a router type information request, which is mainly used to request the server to provide the type information of the router to the mobile terminal device.
  • Step S6 the server returns type information of the target router to the mobile terminal device
  • the server may respond to the router type information request of the first TCP packet, and find the type information of the router from its internal information record. And returning type information of the router to the mobile terminal device.
  • Step S7 the mobile terminal device determines, according to the type information of the router, whether the router is a public network IP router or a private network IP router;
  • the application of the mobile terminal device may determine, according to the type information of the router, whether the router is a public network IP router or a private network IP router. If it is a public network IP router, the method may skip to step S8, so that the mobile terminal device accesses and manages the router by directly using a public network IP address; if it is a private network IP router, the method Going to step S12, the mobile terminal device accesses and manages the router through packet forwarding of the server.
  • Step S8 the mobile terminal device requests the public IP address information of the router from the server;
  • the application of the mobile terminal device may send a second TCP packet to the server, where the second TCP packet may carry the public network IP of the router.
  • Step S9 The server returns the public network IP address information of the router to the mobile terminal device.
  • the server may respond to the public network IP address request, and find the WAN port IP address of the router in its internal information record, and The WAN port IP address of the router is returned to the mobile terminal device as the public network IP address information.
  • Step S10 The mobile terminal device directly initiates a router access request to the router according to the public network IP address information.
  • the application of the mobile terminal device may directly initiate a router access request to the router according to the public network IP address information, so as to directly address the server without going through the server.
  • the router performs access and management.
  • Step S11 The router responds to the router access request of the mobile terminal device, and directly returns a processing result to the mobile terminal device.
  • Step S12 the mobile terminal device sends a router access request to the server
  • the application of the mobile terminal device determines in step S7 that the router is a private network IP router based on the type information of the router, it may send a router access request to the server.
  • Step S13 the server forwards the router access request to the router
  • the server may forward the router access request to the server through a TCP long connection between the server and the router established in the step S4. Said router.
  • Step S14 the router responds to the router access request, and returns a processing result to the server;
  • the router After receiving the router access request forwarded by the server, the router may respond to the router access request, and pass the processing result to the server A long TCP connection is returned to the server.
  • Step S15 The server forwards the processing result of the router to the mobile terminal device.
  • the remote management method of the router may first distinguish that the router is a public network IP router and a private network IP router, and remotely manage the public IP router through the mobile terminal device.
  • the server will provide the public network device with the public network IP address of the router, so that the mobile terminal device can directly access and manage the public network IP router according to the public network IP address information, without The packet forwarding is performed by the server, so that the overhead and cost of the server can be effectively reduced.
  • the present application further provides a router remote management device according to the above-mentioned router remote management method.
  • FIG. 2 is a schematic structural diagram of an embodiment of a router remote management device provided by the present application.
  • the router remote management device 200 can be a mobile terminal device, which is mainly used for remote access and management of a router.
  • the router remote management device 200 mainly includes the following functional modules:
  • the first information obtaining module 210 is configured to acquire type information of the router from the server.
  • the determining module 220 is configured to determine, according to the type information of the router provided by the server, whether the router is a public network IP router or a private network IP router;
  • the second information obtaining module 230 is configured to acquire public network IP address information of the router from the server when the router is a public network IP router;
  • the router management module 240 is configured to directly initiate an access request to the router by using the public network IP address information, and receive a processing result returned by the router, so as to directly perform remote access and management on the router.
  • the router management module 240 is further configured to: when the router is a private network IP router, initiate an access request to the router by using the server, and receive a processing result that is forwarded by the router by using the server.
  • the router management module 240 can include:
  • the first access request initiating unit 241 is configured to directly initiate an access request to the router by using the public network IP address information
  • the first processing result receiving unit 242 is configured to receive a processing result that is directly returned to the router remote management device 200 by the router in response to the access request;
  • the second access request initiating unit 243 is configured to initiate a router access request to the server when the router is a private network IP router, to notify the server to forward the router access request to the server through a pre-established TCP long connection.
  • the second processing result receiving unit 244 is configured to receive, from the server, a processing result that is sent by the router in response to the router access request and forwarded by the server.
  • the functional modules of the router remote management device 200 may be software modules or functional modules combined with software and hardware, which may be implemented by a processor to implement the functions as described above.
  • the router remote management device 200 may further have other functional modules to implement the specific steps of the remote management method of the router. For details, refer to the corresponding description of the foregoing method embodiments.
  • the processor is executed, and the processor may execute all or part of the steps including the above method embodiments when executed.
  • the processor may be implemented as one or more processor chips, or may be part of one or more application specific integrated circuits (ASICs); and the foregoing storage medium may include but not be limited to the following types. Storage medium: flash memory, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc. .

Landscapes

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

Abstract

本申请提供一种路由器远程管理方法。所述路由器远程管理方法包括:向服务器请求路由器的类型信息;根据所述服务器提供的所述路由器的类型信息,判断所述路由器是公网IP路由器还是私网IP路由器;若所述路由器为公网IP路由器,向所述服务器请求所述路由器的公网IP地址信息;利用所述公网IP地址信息直接对所述路由器发起访问请求,并接收所述路由器返回的处理结果,以实现对所述路由器直接进行远程访问和管理。本申请提供一种路由器远程管理系统和设备。

Description

一种路由器远程管理方法、系统和设备
本申请要求2015年9月7日提交的申请号为:201510563550.9、发明名称为“一种路由器远程管理方法、系统和设备”的中国专利申请的优先权,其全部内容合并在此。
技术领域
本申请主要涉及通信技术,特别地,涉及一种路由器远程管理方法、系统和设备。
背景技术
路由器(Router)是一种在网络中连接各个局域网和广域网的网络设备,其主要功能是根据信道的情况自动选择和设定路由,以通过最佳路径并且按前后顺序进行数据转发。随着无线通信技术和移动互联网技术的发展,智能路由器的应用越来越广泛;目前大部分智能路由器提供了利用智能手机或者其他移动终端设备的APP(应用程序)进行远程管理的功能。
传统的路由器远程管理需要在路由器和服务器之间建立TCP长连接进行通信,移动终端设备在需要对路由器进行远程管理时通过APP将路由器访问请求发送给服务器,然后服务器再通过TCP长连接将访问请求转发给路由器;路由器处理访问请求之后返回报文给服务器,服务器再转发给移动终端设备。
然而,采用上述路由器远程管理方案,移动终端设备和路由器之间的所有报文都需要通过服务器进行转发,随着路由器数量的逐渐增加, 采用上述方案将给服务器带来越来越严重的开销和成本。
有鉴于此,有必要提供一种可以降低服务器开销和成本的路由器远程管理方案。
发明内容
本申请的其中一个目的在于为解决上述问题而提供了一种路由器远程管理方法,本申请的另一个目的在于提供一种采用上述路由器远程管理方法的系统和设备。
本申请提供的路由器远程管理方法,包括:向服务器请求路由器的类型信息;
根据所述服务器提供的所述路由器的类型信息,判断所述路由器是公网IP路由器还是私网IP路由器;若所述路由器为公网IP路由器,向所述服务器请求所述路由器的公网IP地址信息;利用所述公网IP地址信息直接对所述路由器发起访问请求,并接收所述路由器返回的处理结果,以实现对所述路由器直接进行远程访问和管理。
作为本申请提供的路由器远程管理方法的一种改进,其还包括:若所述路由器为私网IP路由器,所述路由器与所述服务器建立TCP长连接,通过所述服务器向所述路由器发起访问请求,并接收所述路由器通过所述服务器转发的处理结果,以实现通过所述服务器与所述路由器之间预先建立的TCP长连接对所述路由器进行远程访问和管理。
作为本申请提供的路由器远程管理方法的一种改进,其还包括:所述服务器接收来自所述路由器的第一UDP报文,所述第一UDP报文携带有所述路由器的WAN口IP地址和端口信息;所述服务器根据所述WAN口IP地址和端口信息,判断出所述路由器是公网IP路由器还是私网IP路由器;所述服务器记录所述路由器的类型信息并通过第二UDP报文返回给所述路由器。
作为本申请提供的路由器远程管理方法的一种改进,其还包括:所述路由器在根据所述服务器返回的类型信息获知其自身为私网IP路由器时,与所述服务器建立TCP长连接。
作为本申请提供的路由器远程管理方法的一种改进,其还包括:所述服务器在接收到来自所述移动终端设备的路由器访问请求之后,通过所述TCP长连接将所述路由器访问请求转发给所述路由器;所述服务器通过所述TCP长连接接收所述路由器响应所述路由器访问请求的处理结果,并将所述处理结果转发给所述移动终端设备。
本申请提供的路由器远程管理系统,包括路由器、服务器和移动终端设备;所述移动终端设备,用于向所述服务器请求所述路由器的类型信息,并在根据所述服务器提供的类型信息判断出所述路由器为公网IP路由器时,向所述服务器请求所述路由器的公网IP地址信息,并利用所述公网IP地址信息直接对所述路由器进行远程访问和管理;所述路由器,用于响应所述移动终端设备的请求向所述移动终端设别提供所述路由器的类型信息,并在所述路由器为公网IP路由器时向所述移动终端设备提供所述路由器的公网IP地址信息。
作为本申请提供的路由器远程管理系统的一种改进,所述移动终端设备还用于在所述路由器为私网IP路由器时,通过所述服务器向所述路由器发起访问请求并接收所述路由器通过所述服务器转发的处理结果,以实现通过所述服务器与所述路由器之间预先建立的TCP长连接对所述路由器进行远程访问和管理。
作为本申请提供的路由器远程管理系统的一种改进,所述服务器,还用于接收来自所述路由器提供的WAN口IP地址和端口信息,根据所述WAN口IP地址和端口信息获得所述路由器的类型信息,并且记录所述路由器的类型信息且返回给所述路由器。
本申请提供的路由器远程管理设备,包括:第一信息获取模块,用于从服务器获取路由器的类型信息;判断模块,用于根据所述服务器提供的所述路由器的类型信息,判断所述路由器是公网IP路由器还是私网IP路由器;第二信息获取模块,用于在所述路由器为公网IP路由器时向所述服务器获取所述路由器的公网IP地址信息;路由器管理模块,用于利用所述公网IP地址信息直接对所述路由器发起访问请求,并接收所述路由器返回的处理结果,以实现对所述路由器直接进行远程访问和管 理。
作为本申请提供的路由器远程管理设备的一种改进,所述路由器管理模块,还用于在所述路由器为私网IP路由器时通过所述服务器向所述路由器发起访问请求,并接收所述路由器通过所述服务器转发的处理结果。
相较于现有技术,本申请提供的路由器远程管理方法、系统和设备可以首先区分出路由器是公网IP路由器和私网IP路由器,并且在使用者通过移动终端设备对所述公网IP路由器进行远程管理时,服务器将向所述移动终端设备提供所述路由器的公网IP地址,因此所述移动终端设备便可以根据所述公网IP地址信息直接对所述公网IP路由器进行访问和管理,无需通过所述服务器进行报文转发,从而可以有效地降低服务器的开销和成本。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图,其中:
图1是本申请提供的路由器远程管理方法一种实施例的示意图;
图2是本申请提供的路由器远程管理设备一种实施例的结构示意图。
具体实施方式
为了使本申请所解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的路由器远程管理方法主要是根据路由器的IP地址和端口信息将路由器区分为两种类型:公网IP路由器和私网IP路由器,并且对于公网IP路由器,服务器可以将指示移动终端设备直接通过公网IP对路由器进行访问和管理,而无需在公网IP路由器和服务器之间建立TCP长连接并通过服务器进行报文转发,从而可以有效地降低服务器 的开销和成本。
请一并参阅图1,其为本申请提供的路由器远程管理方法一种实施例的示意图;在图1中,适用于私网IP路由器和公网IP路由器的通用消息采用实线表示,与私网IP路由器相关的消息采用虚线表示,与公网IP路由器相关的消息采用点划线表示。具体地,路由器远程管理方法主要包括:
步骤S1,服务器接收路由器上报的第一UDP报文,所述UDP报文携带所有WAN口的IP地址和端口信息;
具体地,所述路由器在上电、或者WAN口断开重连、或者WAN口IP地址发生改变时,可以向服务器发送第一UDP(User Datagram Protocol,用户数据报协议)报文。其中,所述UDP报文携带有所述路由器的IP地址信息,比如其WAN口IP地址以及端口(Port)信息。
步骤S2,所述服务器根据所述路由器的WAN口的IP地址和端口信息,判断所述路由器是公网IP路由器还是私网IP路由器;
所述服务器在接收到所述路由器发来的第一UDP报文之后,可以提取出所述第一UDP报文承载的WAN口IP地址和端口信息,并判断所述WAN口IP地址和端口信息是否与Socket通信中对端的IP地址和端口信息一致。如果二者是一致的,则可以判断出所述路由器为公网IP路由器;反之,如果二者不一致,则可以判断出所述路由器为私网IP路由器。
步骤S3,所述服务器记录所述路由器的类型信息并通过第二UDP报文返回给所述路由器;
在判断出所述路由器的类型之后,所述服务器可以对所述路由器的类型信息进行记录,以便于后续移动终端设备请求时可以从内部的信息记录中直接获取到所述路由器的类型信息并提供给所述移动终端设备。并且,所述服务器还可以将所述路由器的类型信息承载在第二UDP报文中,并通过所述第二UDP报文输出给所述路由器。
步骤S4,所述路由器在根据所述第二UDP报文获知其自身为私网IP路由器时,与所述服务器建立TCP长连接;
具体地,所述路由器可以接收到所述服务器返回的第二UDP报文,并从所述第二UDP报文提取出所述路由器的类型信息;根据所述类型信息,所述路由器可以获知其自身是私网IP路由器还是公网IP路由器。若所述路由器为私网IP路由器,其可以与所述服务器建立TCP长连接;相反,如果所述路由器为公网IP路由器,则无需与所述服务器建立TCP长连接,也即是说,在这种情况下所述步骤S4可以省略。
步骤S5,移动终端设备向所述服务器请求所述路由器的类型信息;
当用户需要通过移动终端设备的应用程序(APP)对所述路由器进行远程管理时,其可以首先通过所述移动终端设备的APP向所述服务器发送第一TCP报文,所述第一TCP报文可以携带有路由器类型信息请求,其主要用于请求所述服务器将所述路由器的类型信息提供给所述移动终端设备。
步骤S6,所述服务器向所述移动终端设备返回所述目标路由器的类型信息;
所述服务器在接收到来自所述移动终端设备的第一TCP报文之后,可以响应所述第一TCP报文的路由器类型信息请求,并从其内部的信息记录查找到所述路由器的类型信息,并将所述路由器的类型信息返回给所述移动终端设备。
步骤S7,所述移动终端设备根据所述路由器的类型信息判断所述路由器是公网IP路由器还是私网IP路由器;
所述移动终端设备的应用程序从所述服务器获得所述路由器的类型信息之后,可以根据所述路由器的类型信息判断出所述路由器是公网IP路由器还是私网IP路由器。如果是公网IP路由器,则本方法可以跳转至步骤S8,以实现所述移动终端设备通过直接通过公网IP地址对所述路由器进行访问和管理;如果是私网IP路由器,则本方法跳转至步骤S12,以实现所述移动终端设备通过所述服务器的报文转发来对所述路由器进行访问和管理。
步骤S8,所述移动终端设备向所述服务器请求所述路由器的公网IP地址信息;
具体地,如果所述路由器为公网IP路由器,所述移动终端设备的应用程序可以向所述服务器发送第二TCP报文,所述第二TCP报文可以携带有所述路由器的公网IP地址请求,以请求所述服务器将所述路由器的公网IP地址信息提供给所述移动终端设备。
步骤S9,所述服务器向所述移动终端设备返回所述路由器的公网IP地址信息;
所述服务器在接收到来自所述移动终端设备的第二TCP报文之后,可以响应所述公网IP地址请求,在其内部的信息记录中查找出所述路由器的WAN口IP地址,并将所述路由器的WAN口IP地址作为所述公网IP地址信息返回给所述移动终端设备。
步骤S10,所述移动终端设备根据所述公网IP地址信息直接向所述路由器发起路由器访问请求;
所述移动终端设备的应用程序在接收到所述公网IP地址信息之后,可以根据所述公网IP地址信息,直接向所述路由器发起路由器访问请求,以实现不经过所述服务器而直接对所述路由器进行访问和管理。
步骤S11,所述路由器响应所述移动终端设备的路由器访问请求,并向所述移动终端设备直接返回处理结果。
步骤S12,所述移动终端设备向所述服务器发送路由器访问请求;
如果在步骤S7中所述移动终端设备的应用程序根据所述路由器的类型信息判断出所述路由器是私网IP路由器,其可以向所述服务器发送路由器访问请求。
步骤S13,所述服务器将所述路由器访问请求转发给所述路由器;
所述服务器在接收到来自所述移动终端设备的路由器访问请求之后,可以通过在所述步骤S4建立的所述服务器与所述路由器之间的TCP长连接,将所述路由器访问请求转发给所述路由器。
步骤S14,所述路由器响应所述路由器访问请求,并向所述服务器返回处理结果;
所述路由器在接收到所述服务器转发的路由器访问请求之后,可以对所述路由器访问请求进行响应,并将处理结果通过其与所述服务器之 间的TCP长连接返回给所述服务器。
步骤S15,所述服务器将所述路由器的处理结果转发给所述移动终端设备。
相较于现有技术,在本申请提供的路由器远程管理方法可以首先区分出路由器是公网IP路由器和私网IP路由器,并且在使用者通过移动终端设备对所述公网IP路由器进行远程管理时,服务器将向所述移动终端设备提供所述路由器的公网IP地址,因此所述移动终端设备便可以根据所述公网IP地址信息直接对所述公网IP路由器进行访问和管理,无需通过所述服务器进行报文转发,从而可以有效地降低服务器的开销和成本。
基于上述路由器远程管理方法,本申请还进一步提供一种路由器远程管理设备,请参阅图2,其为本申请提供的路由器远程管理设备一种实施例的结构示意图。所述路由器远程管理设备200可以为移动终端设备,其主要用于对路由器进行远程访问和管理。具体地,所述路由器远程管理设备200主要包括以下功能模块:
第一信息获取模块210,用于从服务器获取路由器的类型信息;
判断模块220,用于根据所述服务器提供的所述路由器的类型信息,判断所述路由器是公网IP路由器还是私网IP路由器;
第二信息获取模块230,用于在所述路由器为公网IP路由器时向所述服务器获取所述路由器的公网IP地址信息;
路由器管理模块240,用于利用所述公网IP地址信息直接对所述路由器发起访问请求,并接收所述路由器返回的处理结果,以实现对所述路由器直接进行远程访问和管理。
进一步地,所述路由器管理模块240,还用于在所述路由器为私网IP路由器时通过所述服务器向所述路由器发起访问请求,并接收所述路由器通过所述服务器转发的处理结果。
比如,在具体实施例中,所述路由器管理模块240可以包括:
第一访问请求发起单元241,用于利用所述公网IP地址信息直接对所述路由器发起访问请求;
第一处理结果接收单元242,用于接收所述路由器响应所述访问请求而直接返回给所述路由器远程管理设备200的处理结果;
第二访问请求发起单元243,用于在所述路由器为私网IP路由器时向所述服务器发起路由器访问请求,以通知所述服务器通过预先建立的TCP长连接将所述路由器访问请求转发给所述路由器;
第二处理结果接收单元244,用于从所述服务器接收所述路由器响应所述路由器访问请求并通过所述服务器转发的处理结果。
应当理解,本实施例提供的路由器远程管理设备200的功能模块可以为软件模块或者软硬件结合的功能模块,其可以通过处理器执行而实现如上所述的功能。并且,所述路由器远程管理设备200还可以具有其他功能模块来实现所述路由器远程管理方法各个具体步骤,具体可以参阅以上方法实施例的相应描述。
另外,所属技术领域的技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,并被通讯设备内部的处理器执行,前述的程序在被执行时处理器可以执行包括上述方法实施例的全部或者部分步骤。其中,所述处理器可以作为一个或多个处理器芯片实施,或者可以为一个或多个专用集成电路(Application Specific Integrated Circuit,ASIC)的一部分;而前述的存储介质可以包括但不限于以下类型的存储介质:闪存(Flash Memory)、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (10)

  1. 一种路由器远程管理方法,其特征在于,包括:
    向服务器请求路由器的类型信息;
    根据所述服务器提供的所述路由器的类型信息,判断所述路由器是公网IP路由器还是私网IP路由器;
    若所述路由器为公网IP路由器,向所述服务器请求所述路由器的公网IP地址信息;
    利用所述公网IP地址信息直接对所述路由器发起访问请求,并接收所述路由器返回的处理结果,以实现对所述路由器直接进行远程访问和管理。
  2. 根据权利要求1所述的路由器远程管理方法,其特征在于,还包括:若所述路由器为私网IP路由器,所述路由器与所述服务器建立TCP长连接,通过所述服务器向所述路由器发起访问请求,并接收所述路由器通过所述服务器转发的处理结果,以实现通过所述服务器与所述路由器之间预先建立的TCP长连接对所述路由器进行远程访问和管理。
  3. 根据权利要求1所述的路由器远程管理方法,其特征在于,还包括:
    所述服务器接收来自所述路由器的第一UDP报文,所述第一UDP报文携带有所述路由器的WAN口IP地址和端口信息;
    所述服务器根据所述WAN口IP地址和端口信息,判断出所述路由器是公网IP路由器还是私网IP路由器;
    所述服务器记录所述路由器的类型信息并通过第二UDP报文返回给所述路由器。
  4. 根据权利要求3所述的路由器远程管理方法,其特征在于,还包括:所述路由器在根据所述服务器返回的类型信息获知其自身为私网IP路由器时,与所述服务器建立TCP长连接。
  5. 根据权利要求4所述的路由器远程管理方法,其特征在于,还包括:
    所述服务器在接收到来自所述移动终端设备的路由器访问请求之 后,通过所述TCP长连接将所述路由器访问请求转发给所述路由器;
    所述服务器通过所述TCP长连接接收所述路由器响应所述路由器访问请求的处理结果,并将所述处理结果转发给所述移动终端设备。
  6. 一种路由器远程管理系统,其特征在于,包括路由器、服务器和移动终端设备;
    所述移动终端设备,用于向所述服务器请求所述路由器的类型信息,并在根据所述服务器提供的类型信息判断出所述路由器为公网IP路由器时,向所述服务器请求所述路由器的公网IP地址信息,并利用所述公网IP地址信息直接对所述路由器进行远程访问和管理;
    所述路由器,用于响应所述移动终端设备的请求向所述移动终端设别提供所述路由器的类型信息,并在所述路由器为公网IP路由器时向所述移动终端设备提供所述路由器的公网IP地址信息。
  7. 根据权利要求6所述的路由器远程管理系统,其特征在于,所述移动终端设备还用于在所述路由器为私网IP路由器时,通过所述服务器向所述路由器发起访问请求并接收所述路由器通过所述服务器转发的处理结果,以实现通过所述服务器与所述路由器之间预先建立的TCP长连接对所述路由器进行远程访问和管理。
  8. 根据权利要求6所述的路由器远程管理系统,其特征在于,所述服务器,还用于接收来自所述路由器提供的WAN口IP地址和端口信息,根据所述WAN口IP地址和端口信息获得所述路由器的类型信息,并且记录所述路由器的类型信息且返回给所述路由器。
  9. 一种路由器远程管理设备,其特征在于,包括:
    第一信息获取模块,用于从服务器获取路由器的类型信息;
    判断模块,用于根据所述服务器提供的所述路由器的类型信息,判断所述路由器是公网IP路由器还是私网IP路由器;
    第二信息获取模块,用于在所述路由器为公网IP路由器时向所述服务器获取所述路由器的公网IP地址信息;
    路由器管理模块,用于利用所述公网IP地址信息直接对所述路由器发起访问请求,并接收所述路由器返回的处理结果,以实现对所述路由 器直接进行远程访问和管理。
  10. 根据权利要求9所述的路由器远程管理设备,其特征在于,所述路由器管理模块,还用于在所述路由器为私网IP路由器时通过所述服务器向所述路由器发起访问请求,并接收所述路由器通过所述服务器转发的处理结果。
PCT/CN2016/097749 2015-09-07 2016-08-31 一种路由器远程管理方法、系统和设备 WO2017041660A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510563550.9 2015-09-07
CN201510563550.9A CN105245359B (zh) 2015-09-07 2015-09-07 一种路由器远程管理方法、系统和设备

Publications (1)

Publication Number Publication Date
WO2017041660A1 true WO2017041660A1 (zh) 2017-03-16

Family

ID=55042870

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097749 WO2017041660A1 (zh) 2015-09-07 2016-08-31 一种路由器远程管理方法、系统和设备

Country Status (2)

Country Link
CN (1) CN105245359B (zh)
WO (1) WO2017041660A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245359B (zh) * 2015-09-07 2018-09-28 上海斐讯数据通信技术有限公司 一种路由器远程管理方法、系统和设备
CN105634925B (zh) * 2016-01-20 2018-11-09 北京乐动卓越科技有限公司 一种用户间可扩展的通信方法及系统
CN105553712B (zh) * 2016-02-15 2019-07-12 上海斐讯数据通信技术有限公司 一种实现双通道连接的服务器、终端、方法和系统
CN109951308A (zh) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 一种路由器配置方法、装置及存储介质
CN110493134B (zh) * 2018-05-15 2022-02-25 视联动力信息技术股份有限公司 一种公网地址获取方法和装置
CN111884938B (zh) * 2020-06-30 2022-12-30 海尔优家智能科技(北京)有限公司 路由器信息采集方法及装置
CN114928598A (zh) * 2022-03-28 2022-08-19 惠州高盛达科技有限公司 一种用于远程管理调试路由器的系统和方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037223A (ko) * 2000-11-13 2002-05-18 남민우 공인 및 사설 아이피주소를 이용한 통신서비스방법 및시스템
CN101056271A (zh) * 2007-06-06 2007-10-17 杭州华三通信技术有限公司 穿越nat的方法及相应的通信终端和nat设备
CN104113530A (zh) * 2014-06-26 2014-10-22 小米科技有限责任公司 访问路由器的方法及装置
CN105245359A (zh) * 2015-09-07 2016-01-13 上海斐讯数据通信技术有限公司 一种路由器远程管理方法、系统和设备
CN105429884A (zh) * 2015-10-30 2016-03-23 上海斐讯数据通信技术有限公司 通过终端来管理不同网络中路由器的方法和系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135443B (zh) * 2014-06-27 2018-07-27 小米科技有限责任公司 路由器控制方法及装置
CN104243210B (zh) * 2014-09-17 2018-01-05 湖北盛天网络技术股份有限公司 远程访问路由器管理页面的方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037223A (ko) * 2000-11-13 2002-05-18 남민우 공인 및 사설 아이피주소를 이용한 통신서비스방법 및시스템
CN101056271A (zh) * 2007-06-06 2007-10-17 杭州华三通信技术有限公司 穿越nat的方法及相应的通信终端和nat设备
CN104113530A (zh) * 2014-06-26 2014-10-22 小米科技有限责任公司 访问路由器的方法及装置
CN105245359A (zh) * 2015-09-07 2016-01-13 上海斐讯数据通信技术有限公司 一种路由器远程管理方法、系统和设备
CN105429884A (zh) * 2015-10-30 2016-03-23 上海斐讯数据通信技术有限公司 通过终端来管理不同网络中路由器的方法和系统

Also Published As

Publication number Publication date
CN105245359A (zh) 2016-01-13
CN105245359B (zh) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2017041660A1 (zh) 一种路由器远程管理方法、系统和设备
JP6517819B2 (ja) プロキシipアドレスの識別方法及び装置
US9705864B2 (en) Media session resumption in web session restoration
TWI591987B (zh) 負載平衡下的資料交換系統、方法及裝置
US9231908B2 (en) Ensuring symmetric routing to private network
US9825861B2 (en) Packet forwarding method, apparatus, and system
WO2019170114A1 (zh) 发送报文的方法、网络设备及计算机可读存储介质
WO2015124045A1 (zh) 一种通道建立的方法和设备
JP2014510486A (ja) 割り当てられたネットワークアドレスを有するデバイスにアクセスするクライアントローカルプロキシサーバを使用したシステムおよび方法
TW201320804A (zh) 網路系統之連線建立管理方法及其相關系統
US20170078430A1 (en) System and method for interworking between ndn and cdn
WO2017071087A1 (zh) 信息的传输方法、装置和设备
US20170214734A1 (en) Methods and apparatuses for information transmission
WO2016201966A1 (zh) 一种nat穿透方法、装置及系统
WO2017166522A1 (zh) 终端设备间传输文件的方法、终端设备及文件传输系统
US20160164845A1 (en) Implementing network communication
US20170171251A1 (en) Method and apparatus for enhancing inter-carrier communications
US11019217B2 (en) Method and apparatus for communications between carriers
TWI523456B (zh) 網路通訊之連線方法與管理伺服器
US10084707B2 (en) Methods and devices for sharing a service among multiple devices
WO2015090087A1 (zh) 路由扩散的方法及装置
TWI555357B (zh) Effectively maintain the NAT channel service method
CN110351159B (zh) 一种跨内网的网络性能测试方法及装置
WO2013023465A1 (zh) 身份位置分离与传统网络互联互通方法、ilr和asr
US9455911B1 (en) In-band centralized control with connection-oriented control protocols

Legal Events

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

Ref document number: 16843598

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16843598

Country of ref document: EP

Kind code of ref document: A1