CN104468861B - The method, apparatus and system of terminal recognition - Google Patents
The method, apparatus and system of terminal recognition Download PDFInfo
- Publication number
- CN104468861B CN104468861B CN201410776939.7A CN201410776939A CN104468861B CN 104468861 B CN104468861 B CN 104468861B CN 201410776939 A CN201410776939 A CN 201410776939A CN 104468861 B CN104468861 B CN 104468861B
- Authority
- CN
- China
- Prior art keywords
- address
- server
- network card
- terminal
- actual
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004891 communication Methods 0.000 claims abstract description 37
- 238000012360 testing method Methods 0.000 claims abstract description 22
- 230000004044 response Effects 0.000 claims description 11
- 230000008030 elimination Effects 0.000 claims description 5
- 238000003379 elimination reaction Methods 0.000 claims description 5
- 238000001514 detection method Methods 0.000 claims description 3
- 230000006855 networking Effects 0.000 description 6
- 101100388291 Arabidopsis thaliana DTX49 gene Proteins 0.000 description 5
- 101100388299 Arabidopsis thaliana DTX54 gene Proteins 0.000 description 5
- 101100294133 Arabidopsis thaliana NIC2 gene Proteins 0.000 description 5
- 101100268840 Danio rerio chrna1 gene Proteins 0.000 description 5
- 101150065731 NIC1 gene Proteins 0.000 description 5
- PWHVEHULNLETOV-UHFFFAOYSA-N Nic-1 Natural products C12OC2C2(O)CC=CC(=O)C2(C)C(CCC2=C3)C1C2=CC=C3C(C)C1OC(O)C2(C)OC2(C)C1 PWHVEHULNLETOV-UHFFFAOYSA-N 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- GWWNCLHJCFNTJA-UHFFFAOYSA-N nicandrenone-2 Natural products C12OC2C2(O)CC=CC(=O)C2(C)C(CCC23C)C1C3CCC2(O)C(C)C1OC(O)C2(C)OC2(C)C1 GWWNCLHJCFNTJA-UHFFFAOYSA-N 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- WYDFSSCXUGNICP-UHFFFAOYSA-N 24-methylenecholesta-5,7-dien-3beta-ol Natural products C1C2(C)OC2(C)C(O)OC1C(C)C1C2(C)CCC3C4(C)C(=O)C=CCC4(O)C4OC4C3C2CC1 WYDFSSCXUGNICP-UHFFFAOYSA-N 0.000 description 4
- 101100388300 Arabidopsis thaliana DTX55 gene Proteins 0.000 description 4
- 101100294134 Arabidopsis thaliana NIC3 gene Proteins 0.000 description 4
- WYDFSSCXUGNICP-CDLQDMDJSA-N C[C@@H]([C@H]1CC[C@H]2[C@@H]3[C@@H]4O[C@@H]4[C@@]4(O)CC=CC(=O)[C@]4(C)[C@H]3CC[C@]12C)[C@H]1C[C@]2(C)O[C@]2(C)C(O)O1 Chemical compound C[C@@H]([C@H]1CC[C@H]2[C@@H]3[C@@H]4O[C@@H]4[C@@]4(O)CC=CC(=O)[C@]4(C)[C@H]3CC[C@]12C)[C@H]1C[C@]2(C)O[C@]2(C)C(O)O1 WYDFSSCXUGNICP-CDLQDMDJSA-N 0.000 description 4
- 230000008901 benefit Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种终端识别的方法、装置及系统,涉及互联网技术领域,解决了服务器无法对具有多个IP地址的终端进行正确识别的问题,本发明的方法包括:扫描本地网卡,生成网卡地址列表,网卡地址列表中记录有不同网卡对应的网间协议IP地址;从网卡地址列表中剔除虚拟网卡的IP地址;分别绑定剩余每个网卡的IP地址与服务器进行通信测试;将与服务器成功通信的网卡的IP地址确定为终端的实际IP地址;将实际IP地址上报给服务器。本发明主要应用于局域网环境下对终端的IP进行确认。
The invention discloses a method, device and system for terminal identification, relates to the technical field of the Internet, and solves the problem that a server cannot correctly identify a terminal with multiple IP addresses. The method of the invention includes: scanning a local network card and generating a network card The address list, the network card address list records the Internet protocol IP addresses corresponding to different network cards; removes the IP address of the virtual network card from the network card address list; binds the remaining IP addresses of each network card to the server for communication testing; will communicate with the server The IP address of the successfully communicated network card is determined as the actual IP address of the terminal; the actual IP address is reported to the server. The present invention is mainly applied to confirming the IP of the terminal under the environment of the local area network.
Description
技术领域technical field
本发明涉及互联网技术领域,特别是涉及一种终端识别的方法、装置及系统。The present invention relates to the technical field of the Internet, in particular to a terminal identification method, device and system.
背景技术Background technique
随着网络技术的发展,终端联网也呈现出多种方式,从有线联网到无线联网,近年来又出现便携式联网的随身无线保真设备(Wireless Fidelity,简称WiFi)。联网方式的多样在给人们上网带来方便的同时,也造成管理终端出现混乱。With the development of network technology, there are various ways of terminal networking, from wired networking to wireless networking, and portable wireless fidelity devices (Wireless Fidelity, WiFi for short) appear in recent years. The variety of networking methods brings convenience to people's access to the Internet, but also causes confusion in the management terminal.
例如,有些终端如笔记本电脑,其不但具有有线网卡,还具有无线网卡,甚至有些笔记本电脑还安装了虚拟网卡或通过随身WiFi进行联网,这些不同类型的网卡通常都具有各自的网间协议(Internet Protocol,简称IP)地址,在与服务器进行数据交互时,服务器无法正确区分终端真实的IP,从而导致无法对终端进行有效的识别。For example, some terminals, such as notebook computers, not only have wired network cards, but also have wireless network cards, and even some notebook computers have installed virtual network cards or connect to the Internet through portable WiFi. These different types of network cards usually have their own Internet protocol (Internet Protocol, referred to as IP) address, when exchanging data with the server, the server cannot correctly distinguish the real IP of the terminal, resulting in the inability to effectively identify the terminal.
发明内容Contents of the invention
有鉴于此,本发明提出了一种终端识别的方法、装置及系统,主要目的在于解决服务器无法对具有多个IP地址的终端进行正确识别的问题。In view of this, the present invention proposes a terminal identification method, device and system, the main purpose of which is to solve the problem that the server cannot correctly identify terminals with multiple IP addresses.
依据本发明的第一个方面,本发明提供了一种终端识别的方法,包括:According to the first aspect of the present invention, the present invention provides a method for terminal identification, including:
扫描本地网卡,生成网卡地址列表,网卡地址列表中记录有不同网卡对应的网间协议IP地址;Scan the local network card to generate a network card address list, which records the Internet Protocol IP addresses corresponding to different network cards;
从网卡地址列表中剔除虚拟网卡的IP地址;Remove the IP address of the virtual network card from the network card address list;
对于剩余网卡,分别绑定每个网卡的IP地址与服务器进行通信测试;For the remaining network cards, bind the IP address of each network card to the server for communication testing;
将与服务器成功通信的网卡的IP地址确定为终端的实际IP地址;Determine the IP address of the network card successfully communicating with the server as the actual IP address of the terminal;
将实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。Report the actual IP address to the server so that the server can identify the terminal based on the actual IP address.
依据本发明的第二个方面,本发明提供了一种终端识别的装置,该装置位于终端中,包括:According to the second aspect of the present invention, the present invention provides a terminal identification device, the device is located in the terminal, including:
生成单元,用于扫描本地网卡,生成网卡地址列表,网卡地址列表中记录有不同网卡对应的网间协议IP地址;The generation unit is used to scan the local network card to generate a network card address list, and the network card address list records the IP addresses corresponding to different network cards;
剔除单元,用于从生成单元生成的网卡地址列表中剔除虚拟网卡的IP地址;The elimination unit is used to remove the IP address of the virtual network card from the network card address list generated by the generation unit;
绑定单元,用于分别绑定剔除单元剔除掉虚拟网卡的IP地址后剩余的每个网卡的IP地址与服务器进行通信测试;The binding unit is used to respectively bind and eliminate the IP address of each network card remaining after the IP address of the virtual network card is removed by the elimination unit to perform a communication test with the server;
确定单元,用于将与服务器成功通信的绑定单元绑定的网卡的IP地址确定为终端的实际IP地址;A determining unit, configured to determine the IP address of the network card bound to the binding unit successfully communicating with the server as the actual IP address of the terminal;
上报单元,用于将确定单元确定的实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。The reporting unit is configured to report the actual IP address determined by the determining unit to the server, so that the server can identify the terminal according to the actual IP address.
依据本发明的第三个方面,本发明提供了一种终端识别的系统,该系统包括:终端和服务器,其中,终端包含上述第二个方面所述的装置。According to the third aspect of the present invention, the present invention provides a terminal identification system, the system includes: a terminal and a server, wherein the terminal includes the device described in the second aspect above.
借由上述技术方案,本发明实施例提供的终端识别的方法、装置及系统,能够对终端本地网卡进行扫描,生成记录有不同网卡对应的网间协议IP地址的网卡地址列表,在剔除掉网卡地址列表中的虚拟网卡IP地址后,分别绑定剩余的每个网卡的IP地址与服务器进行通信测试,将通信成功的网卡的IP地址作为终端的实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。与现有技术相比,本发明基于绑定IP地址与服务器进行通信的方式,能够排除终端内不同网卡的存在导致的IP地址混乱的干扰,将与服务器成功互联的IP地址确定为终端实际IP地址,确保了服务器对终端识别的准确性。By means of the above technical solution, the terminal identification method, device and system provided by the embodiments of the present invention can scan the local network card of the terminal, generate a list of network card addresses that record the Internet protocol IP addresses corresponding to different network cards, and remove the network card After the IP address of the virtual network card in the address list, bind the IP address of each remaining network card to the server for communication test, and report the IP address of the network card with successful communication as the actual IP address of the terminal to the server, so that the server can use the actual IP The address identifies the terminal. Compared with the prior art, the present invention is based on binding the IP address to communicate with the server, which can eliminate the interference of IP address confusion caused by the existence of different network cards in the terminal, and determine the IP address successfully interconnected with the server as the actual IP address of the terminal. The address ensures the accuracy of the server's identification of the terminal.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了本发明实施例提供的一种终端识别的方法的流程图;FIG. 1 shows a flow chart of a method for terminal identification provided by an embodiment of the present invention;
图2示出了本发明实施例中移动WiFi的IP地址界面的示意图;Fig. 2 shows the schematic diagram of the IP address interface of mobile WiFi in the embodiment of the present invention;
图3示出了本发明实施例中发送的HTTP数据包的结构示意图;Fig. 3 shows the structural representation of the HTTP packet that sends in the embodiment of the present invention;
图4示出了本发明实施例中发送的IP报文的结构示意图;FIG. 4 shows a schematic structural diagram of an IP message sent in an embodiment of the present invention;
图5示出了本发明实施例中终端生成的网卡地址列表的示意图;FIG. 5 shows a schematic diagram of a network card address list generated by a terminal in an embodiment of the present invention;
图6示出了本发明实施例提供的一种终端识别的装置的结构示意图;FIG. 6 shows a schematic structural diagram of an apparatus for terminal identification provided by an embodiment of the present invention;
图7示出了本发明实施例提供的一种终端识别的系统的示意图。Fig. 7 shows a schematic diagram of a terminal identification system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更加详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
为了解决服务器无法对具有多个IP地址的终端进行正确识别的问题,本发明实施例提供了一种终端识别的方法,该方法侧重于终端侧,能够保证服务器对终端识别的准确性。如图1所示,该方法包括:In order to solve the problem that the server cannot correctly identify terminals with multiple IP addresses, an embodiment of the present invention provides a method for terminal identification, which focuses on the terminal side and can ensure the accuracy of terminal identification by the server. As shown in Figure 1, the method includes:
101、扫描本地网卡,生成网卡地址列表。101. Scan the local network card to generate a network card address list.
终端进行网络连接时为了实现相互之间的通信,会按照计算机网络之间互连的协议(Internet Protocol,简称IP)进行通信连接,通常IP地址具有唯一性,使得服务器能够根据IP地址对终端进行识别。When terminals connect to the network, in order to realize mutual communication, they will communicate and connect according to the Internet Protocol (IP for short) between computer networks. Usually, the IP address is unique, so that the server can communicate with the terminal according to the IP address. identify.
终端在连接网络时,是通过终端内部的一块网络接口板或网络接口卡(简称网卡)实现的。网卡是工作在链路层的网络组件,是网络中连接终端和传输介质的接口,不仅能实现与网络传输介质之间的物理连接和电信号匹配,还涉及介质访问控制、数据的编码与解码以及数据缓存的功能等。When the terminal is connected to the network, it is realized through a network interface board or network interface card (network card for short) inside the terminal. The network card is a network component that works at the link layer. It is the interface connecting the terminal and the transmission medium in the network. It can not only realize the physical connection and electrical signal matching with the network transmission medium, but also involve medium access control, data encoding and decoding. And the function of data caching, etc.
终端在通过网卡连接网络时,通常需要设定网卡的属性。例如,将“本地连接1”改名为“控制网A”,用于连接控制网A网,其属性设置如下:IP地址:128.128.1.X(X为操作节点地址限定范围内的值);将“本地连接2”改名为“控制网B”,用于连接控制网B网,其属性设置如下:IP地址:128.128.2.X(X为操作节点地址限定范围内的值)。When the terminal connects to the network through the network card, it usually needs to set the properties of the network card. For example, change the name of "Local Connection 1" to "Control Network A" to connect to Control Network A, and its properties are set as follows: IP address: 128.128.1.X (X is a value within the limited range of the operating node address); Rename "Local Connection 2" to "Control Network B", which is used to connect to Control Network B, and its properties are set as follows: IP address: 128.128.2.X (X is a value within the limited range of the operating node address).
由于不同网卡通常对应有自身的IP地址,因此本发明实施例在确定终端的IP地址时首先需要执行步骤101扫描本地网卡,生成网卡地址列表,该网卡地址列表中记录有不同网卡对应的网间协议IP地址。Since different network cards usually have their own IP addresses, when determining the IP address of the terminal, the embodiment of the present invention first needs to perform step 101 to scan the local network card to generate a list of network card addresses. Protocol IP address.
102、从网卡地址列表中剔除虚拟网卡的IP地址。102. Deleting the IP address of the virtual network card from the network card address list.
随着互联网硬件的发展,可用于终端联网的网卡类型也呈现多样性的特点。因此在执行步骤101后,终端可能扫描出多种类型的网卡,生成的网卡地址列表中会包含多种不同的IP地址。With the development of Internet hardware, the types of network cards that can be used for terminal networking are also diverse. Therefore, after step 101 is executed, the terminal may scan out multiple types of network cards, and the generated network card address list will contain multiple different IP addresses.
在不同类型的网卡中,比较特殊的一种网卡为虚拟网卡。虚拟网卡又称虚拟网络适配器,即用软件模拟网络环境,模拟网络适配器。虚拟网卡主要是建立远程计算机间的局域网,由于虚拟网卡可以模拟集线器(Hub)功能,使得终端把此软件识别成一块网卡,通过虚拟网卡访问外网或连接到虚拟集线器上与其他终端组成局域网。Among different types of network cards, a special network card is a virtual network card. Virtual network card, also known as virtual network adapter, uses software to simulate the network environment and simulate the network adapter. The virtual network card is mainly to establish a local area network between remote computers. Since the virtual network card can simulate the hub function, the terminal recognizes this software as a network card, and accesses the external network through the virtual network card or connects to the virtual hub to form a local area network with other terminals.
由于虚拟网卡在本质上是安装在终端内的一个软件,可以根据需要进行安装和卸载,同时当重启服务器或网络后,虚拟网卡会获得重新分配的IP地址,因此虚拟网卡的IP地址无法作为服务器对终端进行识别的依据。Since the virtual network card is essentially a piece of software installed in the terminal, it can be installed and uninstalled as needed. At the same time, when the server or network is restarted, the virtual network card will obtain a reassigned IP address, so the IP address of the virtual network card cannot be used as a server. The basis for identifying the terminal.
103、对于剩余网卡,分别绑定每个网卡的IP地址与服务器进行通信测试。103. For the remaining network cards, respectively bind the IP address of each network card to the server to perform a communication test.
在剔除掉网卡地址列表中的虚拟网卡的IP地址后,终端为了确定能和服务器联网的实际IP地址,就可以执行步骤103,分别绑定剩余每个网卡的IP地址与服务器进行通信测试。终端在对剩余网卡设置完本地连接的属性后,需要分别检查各个网卡是否工作正常,即依次将各个网卡连接到网络中检查终端利用该网卡是否能正常联网。After removing the IP address of the virtual network card in the network card address list, in order to determine the actual IP address that can be connected to the server, the terminal can perform step 103 to bind the remaining IP addresses of each network card to the server for communication testing. After setting the properties of the local connection for the remaining network cards, the terminal needs to check whether each network card is working normally, that is, connect each network card to the network in turn to check whether the terminal can use the network card to connect normally.
在本发明实施例中,作为一种可选的实施方式,终端可以分别通过网卡向网络侧服务器发送一个回送请求数据包,要求服务器接收到请求后给予答复,从而确定网络的响应时间和终端是否与网络联通。如果终端在发送了回送请求数据包后没有收到网络侧服务器的答复,则该网卡的配置不正确,导致服务器不允许传入响应请求,该网卡的IP地址也无法作为终端的实际IP地址。发送回送请求数据包的成功只能保证终端与服务器之间存在一条连通的物理路径。In the embodiment of the present invention, as an optional implementation, the terminal can send a return request packet to the server on the network side through the network card respectively, asking the server to give a reply after receiving the request, so as to determine the response time of the network and whether the terminal Connect with the network. If the terminal does not receive a reply from the server on the network side after sending the echo request packet, the configuration of the network card is incorrect, causing the server not to allow incoming response requests, and the IP address of the network card cannot be used as the actual IP address of the terminal. The success of sending the echo request packet only guarantees that there is a connected physical path between the terminal and the server.
104、将与服务器成功通信的网卡的IP地址确定为终端的实际IP地址。104. Determine the IP address of the network card successfully communicating with the server as the actual IP address of the terminal.
在终端向网络侧服务器发送回送请求数据包判断终端是否与网络联通时,虽然发送回送请求数据包的成功只能保证终端与服务器之间存在一条连通的物理路径,但是有一种类型的网卡(移动WiFi)可以通过插到可联网的终端上,以桥接的方式接入有线网络转换无线信号;或者通过和无线运营商提供的无线上网芯片(sim卡),组成一个可以移动的WiFi接收发射信号源,通过此套设备可以连接到网络上。当终端利用移动WiFi连接上网时,为了不影响其他终端的正常联网,通常会使用固定的IP地址。如图2所示,选择图中的“使用下面的IP地址”,自行设定IP地址,只要与其他终端的IP地址不同即可。若终端通过有线网卡连接网络,则有线网卡的IP地址可以作为终端的实际IP地址;若终端通过移动WiFi连接网络,则移动WiFi的IP地址可以作为终端的实际IP地址。When the terminal sends a echo request packet to the server on the network side to determine whether the terminal is connected to the network, although the success of sending the echo request packet can only ensure that there is a physical path between the terminal and the server, there is a type of network card (mobile WiFi) can be connected to a wired network to convert wireless signals in a bridging manner by plugging it into a networkable terminal; or form a mobile WiFi receiving and transmitting signal source through a wireless Internet access chip (sim card) provided by a wireless operator , through this set of equipment can be connected to the network. When a terminal uses mobile WiFi to connect to the Internet, in order not to affect the normal networking of other terminals, it usually uses a fixed IP address. As shown in Figure 2, select "Use the following IP address" in the figure and set the IP address by yourself, as long as it is different from the IP address of other terminals. If the terminal is connected to the network through a wired network card, the IP address of the wired network card can be used as the actual IP address of the terminal; if the terminal is connected to the network through mobile WiFi, the IP address of the mobile WiFi can be used as the actual IP address of the terminal.
105、将实际IP地址上报给服务器。105. Report the actual IP address to the server.
当终端确定了实际IP地址后,将实际IP地址上报给服务器,服务器会根据终端的实际IP地址对终端进行准确的识别。After the terminal determines the actual IP address, it reports the actual IP address to the server, and the server will accurately identify the terminal according to the actual IP address of the terminal.
本发明实施例提供的终端识别的方法,能够对终端本地网卡进行扫描,生成记录有不同网卡对应的网间协议IP地址的网卡地址列表,在剔除掉网卡地址列表中的虚拟网卡IP地址后,分别绑定剩余的每个网卡的IP地址与服务器进行通信测试,将通信成功的网卡的IP地址作为终端的实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。与现有技术相比,本发明基于绑定IP地址与服务器进行通信的方式,能够排除终端内不同网卡的存在导致的IP地址混乱的干扰,将与服务器成功互联的IP地址确定为终端实际IP地址,确保了服务器对终端识别的准确性。The terminal identification method provided by the embodiment of the present invention can scan the local network card of the terminal, and generate a network card address list recording the Internet protocol IP addresses corresponding to different network cards. After removing the virtual network card IP address in the network card address list, Bind the IP address of each of the remaining network cards to the server for a communication test, and report the IP address of the successfully communicated network card as the actual IP address of the terminal to the server, so that the server can identify the terminal based on the actual IP address. Compared with the prior art, the present invention is based on binding the IP address to communicate with the server, which can eliminate the interference of IP address confusion caused by the existence of different network cards in the terminal, and determine the IP address successfully interconnected with the server as the actual IP address of the terminal. The address ensures the accuracy of the server's identification of the terminal.
为了更好的对上述图1所示的方法进行理解,作为对上述实施方式的细化和扩展,本发明实施例将针对图1中的步骤进行详细说明。In order to better understand the above-mentioned method shown in FIG. 1 , as a refinement and extension of the above-mentioned implementation manner, the embodiment of the present invention will describe the steps in FIG. 1 in detail.
通常情况下,用于工作的局域网环境下的终端都具有有线网卡,并通过有线网卡连接到局域网中,其还可以通过移动式网卡如随身WiFi或虚拟网卡连接到局域网中。尤其是当局域网中连接有笔记本电脑这类终端时,笔记本电脑内除了可以通过有线网卡、移动式网卡如随身WiFi或虚拟网卡连接到局域网,其还具有无线网卡,当局域网中具有无线路由器或者无线接入点(Access Point,简称无线AP)的覆盖,就可以通过无线网卡以无线的方式连接无线网络。因此在步骤101中扫描本地网卡时,终端通常会扫描本地是否具有有线网卡、无线网卡、移动式网卡以及虚拟网卡,其中,移动式网卡通常为随身无线保真设备WiFi。Usually, the terminals in the LAN environment used for work have wired network cards and are connected to the local area network through the wired network cards. They can also be connected to the local area network through mobile network cards such as portable WiFi or virtual network cards. Especially when a terminal such as a notebook computer is connected to the local area network, in addition to being connected to the local area network through a wired network card, a mobile network card such as a portable WiFi or a virtual network card, the notebook computer also has a wireless network card. Access point (Access Point, referred to as wireless AP) coverage, you can connect to a wireless network through a wireless network card in a wireless manner. Therefore, when scanning the local network card in step 101, the terminal usually scans whether there are wired network cards, wireless network cards, mobile network cards and virtual network cards locally, wherein the mobile network card is usually a portable wireless fidelity device WiFi.
当终端扫描本地网卡,生成网卡地址列表后,在执行步骤102从网卡地址列表中剔除虚拟网卡的IP地址的过程中,基于上述虚拟网卡的特点,作为本发明实施例的一种可选实施方式,终端在对网卡的类型进行区分时可以根据操作系统中的Characteristics项的取值对网卡类型进行判断。例如,Characteristics项可以由下述十六进制值和描述组成:ox1NCF_VIRTUAL说明组件是一个虚拟适配器、ox2NCF_SOFTWARE_ENUMERATED说明组件是一个软件模拟的适配器、ox4NCF_PHYSICAL说明组件是一个物理适配器。总之,终端只要判断Characteristics项的值就可以确定网卡是虚拟网卡还是物理网卡。如果是虚拟网卡:Characteristics&NCF_VIRTUAL==NCF_VIRTUAL;如果是物理网卡:Characteristics&NCF_PHYSICAL==NCF_PHYSICAL。After the terminal scans the local network card and generates the network card address list, in the process of removing the IP address of the virtual network card from the network card address list in step 102, based on the characteristics of the above-mentioned virtual network card, as an optional implementation mode of the embodiment of the present invention , the terminal can judge the type of the network card according to the value of the Characteristics item in the operating system when distinguishing the type of the network card. For example, the Characteristics item can consist of the following hexadecimal values and descriptions: ox1NCF_VIRTUAL indicates that the component is a virtual adapter, ox2NCF_SOFTWARE_ENUMERATED indicates that the component is a software-emulated adapter, and ox4NCF_PHYSICAL indicates that the component is a physical adapter. In short, the terminal can determine whether the network card is a virtual network card or a physical network card only by judging the value of the Characteristics item. If it is a virtual network card: Characteristics&NCF_VIRTUAL==NCF_VIRTUAL; if it is a physical network card: Characteristics&NCF_PHYSICAL==NCF_PHYSICAL.
当终端判断出网卡地址列表中的虚拟网卡并剔除掉虚拟网卡后,在执行步骤103对于剩余网卡,分别绑定每个网卡的IP地址与服务器进行通信测试时,作为本发明实施例的一种可选实施方式,可以将剩余每个网卡的IP地址绑定在HTTP数据包中与服务器进行通信测试。当终端通过向服务器发送HTTP数据包的形式进行通信测试时,实质上终端发送的是HTTP请求报文,该HTTP请求报文的格式如图3所示,其中IP地址绑定在HTTP请求报文的IP标头地址字段的位置处。在完成IP地址和HTTP请求报文的绑定后,终端向服务器发起Connect连接请求,上报绑定后的HTTP请求报文,等待服务器的应答。When the terminal determines the virtual network card in the network card address list and removes the virtual network card, in step 103, for the remaining network cards, respectively bind the IP address of each network card to the server for communication test, as a kind of In an optional implementation manner, the IP address of each remaining network card may be bound in an HTTP data packet to perform a communication test with the server. When the terminal performs a communication test by sending an HTTP packet to the server, what the terminal actually sends is an HTTP request message. The format of the HTTP request message is shown in Figure 3, where the IP address is bound to the HTTP request message. The location of the address field of the IP header. After completing the binding of the IP address and the HTTP request message, the terminal initiates a Connect connection request to the server, reports the bound HTTP request message, and waits for a response from the server.
当然,终端也可以向服务器发送IP报文与服务器进行通信检测,如图4所示,终端根据IP报文的格式将各网卡的IP地址分别写入IP报文中的源IP地址位置处后发送给服务器,检测与服务器是否通信成功。Of course, the terminal can also send an IP message to the server to perform communication detection with the server. As shown in Figure 4, the terminal writes the IP addresses of each network card into the source IP address in the IP message according to the format of the IP message. Send it to the server to check whether the communication with the server is successful.
当终端向服务器发送了写入网卡IP地址的HTTP请求报文或IP报文后,若发送的某个报文在预设时长内接收到服务器应答后,则说明终端通过该报文中写入的IP地址与服务器的通信成功,可以将该报文中写入的IP地址确定为终端的实际IP地址。When the terminal sends an HTTP request message or IP message written to the IP address of the network card to the server, if a certain message sent receives a response from the server within the preset time period, it means that the terminal writes the IP address in the message to the server. If the communication between the IP address and the server is successful, the IP address written in the message can be determined as the actual IP address of the terminal.
进一步的,本发明实施例还提供了一种可选的实施方式,用于若终端通过向服务器发送报文的方式确定有多个IP地址可以通信成功时,在将多个通信成功的IP地址确定为终端的实际IP地址之前,检测与服务器成功通信的IP地址是否具有对应的网关,没有对应网关的IP地址通常为通过桥接的方式与服务器进行通信的。Further, the embodiment of the present invention also provides an optional implementation mode, which is used for if the terminal determines that there are multiple IP addresses that can communicate successfully by sending a message to the server, when the multiple IP addresses that have successfully communicated Before determining the actual IP address of the terminal, it is checked whether the IP address successfully communicating with the server has a corresponding gateway, and the IP address without a corresponding gateway usually communicates with the server through bridging.
由于一台终端通常只有一个默认网关,因此当终端检测到通信成功的IP地址具有对应网关时,将具有对应网关的IP地址确定为终端的实际IP地址。当然,由于终端设置或所处的网络环境复杂,有时可能会出现在所有通信成功的IP地址中均检测不到网关的情况,这时终端可以从这些通信成功的IP地址中选择一个IP地址确定为终端的实际IP地址,将实际IP地址作为首选的IP地址和其他通信成功的IP地址一并发送给服务器保存,服务器会将实际IP地址作为默认的IP地址对终端进行识别。Since a terminal usually has only one default gateway, when the terminal detects that the IP address with a successful communication has a corresponding gateway, it determines the IP address with the corresponding gateway as the actual IP address of the terminal. Of course, due to the complexity of the terminal settings or the network environment it is in, sometimes the gateway may not be detected in all the IP addresses with successful communication. At this time, the terminal can select an IP address from these IP addresses with successful communication to determine It is the actual IP address of the terminal, and the actual IP address will be sent to the server as the preferred IP address and other successful IP addresses for storage, and the server will use the actual IP address as the default IP address to identify the terminal.
作为上述实施例的一个应用场景,现以一台终端为例进行说明。该终端自身安装有有线网卡NIC1、无线网卡NIC2及虚拟网卡NIC3,此外还有插入终端的移动WiFi。由于该终端中存在四种类型的网卡的,因此终端在扫描本地网卡时,会生成包含有四个IP地址的网卡地址列表,如图5所示。在图5中的各个IP地址中,有线网卡NIC1对应IP1、无线网卡NIC2对应IP2、虚拟网卡NIC3对应IP3、移动WiFi对应IP4。其中,虚拟网卡NIC3由于实质上是一种软件,其IP地址无法用于识别终端,需要被终端从网卡地址列表中剔除,在本应用场景中,可以通过在终端生成的网卡地址列表中选择有线网卡NIC1、无线网卡NIC2及移动WiFi的IP地址,这样也能达到剔除虚拟网卡NIC3同样的效果。As an application scenario of the foregoing embodiment, a terminal is taken as an example for description. The terminal itself is installed with a wired network card NIC1 , a wireless network card NIC2 and a virtual network card NIC3 , in addition to a mobile WiFi inserted into the terminal. Since there are four types of network cards in the terminal, when the terminal scans a local network card, it will generate a list of network card addresses including four IP addresses, as shown in FIG. 5 . Among the IP addresses in FIG. 5 , the wired network card NIC1 corresponds to IP1, the wireless network card NIC2 corresponds to IP2, the virtual network card NIC3 corresponds to IP3, and the mobile WiFi corresponds to IP4. Among them, since the virtual network card NIC3 is essentially a kind of software, its IP address cannot be used to identify the terminal, and needs to be removed from the network card address list by the terminal. The IP address of network card NIC1, wireless network card NIC2 and mobile WiFi can also achieve the same effect of eliminating virtual network card NIC3.
当在网卡地址列表中选择了IP1、IP2、IP4后,终端将IP1、IP2、IP4分别绑定在HTTP数据包中的IP标头地址字段的位置处,并分别向服务器发送写入IP地址的HTTP数据包,等待服务器的应答。通常在实际环境下,有线网卡NIC1和无线网卡NIC2使用的不是一个网络,通过对应无线网卡NIC2的IP2地址无法与服务器成功通信,而移动WiFi可以通过桥接在有线网卡的链路上实现与服务器的通信,所以通信成功的IP地址为IP1和IP4,可以作为终端的实际IP地址发送给服务器。但是利用IP4地址能和服务器通信成功实际上是通过移动WiFi桥接在有线网卡NIC1上实现的,因此进一步的,终端还可以检测IP1和IP4是否对应有网关,由于一台终端通常只具有一个默认的网关,当终端检测到IP1对应有网关时,可以将IP1作为终端的实际IP地址发送给服务器;当然,终端也会存在检测不到IP1和IP4具有对应网关的情况,这时,终端可以随机选择IP1或IP4作为实际IP地址,当终端选择IP1为实际IP地址后,首选IP1并连同IP4发送给服务器保存,服务器会将IP1作为默认的IP地址对终端进行识别。When IP1, IP2, and IP4 are selected in the network card address list, the terminal binds IP1, IP2, and IP4 to the position of the IP header address field in the HTTP data packet, and sends the IP address to the server respectively. HTTP packets, waiting for the server's response. Usually in the actual environment, the wired network card NIC1 and the wireless network card NIC2 do not use the same network, and the IP2 address corresponding to the wireless network card NIC2 cannot successfully communicate with the server, while the mobile WiFi can be bridged on the link of the wired network card to achieve communication with the server. Communication, so the IP addresses of successful communication are IP1 and IP4, which can be sent to the server as the actual IP address of the terminal. However, the successful communication with the server using the IP4 address is actually realized on the wired network card NIC1 through the mobile WiFi bridge, so further, the terminal can also detect whether IP1 and IP4 correspond to a gateway, because a terminal usually only has one default Gateway, when the terminal detects that IP1 corresponds to a gateway, it can send IP1 as the actual IP address of the terminal to the server; of course, the terminal may not detect that IP1 and IP4 have corresponding gateways, at this time, the terminal can choose randomly IP1 or IP4 is used as the actual IP address. When the terminal selects IP1 as the actual IP address, IP1 is preferred and sent together with IP4 to the server for storage. The server will use IP1 as the default IP address to identify the terminal.
本发明实施例在确定了终端和服务器成功通信的IP地址后,进一步检测其是否对应有网关,将对应有网关的IP地址确定为终端的实际IP地址,服务器通过这样的实际IP地址能对终端进行更加准确的识别。In the embodiment of the present invention, after determining the IP address for successful communication between the terminal and the server, it is further detected whether it corresponds to a gateway, and the IP address corresponding to the gateway is determined as the actual IP address of the terminal, and the server can communicate with the terminal through such an actual IP address for more accurate identification.
进一步的,作为对上述图1所示方法的实现,本发明实施例还提供了一种终端识别的装置,该装置可以位于终端中,也可以独立于终端但与终端之间具有数据交互关系。如图6所示,该装置包括:生成单元61、剔除单元62、绑定单元63、确定单元64及上报单元65,其中,Further, as an implementation of the method shown in FIG. 1 above, an embodiment of the present invention also provides a device for identifying a terminal. The device may be located in the terminal, or be independent of the terminal but have a data interaction relationship with the terminal. As shown in FIG. 6, the device includes: a generation unit 61, an elimination unit 62, a binding unit 63, a determination unit 64, and a reporting unit 65, wherein,
生成单元61,用于扫描本地网卡,生成网卡地址列表,网卡地址列表中记录有不同网卡对应的网间协议IP地址;Generating unit 61, is used for scanning local network card, generates network card address list, and the Internet protocol IP address corresponding to different network cards is recorded in the network card address list;
剔除单元62,用于从生成单元61生成的网卡地址列表中剔除虚拟网卡的IP地址;Removing unit 62, for removing the IP address of virtual network card from the list of network card addresses generated by generating unit 61;
绑定单元63,用于分别绑定剔除单元62剔除掉虚拟网卡的IP地址后剩余的每个网卡的IP地址与服务器进行通信测试;The binding unit 63 is used to bind the remaining IP address of each network card after removing the IP address of the virtual network card by the elimination unit 62 to perform a communication test with the server;
确定单元64,用于将与服务器成功通信的绑定单元63绑定的网卡的IP地址确定为终端的实际IP地址;A determining unit 64, configured to determine the IP address of the network card bound to the binding unit 63 successfully communicated with the server as the actual IP address of the terminal;
上报单元65,用于将确定单元64确定的实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。The reporting unit 65 is configured to report the actual IP address determined by the determining unit 64 to the server, so that the server can identify the terminal according to the actual IP address.
进一步的,生成单元61用于扫描本地的有线网卡、无线网卡、移动式网卡以及虚拟网卡。Further, the generating unit 61 is used to scan local wired network cards, wireless network cards, mobile network cards and virtual network cards.
进一步的,生成单元61扫描的本地移动式网卡为随身无线保真设备WiFi。Further, the local mobile network card scanned by the generating unit 61 is a portable wireless fidelity device WiFi.
进一步的,绑定单元63用于将IP地址绑定在HTTP数据包中与服务器进行通信测试。Further, the binding unit 63 is used for binding the IP address in the HTTP data packet to perform a communication test with the server.
进一步的,绑定单元63用于将网卡的IP地址写入到HTTP数据包中的源IP地址字段中;Further, the binding unit 63 is used to write the IP address of the network card into the source IP address field in the HTTP packet;
上报单元65,用于向服务器发起连接Connect请求,上报HTTP数据包,并等待服务器的应答。The reporting unit 65 is configured to initiate a Connect request to the server, report an HTTP data packet, and wait for a response from the server.
进一步的,确定单元64,用于将在预设时长内接收到服务器应答的网卡的IP地址,确定为终端的实际IP地址。Further, the determining unit 64 is configured to determine, as the actual IP address of the terminal, the IP address of the network card that receives the response from the server within the preset time period.
进一步的,该装置还包括:Further, the device also includes:
检测单元66,用于在确定单元64将与服务器成功通信的IP地址确定为终端的实际IP地址之前,检测与服务器成功通信的IP地址是否具有对应的网关;The detecting unit 66 is configured to detect whether the IP address successfully communicating with the server has a corresponding gateway before the determining unit 64 determines the IP address successfully communicating with the server as the actual IP address of the terminal;
确定单元64,用于将检测单元66检测到的具有对应网关的IP地址确定为终端的实际IP地址。The determining unit 64 is configured to determine the IP address with the corresponding gateway detected by the detecting unit 66 as the actual IP address of the terminal.
进一步的,确定单元64,还用于在检测单元66检测到与服务器成功通信的IP地址均不具有对应的网关时,从与服务器成功通信的IP地址中选择一个IP地址,确定为终端的实际IP地址。Further, the determining unit 64 is also used to select an IP address from the IP addresses successfully communicating with the server when the detecting unit 66 detects that none of the IP addresses successfully communicating with the server has a corresponding gateway, and determine it as the actual IP address of the terminal. IP address.
本发明实施例提供的终端识别的装置,能够对终端本地网卡进行扫描,生成记录有不同网卡对应的网间协议IP地址的网卡地址列表,在剔除掉网卡地址列表中的虚拟网卡IP地址后,分别绑定剩余的每个网卡的IP地址与服务器进行通信测试,将通信成功的网卡的IP地址作为终端的实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。与现有技术相比,本发明基于绑定IP地址与服务器进行通信的方式,能够排除终端内不同网卡的存在导致的IP地址混乱的干扰,将与服务器成功互联的IP地址确定为终端实际IP地址,确保了服务器对终端识别的准确性。The terminal identification device provided by the embodiment of the present invention can scan the local network card of the terminal, and generate a network card address list recording the Internet protocol IP addresses corresponding to different network cards. After removing the virtual network card IP address in the network card address list, Bind the IP address of each of the remaining network cards to the server for a communication test, and report the IP address of the successfully communicated network card as the actual IP address of the terminal to the server, so that the server can identify the terminal based on the actual IP address. Compared with the prior art, the present invention is based on binding the IP address to communicate with the server, which can eliminate the interference of IP address confusion caused by the existence of different network cards in the terminal, and determine the IP address successfully interconnected with the server as the actual IP address of the terminal. The address ensures the accuracy of the server's identification of the terminal.
此外,本发明实施例在确定了终端和服务器成功通信的IP地址后,进一步检测其是否对应有网关,将对应有网关的IP地址确定为终端的实际IP地址,服务器通过这样的实际IP地址能对终端进行更加准确的识别。In addition, in the embodiment of the present invention, after determining the IP address for the successful communication between the terminal and the server, it further detects whether it corresponds to a gateway, and determines the IP address corresponding to the gateway as the actual IP address of the terminal. The server can use such an actual IP address to More accurate identification of the terminal.
进一步的,作为对上述图1所示方法的实现以及上述图6所示装置的应用,本发明实施例还提供了一种终端识别的系统,如图7所示,该系统包括:终端71和服务器72,其中,终端71包含如图6所示的装置。Further, as an implementation of the method shown in FIG. 1 above and an application of the device shown in FIG. 6 above, an embodiment of the present invention also provides a terminal identification system, as shown in FIG. 7 , the system includes: a terminal 71 and The server 72, wherein the terminal 71 includes the device shown in FIG. 6 .
进一步的,服务器72用于与绑定有网卡IP地址的终端71进行通信测试;Further, the server 72 is used to perform a communication test with the terminal 71 bound with the IP address of the network card;
服务器72还用于根据终端71上报的实际IP地址对终端71进行识别。The server 72 is also used to identify the terminal 71 according to the actual IP address reported by the terminal 71 .
本发明实施例提供的终端识别的系统,能够对终端本地网卡进行扫描,生成记录有不同网卡对应的网间协议IP地址的网卡地址列表,在剔除掉网卡地址列表中的虚拟网卡IP地址后,分别绑定剩余的每个网卡的IP地址与服务器进行通信测试,将通信成功的网卡的IP地址作为终端的实际IP地址上报给服务器,以便服务器根据实际IP地址对终端进行识别。与现有技术相比,本发明基于绑定IP地址与服务器进行通信的方式,能够排除终端内不同网卡的存在导致的IP地址混乱的干扰,将与服务器成功互联的IP地址确定为终端实际IP地址,确保了服务器对终端识别的准确性。The terminal identification system provided by the embodiment of the present invention can scan the local network card of the terminal, and generate a network card address list recording the Internet protocol IP addresses corresponding to different network cards. After removing the virtual network card IP address in the network card address list, Bind the IP address of each of the remaining network cards to the server for a communication test, and report the IP address of the successfully communicated network card as the actual IP address of the terminal to the server, so that the server can identify the terminal based on the actual IP address. Compared with the prior art, the present invention is based on binding the IP address to communicate with the server, which can eliminate the interference of IP address confusion caused by the existence of different network cards in the terminal, and determine the IP address successfully interconnected with the server as the actual IP address of the terminal. The address ensures the accuracy of the server's identification of the terminal.
此外,本发明实施例在确定了终端和服务器成功通信的IP地址后,进一步检测其是否对应有网关,将对应有网关的IP地址确定为终端的实际IP地址,服务器通过这样的实际IP地址能对终端进行更加准确的识别。In addition, in the embodiment of the present invention, after determining the IP address for the successful communication between the terminal and the server, it further detects whether it corresponds to a gateway, and determines the IP address corresponding to the gateway as the actual IP address of the terminal. The server can use such an actual IP address to More accurate identification of the terminal.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
可以理解的是,上述方法及装置中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It can be understood that related features in the above methods and devices can refer to each other. In addition, "first", "second" and so on in the above embodiments are used to distinguish each embodiment, and do not represent the advantages and disadvantages of each embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的发明名称(如确定网站内链接等级的装置)中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in the title of the invention (such as the device for determining the link level in the website) according to the embodiment of the present invention some or all of the features. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410776939.7A CN104468861B (en) | 2014-12-15 | 2014-12-15 | The method, apparatus and system of terminal recognition |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410776939.7A CN104468861B (en) | 2014-12-15 | 2014-12-15 | The method, apparatus and system of terminal recognition |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104468861A CN104468861A (en) | 2015-03-25 |
| CN104468861B true CN104468861B (en) | 2018-10-26 |
Family
ID=52914208
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410776939.7A Active CN104468861B (en) | 2014-12-15 | 2014-12-15 | The method, apparatus and system of terminal recognition |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104468861B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110138890B (en) * | 2019-05-13 | 2022-04-05 | 广州视源电子科技股份有限公司 | Method, device, computer equipment and storage medium for acquiring IP address |
| CN115086207B (en) * | 2022-06-14 | 2024-08-20 | 深信服科技股份有限公司 | Network card detection method and device, electronic equipment and storage medium |
| CN119011533B (en) * | 2024-10-24 | 2025-02-14 | 新云网科技集团股份有限公司 | Method, device, equipment and medium for generating equipment identifier based on network card address |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1556625A (en) * | 2004-01-05 | 2004-12-22 | 联想(北京)有限公司 | Data transmission method of network equipment based on multinetwork card and device |
| CN101917281A (en) * | 2010-06-10 | 2010-12-15 | 福建升腾资讯有限公司 | Automatic collocation method for network cards |
| CN102790679A (en) * | 2012-06-29 | 2012-11-21 | 北京创毅讯联科技股份有限公司 | Internet connection method of network card and network card |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6971044B2 (en) * | 2001-04-20 | 2005-11-29 | Egenera, Inc. | Service clusters and method in a processing system with failover capability |
-
2014
- 2014-12-15 CN CN201410776939.7A patent/CN104468861B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1556625A (en) * | 2004-01-05 | 2004-12-22 | 联想(北京)有限公司 | Data transmission method of network equipment based on multinetwork card and device |
| CN101917281A (en) * | 2010-06-10 | 2010-12-15 | 福建升腾资讯有限公司 | Automatic collocation method for network cards |
| CN102790679A (en) * | 2012-06-29 | 2012-11-21 | 北京创毅讯联科技股份有限公司 | Internet connection method of network card and network card |
Non-Patent Citations (3)
| Title |
|---|
| GetAdaptersAddresses使用小结;对象;《http://blog.csdn.net/linuxtiger/article/details/7002896》;20111123;全文 * |
| 使用GetAdaptersaddress获取网卡信息;紫色枫叶;《http://bbs.51cto.com/thread-824106-1.html》;20110424;全文 * |
| 判断多网卡是否连接到网络;jokers_i;《http://blog.csdn.net/jokers_i/article/details/6997945》;20111121;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104468861A (en) | 2015-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107770138B (en) | Method for specifying IP address, proxy server and client | |
| US20200280576A1 (en) | Systems and methods for testing known bad destinations in a production network | |
| US20140343915A1 (en) | Test environment configuration apparatus and method of operating network simulation apparatus using same | |
| CN113473576B (en) | Roaming network processing method, device, mobile terminal and readable storage medium | |
| CN105828395A (en) | Method and device of WiFi adaptive selection and connection | |
| CN106470136B (en) | Platform testing method and platform testing system | |
| CN104079571A (en) | Method and device for recognizing Android simulator | |
| CN110034984A (en) | A kind of cut-in method, equipment and system | |
| CN103109517A (en) | Double-stack terminal accessing service method, terminal and system | |
| CN104468861B (en) | The method, apparatus and system of terminal recognition | |
| CN104468265A (en) | Method and device for detecting online states of local area network terminals | |
| CN107534585B (en) | Communication method and terminal | |
| CN118055052A (en) | Dynamic host configuration protocol test method, electronic device and computer readable medium | |
| CN105991679B (en) | A kind of implementation method and device of network sharing | |
| CN115086208A (en) | Network card detection method and device, electronic equipment and storage medium | |
| TWI538444B (en) | IPv6 CE standard automated test system | |
| CN106789256B (en) | Test system and test method for simulating wide area network environment | |
| CN110611678B (en) | Method for identifying message and access network equipment | |
| JP6605149B2 (en) | Method and apparatus for detecting shared terminal | |
| CN112887163B (en) | Connectivity test method, connectivity test device, electronic equipment and storage medium | |
| JP2023066373A (en) | System, apparatus and method for communicating debug messages on sideband of serial link according to debug type messaging protocol | |
| CN115022217A (en) | Network card detection method and device, electronic equipment and storage medium | |
| CN102064971A (en) | Stress test method for network card | |
| CN104980471A (en) | Network request packet report method, device and system | |
| US20080301229A1 (en) | Client device, communication method and computer readable medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20161125 Address after: 100088 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3 Applicant after: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Applicant before: Qizhi software (Beijing) Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: No. 32, Building 3, 102, 28 Xinjiekouwai Street, Xicheng District, Beijing Patentee after: QAX Technology Group Inc. Address before: Beijing Chaoyang District Jiuxianqiao Road 10, building 15, floor 17, layer 1701-26, 3 Patentee before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. |