CN105959188B - Method and device for controlling user terminal to be on-line - Google Patents

Method and device for controlling user terminal to be on-line Download PDF

Info

Publication number
CN105959188B
CN105959188B CN201610398746.1A CN201610398746A CN105959188B CN 105959188 B CN105959188 B CN 105959188B CN 201610398746 A CN201610398746 A CN 201610398746A CN 105959188 B CN105959188 B CN 105959188B
Authority
CN
China
Prior art keywords
user terminal
information
address
user
online
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
Application number
CN201610398746.1A
Other languages
Chinese (zh)
Other versions
CN105959188A (en
Inventor
彭安冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610398746.1A priority Critical patent/CN105959188B/en
Publication of CN105959188A publication Critical patent/CN105959188A/en
Application granted granted Critical
Publication of CN105959188B publication Critical patent/CN105959188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

The embodiment of the invention discloses a method, a device and a system for controlling a user terminal to be online. Wherein, for the network device for providing the network access function for the user terminal, under the condition that the network device does not establish online user information for the user terminal, the network device may obtain the IP address of the user terminal, the MAC address of the user terminal and interface information by actively transmitting an ARP request to the user terminal and receiving an ARP reply after receiving a message addressed to the user terminal, or, the network device may also obtain the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal by receiving configuration information issued by a server, therefore, the network equipment can establish the online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.

Description

Method and device for controlling user terminal to be on-line
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a user terminal to be online.
Background
A network device for accessing a user terminal to a network is provided in the network. For example, a Broadband Remote Access Server (BRAS) may be used to provide network Access, charging, flow control, and data forwarding functions of a user terminal. In the network access technology, a user terminal sends an online request to a network device for providing a network access function, the network device generates a forwarding table for the user terminal according to the online request, and the forwarding table can be used for forwarding a message related to the user terminal, so that the user terminal can interact with a network side, and the user terminal is accessed to a network, and the user terminal is in an online state.
At present, intelligent household equipment such as an intelligent refrigerator and an intelligent air conditioner can be controlled by equipment such as a mobile phone, a tablet personal computer and a personal computer. However, as a user terminal, the smart home device cannot actively send an online request to a network device for providing a network access function, which results in that the network device cannot access the smart home device to a network. Since the smart home devices cannot be on-line, the mobile phones, tablet computers, personal computers and other devices of the users cannot send control instructions to the smart home devices through the network side, and therefore the smart home devices cannot be controlled through the network side.
Disclosure of Invention
The technical problem to be solved by the application is to provide a method and a device for controlling the user terminal to be online, so that a network device for providing a network access function can actively access the user terminal to a network, and therefore, devices such as a mobile phone, a tablet computer and a personal computer of a user can control the user terminal of the smart home device through a network side.
In a first aspect, a method for controlling a user terminal to be online is provided, including:
a network device receives a first message, wherein the network device is used for providing network access service for a user terminal, and the destination address of the first message is the Internet Protocol (IP) address of the user terminal;
the network equipment searches online user information of the user terminal according to the IP address of the user terminal;
if the online user information of the user terminal cannot be searched in the network equipment, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal;
the network equipment receives an ARP response returned by the user terminal based on the ARP request, and acquires a Media Access Control (MAC) address of the user terminal and interface information of the user terminal based on the ARP response;
and the network equipment establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the user terminal is located in a home network, the first packet further carries an identifier of the home network, and the online user information of the user terminal further includes the identifier of the home network;
the network device searches online user information of the user terminal according to the IP address of the user terminal, and specifically comprises the following steps: the network equipment searches online user information matched with the identification of the home network and the IP address of the user terminal and takes the online user information as the online user information of the user terminal;
if the online user information of the user terminal cannot be found in the network equipment, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal, and the method specifically comprises the following steps: if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identification of the home network, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address.
Optionally, the method further includes:
and the network equipment sends the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the method further includes:
the network equipment receives a second message sent by the user terminal;
and if the online user information of the user terminal is found in the network equipment, the network equipment forwards the second message.
In a second aspect, a method for controlling a user terminal to be online is provided, including:
the server acquires configuration information;
the server sends the configuration information to network equipment;
the network device is configured to provide a network access service for a user terminal, the configuration information is used to instruct the network device to establish online user information of the user terminal based on an internet protocol IP address of the user terminal, a media access control MAC address of the user terminal, and interface information of the user terminal, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Optionally, the method further includes:
the server acquires a configuration instruction, wherein the configuration instruction is used for indicating the configuration of online user information for a user terminal, and the configuration instruction carries an IP address of the user terminal, an MAC address of the user terminal and interface information of the user terminal;
and the server generates configuration information according to the configuration instruction.
Optionally, the method further includes:
and the server receives a configuration success message sent by the network equipment, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
In a third aspect, a method for controlling a user terminal to be online is provided, including:
the method comprises the steps that network equipment receives configuration information sent by a server, the network equipment is used for providing network access service for a user terminal, and the configuration information carries an Internet Protocol (IP) address of the user terminal, a Media Access Control (MAC) address of the user terminal and interface information of the user terminal;
under the indication of the configuration information, the network equipment establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the method further includes:
and the network equipment sends a configuration success message to the server, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, under the indication of the configuration information, the network device establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal, and the method includes:
under the indication of the configuration information, the network equipment identifies whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, the network equipment establishes online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the method further includes:
the network equipment receives a first message, and the destination address of the first message is the IP address of the user terminal;
and if the online user information of the user terminal is found in the network equipment, sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the method further includes:
the network equipment receives a second message sent by the user terminal;
and if the online user information of the user terminal is found in the network equipment, the network equipment forwards the second message.
In a fourth aspect, an apparatus for controlling a user equipment to be online is provided, where the apparatus is configured in a network device, and the network device is configured to provide a network access service for the user equipment, and the apparatus includes:
a first receiving unit, configured to receive a first packet, where the network device is configured to provide a network access service for the user terminal, and a destination address of the first packet is an internet protocol IP address of the user terminal;
the searching unit is used for searching online user information of the user terminal according to the IP address of the user terminal;
a first sending unit, configured to, if online user information of the user terminal cannot be found in the network device, send, by the network device, an Address Resolution Protocol (ARP) request to the user terminal based on an IP address of the user terminal;
a second receiving unit, configured to receive an ARP reply returned by the user terminal based on the ARP request, and obtain a media access control MAC address of the user terminal and interface information of the user terminal based on the ARP reply;
and the establishing unit is used for establishing online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the user terminal is located in a home network, the first packet further carries an identifier of the home network, and the online user information of the user terminal further includes the identifier of the home network;
the search unit is specifically configured to: searching online user information matched with the identification of the home network and the IP address of the user terminal to serve as the online user information of the user terminal;
the second sending unit is specifically configured to: if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identification of the home network, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address.
Optionally, the method further includes:
and the third sending unit is used for sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the method further includes:
a third receiving unit, configured to receive a second message sent by the user terminal;
and the forwarding processing unit is used for forwarding the second message by the network equipment if the online user information of the user terminal is found in the network equipment.
In a fifth aspect, an apparatus for controlling a user terminal to be online is provided, and the apparatus is configured in a server, and includes:
an acquisition unit configured to acquire configuration information;
a sending unit, configured to send the configuration information to the network device;
the network device is configured to provide a network access service for a user terminal, the configuration information is used to instruct the network device to establish online user information of the user terminal based on an internet protocol IP address of the user terminal, a media access control MAC address of the user terminal, and interface information of the user terminal, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Optionally, the method further includes:
a receiving unit, configured to receive a configuration success message sent by the network device, where the configuration success message is used to indicate that the network device has established online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
A sixth unit, providing a device for controlling a user terminal to go online, configured in a network device, where the network device is configured to provide a network access service for the user terminal, and the device includes:
a first receiving unit, configured to receive configuration information sent by a server, where the configuration information carries an internet protocol IP address of the user terminal, a media access control MAC address of the user terminal, and interface information of the user terminal;
and the establishing unit is used for establishing online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal under the indication of the configuration information.
Optionally, the method further includes:
a first sending unit, configured to send a configuration success message to the server, where the configuration success message is used to indicate that the network device has established online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the establishing unit is specifically configured to:
under the indication of the configuration information, the network equipment identifies whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, the network equipment establishes online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the method further includes:
a second receiving unit, configured to receive a first message, where a destination address of the first message is an IP address of the user terminal;
a second sending unit, configured to send the first message to the user terminal according to the interface information of the user terminal in the online user information if the online user information of the user terminal is found in the network device.
Optionally, the method further includes:
a third receiving unit, configured to receive a second message sent by the user terminal;
and the forwarding processing unit is used for forwarding the second message if the online user information of the user terminal is found in the network equipment.
A seventh aspect provides a system for controlling a user terminal to be online, including a network device and a server;
the server is provided with the device of any one of the embodiments of the fifth aspect;
the network device is configured to provide a network access service for a user terminal, and is configured with the apparatus of any one of the foregoing sixth aspects.
In the present application, for a network device for providing network access functionality for a user terminal, in the case that no online user information has been established for the user terminal in the network device, the network device may obtain the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal by actively sending an ARP request to the user terminal and receiving an ARP reply after receiving a message addressed to the user terminal, or, the network device may also obtain the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal by receiving configuration information issued by a server, therefore, the network equipment can establish the online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal. Therefore, for a user terminal which cannot actively send an online request, such as an intelligent home device, network equipment can acquire the IP address of the user terminal, the MAC address of the user terminal and interface information of the user terminal and establish online user information for the user terminal under the condition that the online request of the user terminal is not received, and therefore the user terminal can be actively accessed into a network. Therefore, the user terminal of the smart home device can be controlled by the user's mobile phone, tablet computer, personal computer, and other devices through the network side.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a block diagram of a network system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a network system framework involved in another application scenario according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a system for controlling a user terminal to be online according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a network device according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a server according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a network device in an embodiment of the present invention.
Detailed Description
The inventor finds that, in the prior art, a user terminal needs to actively send a Dynamic Host Configuration Protocol (DHCP) message or an Address Resolution Protocol (ARP) message to a BRAS device to request to get online. When receiving the on-line request message of DHCP or ARP, BRAS device establishes on-line user information for user terminal, thereby completing on-line processing of user terminal and realizing accessing user terminal to network. The user terminal can then communicate with the network-side device. However, for many user terminals such as smart home devices, these user terminals cannot actively send an online request message of DHCP or APR to the BRAS device. Therefore, the user terminals cannot access the network and cannot communicate with the device on the network side, which often results in that some functions of the user terminals cannot be realized. For example, for the smart home device, it cannot receive a control instruction sent by a device such as a mobile phone, a tablet computer, or a personal computer on the network side, and therefore, a user cannot remotely control the smart home device through the network side.
Based on this, in the embodiment of the present invention, for the network device for providing the network access function for the user terminal, in the case that no online user information has been established for the user terminal in the network device, the network device may obtain the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal by actively sending an ARP request to the user terminal and receiving an ARP reply after receiving a message addressed to the user terminal, or, the network device may also obtain the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal by receiving configuration information issued by a server, therefore, the network equipment can establish the online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal. Therefore, for a user terminal which cannot actively send an online request, such as an intelligent home device, network equipment can acquire the IP address of the user terminal, the MAC address of the user terminal and interface information of the user terminal and establish online user information for the user terminal under the condition that the online request of the user terminal is not received, so that the user terminal can be actively accessed into a network, and the user terminal can be communicated with equipment on the network side. For example, for the smart home device, the smart home device can receive control intelligence sent by a device such as a mobile phone, a tablet computer, and a personal computer on the network side, so that a user can remotely control the smart home device on the network side.
As an example, one of the scenarios of the embodiment of the present invention may be applied to a network system as shown in fig. 1. In the network system, a network device 101 is used to provide a user terminal 102 with a network access service, such as a BRAS device. The user terminal 103 on the network side may send a first message to the network device 101, where a destination address of the first message is an Internet Protocol (IP) address of the user terminal 102. After receiving the first message, the network device 101 may locally search for online user information of the user terminal 101 according to the IP address of the user terminal 102. If the online user information of the user terminal 102 cannot be found locally, the network device 101 may send an ARP request to the user terminal 102 based on the IP address of the user terminal 102. The user terminal 102 sends an APR response to the network device 101 after receiving the ARP request. After receiving the APR, the network device 101 may obtain a Media Access Control (MAC) address of the ue 102 and interface information of the ue based on the ARP reply. Then, the network device 101 may establish online user information of the user terminal 102 based on the IP address of the user terminal 102, the MAC address of the user terminal, and the interface information of the user terminal.
As another example, the second scenario of the embodiment of the present invention may be applied to a network system as shown in fig. 2. In the network system, a network device 201 is used for providing a user terminal 203 with network access service, such as BRAS equipment. The server 202 is used to configure the network device 201, such as a Portal server. The server 202 may send configuration information to the network device 201, where the configuration information carries an IP address of the user terminal 203, a MAC address of the user terminal, and interface information of the user terminal. After receiving the configuration information, the network device may establish online user information of the user terminal 203 based on the IP address of the user terminal 203, the MAC address of the user terminal, and the interface information of the user terminal under the instruction of the configuration information.
It can be understood that the above two scenarios are only two scenario examples provided by the embodiment of the present invention, and the embodiment of the present invention is not limited to these two scenario examples.
The following describes in detail a specific implementation manner of the method, apparatus, and system for controlling the user terminal to be online according to the embodiment of the present invention with reference to the accompanying drawings.
Fig. 3 is a flowchart illustrating a method for controlling a user terminal to be online according to an embodiment of the present invention. In this embodiment, for example, the method may specifically include:
301. the network equipment receives a first message, the network equipment is used for providing network access service for the user terminal, and the destination address of the first message is the Internet Protocol (IP) address of the user terminal.
In specific implementation, the device on the network side may initiate the first packet to the user terminal through the internet, that is, the destination address of the first packet is the IP address of the user terminal. Since the network device is configured to provide a network access service for the user terminal, the first packet is sent to the network device through the internet. The Network device may be a BRAS device, or may also be a Broadband Network Gateway (BNG) device.
302. And the network equipment searches online user information of the user terminal according to the IP address of the user terminal.
In specific implementation, after the network device receives the first packet, the IP address of the user terminal may be obtained by identifying the destination address of the first packet. In order to forward the first packet, the network device may search for online user information that matches the IP address of the user terminal. The online user information is online user information of the user terminal, and can be used by the network device to forward the first message to the user terminal. The online user information matched with the IP address of the user terminal is online user information including the IP address of the user terminal.
303. And if the online user information of the user terminal cannot be searched in the network equipment, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal.
It can be understood that, if the network device does not find the online user information of the user terminal locally, that is, the network device does not store the online user information matched with the IP address of the user terminal locally, the user terminal is not in an online state and does not access the network. At this time, the network device may transmit an ARP request to the user terminal based on the IP address of the user terminal to request the MAC address of the user terminal and the interface information of the user terminal. And the ARP request carries the IP address of the user terminal so that the user terminal can identify the ARP request. The interface information of the user terminal represents an interface on the network equipment, and the interface is used for information interaction between the network equipment and the user terminal.
In addition, if the network device can locally find the online user information of the user terminal, that is, the network device locally stores the online user information matched with the IP address of the user terminal, the user terminal is already in an online state and has access to the network. At this time, the network device may also send the first packet to the user terminal according to the interface information of the user terminal in the online user information, thereby implementing a transmission process of the first packet from a network side device to the user terminal.
304. And the network equipment receives an ARP response returned by the user terminal based on the ARP request, and acquires the MAC address of the user terminal and the interface information of the user terminal based on the ARP response.
In specific implementation, after receiving the ARP request, the user terminal may generate an ARP reply carrying its own MAC address and interface information according to the APR request, and send the ARP reply to the network device. After receiving the ARP reply, the network device may obtain the MAC address of the user terminal and the interface information of the user terminal from the ARP reply.
305. And the network equipment establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
After the establishment, the network device stores the online user information of the user terminal. The online user information includes an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal.
It can be understood that the on-line user information of the user terminal stored in the network device may have at least two roles. On the one hand, the network device can verify whether the user terminal is on line according to the on-line user information when receiving the message related to the user terminal. The messages related to the user terminal comprise messages sent to the user terminal and messages sent by the user terminal. On the other hand, when the network device receives the message addressed to the user terminal, the network device may identify the interface information of the user terminal according to the online user information, and forward the message addressed to the user terminal based on the interface information of the user terminal.
In some embodiments, in combination with the function of the online user information, after 305, this embodiment may further include: and the network equipment sends the first message to the user terminal according to the interface information of the user terminal in the online user information.
In combination with the function of the online user information, in other embodiments, after 305, this embodiment may further include: the network equipment receives a second message sent by the user terminal; and if the online user information of the user terminal is found in the network equipment, the network equipment forwards the second message. The second packet carries the IP address of the user terminal and the MAC address of the user terminal, so that the network device can search the online user information of the user terminal according to the IP address of the user terminal and the MAC address of the user terminal.
It should be noted that, in a scenario of a Virtual Customer end device (vCPE for short), the network device provides network access service for all devices of the home users, and each device of the home user is located in a network, which is a home network. Wherein the network device may assign an identity to each home network. This identification is used by all devices of the home network in order for the network device to identify devices within the home network. This identifier may be referred to as a home identifier (hereinafter, Family ID), for example. Thus, all devices within the same home network use the same home identification.
It is understood that the present embodiment may be applied to vCPE scenarios, for example. Specifically, in a vCPE scenario, the user terminal may be a device of a home user, and is located in a home network, and at this time, the user terminal uses an identifier of the home network, so that the network device identifies the user terminal in the home network. Wherein the network device identifies and determines the user terminal according to the identification of the home network, the IP address of the user terminal, and the MAC address of the user terminal. Therefore, on one hand, the online user information of the user terminal may include an identifier of the home network in addition to the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal. On the other hand, the packet related to the user terminal may also carry an identifier of the home network. For example, the first packet may carry an identifier of the home network in addition to the IP address of the user terminal.
It can be understood that, in a vCPE scenario, after the network device receives the first message, the online user information to be searched needs to be matched with not only the IP address of the user terminal, but also the identifier of the home network. Thus, in a vCPE scenario, the 302 may be, for example: and the network equipment searches online user information matched with the identification of the home network and the IP address of the user terminal and takes the online user information as the online user information of the user terminal. More specifically, the 302 may include: and the network equipment searches online user information matched with the identifier of the home network, and if the online user information is found, the online user information matched with the IP address of the user terminal is searched in the online user information matched with the identifier of the home network. The 303 may be, for example: if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identification of the home network, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal.
In addition, in the vCPE scenario, the second packet may also carry an identifier of the home network in addition to the IP address of the user terminal and the MAC address of the user terminal. After the network device receives the second message, the online user information to be searched needs to be matched with not only the IP address of the user terminal and the MAC address of the user terminal, but also the identifier of the home network.
With the method provided by this embodiment, for a network device that provides a network access function for a user terminal, when no online user information has been established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by actively sending an ARP request to the user terminal and receiving an ARP response after receiving a message sent to the user terminal, so that the network device may establish the online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal. Therefore, for a user terminal which cannot actively send an online request, such as an intelligent home device, network equipment can acquire the IP address of the user terminal, the MAC address of the user terminal and interface information of the user terminal and establish online user information for the user terminal under the condition that the online request of the user terminal is not received, so that the user terminal can be actively accessed into a network, and the user terminal can be communicated with equipment on the network side. For example, for the smart home device, the smart home device can receive control intelligence sent by a device such as a mobile phone, a tablet computer, and a personal computer on the network side, so that a user can remotely control the smart home device on the network side.
Fig. 4 is a flowchart illustrating a method for controlling a user terminal to be online according to an embodiment of the present invention. In this embodiment, for example, the method may specifically include:
401. the server acquires configuration information;
402. the server sends the configuration information to the network equipment;
the network device is configured to provide a network access service for a user terminal, the configuration information is used to instruct the network device to establish online user information of the user terminal based on an IP address of the user terminal, an AC address of the user terminal, and interface information of the user terminal, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
In some embodiments, if the network device receives a first message whose destination address is the IP address of the user terminal, the network device may search for online user information of the user terminal according to the IP address of the user terminal. If the first message is received after the network device establishes the online user information for the user terminal, the online user information of the user terminal can be found in the network device, and at this time, the network device can send the first message to the user terminal according to the interface information of the user terminal in the online user information.
In other embodiments, if the network device receives the second packet sent by the user terminal, the network device may search for online user information of the user terminal according to the IP address of the user terminal and the MAC address of the user terminal. If the first message is received after the network device establishes the online user information for the user terminal, the online user information of the user terminal can be found in the network device, and at this time, the network device can forward the second message.
In addition, in a vCPE scenario, the user terminal may be located in a home network, for example, and in the configuration information and the online user information of the user terminal, besides the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal, for example, an identifier of the home network may also be included.
It can be understood that the difference between this embodiment and the embodiment shown in fig. 3 is that, in this embodiment, the network device establishes online user information for the user terminal under the trigger of the configuration information sent by the server, and the network device obtains data used for establishing the online user information, such as the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal, through the configuration information sent by the server. In addition, in the embodiment, for the description related to the online user information, reference may be made to the embodiment shown in fig. 3, and details of the embodiment are not repeated herein.
It should be noted that the server may acquire the configuration information through interaction with a user, for example. Specifically, the present embodiment may further include: the server acquires a configuration instruction, wherein the configuration instruction is used for indicating the configuration of online user information for the user terminal; and the server generates configuration information according to the configuration instruction. The configuration instruction may be, for example, a configuration instruction sent by a user to a server through a device such as a mobile phone or a PC, where the configuration instruction includes an IP address input by the user, a MAC address of the user terminal, and interface information of the user terminal. In addition, in a vCPE scenario, the configuration instruction may further include an identifier of the home network.
In order to enable the server to determine whether the network device establishes online user information of the user terminal, the network device may further feed back to the server after establishing the online user information. Specifically, in some embodiments, the present embodiment may further include, for example: and the server receives a configuration success message sent by the network equipment, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal. In addition, if the server does not receive the configuration success message sent by the network device, the server may determine that the online user information of the user terminal is not established on the network device.
In some embodiments, the server issues the configuration information of the configuration information amount, for example, the configuration information may be issued through a Portal protocol message. That is, the configuration information is carried in a request message of a Portal protocol sent by the server to the network device. Wherein, in the attribute field of the request message, the identifier of the home network, the IP address of the user terminal, and the MAC address of the user terminal may be carried. For example, the request message may be represented as REQ-INFO information of a Portal protocol, and the attribute field is specifically an attribute field of the REQ-INFO information. The attribute may specifically include a User-Mac field, a User-IP field, and a vCPE-Family-ID field. The User-Mac field is used for carrying the Mac address of the User terminal, the User-IP field is used for carrying the IP address of the User terminal, and the vCPE-Family-ID field is used for carrying the identifier of the home network.
In other embodiments, the configuration success message returned by the network device to the server may also be reported, for example, through a Portal protocol packet. Namely, the configuration success message is carried in a response message of a Portal protocol reported to the server by the network device. Wherein, the attribute field of the response message may carry the identifier of the home network, the IP address of the user terminal, and the MAC address of the user terminal. For example, the reply message may be represented as ACK-INFO information of a Portal protocol, and the attribute field is specifically an attribute field of the ACK-INFO information. The attribute may specifically include a User-Mac field, a User-IP field, and a vCPE-Family-ID field. The User-Mac field is used for carrying the Mac address of the User terminal, the User-IP field is used for carrying the IP address of the User terminal, and the vCPE-Family-ID field is used for carrying the identifier of the home network. It should be noted that, if the response message returned to the server by the network device does not carry the identifier of the home network, the IP address of the user terminal, and the mac address of the user terminal, the server may determine that the network device does not establish online user information for the user terminal, that is, the response message is a configuration unsuccessful message.
With the method provided by this embodiment, for a network device providing a network access function for a user terminal, in a case that no online user information has been established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by receiving configuration information issued by a server, thereby establishing online user information of the user terminal. Therefore, for a user terminal which cannot actively send an online request, such as an intelligent home device, network equipment can acquire the IP address of the user terminal, the MAC address of the user terminal and interface information of the user terminal and establish online user information for the user terminal under the condition that the online request of the user terminal is not received, so that the user terminal can be actively accessed into a network, and the user terminal can be communicated with equipment on the network side. For example, for the smart home device, the smart home device can receive control intelligence sent by a device such as a mobile phone, a tablet computer, and a personal computer on the network side, so that a user can remotely control the smart home device on the network side.
Fig. 5 is a flowchart illustrating a method for controlling a user terminal to be online according to an embodiment of the present invention. In this embodiment, for example, the method may specifically include:
501. a network device receives configuration information sent by a server, wherein the network device is used for providing network access service for a user terminal, and the configuration information carries an IP address of the user terminal, an MAC address of the user terminal and interface information of the user terminal;
502. under the indication of the configuration information, the network equipment establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, this embodiment may further include:
and the network equipment sends a configuration success message to the server, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
Optionally, the user terminal may be located in a home network, and the configuration information and the online user information of the user terminal may further include an identifier of the home network.
Optionally, the configuration information may be carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message may be carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the 502 specifically may include:
under the indication of the configuration information, the network equipment identifies whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, the network equipment establishes online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the method may further include:
the network equipment receives a first message, and the destination address of the first message is the IP address of the user terminal;
and if the online user information of the user terminal is found in the network equipment, sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the method may further include:
the network equipment receives a second message sent by the user terminal;
and if the online user information of the user terminal is found in the network equipment, the network equipment forwards the second message.
With the method provided by this embodiment, for a network device providing a network access function for a user terminal, in a case that no online user information has been established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by receiving configuration information issued by a server, thereby establishing online user information of the user terminal. Therefore, for a user terminal which cannot actively send an online request, such as an intelligent home device, network equipment can acquire the IP address of the user terminal, the MAC address of the user terminal and interface information of the user terminal and establish online user information for the user terminal under the condition that the online request of the user terminal is not received, so that the user terminal can be actively accessed into a network, and the user terminal can be communicated with equipment on the network side. For example, for the smart home device, the smart home device can receive control intelligence sent by a device such as a mobile phone, a tablet computer, and a personal computer on the network side, so that a user can remotely control the smart home device on the network side.
Fig. 6 is a schematic structural diagram illustrating an apparatus for controlling a user terminal to be online according to an embodiment of the present invention. In this embodiment, the apparatus 600 is configured in a network device, and the network device is configured to provide a network access service for the user terminal, and the apparatus 600 may include:
a first receiving unit 601, configured to receive a first packet, where the network device is configured to provide a network access service for the user terminal, and a destination address of the first packet is an internet protocol IP address of the user terminal;
a searching unit 602, configured to search online user information of the user terminal according to an IP address of the user terminal;
a first sending unit 603, configured to send, by the network device, an address resolution protocol ARP request to the user terminal based on the IP address of the user terminal if online user information of the user terminal cannot be found in the network device;
a second receiving unit 604, configured to receive an ARP reply returned by the user terminal based on the ARP request, and obtain an MAC address of the user terminal and interface information of the user terminal based on the ARP reply;
an establishing unit 605, configured to establish online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Optionally, the user terminal is located in a home network, the first packet further carries an identifier of the home network, and the online user information of the user terminal further includes the identifier of the home network;
the search unit 602 is specifically configured to: searching online user information matched with the identification of the home network and the IP address of the user terminal to serve as the online user information of the user terminal;
the first sending unit 603 is specifically configured to: if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identification of the home network, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal.
Optionally, the apparatus 600 further includes:
and the second sending unit is used for sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the apparatus 600 further includes:
a third receiving unit, configured to receive a second message sent by the user terminal;
and the forwarding processing unit is used for forwarding the second message by the network equipment if the online user information of the user terminal is found in the network equipment.
With the device provided in this embodiment, for a network device that provides a network access function for a user terminal, when no online user information is established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by actively sending an ARP request to the user terminal and receiving an ARP response after receiving a message sent to the user terminal, so that the network device may establish the online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Fig. 7 is a schematic structural diagram illustrating an apparatus for controlling a user terminal to be online according to an embodiment of the present invention. In this embodiment, the apparatus 700 may be configured as a server, and the apparatus 700 may include, for example:
an obtaining unit 701 configured to obtain configuration information;
a sending unit 702, configured to send the configuration information to the network device;
the network device is configured to provide a network access service for a user terminal, the configuration information is used to instruct the network device to establish online user information of the user terminal based on an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Optionally, the apparatus 700 further includes:
a receiving unit, configured to receive a configuration success message sent by the network device, where the configuration success message is used to indicate that the network device has established online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
With the device provided in this embodiment, for a network device that is used to provide a network access function for a user terminal, when online user information has not been established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by receiving configuration information issued by a server, thereby establishing online user information of the user terminal.
Fig. 8 is a schematic structural diagram illustrating an apparatus for controlling a user terminal to be online according to an embodiment of the present invention. In this embodiment, the apparatus 800 may be configured to a network device, where the network device is configured to provide a network access service for a user terminal, and the apparatus 800 may specifically include:
a first receiving unit 801, configured to receive configuration information sent by a server, where the configuration information carries an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal;
an establishing unit 802, configured to establish, under the instruction of the configuration information, online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Optionally, the apparatus 800 further includes:
a first sending unit, configured to send a configuration success message to the server, where the configuration success message is used to indicate that the network device has established online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the establishing unit 802 is specifically configured to:
under the indication of the configuration information, the network equipment identifies whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, the network equipment establishes online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the apparatus 800 further includes:
a second receiving unit, configured to receive a first message, where a destination address of the first message is an IP address of the user terminal;
a second sending unit, configured to send the first message to the user terminal according to the interface information of the user terminal in the online user information if the online user information of the user terminal is found in the network device.
Optionally, the apparatus 800 further includes:
a third receiving unit, configured to receive a second message sent by the user terminal;
and the forwarding processing unit is used for forwarding the second message if the online user information of the user terminal is found in the network equipment.
With the device provided in this embodiment, for a network device that is used to provide a network access function for a user terminal, when online user information has not been established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by receiving configuration information issued by a server, thereby establishing online user information of the user terminal.
Fig. 9 is a schematic structural diagram illustrating a system for controlling a user terminal to be online in an embodiment of the present invention. In this embodiment, the system includes a network device 901 and a server 902;
the server 901 is configured with the apparatus 700 of any one of the foregoing embodiments;
the network device 902 is configured to provide a network access service for a user equipment, and is configured with the apparatus 800 according to any of the foregoing embodiments.
With the system provided in this embodiment, for a network device that is used to provide a network access function for a user terminal, when online user information has not been established for the user terminal in the network device, the network device may obtain an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal by receiving configuration information issued by a server, so as to establish online user information of the user terminal.
Fig. 10 is a schematic structural diagram of a network device in an embodiment of the present invention. In this embodiment the network device 1000 may be used to perform the method of the embodiment shown in fig. 3. The network device 1000 includes: a processor 1001, a memory 1002, a network interface 1003, a bus system 1004.
The bus system 1004 is used to couple the various hardware components of the network device 1000 together.
The network interface 1003 is used to implement communication connection between the network device 1000 and at least one other network element, and may use the internet, a wide area network, a local area network, a metropolitan area network, or the like.
The memory 1002 is used to store program instructions and data.
The processor 1001 is configured to read instructions and data stored in the memory 1002, and perform the following operations:
receiving a first message, wherein the network equipment is used for providing network access service for the user terminal, and the destination address of the first message is the Internet Protocol (IP) address of the user terminal;
searching online user information of the user terminal according to the IP address of the user terminal;
if the online user information of the user terminal cannot be searched in the network equipment, sending an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal;
receiving an ARP response returned by the user terminal based on the ARP request, and acquiring a Media Access Control (MAC) address of the user terminal and interface information of the user terminal based on the ARP response;
and establishing online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the user terminal is located in a home network, the first packet further carries an identifier of the home network, and the online user information of the user terminal further includes the identifier of the home network;
in order to find the online user information of the user terminal, the processor 1001 may further perform the following operations: searching online user information matched with the identification of the home network and the IP address of the user terminal to serve as the online user information of the user terminal;
to send the ARP request, the processor 1001 may, for example, further perform the following: and if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identifier of the home network, sending an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal.
Optionally, the processor 1001 may further perform the following operations:
and sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the processor 1001 may further perform the following operations:
receiving a second message sent by the user terminal;
and if the online user information of the user terminal is found in the network equipment, forwarding the second message.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1100 may be used to perform the method of the embodiment shown in fig. 4 in this embodiment. The server 1100 includes: a processor 1101, a memory 1102, a network interface 1103, a bus system 1104.
The bus system 1104 is used to couple the various hardware components of the server 1100 together.
The network interface 1103 is used to implement communication connection between the server 1100 and at least one other network element, and may use the internet, a wide area network, a local area network, a metropolitan area network, or the like.
The memory 1102 is used to store program instructions and data.
The processor 1101 is configured to read instructions and data stored in the memory 1102, and perform the following operations:
acquiring configuration information;
sending the configuration information to a network device;
the network device is configured to provide a network access service for a user terminal, the configuration information is used to instruct the network device to establish online user information of the user terminal based on an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
Optionally, the processor 1101 may further perform the following operations:
and the server receives a configuration success message sent by the network equipment, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Fig. 12 is a schematic structural diagram of a network device in an embodiment of the present invention. In this embodiment network device 1200 may be used to perform the method of the embodiment shown in fig. 5. The network device 1200 includes: a processor 1201, a memory 1202, a network interface 1203, a bus system 1204.
The bus system 1204 is used to couple the various hardware components of the network device 1200 together.
The network interface 1203 is configured to implement communication connection between the network device 1200 and at least one other network element, and may use the internet, a wide area network, a local network, a metropolitan area network, and the like.
The memory 1202 is used to store program instructions and data.
The processor 1201 is configured to read instructions and data stored in the memory 1002, and perform the following operations:
receiving configuration information sent by a server, where the network device 1200 is configured to provide a network access service for a user terminal, and the configuration information carries an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal;
and under the indication of the configuration information, establishing online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the processor 1201 may further perform the following operations:
and the network equipment sends a configuration success message to the server, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
Optionally, the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
Optionally, the configuration information is carried in a request message packet of a Portal protocol, and an attribute field of the request message packet carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of the home network, an IP address of the user terminal, and an MAC address of the user terminal.
Optionally, under the indication of the configuration information, in order to establish online user information of the user terminal, the processor 1201 may further perform the following operations, for example:
under the indication of the configuration information, identifying whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, establishing online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
Optionally, the processor 1201 may further perform the following operations, for example:
receiving a first message, wherein the destination address of the first message is the IP address of the user terminal;
and if the online user information of the user terminal is found in the network equipment, sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
Optionally, the processor 1201 may further perform the following operations, for example:
receiving a second message sent by the user terminal;
and if the online user information of the user terminal is found in the network equipment, forwarding the second message.
In the embodiments of the present invention, the "first" in the names of the "first message", "first receiving unit", "first sending unit", and the like is only used for name identification, and does not represent the first in sequence. The same applies to "second" etc.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. With this understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM)/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a router, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the method embodiments and apparatus embodiments are substantially similar to the system embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the system embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, wherein modules described as separate parts may or may not be physically separate, and parts shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. It should be noted that, for a person skilled in the art, several modifications and refinements can be made without departing from the invention, and these modifications and refinements should be regarded as the protection scope of the present invention.

Claims (31)

1. A method for controlling the online of a user terminal is characterized by comprising the following steps:
a network device receives a first message, wherein the network device is used for providing network access service for a user terminal, and the destination address of the first message is the Internet Protocol (IP) address of the user terminal;
the network equipment searches online user information of the user terminal according to the IP address of the user terminal;
if the online user information of the user terminal cannot be searched in the network equipment, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal;
the network equipment receives an ARP response returned by the user terminal based on the ARP request, and acquires a Media Access Control (MAC) address of the user terminal and interface information of the user terminal based on the ARP response;
and the network equipment establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
2. The method according to claim 1, wherein the user terminal is located in a home network, the first packet further carries an identifier of the home network, and online user information of the user terminal further includes the identifier of the home network;
the network device searches online user information of the user terminal according to the IP address of the user terminal, and specifically comprises the following steps: the network equipment searches online user information matched with the identification of the home network and the IP address of the user terminal and takes the online user information as the online user information of the user terminal;
if the online user information of the user terminal cannot be found in the network equipment, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal, and the method specifically comprises the following steps: if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identification of the home network, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address of the user terminal.
3. The method of claim 1, further comprising:
and the network equipment sends the first message to the user terminal according to the interface information of the user terminal in the online user information.
4. A method for controlling the online of a user terminal is characterized by comprising the following steps:
the server acquires configuration information;
the server sends the configuration information to network equipment;
the network device is configured to provide a network access service for a user terminal, the configuration information is used for establishing online user information of the user terminal based on an internet protocol IP address of the user terminal, a media access control MAC address of the user terminal, and interface information of the user terminal under the indication of the configuration information, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
5. The method of claim 4, further comprising:
and the server receives a configuration success message sent by the network equipment, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
6. The method according to claim 4 or 5, wherein the user terminal is located in a home network, and the configuration information and the online user information of the user terminal further include an identifier of the home network.
7. The method of claim 6, wherein the configuration information is carried in a request message of a Portal protocol, and an attribute field of the request message carries an identifier of the home network, an IP address of the user terminal, and a MAC address of the user terminal.
8. The method according to claim 5, wherein the configuration success message is carried in a response message of Portal protocol, and an attribute field of the response message carries an identifier of a home network, an IP address of the user terminal, and an MAC address of the user terminal.
9. A method for controlling the online of a user terminal is characterized by comprising the following steps:
the method comprises the steps that network equipment receives configuration information sent by a server, the network equipment is used for providing network access service for a user terminal, and the configuration information carries an Internet Protocol (IP) address of the user terminal, a Media Access Control (MAC) address of the user terminal and interface information of the user terminal;
under the indication of the configuration information, the network equipment establishes online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
10. The method of claim 9, further comprising:
and the network equipment sends a configuration success message to the server, wherein the configuration success message is used for indicating that the network equipment establishes online user information of the user terminal.
11. The method according to claim 9 or 10, wherein the ue is located in a home network, and the configuration information and the online subscriber information of the ue further include an identifier of the home network.
12. The method according to claim 11, wherein the configuration information is carried in a request message of Portal protocol, and an attribute field of the request message carries an identifier of the home network, an IP address of the user terminal, and a MAC address of the user terminal.
13. The method according to claim 10, wherein the configuration success message is carried in a response message of a Portal protocol, and an identifier of a home network, an IP address of the user terminal, and a MAC address of the user terminal are carried in an attribute field of the response message.
14. The method according to claim 11, wherein the establishing, by the network device under the indication of the configuration information, the online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal includes:
under the indication of the configuration information, the network equipment identifies whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, the network equipment establishes online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
15. The method of claim 9, further comprising:
the network equipment receives a first message, and the destination address of the first message is the IP address of the user terminal;
and if the online user information of the user terminal is found in the network equipment, sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
16. An apparatus for controlling a user equipment to be online, the apparatus being configured in a network device, the network device being configured to provide a network access service for the user equipment, the apparatus comprising:
a first receiving unit, configured to receive a first packet, where the network device is configured to provide a network access service for the user terminal, and a destination address of the first packet is an internet protocol IP address of the user terminal;
the searching unit is used for searching online user information of the user terminal according to the IP address of the user terminal;
a first sending unit, configured to, if online user information of the user terminal cannot be found in the network device, send, by the network device, an Address Resolution Protocol (ARP) request to the user terminal based on an IP address of the user terminal;
a second receiving unit, configured to receive an ARP reply returned by the user terminal based on the ARP request, and obtain a media control MAC address of the user terminal and interface information of the user terminal based on the ARP reply;
and the establishing unit is used for establishing online user information of the user terminal based on the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
17. The apparatus according to claim 16, wherein the user terminal is located in a home network, the first packet further carries an identifier of the home network, and online user information of the user terminal further includes the identifier of the home network;
the search unit is specifically configured to: searching online user information matched with the identification of the home network and the IP address of the user terminal to serve as the online user information of the user terminal;
the first sending unit is specifically configured to: if the online user information matched with the IP address of the user terminal cannot be searched in the online user information matched with the identification of the home network, the network equipment sends an Address Resolution Protocol (ARP) request to the user terminal based on the IP address.
18. The apparatus of claim 17, further comprising:
and the third sending unit is used for sending the first message to the user terminal according to the interface information of the user terminal in the online user information.
19. An apparatus for controlling a user terminal to be online, the apparatus being configured to a server, the apparatus comprising:
an acquisition unit configured to acquire configuration information;
a sending unit, configured to send the configuration information to a network device;
the network device is configured to provide a network access service for a user terminal, the configuration information is used for establishing online user information of the user terminal based on an internet protocol IP address of the user terminal, a media access control MAC address of the user terminal, and interface information of the user terminal under the indication of the configuration information, and the configuration information carries the IP address of the user terminal, the MAC address of the user terminal, and the interface information of the user terminal.
20. The apparatus of claim 19, further comprising:
a receiving unit, configured to receive a configuration success message sent by the network device, where the configuration success message is used to indicate that the network device has established online user information of the user terminal.
21. The apparatus according to claim 19 or 20, wherein the ue is located in a home network, and the configuration information and the online subscriber information of the ue further include an identifier of the home network.
22. The apparatus of claim 21, wherein the configuration information is carried in a request message of Portal protocol, and an attribute field of the request message carries an identifier of the home network, an IP address of the user terminal, and a MAC address of the user terminal.
23. The apparatus of claim 20, wherein the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of a home network, an IP address of the ue and a MAC address of the ue.
24. An apparatus for controlling a user terminal to be online, wherein the apparatus is configured in a network device, and the network device is configured to provide a network access service for the user terminal, and the apparatus comprises:
a first receiving unit, configured to receive configuration information sent by a server, where the configuration information carries an IP address of the user terminal, an MAC address of the user terminal, and interface information of the user terminal;
and the establishing unit is used for establishing online user information of the user terminal based on the Internet protocol IP address of the user terminal, the media access control MAC address of the user terminal and the interface information of the user terminal under the indication of the configuration information.
25. The apparatus of claim 24, further comprising:
a first sending unit, configured to send a configuration success message to the server, where the configuration success message is used to indicate that the network device has established online user information of the user terminal.
26. The apparatus according to claim 24 or 25, wherein the ue is located in a home network, and the configuration information and the online subscriber information of the ue further include an identifier of the home network.
27. The apparatus of claim 26, wherein the configuration information is carried in a request message of Portal protocol, and an attribute field of the request message carries an identifier of the home network, an IP address of the user terminal, and a MAC address of the user terminal.
28. The apparatus of claim 25, wherein the configuration success message is carried in a response message of a Portal protocol, and an attribute field of the response message carries an identifier of a home network, an IP address of the ue and a MAC address of the ue.
29. The apparatus according to claim 26, wherein the establishing unit is specifically configured to:
under the indication of the configuration information, the network equipment identifies whether the user terminal is in a connected state or not and whether the user information of the user terminal is legal or not, wherein the user information of the user terminal comprises an identifier of the home network, an IP address of the user terminal and/or an MAC address of the user terminal;
and if the user terminal is in a connected state and the user information of the user terminal is legal, the network equipment establishes online user information of the user terminal based on the identification of the home network, the IP address of the user terminal, the MAC address of the user terminal and the interface information of the user terminal.
30. The apparatus of claim 24, further comprising:
a second receiving unit, configured to receive a first message, where a destination address of the first message is an IP address of the user terminal;
a second sending unit, configured to send the first message to the user terminal according to the interface information of the user terminal in the online user information if the online user information of the user terminal is found in the network device.
31. A system for controlling the online of a user terminal is characterized by comprising a network device and a server;
the server is provided with the device as claimed in any one of claims 19 to 23;
the network device is used for providing network access service for a user terminal and is provided with the device of any one of claims 24-30.
CN201610398746.1A 2016-06-07 2016-06-07 Method and device for controlling user terminal to be on-line Active CN105959188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610398746.1A CN105959188B (en) 2016-06-07 2016-06-07 Method and device for controlling user terminal to be on-line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610398746.1A CN105959188B (en) 2016-06-07 2016-06-07 Method and device for controlling user terminal to be on-line

Publications (2)

Publication Number Publication Date
CN105959188A CN105959188A (en) 2016-09-21
CN105959188B true CN105959188B (en) 2020-04-28

Family

ID=56907754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610398746.1A Active CN105959188B (en) 2016-06-07 2016-06-07 Method and device for controlling user terminal to be on-line

Country Status (1)

Country Link
CN (1) CN105959188B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547562B (en) * 2017-09-25 2020-04-28 新华三技术有限公司 Portal authentication method and device
CN108964985B (en) * 2018-06-14 2020-07-28 烽火通信科技股份有限公司 Method for managing virtual client terminal equipment using protocol message
CN111092830B (en) * 2019-12-11 2022-01-11 成都华大九天科技有限公司 PCIE (peripheral component interface express) exchange chip port configuration system and method
CN111491351B (en) * 2020-04-28 2022-04-19 国家广播电视总局广播电视科学研究院 Method and system for sensing online of WiFi terminal based on authentication information
CN114338382B (en) * 2021-12-30 2023-11-14 北京天融信网络安全技术有限公司 Domain name based equipment online method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571350A (en) * 2003-07-11 2005-01-26 华为技术有限公司 A method for triggering user terminal online via data message
CN101159614A (en) * 2007-10-23 2008-04-09 中兴通讯股份有限公司 Gateway and method of implementing centralized management to equipment
CN103685285A (en) * 2013-12-18 2014-03-26 上海斐讯数据通信技术有限公司 Method for limiting number of terminals under routing mode
WO2014166884A1 (en) * 2013-04-08 2014-10-16 Telefonaktiebolaget L M Ericsson (Publ) Congestion aware throughput targets
CN104468869A (en) * 2014-12-31 2015-03-25 杭州华三通信技术有限公司 Method for allocating IP addresses to terminals and method and device for obtaining IP addresses

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080293403A1 (en) * 2007-05-22 2008-11-27 Colin Shong Chin Quon Mobile communication service bridging
US7958246B2 (en) * 2007-08-09 2011-06-07 Kount Inc. Establishing unique sessions for DNS subscribers
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571350A (en) * 2003-07-11 2005-01-26 华为技术有限公司 A method for triggering user terminal online via data message
CN101159614A (en) * 2007-10-23 2008-04-09 中兴通讯股份有限公司 Gateway and method of implementing centralized management to equipment
WO2014166884A1 (en) * 2013-04-08 2014-10-16 Telefonaktiebolaget L M Ericsson (Publ) Congestion aware throughput targets
CN103685285A (en) * 2013-12-18 2014-03-26 上海斐讯数据通信技术有限公司 Method for limiting number of terminals under routing mode
CN104468869A (en) * 2014-12-31 2015-03-25 杭州华三通信技术有限公司 Method for allocating IP addresses to terminals and method and device for obtaining IP addresses

Also Published As

Publication number Publication date
CN105959188A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105959188B (en) Method and device for controlling user terminal to be on-line
JP6726426B2 (en) Login-free method and device between terminals
KR100796865B1 (en) Mobile Terminal, System and Method for connecting Network by using the same
CN104158883A (en) Method, device, equipment and system for carrying out user login through cross-terminal equipment
US10887745B2 (en) Method and device for sharing file between different terminals
CN105959906B (en) Network equipment communication method and device and network equipment communication method and device
CN104106303A (en) Methods and apparatus for establishing tunneled direct link setup (TDLS) session between devices in wireless network
CN109996260B (en) Configuration system, client device, embedded device configuration method and storage medium
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN102055816A (en) Communication method, business server, intermediate equipment, terminal and communication system
CN112235175B (en) Access method and access device of network bridge equipment and network bridge equipment
CN107889194B (en) Obtain, provide method, equipment and the medium of wireless access point access information
US20170118581A1 (en) Switching to advertising locator after connection establishment
CN104601743A (en) IP (internet protocol) forwarding IPoE (IP over Ethernet) dual-stack user access control method and equipment based on Ethernet
CN105141789A (en) Strange number marking method and device
CN104283783A (en) Gateway equipment message transmitting method and device in plug and play network
CN104539508A (en) Access control method and device
CN106453349A (en) An account number login method and apparatus
CN107645570A (en) Client loading method and device
CN105511275A (en) Method and device for controlling intelligent electric appliance
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN106789843B (en) Method, PORTAL server and system for sharing internet access
CN105072669B (en) The connection control method and device of website
US20130097228A1 (en) Network storage system, data manipulation method in network storage system, storage device and computer program product for controlling client device
CN106375489B (en) Method and device for processing Media Access Control (MAC) address

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant