CN114785754A - Anti-channel conflict method and related device thereof - Google Patents
Anti-channel conflict method and related device thereof Download PDFInfo
- Publication number
- CN114785754A CN114785754A CN202110075438.6A CN202110075438A CN114785754A CN 114785754 A CN114785754 A CN 114785754A CN 202110075438 A CN202110075438 A CN 202110075438A CN 114785754 A CN114785754 A CN 114785754A
- Authority
- CN
- China
- Prior art keywords
- network edge
- edge device
- domain name
- name server
- address
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及通信领域,尤其涉及一种防窜货方法及其相关装置。The embodiments of the present application relate to the field of communications, and in particular, to an anti-smuggling method and a related device.
背景技术Background technique
网络边缘设备是指向用户提供核心网络提供入口点的设备,例如在家庭中使用的光网络终端(optical network terminal,ONT)、家庭路由器、以及交换机等设备,网络边缘设备会面向多个地区进行销售,由于各个地区存在不一样的销售策略,因此网络边缘设备在各地区的销售价格也不一致,可能存在第三方从低价格地区购买网络边缘设备非法贩卖到高价格地区的情况,从而导致厂家对网络边缘设备的价格的管理失控。Network edge devices refer to devices that provide users with an entry point to the core network, such as optical network terminals (ONTs), home routers, and switches used in homes. Network edge devices are sold in multiple regions. , due to the different sales strategies in different regions, the sales prices of network edge devices in different regions are also inconsistent. There may be a situation where a third party buys network edge devices from low-price regions and illegally sells them to high-price regions, which leads to manufacturers’ concerns about network edge devices. The management of the price of edge devices is out of control.
在现有的技术中,可以在网络边缘设备上外接一个位置信息模块,当网络边缘设备完成销售并且投入使用后,位置信息模块可以确定网络边缘设备所处的地区,如果网络边缘设备所处的地区与出厂时设置的预设销售地区不一致,则说明该网络边缘设备存在被第三方进行非法销售的情况。In the prior art, a location information module can be attached to the network edge device. After the network edge device is sold and put into use, the location information module can determine the region where the network edge device is located. If the region is inconsistent with the preset sales region set at the factory, it means that the network edge device has been illegally sold by a third party.
然而,现有技术的方案必须依赖外接的位置信息模块才能识别出网络边缘设备当前所处的位置,并且如果位置信息模块处于室内时,位置信息模块将无法正常工作。However, the solution in the prior art must rely on an external location information module to identify the current location of the network edge device, and if the location information module is indoors, the location information module will not work normally.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种防窜货方法及其相关装置,用于确定网络边缘设备是否存在窜货情况。本申请实施例还提供了相应的装置、系统、计算机可读存储介质以及计算机程序产品等。The embodiments of the present application provide an anti-smuggling method and a related device, which are used to determine whether there is a smuggling situation in a network edge device. Embodiments of the present application also provide corresponding apparatuses, systems, computer-readable storage media, computer program products, and the like.
本申请实施例第一方面提供了一种防窜货方法:A first aspect of the embodiments of the present application provides a method for preventing smuggling:
域名服务器地址的设置通常是由运营商进行规划,运营商会根据不同的区域分配一个或多个不同的域名服务器地址,其中,网络边缘设备会获取其当前所处区域对应的域名服务器的网际互联协议(internet protocol,IP)地址在获取到该域名服务器的IP地址之后,网络边缘设备可以根据该域名服务器的IP地址以及该IP地址与网络边缘设备所处区域的区域信息的对应关系确定出网络边缘设备所处区域的区域信息,具体的,IP地址与网络边缘设备所处区域的区域信息的对应关系可以包括IP地址集合,其中,IP地址集合是包括已经投入工作的域名服务器的IP地址,IP地址集合中的每一个IP地址与区域信息集合中的每一个区域信息集合存在对应关系,网络边缘设备所处区域的区域信息包括于区域信息集合中。在确定出网络边缘设备所处区域的区域信息之后,如果网络边缘设备确定网络边缘设备的区域信息和网络边缘设备的预设区域信息不一致,则网络边缘设备会执行防窜货操作,网络边缘设备的预设区域信息为网络边缘设备出厂之前设置于网络边缘设备中。The setting of the domain name server address is usually planned by the operator, and the operator will assign one or more different domain name server addresses according to different regions. The network edge device will obtain the Internet Protocol of the domain name server corresponding to its current region. After obtaining the IP address of the domain name server (internet protocol, IP) address, the network edge device can determine the network edge according to the IP address of the domain name server and the correspondence between the IP address and the area information of the area where the network edge device is located The area information of the area where the device is located, specifically, the corresponding relationship between the IP address and the area information of the area where the network edge device is located may include an IP address set, where the IP address set includes the IP address of the domain name server that has been put into work, and the IP address Each IP address in the address set has a corresponding relationship with each area information set in the area information set, and the area information of the area where the network edge device is located is included in the area information set. After determining the area information of the area where the network edge device is located, if the network edge device determines that the area information of the network edge device is inconsistent with the preset area information of the network edge device, the network edge device will perform anti-smuggling operations, and the network edge device will The preset area information is set in the network edge device before the network edge device leaves the factory.
上述第一方面中,IP地址集合中的IP地址与区域信息集合中的区域信息不一定是一一对应的关系,也有可能是一个区域信息对应两个或多个IP地址,因此网络边缘设备获取当前所处区域对应的域名服务器的IP地址不一定是只获取单个的域名服务器的IP地址,也有可能是获取网络边缘设备当前所处区域的多个域名服务器的IP地址,通过该多个IP地址与IP地址集合的比对从而确定出网络边缘设备当前所处的区域的区域信息。In the above first aspect, the IP addresses in the IP address set and the area information in the area information set are not necessarily in a one-to-one correspondence, and it is also possible that one area information corresponds to two or more IP addresses, so the network edge device obtains The IP address of the domain name server corresponding to the current area is not necessarily the IP address of a single domain name server, but may also be obtained by obtaining the IP addresses of multiple domain name servers in the area where the network edge device is currently located. The comparison with the IP address set determines the area information of the area where the network edge device is currently located.
本申请实施例中,即使网络边缘设备处于室内,网络边缘设备也可以根据网络边缘设备所处区域对应的域名服务器的IP地址以及该IP地址与网络边缘设备所处区域的区域信息的对应关系确定出网络边缘设备当前所在的区域信息,并且当区域信息与预设区域信息不一致时执行防窜货操作,保证了厂家的利益,降低了防窜货的成本。In the embodiment of the present application, even if the network edge device is located indoors, the network edge device may be determined according to the IP address of the domain name server corresponding to the area where the network edge device is located and the correspondence between the IP address and the area information of the area where the network edge device is located The information of the area where the network edge device is currently located, and when the area information is inconsistent with the preset area information, the anti-smuggling operation is performed, which ensures the interests of the manufacturer and reduces the cost of anti-smuggling.
在一种可能的实现中,网络边缘设备可以先向路由器发起以太网上的点对点协议(point to point protocol over ethernet,PPPOE)拨号或者动态主机配置协议(dynamichost configuration protocol,DHCP)拨号,在这之后,网络边缘设备可以接收来自路由器的报文,该报文中会携带网络边缘设备所处区域对应的域名服务器的IP地址。In a possible implementation, the network edge device may first initiate a point-to-point protocol over ethernet (PPPOE) dial-up or a dynamic host configuration protocol (DHCP) dial-up to the router, and then, The network edge device can receive the packet from the router, and the packet will carry the IP address of the domain name server corresponding to the area where the network edge device is located.
在一种可能的实现中,网络边缘设备可以根据知名传输控制协议(transmissioncontrol protocol,TCP)端口号或者知名用户数据报协议(user datagram protocol,UDP)端口号获取域名服务器请求报文,该域名服务器请求报文由网络边缘设备的下挂设备先向网络边缘设备发送,之后该域名服务器请求报文由网络边缘设备向网络边缘设备所处区域对应的域名服务器发送,在获取到域名服务器请求报文之后,网络边缘设备可以对域名服务器报文进行解析,从而获取该域名服务器的IP地址。In a possible implementation, the network edge device may obtain a domain name server request message according to a well-known transmission control protocol (TCP) port number or a well-known user datagram protocol (UDP) port number, and the domain name server The request packet is first sent by the device attached to the network edge device to the network edge device, and then the domain name server request packet is sent by the network edge device to the domain name server corresponding to the area where the network edge device is located. After obtaining the domain name server request packet After that, the network edge device can parse the domain name server message to obtain the IP address of the domain name server.
在一种可能的实现方式中,网络边缘设备在获取域名服务器的IP地址之前,还可以先从本地获取预设区域信息,该预设区域信息经过了加密以及签名处理,在获取到预设区域信息之后,网络边缘设备可以对预设区域信息进行解密以及验证处理。In a possible implementation manner, before obtaining the IP address of the domain name server, the network edge device may also obtain the preset area information locally. The preset area information has been encrypted and signed. After obtaining the preset area After the information, the network edge device can decrypt and verify the preset area information.
本申请实施例中,网络边缘设备可以对预设区域信息进行解密以及验证,保证了预设区域信息的安全性以及可靠性。In the embodiment of the present application, the network edge device can decrypt and verify the preset area information, which ensures the security and reliability of the preset area information.
在一种可能的实现方式中,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系可以为网络边缘设备从本地获取。In a possible implementation manner, the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located may be obtained locally by the network edge device.
本申请实施例中,网络边缘设备可以从本地获取对应关系,从而提高了防窜货的效率。In the embodiment of the present application, the network edge device can obtain the corresponding relationship locally, thereby improving the efficiency of anti-smuggling.
在一种可能的实现方式中,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系可以为网络边缘设备从远端服务器中获取。In a possible implementation manner, the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located may be obtained by the network edge device from a remote server.
本申请实施例中,网络边缘设备从远端服务器获取对应关系,提高了方案的灵活性。In the embodiment of the present application, the network edge device obtains the corresponding relationship from the remote server, which improves the flexibility of the solution.
在一种可能的实现方式中,防窜货操作可以为停止工作或者发出警告。In a possible implementation, the anti-smuggling operation may be to stop working or issue a warning.
本申请实施例第二方面提供了一种网络边缘设备:A second aspect of the embodiments of the present application provides a network edge device:
该网络边缘设备包括获取单元、确定单元以及执行单元,获取单元可以用于获取域名服务器的IP地址,该域名服务器即为部署在网络边缘设备当前所处位置对应的域名服务器。The network edge device includes an acquisition unit, a determination unit, and an execution unit, and the acquisition unit can be used to acquire the IP address of a domain name server, which is a domain name server corresponding to the current location of the network edge device.
确定单元可以用于根据该域名服务器的IP地址,以及该IP地址与和网络边缘设备当前所处区域的区域信息的对应关系确定出网络边缘设备的区域信息,具体的,该IP地址与网络边缘设备所处区域的区域信息的对应关系可以包括IP地址集合,其中,IP地址集合会包括已经投入工作的域名服务器的IP地址,IP地址集合中的每一个IP地址与区域信息集合中的每一个区域信息集合存在对应关系,网络边缘设备所处区域的区域信息包括于区域信息集合中。The determining unit can be used to determine the area information of the network edge device according to the IP address of the domain name server, and the corresponding relationship between the IP address and the area information of the area where the network edge device is currently located. Specifically, the IP address is related to the network edge device. The corresponding relationship of the area information of the area where the device is located may include an IP address set, wherein the IP address set will include the IP address of the domain name server that has been put into work, and each IP address in the IP address set and each of the area information sets. There is a corresponding relationship between the area information sets, and the area information of the area where the network edge device is located is included in the area information set.
执行单元可以用于当网络边缘设备当前所处区域的区域信息与预设区域信息不一致时,执行防窜货操作,该预设区域信息为网络边缘设备出厂之前设置于网络边缘设备中。The execution unit may be configured to perform an anti-smuggling operation when the area information of the area where the network edge device is currently located is inconsistent with the preset area information, the preset area information is set in the network edge device before the network edge device leaves the factory.
上述第二方面中,IP地址集合中的IP地址与区域信息集合中的区域信息不一定是一一对应的关系,也有可能是一个区域信息对应两个或多个IP地址,因此网络边缘设备获取当前所处区域对应的域名服务器的IP地址不一定是只获取单个的域名服务器的IP地址,也有可能是获取网络边缘设备当前所处区域的多个域名服务器的IP地址,通过该多个IP地址与IP地址集合的比对从而确定出网络边缘设备当前所处的区域的区域信息。In the second aspect above, there is not necessarily a one-to-one correspondence between the IP addresses in the IP address set and the area information in the area information set, and it is also possible that one area information corresponds to two or more IP addresses, so the network edge device obtains the information. The IP address of the domain name server corresponding to the current area is not necessarily the IP address of a single domain name server, but may also be obtained by obtaining the IP addresses of multiple domain name servers in the area where the network edge device is currently located. The comparison with the IP address set determines the area information of the area where the network edge device is currently located.
本申请实施例中,即使网络边缘设备处于室内,网络边缘设备也可以根据网络边缘设备所处区域对应的域名服务器的IP地址以及该IP地址与网络边缘设备所处区域的区域信息的对应关系确定出网络边缘设备当前所在的区域信息,并且当区域信息与预设区域信息不一致时执行防窜货操作,保证了厂家的利益,降低了防窜货的成本。In the embodiment of the present application, even if the network edge device is located indoors, the network edge device may be determined according to the IP address of the domain name server corresponding to the area where the network edge device is located and the correspondence between the IP address and the area information of the area where the network edge device is located The information of the area where the network edge device is currently located, and when the area information is inconsistent with the preset area information, the anti-smuggling operation is performed, which ensures the interests of the manufacturer and reduces the cost of anti-smuggling.
在一种可能的实现中,网络边缘设备的获取单元具体用于向路由器发起PPPOE拨号或DHCP拨号,在发起拨号之后,获取单元还可以接收来自路由器的报文,在该路由器的报文中会携带上述域名服务器的IP地址。In a possible implementation, the acquisition unit of the network edge device is specifically used to initiate PPPOE dial-up or DHCP dial-up to the router. After the dial-up is initiated, the acquisition unit can also receive a message from the router, and the message from the router will Carry the IP address of the above domain name server.
在一种可能的实现方式中,网络边缘设备的获取单元具体用于根据知名TCP端口号或知名UDP端口号获取域名服务器请求报文,该域名服务器请求报文由网络边缘设备的下挂设备先向网络边缘设备发送,之后该域名服务器请求报文由网络边缘设备向网络边缘设备所处区域对应的域名服务器发送,在获取到域名服务器请求报文之后,获取单元可以对域名服务器报文进行解析,从而获取该域名服务器的IP地址。In a possible implementation manner, the obtaining unit of the network edge device is specifically configured to obtain a domain name server request message according to a well-known TCP port number or a well-known UDP port number, and the domain name server request message is first sent by a device attached to the network edge device The domain name server request message is sent to the network edge device, and then the domain name server request message is sent by the network edge device to the domain name server corresponding to the area where the network edge device is located. After obtaining the domain name server request message, the obtaining unit can parse the domain name server message. to obtain the IP address of the domain name server.
在一种可能的实现方式中,网络边缘设备的获取单元还可以用于获取预设区域信息,该预设区域信息经过了加密以及签名处理,在获取到了预设区域信息之后,获取单元还可以对预设区域信息进行解密以及验证处理。In a possible implementation manner, the acquisition unit of the network edge device may also be used to acquire preset area information, the preset area information has undergone encryption and signature processing, and after acquiring the preset area information, the acquisition unit may also Decrypt and verify the preset area information.
本申请实施例中,网络边缘设备可以对预设区域信息进行解密以及验证,保证了预设区域信息的安全性以及可靠性。In the embodiment of the present application, the network edge device can decrypt and verify the preset area information, which ensures the security and reliability of the preset area information.
在一种可能的实现方式中,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系可以为网络边缘设备从本地获取。In a possible implementation manner, the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located may be obtained locally by the network edge device.
本申请实施例中,网络边缘设备可以从本地获取对应关系,从而提高了防窜货的效率。In the embodiment of the present application, the network edge device can obtain the corresponding relationship locally, thereby improving the efficiency of anti-smuggling.
在一种可能的实现方式中,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系可以为网络边缘设备从远端服务器获取。In a possible implementation manner, the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located may be obtained by the network edge device from a remote server.
本申请实施例中,网络边缘设备从远端服务器获取对应关系,提高了方案的灵活性。In the embodiment of the present application, the network edge device obtains the corresponding relationship from the remote server, which improves the flexibility of the solution.
本申请实施例第三方面提供了一种网络边缘设备,包括处理器、存储器、输入输出设备以及总线,处理器、存储器、输入输出设备与总线相连,处理器用于执行前述第一方面所述的方法。A third aspect of the embodiments of the present application provides a network edge device, including a processor, a memory, an input and output device, and a bus, where the processor, the memory, and the input and output device are connected to the bus, and the processor is configured to execute the aforementioned first aspect. method.
本申请实施例第四方面提供了一种计算机可读存储介质,该计算机可读存储介质中保有程序,当计算机执行程序时,执行前述第一方面的方法中的流程。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and when the computer executes the program, the process in the method of the foregoing first aspect is performed.
本申请实施例第五方面提供了一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中;网络边缘设备的至少一个处理器可以从计算机可读存储介质读取该计算机执行指令,至少一个处理器执行该计算机执行指令使得设备实施上述第一方面的方法。A fifth aspect of the embodiments of the present application provides a computer program product, where the computer program product includes computer-executable instructions, where the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of a network edge device may be readable from a computer The storage medium reads the computer-executable instructions, and at least one processor executes the computer-executable instructions to cause the device to implement the method of the first aspect.
本申请第六方面提供了一种芯片系统,该芯片系统包括处理器,用于支持网络边缘设备实现上述第一方面所涉及的功能。在一种可能的设计中,芯片系统还可以包括存储器,存储器用于保存终端设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。A sixth aspect of the present application provides a chip system, where the chip system includes a processor for supporting a network edge device to implement the functions involved in the foregoing first aspect. In a possible design, the chip system may further include a memory for storing necessary program instructions and data of the terminal device. The chip system may be composed of chips, or may include chips and other discrete devices.
附图说明Description of drawings
图1a为网络边缘设备的一个结构示意图;Figure 1a is a schematic structural diagram of a network edge device;
图1b为本申请实施例中防窜货方法的应用场景的一个示例;FIG. 1b is an example of an application scenario of the anti-smuggling method in the embodiment of the application;
图2为本申请实施例中防窜货方法的一个流程示意图;Fig. 2 is a schematic flow chart of the method for preventing goods smuggling in the embodiment of the application;
图3为本申请实施例中防窜货方法的另一流程示意图;Fig. 3 is another schematic flow chart of the anti-smuggling method in the embodiment of the application;
图4为本申请实施例中防窜货方法的另一流程示意图;Fig. 4 is another schematic flow chart of the anti-smuggling method in the embodiment of the application;
图5为本申请实施例中网络边缘设备的一个结构示意图;FIG. 5 is a schematic structural diagram of a network edge device in an embodiment of the application;
图6为本申请实施例中网络边缘设备的另一结构示意图。FIG. 6 is another schematic structural diagram of a network edge device in an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
本申请实施例提供了一种防窜货方法及其相关装置,用于判断网络边缘设备是否存在窜货情况。本申请实施例还提供了相应的装置、系统、计算机可读存储介质以及计算机程序产品等。以下分别进行详细说明。The embodiments of the present application provide an anti-smuggling method and a related device, which are used to determine whether a network edge device has a smuggling situation. Embodiments of the present application also provide corresponding apparatuses, systems, computer-readable storage media, computer program products, and the like. Each of them will be described in detail below.
网络边缘设备是指向用户提供核心网络提供入口点的设备,例如在家庭中使用的光网络终端(optical network terminal,ONT)、家庭路由器、以及交换机等设备。A network edge device is a device that provides an entry point to a core network for a user, such as an optical network terminal (ONT), a home router, and a switch used in a home.
网络边缘设备在出厂之后一般会发往客户订单上约定的销售区域,然而,由于多个销售地区对于同一网络边缘设备可能存在不同的销售价格,因此可能存在第三方从低价格的区域收购网络边缘设备,然后到高价格的区域将网络边缘设备出售的情况,这种情况称之为窜货,窜货会导致生产厂家对网络边缘设备的价格管理以及销售策略失去控制,从而造成经济上的损失。Network edge devices are generally sent to the sales area agreed on in customer orders after they leave the factory. However, since multiple sales areas may have different sales prices for the same network edge device, there may be a third party purchasing the network edge from regions with low prices. Equipment, and then sell network edge equipment in high-priced areas. This situation is called smuggling, and smuggling will cause manufacturers to lose control over the price management and sales strategy of network edge equipment, resulting in economic losses. .
在现有的技术当中,请参阅图1a,可以在网络边缘设备上设置专用的定位模块用于对网络边缘设备进行定位,从而识别网络边缘设备所处区域的区域信息,该定位模块可以是北斗定位模块,或者是全球定位系统(global positioning system,GPS)定位模块,定位模块可以通过天线接收卫星的信号,从而确定自身的区域信息,然后将区域信息传输给网络边缘设备,网络边缘设备在获取到区域信息之后,可以判断区域信息是否与出厂时预设的销售区域一致,如果不一致,则说明存在窜货行为,例如,网络边缘设备通过定位模块获取到当前的区域信息为地区A,但是网络边缘设备出厂预设的销售区域为地区B,则说明存在窜货行为。但在现有技术的方案中,额外加设定位模块会提升网络边缘设备的成本,并且如果网络边缘设备处于室内,定位模块的功能将会受到影响,从而导致无法正常工作。In the prior art, please refer to Fig. 1a, a dedicated positioning module can be set on the network edge device to locate the network edge device, so as to identify the area information of the area where the network edge device is located, the positioning module can be Beidou The positioning module, or the global positioning system (GPS) positioning module, the positioning module can receive satellite signals through the antenna to determine its own area information, and then transmit the area information to the network edge device. After the regional information is obtained, it can be judged whether the regional information is consistent with the preset sales area when leaving the factory. If it is inconsistent, it means that there is smuggling behavior. For example, the current regional information obtained by the network edge device through the positioning module is region A, but the network If the preset sales area of the edge device is region B, it means that there is smuggling behavior. However, in the solution of the prior art, additionally adding a positioning module will increase the cost of the network edge device, and if the network edge device is indoors, the function of the positioning module will be affected, resulting in failure to work normally.
上面对现有技术的方案进行了介绍,下面对本申请实施例的方案进行描述,请参阅图1b,图1b为本申请实施例应用场景的示例,如图1b所示,光网络终端2在出厂时计划销售的区域为区域A,如果第三方将光网络终端2窜货到区域B进行销售,例如,光网络终端2在出厂时计划销售的区域为上海,如果第三方将光网络终端2窜货到深圳进行销售的话,则光网络终端会执行相应的防窜货操作,从而使得光网络终端无法在区域B正常工作,进而保护生产厂家的权利。The solutions of the prior art have been introduced above, and the solutions of the embodiments of the present application are described below. Please refer to FIG. 1b. FIG. 1b is an example of an application scenario of the embodiments of the present application. As shown in FIG. 1b, the optical network terminal 2 is The area planned to be sold when leaving the factory is area A. If a third party sells the optical network terminal 2 to area B for sale, for example, the planned sales area of the optical network terminal 2 when it leaves the factory is Shanghai. If smuggling goods are sold in Shenzhen, the optical network terminal will perform corresponding anti-smuggling operations, so that the optical network terminal cannot work normally in area B, thereby protecting the rights of the manufacturer.
请参阅图2,下面对本申请实施例防窜货方法的一个流程进行描述:Referring to Fig. 2, a process of the anti-smuggling method according to the embodiment of the present application is described below:
201、网络边缘设备获取域名服务器的网际互联协议(internet protocol,IP)地址。201. The network edge device obtains an internet protocol (internet protocol, IP) address of the domain name server.
在一开始,网络边缘设备可以通过相应的方式获取域名服务器的IP地址,并且该域名服务器为该网络边缘设备所在区域的域名服务器,例如,网络边缘设备被部署在深圳,则网络边缘设备会获取同样部署在深圳的域名服务器的IP地址,需要说明的是,该IP地址可能是一个域名服务器的IP地址,也有可能是多个域名服务器的IP地址,例如,如果在深圳部署了多个域名服务器,则网络边缘设备会获取该多个域名服务器对应的IP地址,如果在深圳只部署了一个域名服务器,则网络边缘设备只会获取这一个域名服务器的IP地址。At the beginning, the network edge device can obtain the IP address of the domain name server in a corresponding way, and the domain name server is the domain name server in the area where the network edge device is located. For example, if the network edge device is deployed in Shenzhen, the network edge device will obtain the IP address. The IP address of the domain name server also deployed in Shenzhen. It should be noted that the IP address may be the IP address of one domain name server or the IP addresses of multiple domain name servers. For example, if multiple domain name servers are deployed in Shenzhen , the network edge device will obtain the IP addresses corresponding to the multiple domain name servers. If only one domain name server is deployed in Shenzhen, the network edge device will only obtain the IP address of this one domain name server.
202、网络边缘设备根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息。202. The network edge device determines the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located.
在获取了域名服务器的IP地址之后,网络边缘设备可以根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,具体的,网络边缘设备的区域信息即为该网络边缘设备当前所处的区域的信息,例如深圳或者上海,运营商会为特定的区域分配特定的域名服务器地址,例如,为A区域的域名服务器配置域名服务器地址A,为B区域的域名服务器配置域名服务器地址B,由此网络边缘设备可以根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息。After obtaining the IP address of the domain name server, the network edge device can determine the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located. Specifically, The area information of the network edge device is the information of the area where the network edge device is currently located, such as Shenzhen or Shanghai. The operator will assign a specific domain name server address to a specific area. For example, configure the domain name server address for the domain name server in area A. A, configure domain name server address B for the domain name server in area B, so that the network edge device can determine the network edge device according to the IP address of the domain name server and the corresponding relationship between the IP address of the domain name server and the area information of the area where the network edge device Regional information.
203、网络边缘设备确定网络边缘设备的区域信息与预设区域信息不一致,执行防窜货操作。203. The network edge device determines that the area information of the network edge device is inconsistent with the preset area information, and performs an anti-smuggling operation.
在网络边缘设备确定出网络边缘设备的区域信息之后,网络边缘设备可以将网络边缘设备的区域信息与预设区域信息进行对比,需要说明的是,该预设区域信息为网络边缘设备出厂之前设置于网络边缘设备中,如果网络边缘设备的区域信息与预设区域信息不一致,则网络边缘设备可以执行防窜货操作,例如,网络边缘设备确定出网络边缘设备的区域信息为上海,而网络边缘设备的预设区域信息为深圳,则网络边缘设备执行防窜货操作,具体的,防窜货操作可以是停止工作或者是发出警告。After the network edge device determines the area information of the network edge device, the network edge device can compare the area information of the network edge device with the preset area information. It should be noted that the preset area information is set before the network edge device leaves the factory. In the network edge device, if the region information of the network edge device is inconsistent with the preset region information, the network edge device can perform anti-smuggling operations. For example, the network edge device determines that the region information of the network edge device is Shanghai, and the network edge device If the preset area information of the device is Shenzhen, the network edge device performs an anti-smuggling operation. Specifically, the anti-smuggling operation may be to stop working or issue a warning.
本申请实施例中,网络边缘设备获取域名服务器的IP地址之后,根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,并且如果网络边缘设备所处的区域的区域信息与预设区域信息不一致,执行防窜货操作,由于采用了上述方法,即使网络边缘设备处于室内也能正常执行防窜货方法。In the embodiment of the present application, after acquiring the IP address of the domain name server, the network edge device determines the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located, And if the area information of the area where the network edge device is located is inconsistent with the preset area information, the anti-smuggling operation is performed. Due to the above method, the anti-smuggling method can be normally performed even if the network edge device is indoors.
上面对本申请实施例防窜货方法进行了较为概括的描述,请参阅图3,下面对本申请实施例防窜货方法的一个详细流程进行描述:A more general description of the anti-smuggling method according to the embodiment of the present application has been made above. Please refer to FIG. 3 , and a detailed flow of the anti-smuggling method according to the embodiment of the present application is described below:
301、网络边缘设备获取预设区域信息。301. The network edge device acquires preset area information.
在出厂之前,网络边缘设备中会写入预设区域信息,该预设区域信息即是生产厂家计划将网络边缘设备销售的区域,例如,预设区域信息可以是上海,或者也可以是深圳,具体此处不做限定,网络边缘设备在出厂并投入使用之后,可以从本地获取该预设区域信息,需要说明的是,该预设区域信息也可以为经过加密以及签名后的预设区域信息,网络边缘设备在获取到预设区域信息之后可以对预设区域信息进行解密以及验证。Before leaving the factory, the preset area information will be written in the network edge device. The preset area information is the area where the manufacturer plans to sell the network edge device. For example, the preset area information can be Shanghai or Shenzhen. There is no specific limitation here. After the network edge device leaves the factory and is put into use, it can obtain the preset area information locally. It should be noted that the preset area information can also be encrypted and signed. Preset area information , the network edge device can decrypt and verify the preset area information after acquiring the preset area information.
302、网络边缘设备向路由器以太网上的点对点协议(point to point protocolover ethernet,PPPOE)拨号或动态主机配置协议(dynamic host configurationprotocol,DHCP)拨号。302. The network edge device dials a point-to-point protocol (point to point protocol over ethernet, PPPOE) or a dynamic host configuration protocol (dynamic host configuration protocol, DHCP) dial on the Ethernet of the router.
三层设备工作在网络层,可以根据不同的IP地址来确定报文的转发地址。如果网络边缘设备作为三层设备投入使用,网络边缘设备可以先向路由器发起PPPOE拨号或者DHCP拨号。Layer 3 devices work at the network layer and can determine the forwarding address of packets based on different IP addresses. If the network edge device is put into use as a Layer 3 device, the network edge device can initiate PPPOE dial-up or DHCP dial-up to the router first.
303、网络边缘设备接收来自路由器的报文。303. The network edge device receives the packet from the router.
网络边缘设备在向路由器发起PPPOE拨号或者DHCP拨号之后,可以接收到来自路由器的报文,该报文中会携带网络边缘设备当前所在区域的域名服务器的IP地址,需要说明的是,该IP地址可能是一个域名服务器的IP地址,也有可能是多个域名服务器的IP地址,例如,如果在深圳部署了多个域名服务器,则网络边缘设备可以通过不同的报文获取该多个域名服务器对应的IP地址,如果在深圳只部署了一个域名服务器,则网络边缘设备只会获取这一个域名服务器的IP地址。After the network edge device initiates PPPOE dial-up or DHCP dial-up to the router, it can receive a packet from the router. The packet will carry the IP address of the domain name server in the area where the network edge device is currently located. It should be noted that the IP address It may be the IP address of one domain name server, or it may be the IP address of multiple domain name servers. For example, if multiple domain name servers are deployed in Shenzhen, the network edge device can obtain the corresponding IP addresses of the multiple domain name servers through different packets. IP address. If only one domain name server is deployed in Shenzhen, the network edge device will only obtain the IP address of this domain name server.
304、网络边缘设备根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息。304. The network edge device determines the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located.
在获取了域名服务器的IP地址之后,网络边缘设备可以根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,具体的,网络边缘设备的区域信息即为该网络边缘设备当前所处的区域的信息,例如深圳或者上海,运营商会为特定的区域分配特定的域名服务器地址,例如,为A区域的域名服务器配置域名服务器地址A,为B区域的域名服务器配置域名服务器地址B,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系具体可以包括IP地址集合,其中,IP地址集合会包括已经投入工作的域名服务器的IP地址,IP地址集合中的每一个IP地址与区域信息集合中的每一个区域信息存在对应关系,示例性地,请参阅表1:After obtaining the IP address of the domain name server, the network edge device can determine the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located. Specifically, The area information of the network edge device is the information of the area where the network edge device is currently located, such as Shenzhen or Shanghai. The operator will assign a specific domain name server address to a specific area. For example, configure the domain name server address for the domain name server in area A. A. Configure the domain name server address B for the domain name server in the B area. The corresponding relationship between the IP address of the domain name server and the area information of the area where the network edge device is located may specifically include an IP address set, where the IP address set will include those that have been put into work. The IP address of the domain name server, each IP address in the IP address set has a corresponding relationship with each zone information in the zone information set, for example, please refer to Table 1:
表1 IP地址集合Table 1 IP address set
IP地址集合包括域名服务器IP地址A、域名服务器IP地址B以及域名服务器IP地址C,且由于运营商的配置,域名服务器IP地址A可以对应北京,域名服务器IP地址B可以对应上海,域名服务器IP地址C可以对应深圳,由此,网络边缘设备在获取到域名服务器的IP地址之后,可以将域名服务器的IP地址与IP地址集合进行对比,从而确定出网络边缘设备的区域信息。The IP address set includes domain name server IP address A, domain name server IP address B, and domain name server IP address C. Due to the configuration of the operator, domain name server IP address A can correspond to Beijing, domain name server IP address B can correspond to Shanghai, and domain name server IP address Address C may correspond to Shenzhen. Therefore, after obtaining the IP address of the domain name server, the network edge device can compare the IP address of the domain name server with the IP address set to determine the area information of the network edge device.
需要说明的是,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系可以为网络边缘设备出厂之前在网络边缘设备中写入的,或者也可以是在网络边缘设备投入使用之后,由网络边缘设备从远端的服务器中下载获取,具体此处不做限定。It should be noted that the corresponding relationship between the IP address of the domain name server and the area information of the area where the network edge device is located may be written in the network edge device before the network edge device leaves the factory, or it may also be after the network edge device is put into use. , which is downloaded and obtained by the network edge device from the remote server, which is not specifically limited here.
305、网络边缘设备确定网络边缘设备的区域信息与预设区域信息不一致,执行防窜货操作。305. The network edge device determines that the area information of the network edge device is inconsistent with the preset area information, and performs an anti-smuggling operation.
在网络边缘设备确定出网络边缘设备的区域信息之后,网络边缘设备可以将网络边缘设备的区域信息与预设区域信息进行对比,需要说明的是,该预设区域信息为网络边缘设备出厂之前设置于网络边缘设备中,如果网络边缘设备的区域信息与预设区域信息不一致,则网络边缘设备可以执行防窜货操作,例如,网络边缘设备确定出网络边缘设备的区域信息为上海,而网络边缘设备的预设区域信息为深圳,则网络边缘设备执行防窜货操作,具体的,防窜货操作可以是停止工作或者是发出警告。After the network edge device determines the area information of the network edge device, the network edge device can compare the area information of the network edge device with the preset area information. It should be noted that the preset area information is set before the network edge device leaves the factory. In the network edge device, if the region information of the network edge device is inconsistent with the preset region information, the network edge device can perform anti-smuggling operations. For example, the network edge device determines that the region information of the network edge device is Shanghai, and the network edge device If the preset area information of the device is Shenzhen, the network edge device performs an anti-smuggling operation. Specifically, the anti-smuggling operation may be to stop working or issue a warning.
本申请实施例中,即使网络边缘设备处于室内,网络边缘设备也可以通过来自路由器的报文获取域名服务器的IP地址,并可以通过域名服务器的IP地址与域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,进而根据网络边缘设备的区域信息与预设区域信息的比对确定是否存在窜货行为,若有则执行防窜货操作,从而保证了生产厂家的利益。In the embodiment of the present application, even if the network edge device is indoors, the network edge device can obtain the IP address of the domain name server through the packet from the router, and can obtain the IP address of the domain name server through the IP address of the domain name server and the IP address of the domain name server. The corresponding relationship between the area information of the area at the location determines the area information of the network edge device, and then according to the comparison between the area information of the network edge device and the preset area information, it is determined whether there is a smuggling behavior, and if so, the anti-smuggling operation is performed to ensure that the interests of the manufacturer.
上面对本申请实施例防窜货方法的一个流程进行了介绍,请参阅图4,下面对防窜货方法的另一流程进行详细介绍:A process of the anti-smuggling method according to the embodiment of the present application has been introduced above, please refer to FIG. 4 , and another process of the anti-smuggling method is described in detail below:
401、网络边缘设备获取预设区域信息。401. The network edge device acquires preset area information.
在出厂之前,网络边缘设备中会写入预设区域信息,该预设区域信息即是生产厂家计划将网络边缘设备销售的区域,例如,预设区域信息可以是上海,或者也可以是深圳,具体此处不做限定,网络边缘设备在出厂并投入使用之后,可以从本地获取该预设区域信息,需要说明的是,该预设区域信息也可以为经过加密以及签名后的预设区域信息,网络边缘设备在获取到预设区域信息之后可以对预设区域信息进行解密以及验证。Before leaving the factory, the preset area information will be written in the network edge device. The preset area information is the area where the manufacturer plans to sell the network edge device. For example, the preset area information can be Shanghai or Shenzhen. There is no specific limitation here. After the network edge device leaves the factory and is put into use, it can obtain the preset area information locally. It should be noted that the preset area information can also be encrypted and signed. Preset area information , the network edge device can decrypt and verify the preset area information after acquiring the preset area information.
402、网络边缘设备根据知名传输控制协议(transmission control protocol,TCP)端口号或知名用户数据报协议(user datagram protocol,UDP)端口号获取域名服务器请求报文。402. The network edge device obtains a domain name server request message according to a well-known transmission control protocol (transmission control protocol, TCP) port number or a well-known user datagram protocol (user datagram protocol, UDP) port number.
二层设备属于数据链路层设备,可以识别报文中的MAC地址信息,并根据MAC地址信息对报文进行转发,并将MAC地址信息与其对应的端口号进行记录,具体的,当二层设备接收到报文,二层设备会先读取报文中的源MAC地址,再读取报文中的目的MAC地址,并且在地址表中查找相应的端口号,如果存在与目的MAC地址对应的端口号,则将报文转发至该端口号上。在具体的实现中,如果网络边缘设备作为二层设备投入使用,网络边缘设备会将网络边缘设备的下挂设备的域名服务器请求报文转发至域名服务器,因此网络边缘设备可以利用知名TCP端口号或UDP端口号作为访问控制列表获取用户向域名服务器发送的域名服务器请求报文,具体的,端口号可以为知名TCP端口号53或知名UDP端口号53。The Layer 2 device belongs to the data link layer device and can identify the MAC address information in the packet, forward the packet according to the MAC address information, and record the MAC address information and its corresponding port number. When the device receives the packet, the Layer 2 device will first read the source MAC address in the packet, then read the destination MAC address in the packet, and look up the corresponding port number in the address table. port number, the packet will be forwarded to this port number. In the specific implementation, if the network edge device is put into use as a Layer 2 device, the network edge device will forward the domain name server request message of the device attached to the network edge device to the domain name server. Therefore, the network edge device can use the well-known TCP port number. Or use the UDP port number as the access control list to obtain the domain name server request message sent by the user to the domain name server. Specifically, the port number can be the well-known TCP port number 53 or the well-known UDP port number 53.
403、网络边缘设备根据域名服务器请求报文获取域名服务器的IP地址。403. The network edge device obtains the IP address of the domain name server according to the domain name server request message.
在获取到域名服务器请求报文之后,网络边缘设备可以对域名服务器请求报文进行解析,从而获取域名服务器请求报文中的目的IP地址,也即域名服务器的IP地址,在实际的实现中,网络边缘设备也可以将获取到的多个域名服务器的IP地址进行保存,从而进行后续的与IP地址集合的比对,需要说明的是,该IP地址可能是一个域名服务器的IP地址,也有可能是多个域名服务器的IP地址,例如,如果在深圳部署了多个域名服务器,则网络边缘设备会通过不同的域名服务器请求报文获取该多个域名服务器对应的IP地址,如果在深圳只部署了一个域名服务器,则网络边缘设备只会获取这一个域名服务器的IP地址。After obtaining the domain name server request packet, the network edge device can parse the domain name server request packet to obtain the destination IP address in the domain name server request packet, that is, the IP address of the domain name server. In actual implementation, The network edge device can also save the obtained IP addresses of multiple domain name servers, so as to perform subsequent comparison with the IP address set. It should be noted that the IP address may be the IP address of a domain name server, or it may be It is the IP address of multiple domain name servers. For example, if multiple domain name servers are deployed in Shenzhen, the network edge device will obtain the IP addresses corresponding to the multiple domain name servers through different domain name server request packets. If only one domain name server is deployed in Shenzhen If there is a domain name server, the network edge device will only obtain the IP address of this domain name server.
404、网络边缘设备根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息。404. The network edge device determines the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located.
在获取了域名服务器的IP地址之后,网络边缘设备可以根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,具体的,网络边缘设备的区域信息即为该网络边缘设备当前所处的区域的信息,例如深圳或者上海,运营商会为特定的区域分配特定的域名服务器地址,例如,为A区域的域名服务器配置域名服务器地址A,为B区域的域名服务器配置域名服务器地址B,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系具体可以包括IP地址集合,其中,IP地址集合会包括已经投入工作的域名服务器的IP地址,IP地址集合中的每一个IP地址与区域信息集合中的每一个区域信息存在对应关系,示例性地,请参阅表1,如表1所示,IP地址集合包括域名服务器IP地址A、域名服务器IP地址B以及域名服务器IP地址C,且由于运营商的配置,域名服务器IP地址A可以对应北京,域名服务器IP地址B可以对应上海,域名服务器IP地址C可以对应深圳,由此,网络边缘设备在获取到域名服务器的IP地址之后,可以将域名服务器的IP地址与IP地址集合进行对比,从而确定出网络边缘设备的区域信息。After obtaining the IP address of the domain name server, the network edge device can determine the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located. Specifically, The area information of the network edge device is the information of the area where the network edge device is currently located, such as Shenzhen or Shanghai. The operator will assign a specific domain name server address to a specific area. For example, configure the domain name server address for the domain name server in area A. A. Configure the domain name server address B for the domain name server in the B area. The corresponding relationship between the IP address of the domain name server and the area information of the area where the network edge device is located may specifically include an IP address set, where the IP address set will include those that have been put into work. The IP address of the domain name server. Each IP address in the IP address set has a corresponding relationship with each area information in the area information set. For example, please refer to Table 1. As shown in Table 1, the IP address set includes the domain name server. IP address A, domain name server IP address B, and domain name server IP address C, and due to the configuration of the operator, domain name server IP address A can correspond to Beijing, domain name server IP address B can correspond to Shanghai, and domain name server IP address C can correspond to Shenzhen. Therefore, after acquiring the IP address of the domain name server, the network edge device can compare the IP address of the domain name server with the IP address set, so as to determine the area information of the network edge device.
需要说明的是,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系可以为网络边缘设备出厂之前在网络边缘设备中写入的,或者也可以是在网络边缘设备投入使用之后,由网络边缘设备从远端的服务器中下载获取,具体此处不做限定。It should be noted that the corresponding relationship between the IP address of the domain name server and the area information of the area where the network edge device is located may be written in the network edge device before the network edge device leaves the factory, or it may also be after the network edge device is put into use. , which is downloaded and obtained by the network edge device from the remote server, which is not specifically limited here.
405、网络边缘设备确定网络边缘设备的区域信息与预设区域信息不一致,执行防窜货操作。405. The network edge device determines that the area information of the network edge device is inconsistent with the preset area information, and performs an anti-smuggling operation.
在网络边缘设备确定出网络边缘设备的区域信息之后,网络边缘设备可以将网络边缘设备的区域信息与预设区域信息进行对比,需要说明的是,该预设区域信息为网络边缘设备出厂之前设置于网络边缘设备中,如果网络边缘设备的区域信息与预设区域信息不一致,则网络边缘设备可以执行防窜货操作,例如,网络边缘设备确定出网络边缘设备的区域信息为上海,而网络边缘设备的预设区域信息为深圳,则网络边缘设备执行防窜货操作,具体的,防窜货操作可以是停止工作或者是发出警告。After the network edge device determines the area information of the network edge device, the network edge device can compare the area information of the network edge device with the preset area information. It should be noted that the preset area information is set before the network edge device leaves the factory. In the network edge device, if the region information of the network edge device is inconsistent with the preset region information, the network edge device can perform anti-smuggling operations. For example, the network edge device determines that the region information of the network edge device is Shanghai, and the network edge device If the preset area information of the device is Shenzhen, the network edge device performs an anti-smuggling operation. Specifically, the anti-smuggling operation may be to stop working or issue a warning.
本申请实施例中,即使网路设备处于室内,网络边缘设备也可以根据获取到的域名服务器请求报文获取域名服务器的IP地址,并可以通过域名服务器的IP地址与域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,进而根据网络边缘设备的区域信息与预设区域信息的比对确定是否存在窜货行为,若有则执行防窜货操作,从而保证了生产厂家的利益。In the embodiment of the present application, even if the network device is indoors, the network edge device can obtain the IP address of the domain name server according to the obtained domain name server request message, and can obtain the IP address of the domain name server through the IP address of the domain name server and the IP address of the domain name server. The corresponding relationship between the area information of the area where the edge device is located determines the area information of the network edge device, and then determines whether there is a smuggling behavior according to the comparison between the area information of the network edge device and the preset area information, and if so, executes an anti-smuggling operation. , thus ensuring the interests of the manufacturer.
上面对本申请实施例的防窜货方法进行了描述,下面对本申请实施例中的网络边缘设备进行描述:The anti-smuggling method in the embodiment of the present application has been described above, and the network edge device in the embodiment of the present application is described below:
请参阅图5,本申请实施例中的网络边缘设备500包括获取单元501、确定单元502以及执行单元503。Referring to FIG. 5 , the
获取单元501,用于获取域名服务器的IP地址,域名服务器为网络边缘设备所处区域对应的域名服务器。The obtaining
确定单元502,用于根据域名服务器的IP地址,以及IP地址与网络边缘设备所处区域的区域信息的对应关系,确定网络边缘设备所处区域的区域信息。The determining
执行单元503,用于若区域信息与网络边缘设备的预设区域信息不一致,则执行防窜货操作,预设区域信息为网络边缘设备出厂之前设置于网络边缘设备。The
本申请实施例中,网络边缘设备获取域名服务器的IP地址之后,根据域名服务器的IP地址以及域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系确定网络边缘设备的区域信息,并且如果网络边缘设备所处的区域的区域信息与预设区域信息不一致,执行防窜货操作,由于采用了上述方法,即使网络边缘设备处于室内也能正常执行防窜货方法。In the embodiment of the present application, after acquiring the IP address of the domain name server, the network edge device determines the area information of the network edge device according to the IP address of the domain name server and the correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located, And if the area information of the area where the network edge device is located is inconsistent with the preset area information, the anti-smuggling operation is performed. Due to the above method, the anti-smuggling method can be normally performed even if the network edge device is indoors.
在基于上述图5所示的网络边缘设备500的基础上,Based on the
获取单元501,具体用于向路由器发起PPPOE拨号或DHCP拨号。The obtaining
获取单元501,还用于接收来自路由器的报文,报文携带域名服务器的IP地址。The obtaining
或者,or,
在基于上述图5所示的网络边缘设备500的基础上,Based on the
获取单元501,具体用于根据知名TCP端口号或知名UDP端口号获取域名服务器请求报文,域名服务器请求报文由网络边缘设备的下挂设备向网络边缘设备发送之后,由网络边缘设备向域名服务器发送。The obtaining
获取单元501,还用于根据域名服务器请求报文获取域名服务器的IP地址。The obtaining
在基于上述图5所示的网络边缘设备500的基础上,Based on the
获取单元501,还用于获取预设区域信息,预设区域信息经过加密以及签名处理。The obtaining
获取单元501,还用于对预设区域信息进行解密以及验证处理。The obtaining
本申请实施例中,网络边缘设备可以对预设区域信息进行解密以及验证,保证了预设区域信息的安全性以及可靠性。In the embodiment of the present application, the network edge device can decrypt and verify the preset area information, which ensures the security and reliability of the preset area information.
在基于上述图5所示的网络边缘设备500的基础上,Based on the
域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系为网络边缘设备500从本地获取。The correspondence between the IP address of the domain name server and the area information of the area where the network edge device is located is obtained by the
本申请实施例中,网络边缘设备可以从本地获取对应关系,从而提高了防窜货的效率。In the embodiment of the present application, the network edge device can obtain the corresponding relationship locally, thereby improving the efficiency of anti-smuggling.
或者,or,
在基于上述图5所示的网络边缘设备500的基础上,域名服务器的IP地址与网络边缘设备所处区域的区域信息的对应关系为网络边缘设备500从远端服务器获取。Based on the
本申请实施例中,网络边缘设备从远端服务器获取对应关系,提高了方案的灵活性。In the embodiment of the present application, the network edge device obtains the corresponding relationship from the remote server, which improves the flexibility of the solution.
图6是本申请实施例提供的一种网络边缘设备的结构示意图,该网络边缘设备600可以包括一个或一个以上中央处理器(central processing units,CPU)601和存储器605,该存储器605中存储有一个或一个以上的应用程序或数据。FIG. 6 is a schematic structural diagram of a network edge device provided by an embodiment of the present application. The
其中,存储器605可以是易失性存储或持久存储。存储在存储器605的程序可以包括一个或一个以上模块,每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器601可以设置为与存储器605通信,在网络边缘设备600上执行存储器605中的一系列指令操作。Among them, the
网络边缘设备600还可以包括一个或一个以上电源602,一个或一个以上有线或无线网络接口603,一个或一个以上输入输出接口604,和/或,一个或一个以上操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等。The
该中央处理器601可以执行前述图2至图4所示实施例中网络边缘设备的操作,具体此处不再赘述。The
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which is not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-onlymemory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk and other media that can store program codes.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110075438.6A CN114785754B (en) | 2021-01-20 | 2021-01-20 | Method for preventing goods from being fleed and related device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110075438.6A CN114785754B (en) | 2021-01-20 | 2021-01-20 | Method for preventing goods from being fleed and related device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114785754A true CN114785754A (en) | 2022-07-22 |
CN114785754B CN114785754B (en) | 2023-12-15 |
Family
ID=82407683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110075438.6A Active CN114785754B (en) | 2021-01-20 | 2021-01-20 | Method for preventing goods from being fleed and related device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114785754B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030065571A1 (en) * | 1999-10-14 | 2003-04-03 | Rabindranath Dutta | System, method, and program for determining the jurisdiction of a product delivery location by using the ip address of the client while selling items via electronic commerce over the internet |
CN103759393A (en) * | 2014-01-21 | 2014-04-30 | 广东美的制冷设备有限公司 | Air conditioner, wireless air conditioner controller, system and control method of air conditioner |
CN105046391A (en) * | 2015-04-13 | 2015-11-11 | 青岛海尔智能家电科技有限公司 | Method and apparatus for discovering cross-boundary selling of household electrical appliances of Internet of Things, and household electrical appliances of Internet of Things |
CN105321084A (en) * | 2014-06-11 | 2016-02-10 | 珠海格力电器股份有限公司 | Household appliance anti-channel conflict operation control method and household appliance system |
CN105744003A (en) * | 2016-04-29 | 2016-07-06 | 珠海格力电器股份有限公司 | Identification method, identification device and identification system for region to which household appliance belongs |
CN105844441A (en) * | 2016-04-01 | 2016-08-10 | 广东美的暖通设备有限公司 | Household electrical appliance anti-channel conflict management method, anti-channel conflict management device and server |
CN107590666A (en) * | 2017-08-24 | 2018-01-16 | 深圳创维-Rgb电子有限公司 | A kind of falsifying recognition methods of electric equipment and system |
CN109658116A (en) * | 2018-12-26 | 2019-04-19 | 奥克斯空调股份有限公司 | A kind of method for goods anti-forge and air conditioner |
-
2021
- 2021-01-20 CN CN202110075438.6A patent/CN114785754B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030065571A1 (en) * | 1999-10-14 | 2003-04-03 | Rabindranath Dutta | System, method, and program for determining the jurisdiction of a product delivery location by using the ip address of the client while selling items via electronic commerce over the internet |
CN103759393A (en) * | 2014-01-21 | 2014-04-30 | 广东美的制冷设备有限公司 | Air conditioner, wireless air conditioner controller, system and control method of air conditioner |
CN105321084A (en) * | 2014-06-11 | 2016-02-10 | 珠海格力电器股份有限公司 | Household appliance anti-channel conflict operation control method and household appliance system |
CN105046391A (en) * | 2015-04-13 | 2015-11-11 | 青岛海尔智能家电科技有限公司 | Method and apparatus for discovering cross-boundary selling of household electrical appliances of Internet of Things, and household electrical appliances of Internet of Things |
CN105844441A (en) * | 2016-04-01 | 2016-08-10 | 广东美的暖通设备有限公司 | Household electrical appliance anti-channel conflict management method, anti-channel conflict management device and server |
CN105744003A (en) * | 2016-04-29 | 2016-07-06 | 珠海格力电器股份有限公司 | Identification method, identification device and identification system for region to which household appliance belongs |
CN107590666A (en) * | 2017-08-24 | 2018-01-16 | 深圳创维-Rgb电子有限公司 | A kind of falsifying recognition methods of electric equipment and system |
CN109658116A (en) * | 2018-12-26 | 2019-04-19 | 奥克斯空调股份有限公司 | A kind of method for goods anti-forge and air conditioner |
Also Published As
Publication number | Publication date |
---|---|
CN114785754B (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11647548B2 (en) | Network access method, device, and system | |
US10116489B2 (en) | Apparatus and method for managing network access device | |
TW202032382A (en) | Network configuration method and apparatus, device, and system | |
US10448244B2 (en) | Deployment and configuration of access points | |
CN104348903A (en) | A communication system and device for establishing point-to-point connection | |
CN101197834A (en) | Secure download of a boot image to a remote boot environment of a computer | |
US20220038454A1 (en) | Non-intrusive / agentless network device identification | |
CN104994077A (en) | Wireless local area network access equipment identity marking method and device | |
JP6911411B2 (en) | Communication devices, communication systems, communication control methods, and programs | |
CN103475751A (en) | Method and device for IP address switch | |
US20070274274A1 (en) | Open wireless access point detection and identification | |
US20220217172A1 (en) | System and method for protection of an ics network by an hmi server therein | |
CN109428884B (en) | Communication protection device, control method, and recording medium | |
CN105744003B (en) | Identification method, identification device and identification system for region to which household appliance belongs | |
JP2017514410A (en) | Discriminating method and corresponding terminal, computer program product, and storage medium | |
CN114785754B (en) | Method for preventing goods from being fleed and related device thereof | |
CN110602693B (en) | Networking method and equipment of wireless network | |
US11108588B2 (en) | Configuration information to an internet of things multiplexer | |
TWI692228B (en) | Connection establishing system and method for mesh network | |
CN110943962B (en) | An authentication method, a network device, an authentication server, and a forwarding device | |
CN108282786B (en) | Method and equipment for detecting DNS spoofing attack in wireless local area network | |
CN101656722A (en) | Method for generating dynamic host configuration protocol (DHCP) snooping binding information, and device thereof | |
JP2013243674A (en) | Method for connection between terminals | |
US7596136B2 (en) | Data communication apparatus, data communication method, program, and storage medium | |
CN114980000A (en) | Identification method, equipment and server for electric equipment sales information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |