WO2016086544A1 - Network interface configuration method and apparatus for network device and storage medium - Google Patents
Network interface configuration method and apparatus for network device and storage medium Download PDFInfo
- Publication number
- WO2016086544A1 WO2016086544A1 PCT/CN2015/073982 CN2015073982W WO2016086544A1 WO 2016086544 A1 WO2016086544 A1 WO 2016086544A1 CN 2015073982 W CN2015073982 W CN 2015073982W WO 2016086544 A1 WO2016086544 A1 WO 2016086544A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network
- port
- network port
- type
- internet
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a network port configuration method and apparatus for a network device, and a computer storage medium.
- Box products smart TV boxes
- the Internet is basically equipped with a network port to connect with the Internet to realize the Internet function.
- Box products often access the Internet through wireless non-network mode such as wireless fidelity (wifi, wireless fidelity) and third-generation mobile communication technology, so that the network port will become an idle device with low utilization.
- wireless non-network mode such as wireless fidelity (wifi, wireless fidelity) and third-generation mobile communication technology
- the embodiments of the present invention are directed to a network port configuration method, device, and computer storage medium for a network device, which are used to solve the problem that the network port is often idle and has low utilization rate in the prior art. .
- the embodiment of the present invention provides a network port configuration method of a network device, where the method includes: detecting a usage state of a network port of the network device, where the network port type of the network port includes a wide area network WAN port or The LAN port of the local area network is configured to change the network port type of the network port to perform network connection by changing the type of the network port.
- the detecting the usage status of the network port of the network device includes: detecting whether the network port of the network device is connected to the Internet; If the network port of the network device is not connected to the Internet, the network device is determined The usage status of the network port is an idle state; the changing the network port type of the network port includes: changing the network port type from a WAN port to a LAN port.
- the method further includes: connecting the network port after the change type to the terminal; connecting the network device to the Internet through a wireless manner, The terminal is connected to the Internet through the network device.
- the detecting the usage status of the network port of the network device includes: detecting whether the network port of the network device is connected to the terminal; If the network port of the network device is not connected to the terminal, the network port of the network device is determined to be in an idle state; and the changing the network port type of the network port includes: Changed from LAN port to WAN port.
- the method further includes: connecting the network port after the changed type to the Internet; and connecting the network device to the terminal by using a wireless manner, The terminal is connected to the Internet through the network device.
- the embodiment of the present invention further provides a network port configuration device of a network device, where the device includes: a detecting unit, configured to detect a usage state of a network port of the network device, where the network port of the network port
- the port type includes a WAN port or a LAN port
- the changing unit is configured to change the network port type of the network port by changing the type after the detecting unit detects that the usage state of the network port of the network device is an idle state.
- the network port performs a network connection.
- the detecting unit is configured to: detect whether the network port of the network device is connected to the Internet; and the network port of the network device is not connected to the Internet In the case of the network device, the network port is determined to be in an idle state.
- the change unit is further configured to change the network port type from the WAN port to the LAN port.
- the device further includes a first connecting unit, configured to: after the changing the network port type of the network port, connect the network port after the changed type to the terminal;
- the network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
- the detecting unit is further configured to: detect whether the network port of the network device is connected to the terminal; and the network port of the network device is not In the case that the terminals are connected, it is determined that the usage status of the network port of the network device is an idle state.
- the changing unit is further configured to change the network port type from a LAN port to a WAN port.
- the device further includes a second connecting unit, configured to: after the changing the network port type of the network port, connect the network port of the changed type to the Internet; and pass the network device The wireless mode is connected to the terminal, so that the terminal is connected to the Internet through the network device.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the network port configuration method of the network device.
- the network port configuration method, device, and computer storage medium of the network device provided by the embodiment of the present invention can detect the usage state of the network port of the network device.
- the network port type of the network port is changed to perform network connection by changing the type of the network port. In this way, through the conversion of the network port type, the network port that is originally redundantly configured and in an idle state can perform network connection and provide corresponding services in another manner, thereby effectively improving the network port utilization of the network device.
- FIG. 1 is a flowchart of a network port configuration method of a network device according to an embodiment of the present invention
- FIG. 2 is a schematic structural view of a smart set top box in a preferred embodiment of the present invention.
- FIG. 3 is a schematic diagram of network connection when a network port of a smart set top box is a WAN port type according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of network connection when a network port of a smart set top box is a LAN port type according to an embodiment of the present invention
- FIG. 5 is a detailed flowchart of a method for configuring a network port of a network device according to an embodiment of the present disclosure
- FIG. 6 is a schematic structural diagram of a network port configuration apparatus of a network device according to an embodiment of the present invention.
- a method for configuring a network port of a network device includes:
- the network port configuration method of the network device can detect the network port usage state of the network device.
- the network port usage state is idle state
- the network port can be changed.
- the network port type is used to connect to the network through the network port after the type is changed. In this way, by changing (converting) the type of the network port, the network port that is originally redundant and in the idle state can perform network connection and provide corresponding service in another manner, thereby effectively improving the network port utilization of the network device. .
- the network port type can be a WAN port type, that is, a network port type used for connecting to an external Internet, such as ADSL (Asymmetric Digital Subscriber Line), DDN (Digital Data Network). Network, Ethernet, and other access lines; the network port type can also be a LAN port type, that is, a network port type used to connect to a local network device, and is mainly connected to a switch, hub, or PC in the home.
- the change mentioned in this embodiment The network port type is essentially software configuration so that the same network port can be switched between the above two types.
- This network port configuration method is applicable to all devices with network ports (such as routers), but it is especially suitable for network devices with one and only one network port, such as smart set-top boxes or U-fi with network ports.
- many network devices can provide both wired and wireless Internet access.
- the network port type is WAN port, which can be connected to the Internet through a network port, or can be connected to the Internet through a wireless connection.
- the network port type is a LAN port. It can be connected to the terminal through the network port to provide Internet access for the terminal, or wirelessly connect with the terminal to provide wifi service for the terminal.
- the following describes the network port configuration method provided by the present invention in detail by using an intelligent set top box and U-fi as an example.
- the detecting the use status of the network port of the network device in the step S11 may specifically include:
- changing the network port type of the network port in step S12 may specifically include:
- detecting whether the network port of the network device is connected to the Internet may be implemented by querying the port status of the system and attempting to send an access request to the Internet.
- an eth0 logical port when there are other devices connected to the network port, an eth0 logical port will appear.
- the network port When the network port is not connected to other devices, the eth0 logical port does not exist in the system. Therefore, you can first determine whether the eth0 port exists. Whether the network port is connected to other devices. If it is determined that the network port is connected to other devices, it can further determine whether the connected other device is an Internet server or an Internet terminal by sending an access request to the Internet. If you access the internet please If the response is obtained, it is determined that the network port is connected to the Internet server, otherwise it is determined that the network port is connected to the ordinary Internet terminal.
- the type conversion between the WAN port and the LAN port can be implemented by software configuration.
- the shell script that switches from the WAN port to the LAN port can look like this:
- the current nat table in the network port is first cleared, so as to clear various Internet access rules stored in the nat table when the WAN port is used, and then the forwarding function is restarted by prohibiting the forwarding function from being restarted, so that
- the network port has a data forwarding function to forward data to the Internet terminal connected thereto, thereby implementing the function of the LAN port.
- the network port configuration method provided by the embodiment of the present invention may further include the following steps:
- the network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
- the network port of the smart set-top box is originally a WAN type. After the network port is found to be in an idle state, the type of the network port is modified to improve the network port usage. The port becomes a LAN port. In this way, the network port can be connected to the terminal.
- the smart set-top box is connected to the Internet through a wireless method such as 3G or wifi, the network port is not left idle, but serves as a LAN type network port, which can be used for various The terminal provides Internet access.
- the network port configuration method provided by the present invention can enable the network port to access the Internet through Wi-Fi and 3G.
- the network port configuration method provided by the present invention can be used to change the network port type of the box, and then the PC is connected to the network port, so that the PC can share the 3G mobile network of the Box.
- the network port on the smart set-top box can be set to the WAN port type, and the smart set-top box can be connected to the Internet through the network port.
- switching from the LAN port to the WAN port shell script can be as follows:
- the current nat table in the network port is first cleared, so as to clear various forwarding rules stored in the nat table when the LAN port is previously used, and then the forwarding function is disabled, thereby implementing the function of the WAN port.
- the network port device of the box can be effectively utilized, and the state of the network port can be changed, so that the box product can provide network services for other devices through the network port. This is especially useful for devices that do not have a wireless network card.
- Box refers to the smart TV box or smart set-top box, which can be connected to the TV through HDMI (High Definition Multimedia Interface), turn ordinary TV into smart TV, and install applications, Internet, games and so on.
- the Box may include three modules: a communication module (wifi or 3G), a network port control module, and a network port module.
- the module can provide Wi-Fi and 3G connection. There are two main functions: a. When the network port type is WAN port, it provides Internet service for Box products, and Box products connect to the Internet through this module.
- the connection diagram is shown in Figure 3.
- the module can also provide network services for other devices through the network port at this time.
- the connection diagram is shown in Figure 4.
- This module mainly controls the state of the network port.
- the network port WAN port and the LAN port are switched.
- the user can set the type of network port according to the usage in the module of the Box product: the WAN port type can provide Internet access for the Box product through the network port.
- the LAN port type can be networked through the communication module of the Box product, and the network port is used to enable other devices to share the network service of the Box product.
- This module is mainly based on different network port types set by the network port control module. Different network port types correspond to different functions: a. WAN port type, providing Internet service for Box products, and Box products are connected to the Internet through the module to connect to the Internet. b. LAN port type. When using wifi or 3G Internet access, the Box can use this network port to connect to other devices to share Internet access services for other devices.
- the workflow is basically the same for each Box product. Therefore, the following mainly uses the network port type as the LAN port, and the system introduces the workflow and implementation method of the method for the Android system. However, the method is not limited to the Android system and the implementation method.
- the method for configuring a network port of a box may include the following steps:
- Step S201 open wifi to connect to the wifi network, or open the 3G connection mobile network, so that the box connects to the Internet through wifi or 3G.
- This step can be achieved by: 1) entering the system's own setup program to open wifi and connect to the wifi network or open the mobile data network. 2) Manually implement wifi opening and connecting using the relevant api method in WifiManager.java in the framework. Use Phone.java, ConnectivityManager.java in the framework to manually open the mobile data network.
- the specific implementation of these two methods can refer to the Setting source and Phone program in the Android source code to achieve the source code.
- Step S202 specifying an uplink channel
- This step implements the following shell script:
- the oblique black body part is the system port name corresponding to the uplink channel, and only the corresponding system port name is required to replace the oblique black body part for selecting different uplink channels. For example, if the current wifi is selected as the uplink channel, and the corresponding port of the wifi in the system is named wlan0, then only the oblique black body part is replaced by wlan0. which is:
- the current networking state may be obtained by using the following code to set the corresponding port:
- ConnectivityManager conn (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_S ERVICE);
- the current network name can be obtained, thereby judging whether the current network is a wifi or a mobile network, and then correspondingly specifying.
- step S203 it is determined whether the uplink network is successfully designated in S202. If the designated uplink network is not opened or connected, S205 is performed; if successful, S204 is performed.
- Step S204 Set the network port type, and switch the network port type WAN to the LAN, so that the network port can provide network services to other connected devices, and continue to execute S206.
- Step S205 prompting to specify the reason for the failure, and executing S112.
- Step S206 Connecting other terminals, using a network cable to connect the Box network port with the network ports of other terminals, and establishing a physical connection between the two devices to provide basic support for the network port sharing network service.
- Step S207 It is determined whether the connection between the network port of the Box and other network devices in S206 is successful. If it fails, S208 is performed; if successful, S209 is performed.
- eht0 obtains the status of the port through the bottom layer, and determines whether the physical connection has been made.
- android human-computer interaction interface UI can interact with the underlying network port and the driver through jni to know the port connection status.
- Step S208 prompting the connection failure reason, and executing S112.
- Step S209 dynamically assigning an Internet Protocol IP address to other terminals to provide basic support for the network service.
- Other terminals can use this IP address as their own IP.
- Dynamic Map Assignment IP uses DHCP (Dynamic Host Configuration Protocol) to dynamically configure the client's information. Box as DHCP
- the server when the DHCP server receives the information of the IP address requested by the client, searches the database for a valid IP address to be provided to the client. If yes, this IP tag is broadcast to broadcast a DHCP Offer message.
- the message mainly includes: the MAC address of the client, the legal IP address provided, the subnet mask, the lease term, and the server IP address.
- the specific DHCP server implementation can refer to the implementation in other systems.
- Step S210 Determine whether the third party device allocates the dynamic IP is successful, if yes, execute S111; if successful, the other device starts to share the network through the box, and execute S212.
- step S211 the IP allocation failure reason is prompted. If the IP address fails to be assigned in S210, the user is prompted to fail to give a failure reason, and S212 is performed.
- Step S212 ending.
- the network port configuration method provided by the embodiment of the present invention is mainly described by using the Android system as an example, but the method is not limited thereto.
- the built-in network port is generally a LAN type. Then, in step S11, detecting whether the network port of the network device is in an idle state may specifically include:
- the network port of the network device is connected to the terminal.
- whether the eth0 port exists in the system can be used to determine whether the network port is connected to other devices. If the eth0 port is available, the network port is connected to other devices. If eth0 does not exist, the network port is not connected to other devices.
- the network port type may be attempted to be designated as a WAN port and an access request is sent to the Internet to determine whether the network port is connected to the Internet or a common Internet terminal. If the request to access the Internet is responded, it is determined that the network port is connected to the Internet, otherwise it is determined that the network port is connected to the ordinary Internet terminal.
- changing the network port type of the network port in step S12 may specifically include: changing the network port type from a LAN port to a WAN port.
- the method further includes:
- the network device is wirelessly connected to the terminal such that the terminal is connected to the Internet through the network device.
- the U-fi can use the network port to connect to the Internet, and then serve as a wireless hotspot to provide wifi services to other terminals.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the network port configuration method of the network device.
- the embodiment of the present invention further provides a network port configuration device of a network device, including:
- the detecting unit 30 is configured to detect a usage status of the network port of the network device, where the network port type of the network port includes a WAN port or a LAN port;
- the changing unit 32 is configured to change the network port type of the network port to perform network connection by changing the type of the network port, in a case where the detecting unit 30 detects that the usage state of the network port of the network device is the idle state.
- the network port configuration device of the network device provided by the embodiment of the present invention, the detecting unit 30 can detect the use state of the network port of the network device, and when the network device works normally but the use state of the network port is the idle state, the changing unit 32
- the network port type of the network port can be changed to perform network connection by changing the type of the network port. In this way, through the conversion of the network port type, the network port that is originally redundantly configured and in an idle state can perform network connection and provide corresponding services in another manner, thereby effectively improving the network port utilization of the network device.
- the network port type of the network port is a WAN port
- the detecting unit 30 is further configured to:
- the changing unit 32 is further configured to change the network port type from a WAN port to a LAN port.
- the network port configuration apparatus provided by the embodiment of the present invention further includes a first connecting unit, configured to:
- the network port after the type change is connected to the terminal;
- the network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
- the network port type of the network port is a LAN
- the detecting unit 30 is further configured to:
- the changing unit 32 is further configured to change the network port type from a LAN port to a WAN port.
- the network port configuration apparatus may further include a second connection unit configured to:
- the network port after the change type is connected to the Internet
- the network device is wirelessly connected to the terminal such that the terminal is connected to the Internet through the network device.
- each processing module can be understood by referring to the related description of the network port configuration method of the foregoing network device. It should be understood by those skilled in the art that the functions of the processing units in the network port configuration apparatus of the network device shown in FIG. 6 can be implemented by a program running on the processor, or can be implemented by a specific logic circuit.
- the detecting unit 30 and the changing unit 32 may each be a Central Processing Unit (CPU), or a Digital Signal Processor (DSP), or a Micro Processor Unit (MPU). Or a Field Programmable Gate Array (FPGA), etc.; the CPU, DSP, MPU, and FPGA can be built in network devices such as routers, smart set-top boxes, and the like.
- CPU Central Processing Unit
- DSP Digital Signal Processor
- MPU Micro Processor Unit
- FPGA Field Programmable Gate Array
- the CPU, DSP, MPU, and FPGA can be built in network devices such as routers, smart set-top boxes, and the like.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the device is implemented in a flow chart A function specified in a block or blocks of a process or multiple processes and/or block diagrams.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- the network port of the network device can be detected.
- the network port type of the network port can be changed to change.
- the network port after the type is connected to the network.
- the network port that is originally redundantly configured and in an idle state can perform network connection and provide corresponding services in another manner, thereby effectively improving the network port utilization of the network device.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Disclosed are a network interface configuration method and apparatus for a network device and a computer storage medium. The method comprises: detecting a usage state of a network interface of the network device, wherein the network interface type of the network interface comprises a wide area network (WAN) interface or a local area network (LAN) interface; and changing the network interface type of the network interface in the case where the usage state of the network interface of the network device is an idle state, so as to perform network connection by means of the network interface of which type has been changed.
Description
本发明涉及通信技术领域,特别是涉及一种网络设备的网口配置方法、装置及计算机存储介质。The present invention relates to the field of communications technologies, and in particular, to a network port configuration method and apparatus for a network device, and a computer storage medium.
现在市面上的Box产品(智能电视盒)基本都会配置一个网口来与互联网连接实现上网功能。但在无线移动通信普及的今天,Box产品很多时候都是通过无线保真(wifi,wireless fidelity)、第三代移动通信技术3G等其他非网口方式接入互联网的,这样,网口就会成为一个闲置设备,利用率较低。Nowadays, the Box products (smart TV boxes) on the market are basically equipped with a network port to connect with the Internet to realize the Internet function. However, in the popularization of wireless mobile communication, Box products often access the Internet through wireless non-network mode such as wireless fidelity (wifi, wireless fidelity) and third-generation mobile communication technology, so that the network port will Become an idle device with low utilization.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例旨在提供一种网络设备的网口配置方法、装置及计算机存储介质,用以解决现有技术中网口常常闲置,利用率较低的问题。In order to solve the existing technical problems, the embodiments of the present invention are directed to a network port configuration method, device, and computer storage medium for a network device, which are used to solve the problem that the network port is often idle and has low utilization rate in the prior art. .
一方面,本发明实施例提供一种网络设备的网口配置方法,所述方法包括:检测所述网络设备的网口的使用状态,其中,所述网口的网口类型包括广域网WAN口或局域网LAN口;在所述网络设备的网口的使用状态为空闲状态的情况下,改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。In one aspect, the embodiment of the present invention provides a network port configuration method of a network device, where the method includes: detecting a usage state of a network port of the network device, where the network port type of the network port includes a wide area network WAN port or The LAN port of the local area network is configured to change the network port type of the network port to perform network connection by changing the type of the network port.
上述方案中,当所述网口的网口类型为WAN口时,所述检测所述网络设备的网口的使用状态,包括:检测所述网络设备的网口是否与互联网相连;在所述网络设备的网口未与互联网相连的情况下,确定所述网络设备
的网口的使用状态为空闲状态;所述改变所述网口的网口类型,包括:将所述网口类型由WAN口改变为LAN口。In the above solution, when the network port type of the network port is a WAN port, the detecting the usage status of the network port of the network device includes: detecting whether the network port of the network device is connected to the Internet; If the network port of the network device is not connected to the Internet, the network device is determined
The usage status of the network port is an idle state; the changing the network port type of the network port includes: changing the network port type from a WAN port to a LAN port.
上述方案中,在所述改变所述网口的网口类型之后,所述方法还包括:将改变类型后的所述网口与终端相连;将所述网络设备通过无线方式与互联网相连,以使所述终端通过所述网络设备与互联网相连。In the above solution, after the changing the network port type of the network port, the method further includes: connecting the network port after the change type to the terminal; connecting the network device to the Internet through a wireless manner, The terminal is connected to the Internet through the network device.
上述方案中,当所述网口的网口类型为LAN口时,所述检测所述网络设备的网口的使用状态,包括:检测所述网络设备的网口是否与终端相连;在所述网络设备的网口未与所述终端相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;所述改变所述网口的网口类型,包括:将所述网口类型由LAN口改变为WAN口。In the above solution, when the network port type of the network port is a LAN port, the detecting the usage status of the network port of the network device includes: detecting whether the network port of the network device is connected to the terminal; If the network port of the network device is not connected to the terminal, the network port of the network device is determined to be in an idle state; and the changing the network port type of the network port includes: Changed from LAN port to WAN port.
上述方案中,在所述改变所述网口的网口类型之后,所述方法还包括:将改变类型后的所述网口与互联网相连;将所述网络设备通过无线方式与终端相连,以使所述终端通过所述网络设备与互联网相连。In the foregoing solution, after the changing the network port type of the network port, the method further includes: connecting the network port after the changed type to the Internet; and connecting the network device to the terminal by using a wireless manner, The terminal is connected to the Internet through the network device.
另一方面,本发明实施例还提供一种网络设备的网口配置装置,所述装置包括:检测单元,配置为检测所述网络设备的网口的使用状态,其中,所述网口的网口类型包括WAN口或LAN口;改变单元,配置为在所述检测单元检测网络设备的网口的使用状态为空闲状态的情况下,改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。In another aspect, the embodiment of the present invention further provides a network port configuration device of a network device, where the device includes: a detecting unit, configured to detect a usage state of a network port of the network device, where the network port of the network port The port type includes a WAN port or a LAN port, and the changing unit is configured to change the network port type of the network port by changing the type after the detecting unit detects that the usage state of the network port of the network device is an idle state. The network port performs a network connection.
上述方案中,当所述网口的网口类型为WAN口时,所述检测单元配置为:检测所述网络设备的网口是否与互联网相连;在所述网络设备的网口未与互联网相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;相应的,所述改变单元,还配置为将所述网口类型由WAN口改变为LAN口。In the above solution, when the network port type of the network port is a WAN port, the detecting unit is configured to: detect whether the network port of the network device is connected to the Internet; and the network port of the network device is not connected to the Internet In the case of the network device, the network port is determined to be in an idle state. The change unit is further configured to change the network port type from the WAN port to the LAN port.
上述方案中,所述装置还包括第一连接单元,配置为:在所述改变所述网口的网口类型之后,将改变类型后的所述网口与终端相连;将所述网
络设备通过无线方式与互联网相连,以使所述终端通过所述网络设备与互联网相连。In the above solution, the device further includes a first connecting unit, configured to: after the changing the network port type of the network port, connect the network port after the changed type to the terminal;
The network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
上述方案中,当所述网口的网口类型为LAN口时,所述检测单元还配置为:检测所述网络设备的网口是否与终端相连;在所述网络设备的网口未与所述终端相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;相应的,所述改变单元,还配置为将所述网口类型由LAN口改变为WAN口。In the foregoing solution, when the network port type of the network port is a LAN port, the detecting unit is further configured to: detect whether the network port of the network device is connected to the terminal; and the network port of the network device is not In the case that the terminals are connected, it is determined that the usage status of the network port of the network device is an idle state. Correspondingly, the changing unit is further configured to change the network port type from a LAN port to a WAN port.
上述方案中,所述装置还包括第二连接单元,配置为:在所述改变所述网口的网口类型之后,将改变类型后的所述网口与互联网相连;将所述网络设备通过无线方式与终端相连,以使所述终端通过所述网络设备与互联网相连。In the above solution, the device further includes a second connecting unit, configured to: after the changing the network port type of the network port, connect the network port of the changed type to the Internet; and pass the network device The wireless mode is connected to the terminal, so that the terminal is connected to the Internet through the network device.
再一方面,本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的网络设备的网口配置方法。In a further aspect, the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the network port configuration method of the network device.
本发明实施例提供的网络设备的网口配置方法、装置及计算机存储介质,能够检测出网络设备的网口的使用状态,当网络设备正常工作但其网口的使用状态为空闲状态时,能够改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。这样,通过对网口类型的转换,原本冗余设置、处于空闲状态的网口又能以另一种方式进行网络连接并提供相应的服务,有效提高了网络设备的网口利用率。The network port configuration method, device, and computer storage medium of the network device provided by the embodiment of the present invention can detect the usage state of the network port of the network device. When the network device works normally but the network port is in an idle state, The network port type of the network port is changed to perform network connection by changing the type of the network port. In this way, through the conversion of the network port type, the network port that is originally redundantly configured and in an idle state can perform network connection and provide corresponding services in another manner, thereby effectively improving the network port utilization of the network device.
图1是本发明实施例提供的网络设备的网口配置方法的一种流程图;1 is a flowchart of a network port configuration method of a network device according to an embodiment of the present invention;
图2是本发明优选实施例中智能机顶盒的一种结构示意图;2 is a schematic structural view of a smart set top box in a preferred embodiment of the present invention;
图3是本发明实施例中智能机顶盒的网口为WAN口类型时的网络连接示意图;
3 is a schematic diagram of network connection when a network port of a smart set top box is a WAN port type according to an embodiment of the present invention;
图4是本发明实施例中智能机顶盒的网口为LAN口类型时的网络连接示意图;4 is a schematic diagram of network connection when a network port of a smart set top box is a LAN port type according to an embodiment of the present invention;
图5是本发明实施例提供的网络设备的网口配置方法的一种详细的流程图;FIG. 5 is a detailed flowchart of a method for configuring a network port of a network device according to an embodiment of the present disclosure;
图6是本发明实施例提供的网络设备的网口配置装置的一种结构示意图。FIG. 6 is a schematic structural diagram of a network port configuration apparatus of a network device according to an embodiment of the present invention.
以下结合附图对本发明进行详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。The invention will be described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,本发明实施例提供的网络设备的网口配置方法,包括:As shown in FIG. 1 , a method for configuring a network port of a network device according to an embodiment of the present invention includes:
S11,检测所述网络设备的网口的使用状态,其中,所述网口的网口类型包括WAN口或LAN口;S11, detecting a usage status of the network port of the network device, where the network port type of the network port includes a WAN port or a LAN port;
S12,在所述网络设备的网口的使用状态为空闲状态的情况下,改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。S12. If the network port of the network device is in an idle state, change the network port type of the network port to perform network connection by changing the type of the network port.
本发明实施例提供的网络设备的网口配置方法,通过检测出网络设备的网口的使用状态,当网络设备正常工作但其网口的使用状态为空闲状态时,能够改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。这样,通过对网口类型的改变(转换),原本冗余设置、处于空闲状态的网口又能以另一种方式进行网络连接并提供相应的服务,有效提高了网络设备的网口利用率。The network port configuration method of the network device provided by the embodiment of the present invention can detect the network port usage state of the network device. When the network device works normally but the network port usage state is idle state, the network port can be changed. The network port type is used to connect to the network through the network port after the type is changed. In this way, by changing (converting) the type of the network port, the network port that is originally redundant and in the idle state can perform network connection and provide corresponding service in another manner, thereby effectively improving the network port utilization of the network device. .
需要说明的是,网口类型可以为WAN口类型,即用于与外部的互联网连接的网口类型,如ADSL(Asymmetric Digital Subscriber Line,非对称数字用户线),DDN(Digital Data Network,数字数据网),以太网等各种接入线路;网口类型也可以为LAN口类型,即用于连接本地网络设备的网口类型,主要与家庭中的交换机、集线器或者PC相连。本实施例中所说的改变
网口类型本质上是通过软件配置使同一个网口可以在上述两种类型之间转换。It should be noted that the network port type can be a WAN port type, that is, a network port type used for connecting to an external Internet, such as ADSL (Asymmetric Digital Subscriber Line), DDN (Digital Data Network). Network, Ethernet, and other access lines; the network port type can also be a LAN port type, that is, a network port type used to connect to a local network device, and is mainly connected to a switch, hub, or PC in the home. The change mentioned in this embodiment
The network port type is essentially software configuration so that the same network port can be switched between the above two types.
这种网口配置方法对于所有具有网口的设备(如路由器等)都适用,但特别适用于有且仅有一个网口的网络设备,如智能机顶盒或带有网口的U-fi等。一般的,很多网络设备都可以提供有线和无线两种上网方式,例如,对于智能机顶盒,其网口类型为WAN口,既可以通过网口与互联网连接,也可以通过无线方式与互联网连接实现上网功能。对于带有网口的U-fi,其网口类型为LAN口,既可以通过网口与终端连接,为该终端提供上网服务,也可以与终端无线连接,为终端提供wifi服务。This network port configuration method is applicable to all devices with network ports (such as routers), but it is especially suitable for network devices with one and only one network port, such as smart set-top boxes or U-fi with network ports. In general, many network devices can provide both wired and wireless Internet access. For example, for a smart set-top box, the network port type is WAN port, which can be connected to the Internet through a network port, or can be connected to the Internet through a wireless connection. Features. For a U-fi with a network port, the network port type is a LAN port. It can be connected to the terminal through the network port to provide Internet access for the terminal, or wirelessly connect with the terminal to provide wifi service for the terminal.
下面分别以智能机顶盒和U-fi为例,对本发明提供的网口配置方法进行详细说明。The following describes the network port configuration method provided by the present invention in detail by using an intelligent set top box and U-fi as an example.
具体而言,对于智能机顶盒,当网口类型为WAN口时,在步骤S11中检测所述网络设备的网口的使用状态具体可包括:Specifically, for the smart set top box, when the network port type is the WAN port, the detecting the use status of the network port of the network device in the step S11 may specifically include:
检测所述网络设备的网口是否与互联网相连;Detecting whether the network port of the network device is connected to the Internet;
在所述网络设备的网口未与互联网相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the Internet, determining that the usage status of the network port of the network device is an idle state;
相应的,在步骤S12中改变所述网口的网口类型具体可包括:Correspondingly, changing the network port type of the network port in step S12 may specifically include:
将所述网口类型由WAN口改变为LAN口。Change the network port type from WAN port to LAN port.
在本实施例中,检测所述网络设备的网口是否与互联网相连,可以通过查询系统的端口状态和尝试向互联网发送访问请求联合实现。In this embodiment, detecting whether the network port of the network device is connected to the Internet may be implemented by querying the port status of the system and attempting to send an access request to the Internet.
例如,当网口连接有其他设备时,系统会出现一个eth0逻辑端口,而当网口未连接其他设备时,系统中就不存在eth0逻辑端口,因此,首先可以通过查询eth0端口是否存在来确定网口是否与其他设备相连,在确定该网口与其他设备相连的情况下,可以通过向互联网发送访问请求来进一步确定连接的其他设备是互联网服务器还是上网终端。如果访问互联网的请
求得到响应,则确定网口连接着互联网服务器,否则确定网口连接着普通上网终端。For example, when there are other devices connected to the network port, an eth0 logical port will appear. When the network port is not connected to other devices, the eth0 logical port does not exist in the system. Therefore, you can first determine whether the eth0 port exists. Whether the network port is connected to other devices. If it is determined that the network port is connected to other devices, it can further determine whether the connected other device is an Internet server or an Internet terminal by sending an access request to the Internet. If you access the internet please
If the response is obtained, it is determined that the network port is connected to the Internet server, otherwise it is determined that the network port is connected to the ordinary Internet terminal.
具体而言,WAN口与LAN口之间的类型转换,无论是基于Linux系统的设备还是基于windows系统的设备,都可以通过进行软件配置来实现。例如,对于Android系统,从WAN口切换到LAN口的shell脚本可如下所示:Specifically, the type conversion between the WAN port and the LAN port, whether it is a Linux-based device or a Windows-based device, can be implemented by software configuration. For example, for Android systems, the shell script that switches from the WAN port to the LAN port can look like this:
/system/bin/iptables_droid-t nat–F;//清空nat表中存储的上网规则;/system/bin/iptables_droid-t nat–F;//Clear the Internet rules stored in the nat table;
echo 0>/proc/sys/net/ipv4/ip_forward;//把转发功能禁止;Echo 0> / proc / sys / net / ipv4 / ip_forward ; / / disable the forwarding function;
echo 1>/proc/sys/net/ipv4/ip_forward;//将转发功能打开。Echo 1> / proc / sys / net / ipv4 / ip_forward ; / / will open the forwarding function.
上述代码中,先将网口中当前的nat表清空,以便清除之前作为WAN口时在nat表中存储的各种上网规则,然后通过将转发功能先禁止再打开,实现转发功能的重启,这样,该网口就具备数据转发功能,以便将数据转发给与其连接的上网终端,从而实现LAN口的功能。In the above code, the current nat table in the network port is first cleared, so as to clear various Internet access rules stored in the nat table when the WAN port is used, and then the forwarding function is restarted by prohibiting the forwarding function from being restarted, so that The network port has a data forwarding function to forward data to the Internet terminal connected thereto, thereby implementing the function of the LAN port.
对于其他语言系统,虽然体系有所不同,但都可以实现相应的切换。For other language systems, although the system is different, it can achieve the corresponding switch.
在一个实施例中,在所述改变所述网口的网口类型之后,本发明实施例提供的网口配置方法还可包括如下步骤:In an embodiment, after the network port type of the network port is changed, the network port configuration method provided by the embodiment of the present invention may further include the following steps:
将改变类型后的网口与终端相连;Connect the network port after the type change to the terminal;
将所述网络设备通过无线方式与互联网相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
也就是说,智能机顶盒的网口原本是WAN类型的,当发现该网口处于空闲状态后,为了提高该网口的利用率,对该网口的类型进行了修改,使该网口由WAN口变为LAN口。这样,该网口就能够与终端相连,当该智能机顶盒通过3G或wifi等无线方式与互联网相连时,该网口不会被闲置了,而是作为一个LAN类型的网口,能够为各种终端提供上网服务。That is to say, the network port of the smart set-top box is originally a WAN type. After the network port is found to be in an idle state, the type of the network port is modified to improve the network port usage. The port becomes a LAN port. In this way, the network port can be connected to the terminal. When the smart set-top box is connected to the Internet through a wireless method such as 3G or wifi, the network port is not left idle, but serves as a LAN type network port, which can be used for various The terminal provides Internet access.
通过本发明提供的网口配置方法,可以使网口在通过Wi-Fi、3G上网
的情况下也有其用途。比如:当前家中有一台PC机和一台通过3G移动网络连接到互联网的Box产品,并且这台PC机不支持无线上网只能进行连接。那么如果想要PC进行上网,则可以通过本发明提供的网口配置方法,改变该Box的网口类型,然后将PC机连接到该网口,这样PC机即可共享Box的3G移动网络。The network port configuration method provided by the present invention can enable the network port to access the Internet through Wi-Fi and 3G.
In the case of its use. For example, there is a PC in the home and a Box product connected to the Internet through a 3G mobile network, and this PC does not support wireless Internet access. Then, if the PC is required to access the Internet, the network port configuration method provided by the present invention can be used to change the network port type of the box, and then the PC is connected to the network port, so that the PC can share the 3G mobile network of the Box.
相反,如果用户需要使用该智能机顶盒并不是通过3G或wifi等无线方式与互联网相连的,那么该智能机顶盒上的网口就可以设置为WAN口类型,该智能机顶盒可以通过该网口与互联网相连。On the contrary, if the user needs to use the smart set-top box and is not connected to the Internet through wireless means such as 3G or wifi, the network port on the smart set-top box can be set to the WAN port type, and the smart set-top box can be connected to the Internet through the network port. .
可选的,从LAN口切换到WAN口shell脚本可如下所示:Optionally, switching from the LAN port to the WAN port shell script can be as follows:
/system/bin/iptables_droid-t nat–F;//清空nat表中存储的上网规则;/system/bin/iptables_droid-t nat–F;//Clear the Internet rules stored in the nat table;
echo 0>/proc/sys/net/ipv4/ip_forward。//把转发功能禁止。Echo 0>/proc/sys/net/ipv4/ip_forward. //Disable the forwarding function.
上述代码中,先将网口中当前的nat表清空,以便清除之前作为LAN口时在nat表中存储的各种转发规则,然后将转发功能禁止,从而实现WAN口的功能。In the above code, the current nat table in the network port is first cleared, so as to clear various forwarding rules stored in the nat table when the LAN port is previously used, and then the forwarding function is disabled, thereby implementing the function of the WAN port.
本发明实施例中,可以有效利用Box的网口设备,并且通过网口的状态变换,使Box产品可以通过网口为其他设备提供网络服务。对于没有无线网卡的设备尤为有用。In the embodiment of the present invention, the network port device of the box can be effectively utilized, and the state of the network port can be changed, so that the box product can provide network services for other devices through the network port. This is especially useful for devices that do not have a wireless network card.
下面通过具体实施例,对Box网口的配置和应用过程进行详细说明。Box这里指智能电视盒或智能机顶盒,可以通过HDMI(High Definition Multimedia Interface,高清晰度多媒体接口)与电视机相连,将普通电视变为智能电视,并安装应用,上网,游戏等。如图2所示,Box可包括三个模块:通讯模块(wifi或3G),网口控制模块,网口模块。The configuration and application process of the Box network port are described in detail below through specific embodiments. Box refers to the smart TV box or smart set-top box, which can be connected to the TV through HDMI (High Definition Multimedia Interface), turn ordinary TV into smart TV, and install applications, Internet, games and so on. As shown in FIG. 2, the Box may include three modules: a communication module (wifi or 3G), a network port control module, and a network port module.
通讯模块Communication module
该模块能够提供Wi-Fi、3G连接,主要有两个功能:a.在网口类型为WAN口时,为Box产品提供上网服务,Box产品通过该模块连接互联网,
其连接示意图如图3所示。b.在网口类型为LAN口,并且和其他设备进行连接时,这个时候该模块也可以通过网口为其他设备提供网络服务,其连接示意图如图4所示。The module can provide Wi-Fi and 3G connection. There are two main functions: a. When the network port type is WAN port, it provides Internet service for Box products, and Box products connect to the Internet through this module.
The connection diagram is shown in Figure 3. b. When the network port type is a LAN port and is connected to other devices, the module can also provide network services for other devices through the network port at this time. The connection diagram is shown in Figure 4.
网口控制模块Network port control module
该模块主要对网口的状态进行控制。在软件系统中实现网口WAN口和LAN口的相互切换。用户可以在Box产品的该模块中根据使用情况设置网口的类型:WAN口类型可以通过网口为Box产品提供上网服务。LAN口类型可以通过Box产品的通讯模块进行联网,并使用网口使其他设备共享Box产品的网络服务。This module mainly controls the state of the network port. In the software system, the network port WAN port and the LAN port are switched. The user can set the type of network port according to the usage in the module of the Box product: the WAN port type can provide Internet access for the Box product through the network port. The LAN port type can be networked through the communication module of the Box product, and the network port is used to enable other devices to share the network service of the Box product.
网口模块Network port module
该模块主要根据网口控制模块设置的不同的网口类型。不同的网口类型对应不同功能:a.WAN口类型,为Box产品提供上网服务,Box产品通过该模块使用网线连接到互联网进行上网连接。b.LAN口类型,Box在使用wifi、3G上网的情况下可以使用该网口连接其他设备,为其他设备共享上网服务。This module is mainly based on different network port types set by the network port control module. Different network port types correspond to different functions: a. WAN port type, providing Internet service for Box products, and Box products are connected to the Internet through the module to connect to the Internet. b. LAN port type. When using wifi or 3G Internet access, the Box can use this network port to connect to other devices to share Internet access services for other devices.
由于WAN口为平常Box产品都具备的功能,工作流程基本各个Box产品都一样。所以下面主要以网口类型为LAN口,系统为Android系统介绍下该方法的工作流程和实现方法。但是本方法并不局限于Android系统和该实现方法。Since the WAN port is a function of the usual Box products, the workflow is basically the same for each Box product. Therefore, the following mainly uses the network port type as the LAN port, and the system introduces the workflow and implementation method of the method for the Android system. However, the method is not limited to the Android system and the implementation method.
如图5所示,本实施例中,对Box的网口配置方法可以包括如下步骤:As shown in FIG. 5, in this embodiment, the method for configuring a network port of a box may include the following steps:
步骤S201、开启wifi连接wifi网络,或者打开3G连接移动网络,使Box通过wifi或者3G连接互联网。Step S201, open wifi to connect to the wifi network, or open the 3G connection mobile network, so that the box connects to the Internet through wifi or 3G.
该步骤实现可以通过:1)进入系统中的自带设置程序打开wifi并连接wifi网络或者开启移动数据网络来实现。2)使用framework中WifiManager.java中相关api方法手动实现wifi的打开和连接。使用
framework中Phone.java、ConnectivityManager.java来手动开启移动数据网络。这两种方法具体实现都可以参考Android源码中的Setting和Phone程序实现源码。This step can be achieved by: 1) entering the system's own setup program to open wifi and connect to the wifi network or open the mobile data network. 2) Manually implement wifi opening and connecting using the relevant api method in WifiManager.java in the framework. Use
Phone.java, ConnectivityManager.java in the framework to manually open the mobile data network. The specific implementation of these two methods can refer to the Setting source and Phone program in the Android source code to achieve the source code.
步骤S202、指定上行通道;Step S202, specifying an uplink channel;
可选的,可以手动选择wifi或者3G作为上行通道,使其对网口提供网络服务。也可以使用软件系统自动判断用户当前使用的是何种方式连接到互联网,然后自动指定上行通道。Optionally, you can manually select wifi or 3G as the uplink channel to provide network services to the network port. You can also use the software system to automatically determine how the user is currently connected to the Internet and then automatically specify the upstream channel.
该步骤实现步骤如下shell脚本:This step implements the following shell script:
/system/bin/iptables_droid-t nat-F/system/bin/iptables_droid-t nat-F
/system/bin/iptables_droid-t nat-A POSTROUTING-o ppp0-j MASQUERADE;/system/bin/iptables_droid-t nat-A POSTROUTING-o ppp0-j MASQUERADE;
其中,斜黑体部分为上行通道对应的系统端口名,对于选择不同的上行通道只需要用对应的系统端口名替换斜黑体部分即可。例如,如果当前选择wifi为上行通道,并且wifi在系统中对应的端口名为wlan0,那么只需把斜黑体部分替换为wlan0即可。即:The oblique black body part is the system port name corresponding to the uplink channel, and only the corresponding system port name is required to replace the oblique black body part for selecting different uplink channels. For example, if the current wifi is selected as the uplink channel, and the corresponding port of the wifi in the system is named wlan0, then only the oblique black body part is replaced by wlan0. which is:
/system/bin/iptables_droid-t nat-A POSTROUTING-o wlan0-j MASQUERADE;/system/bin/iptables_droid-t nat-A POSTROUTING-o wlan0-j MASQUERADE;
可选的,当采用自动设置的方法指定上行通道时,可以通过如下代码取到当前联网状态,以便设置对应的端口:Optionally, when the uplink channel is specified by the automatic setting method, the current networking state may be obtained by using the following code to set the corresponding port:
ConnectivityManager conn=(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_S ERVICE);ConnectivityManager conn=(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_S ERVICE);
Conn.getActiveNetworkinfo().getTypeName();Conn.getActiveNetworkinfo().getTypeName();
通过该程序可以获得当前的网络名称,从而判断出当前是wifi还是移动网络,然后对应进行指定即可。Through the program, the current network name can be obtained, thereby judging whether the current network is a wifi or a mobile network, and then correspondingly specifying.
至于如何从java调用到shell脚本,可以参考Android系统中的init.rc中的相关方法。
As for how to call from java to shell script, you can refer to the related methods in init.rc in the Android system.
步骤S203、判断S202上行网络是否指定成功,如果指定的上行网络并没有打开或者连接,则执行S205;如果成功,则执行S204。In step S203, it is determined whether the uplink network is successfully designated in S202. If the designated uplink network is not opened or connected, S205 is performed; if successful, S204 is performed.
步骤S204、设置网口类型,切换网口类型WAN为LAN,使网口可以给连接的其他设备提供网络服务,继续执行S206。Step S204: Set the network port type, and switch the network port type WAN to the LAN, so that the network port can provide network services to other connected devices, and continue to execute S206.
从WAN口切换到LAN口shell脚本如下:Switching from the WAN port to the LAN port shell script is as follows:
/system/bin/iptables_droid-t nat-F/system/bin/iptables_droid-t nat-F
echo 0>/proc/sys/net/ipv4/ip_forwardEcho 0>/proc/sys/net/ipv4/ip_forward
echo 1>/proc/sys/net/ipv4/ip_forwardEcho 1>/proc/sys/net/ipv4/ip_forward
从LAN口切换到WAN口shell脚本如下:Switching from the LAN port to the WAN port shell script is as follows:
/system/bin/iptables_droid-t nat-F/system/bin/iptables_droid-t nat-F
echo 0>/proc/sys/net/ipv4/ip_forward;Echo 0>/proc/sys/net/ipv4/ip_forward;
步骤S205、提示指定失败原因,执行S112。Step S205, prompting to specify the reason for the failure, and executing S112.
步骤S206、连接其他终端,使用网线连接Box网口和其他终端的网口,建立两个设备的物理连接,为网口共享网络服务提供基础支持。Step S206: Connecting other terminals, using a network cable to connect the Box network port with the network ports of other terminals, and establishing a physical connection between the two devices to provide basic support for the network port sharing network service.
步骤S207、判断S206中Box的网口与其他网络设备的连接是否成功,如果失败则执行S208;如果成功,则执行S209。Step S207: It is determined whether the connection between the network port of the Box and other network devices in S206 is successful. If it fails, S208 is performed; if successful, S209 is performed.
本步骤实现方法如下:The implementation of this step is as follows:
通过网口端口,比如eht0通过底层获取该端口的状态,而判断当前是否已经进行了物理连接。在android人机交互界面UI可以通过jni与网口底层以及驱动进行交互,以便获知端口连接状态。Through the network port, for example, eht0 obtains the status of the port through the bottom layer, and determines whether the physical connection has been made. In the android human-computer interaction interface UI can interact with the underlying network port and the driver through jni to know the port connection status.
步骤S208、提示连接失败原因,执行S112。Step S208, prompting the connection failure reason, and executing S112.
步骤S209、为其他终端动态分配网际互联协议IP地址,为网络服务提供基础支持。其他终端可以使用该IP地址作为自己的IP。Step S209, dynamically assigning an Internet Protocol IP address to other terminals to provide basic support for the network service. Other terminals can use this IP address as their own IP.
该步骤实现方法如下:The implementation of this step is as follows:
动态图分配IP使用DHCP(Dynamic Host Configuration Protocol,动态主机配置协议),以动态的方式实现客户机器的信息配置。Box作为DHCP
服务器,当DHCP服务器收到客户端请求IP地址的信息时,就在数据库中查找是否有合法的IP地址提供给客户端。如果有,将此IP标记,广播一个DHCP Offer提供报文,这个报文中主要包含:客户端的MAC地址、提供的合法IP、子网掩码、租约期限、服务器IP地址等。具体的DHCP服务器实现可以参考其他系统中的实现这里不做具体介绍。Dynamic Map Assignment IP uses DHCP (Dynamic Host Configuration Protocol) to dynamically configure the client's information. Box as DHCP
The server, when the DHCP server receives the information of the IP address requested by the client, searches the database for a valid IP address to be provided to the client. If yes, this IP tag is broadcast to broadcast a DHCP Offer message. The message mainly includes: the MAC address of the client, the legal IP address provided, the subnet mask, the lease term, and the server IP address. The specific DHCP server implementation can refer to the implementation in other systems.
步骤S210、判断为第三方设备分配动态IP是否成功,如果失败则执行S111;如果成功,其他设备开始通过Box共享网络,执行S212。Step S210: Determine whether the third party device allocates the dynamic IP is successful, if yes, execute S111; if successful, the other device starts to share the network through the box, and execute S212.
步骤S211、提示IP分配失败原因,如果S210分配IP失败,提示用户失败给出失败原因,执行S212。In step S211, the IP allocation failure reason is prompted. If the IP address fails to be assigned in S210, the user is prompted to fail to give a failure reason, and S212 is performed.
步骤S212、结束。Step S212, ending.
实现上行通道并为其他设备分配好IP之后,其他设备(如普通pc机)就可以通过网线共享Box的网络进行上网了。After the uplink channel is implemented and the IP is allocated to other devices, other devices (such as ordinary PCs) can access the Internet through the network sharing box.
需要说明的是,本发明实施例提供的网口配置方法,虽然主要以Android系统为例进行说明,但本方法并不局限于此。It should be noted that the network port configuration method provided by the embodiment of the present invention is mainly described by using the Android system as an example, but the method is not limited thereto.
具体而言,对于U-fi,其内置的网口一般为LAN类型,那么,在步骤S11中,检测所述网络设备的网口是否处于空闲状态可具体包括:Specifically, for the U-fi, the built-in network port is generally a LAN type. Then, in step S11, detecting whether the network port of the network device is in an idle state may specifically include:
检测所述网络设备的网口是否与终端相连;可选的,本步骤中,仍然可以通过查询系统中是否存在eth0端口来确定网口是否连接了其他设备。如果存在eth0端口,则说明网口连接了其他设备,如果不存在eth0则说明网口没有连接其他设备。在确定eth0端口连接了其他设备的前提下,可以进一步通过将网口类型尝试指定为WAN口并尝试向互联网发送访问请求来确定该网口连接的是互联网还是普通上网终端。如果访问互联网的请求得到响应,则确定网口连接着互联网,否则确定网口连接着普通上网终端。The network port of the network device is connected to the terminal. Optionally, in this step, whether the eth0 port exists in the system can be used to determine whether the network port is connected to other devices. If the eth0 port is available, the network port is connected to other devices. If eth0 does not exist, the network port is not connected to other devices. On the premise that the eth0 port is connected to other devices, the network port type may be attempted to be designated as a WAN port and an access request is sent to the Internet to determine whether the network port is connected to the Internet or a common Internet terminal. If the request to access the Internet is responded, it is determined that the network port is connected to the Internet, otherwise it is determined that the network port is connected to the ordinary Internet terminal.
在所述网络设备的网口未与所述终端相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;
When the network port of the network device is not connected to the terminal, determining that the usage status of the network port of the network device is an idle state;
相应的,在步骤S12中改变所述网口的网口类型可具体包括:将所述网口类型由LAN口改变为WAN口。Correspondingly, changing the network port type of the network port in step S12 may specifically include: changing the network port type from a LAN port to a WAN port.
在一个实施例中,在所述改变所述网口的网口类型之后,所述方法还包括:In an embodiment, after the changing the network port type of the network port, the method further includes:
将改变类型后的网口与互联网相连;Connect the network port after the change type to the Internet;
将所述网络设备通过无线方式与终端相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the terminal such that the terminal is connected to the Internet through the network device.
本实施例中,通过将U-fi的网口改变为WAN口类型,U-fi即可以利用该网口与互联网相连,然后作为一个无线热点,向其他终端提供wifi服务。In this embodiment, by changing the network port of the U-fi to the WAN port type, the U-fi can use the network port to connect to the Internet, and then serve as a wireless hotspot to provide wifi services to other terminals.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的网络设备的网口配置方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the network port configuration method of the network device.
相应的,如图6所示,本发明的实施例还提供一种网络设备的网口配置装置,包括:Correspondingly, as shown in FIG. 6, the embodiment of the present invention further provides a network port configuration device of a network device, including:
检测单元30,配置为检测所述网络设备的网口的使用状态,其中,所述网口的网口类型包括WAN口或LAN口;The detecting unit 30 is configured to detect a usage status of the network port of the network device, where the network port type of the network port includes a WAN port or a LAN port;
改变单元32,配置为在检测单元30检测网络设备的网口的使用状态为空闲状态的情况下,改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。The changing unit 32 is configured to change the network port type of the network port to perform network connection by changing the type of the network port, in a case where the detecting unit 30 detects that the usage state of the network port of the network device is the idle state.
本发明实施例提供的网络设备的网口配置装置,其检测单元30能够检测出网络设备的网口的使用状态,当网络设备正常工作但其网口的使用状态为空闲状态时,改变单元32能够改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。这样,通过对网口类型的转换,原本冗余设置、处于空闲状态的网口又能以另一种方式进行网络连接并提供相应的服务,有效提高了网络设备的网口利用率。
The network port configuration device of the network device provided by the embodiment of the present invention, the detecting unit 30 can detect the use state of the network port of the network device, and when the network device works normally but the use state of the network port is the idle state, the changing unit 32 The network port type of the network port can be changed to perform network connection by changing the type of the network port. In this way, through the conversion of the network port type, the network port that is originally redundantly configured and in an idle state can perform network connection and provide corresponding services in another manner, thereby effectively improving the network port utilization of the network device.
在一个实施例中,所述网口的网口类型为WAN口,检测单元30还配置为:In an embodiment, the network port type of the network port is a WAN port, and the detecting unit 30 is further configured to:
检测所述网络设备的网口是否与互联网相连;Detecting whether the network port of the network device is connected to the Internet;
在所述网络设备的网口未与互联网相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the Internet, determining that the usage status of the network port of the network device is an idle state;
改变单元32,还配置为将所述网口类型由WAN口改变为LAN口。The changing unit 32 is further configured to change the network port type from a WAN port to a LAN port.
在一个实施例中,本发明实施例提供的网口配置装置还包括第一连接单元,配置为:In an embodiment, the network port configuration apparatus provided by the embodiment of the present invention further includes a first connecting unit, configured to:
在所述改变所述网口的网口类型之后,将改变类型后的网口与终端相连;After the network port type of the network port is changed, the network port after the type change is connected to the terminal;
将所述网络设备通过无线方式与互联网相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
可选的,所述网口的网口类型为LAN,检测单元30还配置为:Optionally, the network port type of the network port is a LAN, and the detecting unit 30 is further configured to:
检测所述网络设备的网口是否与终端相连;Detecting whether the network port of the network device is connected to the terminal;
在所述网络设备的网口未与所述终端相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the terminal, determining that the usage status of the network port of the network device is an idle state;
相应的,改变单元32,还配置为将所述网口类型由LAN口改变为WAN口。Correspondingly, the changing unit 32 is further configured to change the network port type from a LAN port to a WAN port.
在一个实施例中,本发明实施例提供的网口配置装置还可包括第二连接单元,配置为:In an embodiment, the network port configuration apparatus provided by the embodiment of the present invention may further include a second connection unit configured to:
在所述改变所述网口的网口类型之后,将改变类型后的网口与互联网相连;After the network port type of the network port is changed, the network port after the change type is connected to the Internet;
将所述网络设备通过无线方式与终端相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the terminal such that the terminal is connected to the Internet through the network device.
本领域技术人员应当理解,图6中所示的网络设备的网口配置装置中
的各处理模块的实现功能可参照前述网络设备的网口配置方法的相关描述而理解。本领域技术人员应当理解,图6所示的网络设备的网口配置装置中各处理单元的功能可通过运行于处理器上的程序而实现,也可通过具体的逻辑电路而实现。Those skilled in the art should understand that the network port configuration device of the network device shown in FIG. 6
The implementation functions of each processing module can be understood by referring to the related description of the network port configuration method of the foregoing network device. It should be understood by those skilled in the art that the functions of the processing units in the network port configuration apparatus of the network device shown in FIG. 6 can be implemented by a program running on the processor, or can be implemented by a specific logic circuit.
在实际应用中,所述检测单元30、改变单元32均可由中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或微处理器(MPU,Micro Processor Unit)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现;所述CPU、DSP、MPU、FPGA均可内置于网络设备如路由器、智能机顶盒等中。In practical applications, the detecting unit 30 and the changing unit 32 may each be a Central Processing Unit (CPU), or a Digital Signal Processor (DSP), or a Micro Processor Unit (MPU). Or a Field Programmable Gate Array (FPGA), etc.; the CPU, DSP, MPU, and FPGA can be built in network devices such as routers, smart set-top boxes, and the like.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个
流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The device is implemented in a flow chart
A function specified in a block or blocks of a process or multiple processes and/or block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
在本发明实施例中,能够检测出网络设备的网口的使用状态,当网络设备正常工作但其网口的使用状态为空闲状态时,能够改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。这样,通过对网口类型的转换,原本冗余设置、处于空闲状态的网口又能以另一种方式进行网络连接并提供相应的服务,有效提高了网络设备的网口利用率。
In the embodiment of the present invention, the network port of the network device can be detected. When the network device works normally but the network port is in the idle state, the network port type of the network port can be changed to change. The network port after the type is connected to the network. In this way, through the conversion of the network port type, the network port that is originally redundantly configured and in an idle state can perform network connection and provide corresponding services in another manner, thereby effectively improving the network port utilization of the network device.
Claims (11)
- 一种网络设备的网口配置方法,所述方法包括:A network port configuration method for a network device, where the method includes:检测所述网络设备的网口的使用状态,其中,所述网口的网口类型包括广域网WAN口或局域网LAN口;Detecting a usage status of the network port of the network device, where the network port type of the network port includes a wide area network WAN port or a local area network LAN port;在所述网络设备的网口的使用状态为空闲状态的情况下,改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。In the case that the network port of the network device is in an idle state, the network port type of the network port is changed to perform network connection by changing the type of the network port.
- 根据权利要求1所述的方法,其中,当所述网口的网口类型为WAN口时,所述检测所述网络设备的网口的使用状态,包括:The method of claim 1, wherein when the network port type of the network port is a WAN port, the detecting the usage status of the network port of the network device includes:检测所述网络设备的网口是否与互联网相连;Detecting whether the network port of the network device is connected to the Internet;在所述网络设备的网口未与互联网相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the Internet, determining that the usage status of the network port of the network device is an idle state;所述改变所述网口的网口类型,包括:The changing the network port type of the network port includes:将所述网口类型由WAN口改变为LAN口。Change the network port type from WAN port to LAN port.
- 根据权利要求2所述的方法,其中,在所述改变所述网口的网口类型之后,所述方法还包括:The method of claim 2, wherein after the changing the network port type of the network port, the method further comprises:将改变类型后的所述网口与终端相连;Connecting the network port after changing the type to the terminal;将所述网络设备通过无线方式与互联网相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
- 根据权利要求1所述的方法,其中,当所述网口的网口类型为LAN口时,所述检测所述网络设备的网口的使用状态,包括:The method according to claim 1, wherein when the network port type of the network port is a LAN port, the detecting the usage status of the network port of the network device comprises:检测所述网络设备的网口是否与终端相连;Detecting whether the network port of the network device is connected to the terminal;在所述网络设备的网口未与所述终端相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the terminal, determining that the usage status of the network port of the network device is an idle state;所述改变所述网口的网口类型,包括:The changing the network port type of the network port includes:将所述网口类型由LAN口改变为WAN口。 Change the network port type from LAN port to WAN port.
- 根据权利要求4所述的方法,其中,在所述改变所述网口的网口类型之后,所述方法还包括:The method of claim 4, wherein after the changing the network port type of the network port, the method further comprises:将改变类型后的所述网口与互联网相连;Connecting the network port after changing the type to the Internet;将所述网络设备通过无线方式与终端相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the terminal such that the terminal is connected to the Internet through the network device.
- 一种网络设备的网口配置装置,所述装置包括:A network port configuration device for a network device, the device comprising:检测单元,配置为检测所述网络设备的网口的使用状态,其中,所述网口的网口类型包括WAN口或LAN口;a detecting unit, configured to detect a usage status of the network port of the network device, where the network port type of the network port includes a WAN port or a LAN port;改变单元,配置为在所述检测单元检测网络设备的网口的使用状态为空闲状态的情况下,改变所述网口的网口类型,以通过改变类型后的所述网口进行网络连接。The changing unit is configured to change the network port type of the network port to perform network connection by changing the type of the network port, if the detecting unit detects that the usage status of the network port of the network device is an idle state.
- 根据权利要求6所述的装置,其中,当所述网口的网口类型为WAN口时,所述检测单元,还配置为:The apparatus according to claim 6, wherein when the network port type of the network port is a WAN port, the detecting unit is further configured to:检测所述网络设备的网口是否与互联网相连;Detecting whether the network port of the network device is connected to the Internet;在所述网络设备的网口未与互联网相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the Internet, determining that the usage status of the network port of the network device is an idle state;相应的,所述改变单元,还配置为将所述网口类型由WAN口改变为LAN口。Correspondingly, the changing unit is further configured to change the network port type from a WAN port to a LAN port.
- 根据权利要求7所述的装置,其中,所述装置还包括第一连接单元,配置为:The apparatus of claim 7, wherein the apparatus further comprises a first connection unit configured to:在所述改变所述网口的网口类型之后,将改变类型后的所述网口与终端相连;After the network port type of the network port is changed, the network port after the type change is connected to the terminal;将所述网络设备通过无线方式与互联网相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the Internet such that the terminal is connected to the Internet through the network device.
- 根据权利要求6所述的装置,其中,当所述网口的网口类型为LAN 口时,所述检测单元还配置为:The device according to claim 6, wherein when the network port type of the network port is LAN The detecting unit is further configured to:检测所述网络设备的网口是否与终端相连;Detecting whether the network port of the network device is connected to the terminal;在所述网络设备的网口未与所述终端相连的情况下,确定所述网络设备的网口的使用状态为空闲状态;When the network port of the network device is not connected to the terminal, determining that the usage status of the network port of the network device is an idle state;相应的,所述改变单元,还配置为将所述网口类型由LAN口改变为WAN口。Correspondingly, the changing unit is further configured to change the network port type from a LAN port to a WAN port.
- 根据权利要求9所述的装置,其中,所述装置还包括第二连接单元,配置为:The device according to claim 9, wherein the device further comprises a second connecting unit configured to:在所述改变所述网口的网口类型之后,将改变类型后的所述网口与互联网相连;After the network port type of the network port is changed, the network port after changing the type is connected to the Internet;将所述网络设备通过无线方式与终端相连,以使所述终端通过所述网络设备与互联网相连。The network device is wirelessly connected to the terminal such that the terminal is connected to the Internet through the network device.
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 5.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410733711.XA CN105721189A (en) | 2014-12-04 | 2014-12-04 | Network port configuration method and device for network equipment |
CN201410733711.X | 2014-12-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016086544A1 true WO2016086544A1 (en) | 2016-06-09 |
Family
ID=56090896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/073982 WO2016086544A1 (en) | 2014-12-04 | 2015-03-11 | Network interface configuration method and apparatus for network device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105721189A (en) |
WO (1) | WO2016086544A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018053799A1 (en) * | 2016-09-23 | 2018-03-29 | 中兴通讯股份有限公司 | Network port type identification method, apparatus and storage medium |
CN112910738A (en) * | 2021-02-05 | 2021-06-04 | 四川天邑康和通信股份有限公司 | Router and PON-based line sequence classification method for network port panel butt joint |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120440B (en) * | 2018-08-13 | 2021-12-14 | 南京翼辉信息技术有限公司 | Network port positioning method and network equipment applying same |
CN108777645A (en) * | 2018-09-13 | 2018-11-09 | 郑州云海信息技术有限公司 | A kind of system and method for configuration server network IP information |
CN109640036B (en) * | 2018-11-14 | 2021-03-23 | 视联动力信息技术股份有限公司 | Configuration modification method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1349350A (en) * | 2000-10-12 | 2002-05-15 | 北京华诺信息技术有限公司 | TV top box with single processor for completing multitask |
CN1731788A (en) * | 2005-08-31 | 2006-02-08 | 杭州华为三康技术有限公司 | Communication equipment interface and interface converter using the interface |
-
2014
- 2014-12-04 CN CN201410733711.XA patent/CN105721189A/en active Pending
-
2015
- 2015-03-11 WO PCT/CN2015/073982 patent/WO2016086544A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1349350A (en) * | 2000-10-12 | 2002-05-15 | 北京华诺信息技术有限公司 | TV top box with single processor for completing multitask |
CN1731788A (en) * | 2005-08-31 | 2006-02-08 | 杭州华为三康技术有限公司 | Communication equipment interface and interface converter using the interface |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018053799A1 (en) * | 2016-09-23 | 2018-03-29 | 中兴通讯股份有限公司 | Network port type identification method, apparatus and storage medium |
CN112910738A (en) * | 2021-02-05 | 2021-06-04 | 四川天邑康和通信股份有限公司 | Router and PON-based line sequence classification method for network port panel butt joint |
CN112910738B (en) * | 2021-02-05 | 2023-02-28 | 四川天邑康和通信股份有限公司 | Router and PON-based line sequence classification method for network port panel butt joint |
Also Published As
Publication number | Publication date |
---|---|
CN105721189A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10375015B2 (en) | Methods and system for allocating an IP address for an instance in a network function virtualization (NFV) system | |
US11089476B2 (en) | Network access control method and apparatus | |
WO2016155394A1 (en) | Method and device for establishing link between virtual network functions | |
US10630551B2 (en) | Method and apparatus for automatic networking of gateway device | |
CN114070723B (en) | Virtual network configuration method and system of bare metal server and intelligent network card | |
CN102412978B (en) | Method for carrying out network configuration for VM and system thereof | |
US8085695B2 (en) | Bootstrapping devices using automatic configuration services | |
WO2016086544A1 (en) | Network interface configuration method and apparatus for network device and storage medium | |
US10425354B2 (en) | Resource allocation method, packet communication method, and apparatus | |
WO2019019018A1 (en) | Control method, control apparatus and control system for intelligent device | |
CN103814554A (en) | Communication method, device and system of virtual extensible local area network | |
WO2015096737A1 (en) | Method, apparatus and system for controlling auto-provisioning of network device | |
CN110049012B (en) | Operation method of routing equipment, routing equipment and terminal equipment | |
US11075915B2 (en) | System and method for securing communication between devices on a network | |
US20220210700A1 (en) | Communication method, apparatus, and system | |
CN107809386B (en) | IP address translation method, routing device and communication system | |
WO2015062354A1 (en) | Base station data configuration method and apparatus | |
WO2018161795A1 (en) | Routing priority configuration method, device, and controller | |
US20190014611A1 (en) | Establishment of a Connection Between Two Local Devices Connected to Different Networks | |
WO2015058413A1 (en) | Data configuration method and network management server | |
CN110753135A (en) | IP address configuration method, configuration equipment and storage medium | |
WO2016091186A1 (en) | Method and system for preventing conflict from occurring in resources occupied by logical switch | |
WO2017063578A1 (en) | Data packet processing method and apparatus | |
CN105491020A (en) | Method for realizing restriction of program in operating system of intelligent device on access of IP (Internet Protocol) address | |
WO2022104806A1 (en) | Method and apparatus for controlling heterogeneous network devices, device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15864911 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15864911 Country of ref document: EP Kind code of ref document: A1 |