CN102480431A - Remote control method and system based on two-layer network - Google Patents

Remote control method and system based on two-layer network Download PDF

Info

Publication number
CN102480431A
CN102480431A CN 201010574626 CN201010574626A CN102480431A CN 102480431 A CN102480431 A CN 102480431A CN 201010574626 CN201010574626 CN 201010574626 CN 201010574626 A CN201010574626 A CN 201010574626A CN 102480431 A CN102480431 A CN 102480431A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
layer
control
packet
packets
device
Prior art date
Application number
CN 201010574626
Other languages
Chinese (zh)
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

Links

Abstract

The invention provides a remote control method and a remote control system based on a two-layer network. The remote control method comprises the following steps that: control equipment sends a two-layer takeover message to controlled equipment, and the controlled equipment which receives the message judges whether to be taken over and feeds back a two-layer takeover response message to the control equipment according to a judgment result; if the two-layer takeover response message indicates the success of takeover, the control equipment sends a two-layer control message to the controlled equipment to remotely control the controlled equipment; and the controlled equipment performs corresponding operation according to the content of the two-layer control message and feeds back a two-layer control response message to the control equipment. The messages are packaged by adopting a two-layer protocol. By the method and the system, network equipment is convenient to manage and maintain remotely.

Description

基于二层网络的远程控制方法和系统 Method and system for remote control of a network-based Layer

技术领域 FIELD

[0001] 本发明涉及远程控制技术领域,尤其涉及一种基于二层网络的远程控制方法和系统。 [0001] The present invention relates to remote control technology, and in particular, to a method and system for remote control of Network Layer.

背景技术 Background technique

[0002] 在现有的瘦无线接入点(Fit AP)设计中,Fit AP本身通常被作为一个基本的网络设备进行设计,所有的操作和控制方法也从这个角度入手。 [0002] design, Fit AP itself is typically designed as a basic network device in the conventional thin wireless access point (Fit AP), all the operation and control methods start from this point. 也就是说,Fit AP可能会提供串口控制功能和telnet功能等等,在维护或者调试过程中,通过这些手段可以实现对Fit AP In other words, Fit AP may provide telnet and serial port control functions, etc., in maintenance or debugging process can be achieved by these means to Fit AP

的管理。 Management.

[0003] 目前,Fit AP和接入控制器(AC)之间的注册协议主要关注三层功能,所以Fit AP 注册的前提是必须成功获取到IP地址。 [0003] Currently, registration agreement between the Fit AP and an access controller (AC) focuses on three functions, so the Fit AP premise registration is necessary to successfully obtain an IP address. 然而,由于Fit AP通常安装在一些非常不容易到达的位置,例如楼顶、电线杆或者地铁隧道等等,当这些Fit AP无法获取到IP地址时,Fit AP就形成了一个孤岛,由于位置不可达导致串口无法使用,由于没有IP地址导致远程的方式无法访问,最终导致Fit AP对于此类问题的维护和处理非常困难。 However, since Fit AP usually installed at some locations very easy to reach, for example the roof, underground tunnels or utility pole, etc., when the Fit AP can not obtain an IP address, a Fit AP island is formed, since the location is not of lead can not use the serial port, because there is no way lead to remote IP address can not access, resulting in Fit AP very difficult to maintain and deal with such problems.

[0004] 可见,由于现有的远程控制方法都是基于三层网络协议的,这对Fit AP等设备的远程管理和维护造成困难。 [0004] visible, due to the existing remote control methods are based on three-tier network protocol, this remote management of the Fit AP and other equipment and maintenance difficult.

发明内容 SUMMARY

[0005] 本发明提出一种基于二层网络的远程控制方法,能够便于网络设备的远程管理和维护。 [0005] A remote control method is proposed based on the Layer 2 network, capable of facilitating remote management and maintenance of network devices according to the present invention.

[0006] 本发明还提出一种基于二层网络的远程控制系统,能够便于网络设备的远程管理和维护。 [0006] The present invention also provides a remote control system based on the layer 2 network, capable of facilitating remote management and maintenance of network devices.

[0007] 本发明的技术方案是这样实现的: [0007] aspect of the present invention is implemented as follows:

[0008] 一种基于二层网络的远程控制方法,应用于包括控制设备和被控设备的二层网络远程控制系统,该方法包括: [0008] The remote control method based on layer 2 network, layer 2 network is applied to the remote control system includes a control device and a controlled device, the method comprising:

[0009] 控制设备向被控设备发送二层接管报文,接收到所述二层接管报文的被控设备判断自身是否能够被接管,并根据判断结果向控制设备反馈二层接管回应报文; [0009] The control device to the controlled device sends packets to take over Layer, Layer takeover receives the message determines whether a controlled device itself is able to take over and to take over the response packet to the control apparatus according to the determination result of the feedback Layer ;

[0010] 当所述二层接管回应报文的内容为接管成功时,控制设备向该被控设备发送二层控制报文,对所述被控设备进行远程控制;所述被控设备按照所述二层控制报文的内容执行相应操作,并向控制设备反馈二层控制回应报文; [0010] When the content of the response packets Layer takeover takeover is successful, a control device to control the controlled device transmits Layer packets, to remotely control the controlled apparatus; the controlled device in accordance with the said control content packets Layer performs a corresponding operation, to the control apparatus Layer feedback control response message;

[0011] 所述二层接管报文、二层接管回应报文、二层控制报文和二层控制回应报文均采用二层协议进行封装。 The [0011] Layer takeover packets, response packets takeover Layer, Layer Layer control packets and response control packets are encapsulated Layer 2 protocol.

[0012] 一种基于二层网络的远程控制系统,包括控制设备和被控设备, [0012] Network Layer Based on remote control system, comprising a control device and a controlled device,

[0013] 所述控制设备,用于向被控设备发送二层接管报文,接收被控设备反馈的二层接管回应报文,当所述二层接管回应报文的内容为接管成功时,向所述被控设备发送二层控制报文,对所述被控设备进行远程控制;[0014] 所述被控设备,用于接收来自控制设备二层接管报文,判断自身是否能够被接管, 并根据判断结果向控制设备反馈二层接管回应报文;接收来自控制设备的二层控制报文, 按照所述二层控制报文的内容执行相应操作,并向控制设备反馈二层控制回应报文; [0013] The control apparatus for transmitting packets takeover Layer, Layer feedback controlled device receiving the response packet took to the controlled device, when the content of the response packet Layer takeover when the takeover is successful, Layer to the controlled device transmits a control packet, the remote control of the controlled device; [0014] the controlled device for receiving from the control apparatus takes over Layer packets, determines whether itself is taken over , and takes over control apparatus according to the determination result to the feedback response packets Layer; Layer receiving a control packet from the control device, perform a corresponding operation according to the contents of control packets Layer, Layer feedback control to the control apparatus to respond message;

[0015] 所述二层接管报文、二层接管回应报文、二层控制报文和二层控制回应报文均采用二层协议进行封装。 The [0015] Layer takeover packets, response packets takeover Layer, Layer Layer control packets and response control packets are encapsulated Layer 2 protocol.

[0016] 可见,本发明提出的基于二层网络的远程控制方法和系统,能够基于二层网络协议实现远程控制,在无法实现三层访问或者三层协议本身存在问题时避免到设备现场进行问题处理,因此能够便于网络设备的远程管理和维护。 [0016] visible, layer 2 network based remote control system and method proposed by the present invention, remote control can be based on network Layer protocol, while avoiding the access problem can not be achieved or Layer 3 protocol device itself to issue site process, thereby facilitating the network device remote management and maintenance.

附图说明 BRIEF DESCRIPTION

[0017] 图1为本发明提出的二层网络的远程控制方法流程图; The remote control method [0017] Figure 1 is a layer 2 network of the invention provides a flow chart;

[0018] 图2为TLV的结构示意图; [0018] FIG. 2 is a schematic view of the TLV;

[0019] 图3为本发明实施例基于二层网络的远程控制流程图; [0019] Example 3 Layer Network remote control flowchart of the present invention;

[0020] 图4为本发明中控制设备和被控设备的结构示意图。 [0020] FIG. 4 is a schematic view of the invention in the structure of the control apparatus and the controlled apparatus.

具体实施方式 detailed description

[0021] 本发明提出一种基于二层网络的远程控制方法,该方法完全基于二层协议实现远程控制。 [0021] The present invention provides a remote control method based on layer 2 network, the remote control method is fully based Layer 2 protocol. 如图1为本发明提出的二层网络的远程控制方法流程图,应用于包括控制设备和被控设备的二层网络远程控制系统,该方法包括: The remote control method of the present invention, Layer 1 of the flowchart of the proposed network, applied to a control device and a remote control system controlled Layer 2 network devices, the method comprising:

[0022] 步骤101 :控制设备向被控设备发送二层接管报文; [0022] Step 101: the control device sends packets to Layer takes over the controlled device;

[0023] 步骤102 :接收到所述二层接管报文的被控设备判断自身是否能够被接管,并根据判断结果向控制设备反馈二层接管回应报文; [0023] Step 102: after receiving the takeover Layer packet determines whether the controlled device can be taken over itself, and taking over the response packet Layer feedback to the control device based on the determination result;

[0024] 步骤103 :当所述二层接管回应报文的内容为接管成功时,控制设备向该被控设备发送二层控制报文,对所述被控设备进行远程控制; [0024] Step 103: when the takeover Layer response packet content for successful takeover, the control device to control the controlled device transmits Layer packets, remotely controlling the controlled device;

[0025] 步骤104 :所述被控设备按照所述二层控制报文的内容执行相应操作,并向控制设备反馈二层控制回应报文。 [0025] Step 104: the controlled device to perform a corresponding operation according to the content of the floor control message to the control device controls the feedback Layer response packet.

[0026] 通过上述过程,实现了控制设备对被控设备的远程控制。 [0026] Through the above process, the remote control device to achieve the control of the controlled device. 上述步骤101之前可以进一步包括:控制设备广播二层发现报文,接收到该二层发现报文的被控设备向所述控制设备反馈二层发现回应报文,控制设备记录反馈所述二层发现回应报文的被控设备。 Before the above-described step 101 may further comprise: a control device broadcasts discovery packets Layer, Layer receiving the discovery message to the controlled device to the control device feedback Layer discovery response packet, the feedback control of the recording apparatus Layer found that the response packet of controlled devices.

[0027] 当需要结束远程控制时,上述方法可以进一步包括: [0027] when it is necessary to end the remote control, the above-described method may further comprise:

[0028] 步骤105 :控制设备向被控设备发送二层接管断开报文,结束对所述被控设备的远程控制; [0028] Step 105: the control device sends packets to Layer takeover OFF the controlled device, controlling the remote end of the controlled device;

[0029] 步骤106 :被控设备向控制设备反馈二层接管断开回应报文。 [0029] Step 106: the controlled device to the control device takes over the second floor disconnect the feedback response packet.

[0030] 上述步骤102中,被控设备根据自身是否能够被接管的判断结果向控制设备反馈二层接管回应报文的方式可以为: [0030] In the above step 102, the controlled device takes over the response packet to the control apparatus of the embodiment according to the determination result of whether the feedback Layer itself may be capable of being taken over:

[0031] 当被控设备判断出自身的控制(Console)接口正在使用时,向控制设备反馈二层接管回应报文,该报文的内容为因Console接口正在使用导致接管失败; [0031] When the controlled device determines that the own control (Console) the interface is in use, the control device takes over Layer feedback response packet, the packet contents are being used by the Console Interface takeover failure cause;

[0032] 当被控设备判断出自身的Console接口未被使用并且能够被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管成功; [0032] When it is determined that the controlled device itself Console interface is not used and can be taken over by the control device takes over Layer feedback response packet, the packet content for successful takeover;

5[0033] 当被控设备判断出自身的Console接口未被使用但不能被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管失败。 5 [0033] When it is determined that the controlled device itself is not used but Console port can not be taken over, the feedback response message to the second floor to take over the control device, the packet content for takeover failure.

[0034] 上述过程中,所有的报文均采用二层协议进行封装,如采用以太网的802. 3协议或无线局域网的802. 11协议;并且,上述所有报文均包括一个以上对应类型的类型长度值(TLV),考虑到控制设备和被控设备之间的交互性,每个报文最好只包括一个TLV。 [0034] The above-described process, all packets are encapsulated using Layer protocol, such as Ethernet 802.3 protocol or the 802.11 wireless local area network protocol; and, all of the packets includes one or more of the corresponding type type length value (TLV), the control apparatus and controlled taking into account the interaction between devices, each message preferably includes only one TLV. 如图2为TLV的结构示意图,该TLV可以包括1个字节的Type字段、2个字节Length字段和1个字节的Value字段。 2 is a schematic diagram of the TLV structure, which may comprise a TLV Type field byte, 2 bytes and the Length field is 1 byte Value field.

[0035] 不同报文的TLV可以设定如下: [0035] The various packets of TLV may be set as follows:

[0036] 二层发现报文的TLV =Type字段取值为l、Length字段取值为0,Value字段为空。 [0036] Layer discovery packets TLV = Type field value of l, Length field value is 0, Value field is empty.

[0037] 二层发现回应报文的TLV =Type字段取值为2、Length字段取值为0,Value字段为空。 [0037] Layer discovery response message TLV = Type field value of 2, Length field value is 0, Value field is empty.

[0038] 二层接管报文的TLV =Type字段取值为3、Length字段取值为0,Value字段为空。 [0038] Layer packets takeover TLV = Type field value is 3, Length field value is 0, Value field is empty.

[0039] 二层接管断开报文的TLV =Type字段取值为4、Length字段取值为0,Value字段为空。 [0039] Layer takeover disconnect message TLV = Type field value of 4, Length field value is 0, Value field is empty.

[0040] 二层接管回应报文的TLV =Type字段取值为5、Length字段取值为1,Value字段取值为0、1或2 ;其中,Value字段取值为0表示接管成功,Value字段取值为1表示接管失败,Value字段取值为2表示因Console接口正在使用导致接管失败。 [0040] Layer takeover response packets TLV = Type field value of 5, Length field takes. 1, Value field value is 0, 1 or 2; wherein, Value field value of 0 indicates a successful takeover, Value field value of 1 indicates takeover failure, Value field value of 2 indicates Console interfaces in use due to a failure to take over the lead.

[0041] 二层接管断开回应报文的TLV :Type字段取值为6、Length字段取值为1,Value字段取值为0。 [0041] took over the second floor off the response packet TLV: Type field value of 6, Length field value is 1, Value field is 0.

[0042] 二层控制报文的TLV =Type字段取值为10、Length和Value字段的取值根据实际输入确定。 [0042] Layer control packets TLV = Type field value of 10, Length, and Value field value is determined according to the actual input.

[0043] 二层控制回应报文的TLV =Type字段取值为11、Length和Value字段的取值根据实际输入确定。 [0043] Layer response control packets TLV = Type field value is 11, Length, and Value field value is determined according to the actual input.

[0044] 以下举具体的实施例详细介绍,在本实施例中,远程控制系统包括1个控制设备和2个被控设备(即设备1和设备2)。 [0044] For the following specific examples in detail, in the present embodiment, the control system includes a remote control device 2 and the controlled devices (i.e., devices 1 and 2). 如图3为本发明实施例基于二层网络的远程控制流程图,包括: FIG 3 is a flowchart illustrating the remote control embodiment Layer network according to the invention, comprising:

[0045] 步骤301 :控制设备广播二层发现报文,该报文的目的MAC地址为FFFF-FFFF-FFFF-FFFF ;之后控制设备等待一段时间,等待接收被控设备的反馈。 [0045] Step 301: Control Layer device broadcasts discovery packets, the packet's destination MAC address FFFF-FFFF-FFFF-FFFF; control device waits a period of time after the controlled device waits to receive feedback.

[0046] 步骤302 :设备1收到该二层发现报文,向控制设备反馈二层发现回应报文,该报文的源MAC地址为设备1的MAC地址。 [0046] Step 302: The device receiving the Layer 1 discovery packets, feedback Layer discovery response packet, the source MAC address of the packet is the MAC address of the device 1 to the control device.

[0047] 步骤303 :控制设备记录设备1的MAC地址,代表设备1可以被远程控制。 [0047] Step 303: the recording control apparatus 1 of the MAC address, may be representative of a remote control device.

[0048] 步骤304 :设备2收到该二层发现报文,向控制设备反馈二层发现回应报文,该报文的源MAC地址为设备2的MAC地址。 [0048] Step 304: The device receiving the Layer 2 discovery packet, the control device feedback Layer discovery response packet, the source MAC address of the packet is the MAC address of the device 2.

[0049] 步骤305 :控制设备记录设备2的MAC地址,代表设备2可以被远程控制。 [0049] Step 305: the recording control device MAC address, 2 represents the device 2 can be remotely controlled.

[0050] 步骤306 :当控制设备需要对设备1进行远程控制时,向设备1发送二层接管报文。 [0050] Step 306: when the control device needs to be a remote control device, to take over transmission packet to a layer two device.

[0051] 步骤307 :设备1收到二层接管报文后,首先,判断设备1的Console接口是否正在被正常使用,如果正在被使用,则向控制设备反馈二层接管回应报文(其中Value取值为2,表明因Console接口正在使用导致接管失败);如果未被使用,则设备1的远程控制功能开始接管console接口工作,如果接管成功则向控制设备反馈二层接管回应报文(其中Value取值为0,表明接管成功);如果接管失败,则向控制设备反馈二层接管回应报文(其中Value取值为1,表明接管失败); [0051] Step 307: After receiving apparatus 1 takeover Layer packets, first, it is determined whether the device Console port 1 is being normally used, if being used, the feedback to the control device takes over Layer response packet (wherein Value a value of 2, indicating that due to the Console port is being used to take over the lead to failure); if not in use, the remote control device 1 starts to take over the console interface to work, if the takeover is successful takeover response message to the second floor of the feedback control device (which value ranges from 0, indicating a successful takeover); if the takeover fails, the feedback to the control device to take over the second floor of the response packets (where value equals 1 indicates that failure to take over);

[0052] 步骤308 :当控制设备接收到来自设备1的二层接管回应报文后,根据返回的结果给出相应的提示信息;如果接管成功,则继续执行步骤309。 [0052] Step 308: when the control device receives from the Layer 1 takeover device response packet, the corresponding prompt information based on the result returned; takeover, if successful, proceed to step 309.

[0053] 步骤309 :用户输入需要在设备1上执行的命令,控制设备的二层网络控制协议将该命令封装并构造成二层控制报文,将二层控制报文发送至设备1。 [0053] Step 309: the user enters a command to be executed on the device 1, Layer network control protocol control apparatus and configured to package the command control packets Layer, Layer 2 packet to the control apparatus 1.

[0054] 步骤310:设备1接收到二层控制报文后,解析获取实际的命令字符串,通过console接口执行输入命令以及输出响应,并将输出的响应构造并封装成二层控制回应报文,将该二层控制回应报文反馈至控制设备。 [0054] Step 310: After receiving the Device Layer 1 control packets, parsed to obtain the actual command string, through the console interface to perform an input command and an output response, and the response output configuration and encapsulated response packet L2C , the L2C response message back to the control device. 如果响应的信息过多,例如超过1497bytes 时,可以将二层控制回应报文按照最大1497bytes进行分段后封装并反馈。 If the response message is too large, for example more than 1497bytes, may respond to the floor control packet is segmented and encapsulated according to the maximum 1497bytes feedback.

[0055] 步骤311 :控制设备接收二层控制回应报文,解析获取该报文携带的实际回应信息,并最终显示出来。 [0055] Step 311: the control device receives the response packet L2C, parsing and obtaining the actual response information carried in the packet, and finally displayed.

[0056] 步骤312 :当控制设备需要端口对设备1的控制时,向设备1发送二层接管断开报文。 [0056] Step 312: when the control device needs to disconnect the packets to the port the control apparatus 1, Layer 1 transmits the takeover device.

[0057] 步骤313 :设备1收到二层接管断开报文后,停止对Console接口的接管,并向控制设备发送Value为0的二层接管断开回应报文进行确认。 [0057] Step 313: 1 device to receive the second floor took off after the message, stop the takeover of the Console interface to the control device sends Value 0 for the second floor of takeover disconnect the response packet to confirm.

[0058] 本发明还提出一种基于二层网络的远程控制系统,包括控制设备和被控设备,其特征在于, [0058] The present invention also provides a remote control system based on a Layer 2 network, comprising a control device and a controlled device, wherein,

[0059] 所述控制设备,用于向被控设备发送二层接管报文,接收被控设备反馈的二层接管回应报文,当所述二层接管回应报文的内容为接管成功时,向所述被控设备发送二层控制报文,对所述被控设备进行远程控制; [0059] The control apparatus for transmitting packets takeover Layer, Layer feedback controlled device receiving the response packet took to the controlled device, when the content of the response packet Layer takeover when the takeover is successful, Layer to the controlled device transmits a control packet, the remote control of the controlled device;

[0060] 所述被控设备,用于接收来自控制设备二层接管报文,判断自身是否能够被接管, 并根据判断结果向控制设备反馈二层接管回应报文;接收来自控制设备的二层控制报文, 按照所述二层控制报文的内容执行相应操作,并向控制设备反馈二层控制回应报文; [0060] The controlled device for receiving from the control apparatus takes over Layer packet, determines whether it is able to take over and to take over the response packet to the control apparatus according to the determination result of the feedback Layer; Layer receives from the control device control message, performs a corresponding operation according to the content of the floor control message to the control device controls the feedback Layer response packets;

[0061] 所述二层接管报文、二层接管回应报文、二层控制报文和二层控制回应报文均采用二层协议进行封装。 The [0061] Layer takeover packets, response packets takeover Layer, Layer Layer control packets and response control packets are encapsulated Layer 2 protocol.

[0062] 上述控制设备还可以用于广播二层发现报文,当接收到被控设备反馈的二层发现回应报文时,记录该被控设备; [0062] The control device may also be used to broadcast discovery Layer packets, when receiving the feedback of the controlled device Layer discovery response packet, recording the controlled device;

[0063] 上述被控设备还可以用于接收来自控制设备的二层发现报文,向所述控制设备反馈二层发现回应报文; [0063] The device may also be controlled from a control device configured to receive Layer discovery packet, to the control device feedback Layer discovery response packet;

[0064] 上述二层发现报文和二层发现回应报文均采用二层协议进行封装。 [0064] The Layer Layer discovery packets and response packets are found using Layer protocol encapsulation.

[0065] 上述控制设备,可以进一步用于向被控设备发送二层接管断开报文,结束对所述被控设备的远程控制; [0065] The control device may be further configured to send to the controlled device to take over floor disconnect message, the remote end of the controlled control device;

[0066] 上述被控设备,可以进一步用于接收来自控制设备的二层接管断开报文,向该控制设备反馈二层接管断开回应报文; [0066] The controlled device may be further configured to receive from the control device takes over the second floor disconnect packets, feedback to the control device takes over the second floor disconnect response packet;

[0067] 上述二层接管断开报文和二层接管断开回应报文均采用二层协议进行封装。 [0067] The Layer Layer takeover took OFF OFF packets and response packets are encapsulated Layer 2 protocol.

[0068] 上述二层发现报文、二层发现回应报文、二层接管报文、二层接管回应报文、二层控制报文、二层控制回应报文、二层接管断开报文和二层接管断开回应报文的报文内容均可以包括一个以上对应类型的TLV。 [0068] said two discovery packet, the response packet found two-story, two-story takeover packets, response packets to take over the two-story, two-story control packets, L2C response packets, packets story took off and took off the second floor of the response packets each packet content may include more than one corresponding to the type of TLV.

[0069] 上述二层协议为以太网协议或无线局域网协议。 [0069] The Layer protocol is Ethernet protocol or a wireless local area network protocols.

[0070] 上述被控设备根据自身是否能够被接管的判断结果向控制设备反馈二层接管回应报文的方式为: [0070] The feedback controlled device to the control device based on the determination whether it can be taken over Layer manner as to take over the response packet:

[0071] 当被控设备判断出自身的Console接口正在使用时,向控制设备反馈二层接管回应报文,该报文的内容为因Console接口正在使用导致接管失败; [0071] When it is determined that the controlled device itself Console port being used, the control device takes over Layer feedback response packet, the packet contents are being used by the Console Interface takeover failure cause;

[0072] 当被控设备判断出自身的Console接口未被使用并且能够被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管成功; [0072] When it is determined that the controlled device itself Console interface is not used and can be taken over by the control device takes over Layer feedback response packet, the packet content for successful takeover;

[0073] 当被控设备判断出自身的Console接口未被使用但不能被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管失败。 [0073] When the controlled device decides itself Console port is not in use but can not be taken over, the second floor to take over the response to the feedback message to the control device, the message content for takeover failure.

[0074] 在控制设备和被控设备中,分别加载了二层网络远程控制客户端和服务器端。 [0074] In the control apparatus and the controlled apparatus respectively loaded Layer network remote control server and a client. 其中,客户端可以在不同的系统及不同的设备上进行实现,主要通过载体设备实现二层网络远程控制命令的发送和接收,以及被控制设备的命令输入和输出的发送和回显;服务器端主要集成在现有的设备特别是AP设备中,通过二层网络远程控制的服务器端功能,设备完成控制命令的处理,并且接管当前设备的console命令行操作,完成命令行的输入工作,并将相应的输出回送给远端的客户端。 Wherein, the client may be performed in different systems and on different devices implemented, transmitting and receiving remote control commands of the Layer 2 network is mainly achieved by the carrier device, and transmitting the control apparatus and command input and output of the echo; server the main integrated in existing equipment particularly AP device, Layer 2 network server remote control function, the device finishes processing control command, the current command line console and takes over operation of the device, the work command line input is completed, and the corresponding output back to the remote client.

[0075] 如图4为本发明中控制设备和被控设备的结构示意图。 [0075] The schematic structure of the apparatus and the controlled apparatus 4 of the present invention is shown in the control. 在控制设备中,包括标准的操作处理模块、二层网络远程控制客户端和第一收发模块;在被控设备中,包括Console 接口、二层网络远程控制服务器端和第二收发模块。 In the control apparatus, comprising a standard module operation processing, the Layer 2 network control client and a first remote transceiver module; in the controlled device, including the Console Interface, Network Layer remote control server and a second transceiver module. 其中,标准的操作处理模块用于输入对被控设备的命令字符串,二层网络远程控制客户端和服务器端用于构造二层网络远程控制报文,第一收发模块和第二收发模块用于对二层网络远程控制报文进行传输,Console接口用于通过输入命令字符串实现对载体设备的控制。 Wherein the means for processing the standard operation of the controlled device inputs a command string, the Layer 2 network remote control for the client and server configured Layer network remote control packets, a first transceiver module and the second transceiver module in the layer 2 network remote control packet transmission, Console interface is used to support a string achieve control device via input commands.

[0076] 综上可见,本发明提出的远程控制方法和系统,能够基于二层网络协议实现远程控制,在无法实现三层访问或者三层协议本身存在问题时避免到设备现场进行问题处理, 因此能够便于网络设备的远程管理和维护。 [0076] Fully visible, the remote control system and method proposed by the present invention, to control remotely-based Layer network protocol, the device to avoid processing problems at the site can not access or at Layer 3 protocol problem itself, so the network equipment can facilitate remote management and maintenance. 本发明对于AP设备等尤其适用,采用本发明可以通过远程控制完成对故障AP的调试和分析,极大地减低了维护和定位的难度。 The present invention is particularly suitable for the AP and the like, the present invention can be accomplished using the debugging and analysis of the fault of the AP by remote control, which greatly reduces the difficulty of maintaining and positioning.

[0077] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 [0077] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, all within the spirit and principle of the present invention, any changes made, equivalent substitutions and improvements should be included within the scope of protection of the present invention.

Claims (12)

  1. 1. 一种基于二层网络的远程控制方法,应用于包括控制设备和被控设备的二层网络远程控制系统,其特征在于,所述方法包括:控制设备向被控设备发送二层接管报文,接收到所述二层接管报文的被控设备判断自身是否能够被接管,并根据判断结果向控制设备反馈二层接管回应报文;当所述二层接管回应报文的内容为接管成功时,控制设备向该被控设备发送二层控制报文,对所述被控设备进行远程控制;所述被控设备按照所述二层控制报文的内容执行相应操作,并向控制设备反馈二层控制回应报文;所述二层接管报文、二层接管回应报文、二层控制报文和二层控制回应报文均采用二层协议进行封装。 Remote control method for a network-based Layer, Layer applied to a control device and a network remote control system of the controlled device, characterized in that, said method comprising: a controlling device to the controlled device transmits packets Layer takeover text, receiving the takeover Layer packet determines whether the controlled device can be taken over itself, and taking over the response packet to the control apparatus according to the determination result of the feedback floor; floor taken over when the response packet is to take over the content of when successful, a control device to control the controlled device transmits Layer packets, to remotely control the controlled apparatus; the controlled device to perform a corresponding operation according to the control content Layer packets, and the control device Layer feedback control response message; the message took Layer, Layer take over the response packet, the control packet and the Layer Layer response control packets are encapsulated Layer 2 protocol.
  2. 2.根据权利要求1所述的方法,其特征在于,所述控制设备向被控设备发送二层接管报文之前进一步包括:控制设备广播二层发现报文,接收到该二层发现报文的被控设备向所述控制设备反馈二层发现回应报文,控制设备记录反馈所述二层发现回应报文的被控设备; 所述二层发现报文和二层发现回应报文均采用二层协议进行封装。 2. The method according to claim 1, characterized in that the control device transmits to the controlled device before takeover Layer packets further comprising: a control device broadcasts discovery packets Layer, Layer receives the discovery packet. the controlled device to the control device feedback Layer discovery response packet, the feedback control of the recording device discovery response message Layer controlled device; discovery packet and the Layer Layer discovery response packet are used Layer protocol encapsulation.
  3. 3.根据权利要求2所述的方法,其特征在于,所述方法进一步包括:控制设备向被控设备发送二层接管断开报文,结束对所述被控设备的远程控制,被控设备向控制设备反馈二层接管断开回应报文;所述二层接管断开报文和二层接管断开回应报文均采用二层协议进行封装。 3. The method according to claim 2, characterized in that, said method further comprising: a control device to the controlled device transmits packets Layer takeover disconnected, remote control of the end of the controlled device, the controlled device feedback to the control device takes over the second floor disconnect response packet; takeover disconnect the Layer Layer packets and response packets are disconnected takeover Layer 2 protocol encapsulation.
  4. 4.根据权利要求3所述的方法,其特征在于,所述二层发现报文、二层发现回应报文、 二层接管报文、二层接管回应报文、二层控制报文、二层控制回应报文、二层接管断开报文和二层接管断开回应报文的报文内容均包括一个以上对应类型的类型长度值TLV。 4. The method according to claim 3, wherein said discovery packet Layer, Layer discovery response packet, the packet took Layer, Layer take over the response packet, the control packet Layer, two layer control response messages, packets, and layer layer disconnect takeover took disconnection response message includes the message content corresponding to more than one type of a type length value TLV.
  5. 5.根据权利要求3所述的方法,其特征在于,所述二层协议为以太网协议或无线局域网协议。 5. The method according to claim 3, wherein said Layer protocol is Ethernet protocol or a wireless local area network protocols.
  6. 6.根据权利要求1至5任意一项所述的方法,其特征在于,所述被控设备根据自身是否能够被接管的判断结果向控制设备反馈二层接管回应报文的方式为:当被控设备判断出自身的控制Console接口正在使用时,向控制设备反馈二层接管回应报文,该报文的内容为因Console接口正在使用导致接管失败;当被控设备判断出自身的Console接口未被使用并且能够被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管成功;当被控设备判断出自身的Console接口未被使用但不能被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管失败。 6. The method of any one of claims 1 to 5, wherein the controlled device based on the determination result whether it can be taken over by the takeover response packets Layer feedback manner to the control device: when the when the control device decides Console own control interfaces are being used to take over the response packet to the second floor of the feedback control device, the message content is being used as the dependent Console interfaces lead to takeover failure; when the controlled device decides itself Console interface is not when in use and can be taken over, to take over the response packet to the second floor of the feedback control device, the contents of the packet is successfully taken over; when the controlled device decides itself Console port is not in use but can not be taken over to the control device feedback floor to take over the response packet, the packet contents takeover failure.
  7. 7. 一种基于二层网络的远程控制系统,包括控制设备和被控设备,其特征在于,所述控制设备,用于向被控设备发送二层接管报文,接收被控设备反馈的二层接管回应报文,当所述二层接管回应报文的内容为接管成功时,向所述被控设备发送二层控制报文,对所述被控设备进行远程控制;所述被控设备,用于接收来自控制设备二层接管报文,判断自身是否能够被接管,并根据判断结果向控制设备反馈二层接管回应报文;接收来自控制设备的二层控制报文,按照所述二层控制报文的内容执行相应操作,并向控制设备反馈二层控制回应报文;所述二层接管报文、二层接管回应报文、二层控制报文和二层控制回应报文均采用二层协议进行封装。 A remote control system based on a Layer 2 network, comprising a control device and a controlled device, characterized in that the control device for the controlled device to send packets Layer takeover, receives two feedback controlled device layer takes over the response packet, when the layer 2 takes over the content of the response packet is successful takeover, the controlled device to transmit control packets layer, to remotely control the controlled apparatus; the controlled device for receiving from the control apparatus takes over Layer packet, determines whether it is able to take over and to take over the response packet to the control apparatus according to the determination result of the feedback Layer; Layer receiving a control packet from the control device, according to the two layer control packets content perform a corresponding operation to the control device controls the feedback response packet layer; layer takes over the packet, the response packet took layer, layer control packets and response packets are L2C Layer 2 protocol encapsulation.
  8. 8.根据权利要求7所述的系统,其特征在于,所述控制设备还用于广播二层发现报文, 当接收到被控设备反馈的二层发现回应报文时,记录该被控设备;所述被控设备还用于接收来自控制设备的二层发现报文,向所述控制设备反馈二层发现回应报文;所述二层发现报文和二层发现回应报文均采用二层协议进行封装。 8. The system according to claim 7, wherein the control device is further configured to broadcast discovery Layer packets, when receiving the feedback of the controlled device Layer discovery response message, the recording apparatus controlled ; the controlled device further configured to receive from the control device discovery Layer packet, the response packet to the device discovery Layer said feedback control; discovery packet and the Layer Layer discovery response packet are used in two layer protocol encapsulation.
  9. 9.根据权利要求8所述的系统,其特征在于,所述控制设备,进一步用于向被控设备发送二层接管断开报文,结束对所述被控设备的远程控制;所述被控设备,进一步用于接收来自控制设备的二层接管断开报文,向该控制设备反馈二层接管断开回应报文;所述二层接管断开报文和二层接管断开回应报文均采用二层协议进行封装。 9. The system of claim 8, wherein the control device is further configured to send to the controlled device to take over floor disconnect message, the remote end of the controlled control device; said to be control equipment, and further for receiving packets from Layer takeover OFF control apparatus, the feedback to the control device takes over the second floor disconnect response packet; takeover disconnect the Layer Layer packets and response packets disconnected takeover Layer 2 protocol packets are encapsulated.
  10. 10.根据权利要求9所述的系统,其特征在于,所述二层发现报文、二层发现回应报文、 二层接管报文、二层接管回应报文、二层控制报文、二层控制回应报文、二层接管断开报文和二层接管断开回应报文的报文内容均包括一个以上对应类型的类型长度值TLV。 10. The system according to claim 9, wherein said discovery packet Layer, Layer discovery response packet, the packet took Layer, Layer take over the response packet, the control packet Layer, two layer control response messages, packets, and layer layer disconnect takeover took disconnection response message includes the message content corresponding to more than one type of a type length value TLV.
  11. 11.根据权利要求9所述的系统,其特征在于,所述二层协议为以太网协议或无线局域网协议。 11. The system according to claim 9, wherein said Layer protocol is Ethernet protocol or a wireless local area network protocols.
  12. 12.根据权利要求7至11任意一项所述的系统,其特征在于,所述被控设备根据自身是否能够被接管的判断结果向控制设备反馈二层接管回应报文的方式为:当被控设备判断出自身的控制Console接口正在使用时,向控制设备反馈二层接管回应报文,该报文的内容为因Console接口正在使用导致接管失败;当被控设备判断出自身的Console接口未被使用并且能够被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管成功;当被控设备判断出自身的Console接口未被使用但不能被接管时,向控制设备反馈二层接管回应报文,该报文的内容为接管失败。 12. The system according to any one of claims 7 to 11, wherein said feedback controlled device to the control device based on the determination whether it can be taken over by the response packet Layer takeover way: when the when the control device decides Console own control interfaces are being used to take over the response packet to the second floor of the feedback control device, the message content is being used as the dependent Console interfaces lead to takeover failure; when the controlled device decides itself Console interface is not when in use and can be taken over, to take over the response packet to the second floor of the feedback control device, the contents of the packet is successfully taken over; when the controlled device decides itself Console port is not in use but can not be taken over to the control device feedback floor to take over the response packet, the packet contents takeover failure.
CN 201010574626 2010-11-30 2010-11-30 Remote control method and system based on two-layer network CN102480431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010574626 CN102480431A (en) 2010-11-30 2010-11-30 Remote control method and system based on two-layer network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010574626 CN102480431A (en) 2010-11-30 2010-11-30 Remote control method and system based on two-layer network

Publications (1)

Publication Number Publication Date
CN102480431A true true CN102480431A (en) 2012-05-30

Family

ID=46092915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010574626 CN102480431A (en) 2010-11-30 2010-11-30 Remote control method and system based on two-layer network

Country Status (1)

Country Link
CN (1) CN102480431A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506868A (en) * 2002-12-10 2004-06-23 联想(北京)有限公司 Method of remote controlling computer in different area via computer network
CN1863052A (en) * 2005-09-08 2006-11-15 华为技术有限公司 Remote-controlling system and method
CN1996880A (en) * 2006-11-24 2007-07-11 华为技术有限公司 Method and network device of the self-adapted management network device
CN101198002A (en) * 2006-12-04 2008-06-11 中兴通讯股份有限公司 Video telephone long-range control establishing method
CN101309169A (en) * 2008-06-11 2008-11-19 华为技术有限公司 Network management method and network management system, network apparatus
US20100005166A1 (en) * 2006-01-27 2010-01-07 Jong-Hoon Chung Network device
CN101667926A (en) * 2008-09-02 2010-03-10 中兴通讯股份有限公司 Remote management method and remote management system of terminal equipment and agent equipment
CN101784043A (en) * 2009-12-18 2010-07-21 华为终端有限公司 Method for realizing remote control of consumer over consumer premise equipment (CPE) and consumer premise equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506868A (en) * 2002-12-10 2004-06-23 联想(北京)有限公司 Method of remote controlling computer in different area via computer network
CN1863052A (en) * 2005-09-08 2006-11-15 华为技术有限公司 Remote-controlling system and method
US20100005166A1 (en) * 2006-01-27 2010-01-07 Jong-Hoon Chung Network device
CN1996880A (en) * 2006-11-24 2007-07-11 华为技术有限公司 Method and network device of the self-adapted management network device
CN101198002A (en) * 2006-12-04 2008-06-11 中兴通讯股份有限公司 Video telephone long-range control establishing method
CN101309169A (en) * 2008-06-11 2008-11-19 华为技术有限公司 Network management method and network management system, network apparatus
CN101667926A (en) * 2008-09-02 2010-03-10 中兴通讯股份有限公司 Remote management method and remote management system of terminal equipment and agent equipment
CN101784043A (en) * 2009-12-18 2010-07-21 华为终端有限公司 Method for realizing remote control of consumer over consumer premise equipment (CPE) and consumer premise equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch

Similar Documents

Publication Publication Date Title
US20120188928A1 (en) Method for maintaining connection between terminal and network server, terminal and network server
CN101166163A (en) Secure intelligent home gateway based on mobile phone remote control
US20100122098A1 (en) Generic network wake-up capabilities for terminal devices
CN102394831A (en) Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration
JP2006172186A (en) Network system for remote control of computer power source and management system for managing remote control of computer power source
CN1506868A (en) Method of remote controlling computer in different area via computer network
CN101951400A (en) Software installation and upgrading method of application terminal in home network and system thereof
CN101808014A (en) Thin AP architecture-based network management scheme and system thereof
CN1617104A (en) Far end server monitor
CN102297493A (en) Monitoring system and method of air conditioning units
CN101778425A (en) Method for dynamically balancing broadband access server load in wireless local area network
CN101977382A (en) Audio and video integrated control circuit and method for accessing access point
CN102185837A (en) Intelligent multimedia information publish system
CN1553318A (en) Universal industrial online and remote management device and method
CN103701695A (en) Intelligent home gateway control system
US20120200662A1 (en) Method and System for Controlling Multipoint Video Conference, Central Control Subsystem and Video Terminal
CN102185780A (en) Operation, administration and maintenance (OAM) message processing method and device
CN102394950A (en) Method and system for IP address distribution of network security terminal under home gateway
CN102333081A (en) Authentication method, equipment and system
US20160211989A1 (en) Bidirectional Forwarding Detection Over a Virtual Extensible Local Area Network
CN102065152A (en) Joined screen system and communication device thereof
CN101873233A (en) Simulation method compatible with PeerCast network
CN102195946A (en) Intelligent communication controller based on ARM (Advanced RISC Machines) technology
CN101742561A (en) Method and device for establishing tunnel connection
CN101145975A (en) Network media player and its remote management controller and remote control method

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)