CN113473493B - Communication method and device - Google Patents
Communication method and device Download PDFInfo
- Publication number
- CN113473493B CN113473493B CN202010241190.1A CN202010241190A CN113473493B CN 113473493 B CN113473493 B CN 113473493B CN 202010241190 A CN202010241190 A CN 202010241190A CN 113473493 B CN113473493 B CN 113473493B
- Authority
- CN
- China
- Prior art keywords
- network device
- host configuration
- network
- internet protocol
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a communication method and a communication device, which can solve the problems of low efficiency and the like when a third party device working mode is manually configured. The method comprises the following steps: and judging the working states of an access network interface and a local area network interface of the first network equipment. If the access network interface is in a non-working state and the local area network interface is in a working state, a host configuration discovery message is sent through the local area network interface. If a response message sent by the second network device for the host configuration discovery message is received through the local area network interface within a preset time period, determining the working mode of the first network device based on the response message. And if the working mode of the first network equipment is the first working mode, acquiring WiFi configuration information of the wireless local area network from the second network equipment. By adopting the embodiment of the application, the configuration efficiency of the equipment can be improved, and the user experience can be improved.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a communication method and apparatus.
Background
With the increasing number of home electronics devices, in particular wireless access devices based on wireless local area networks (wireless fidelity, wiFi), there is an increasing demand for coverage and signal quality for WiFi signals. Meanwhile, with the improvement of living environment, the house type of home users is bigger and bigger, and the coverage of WiFi signals is becoming a concern. At present, people usually adopt a mode of connecting third party equipment on an optical network terminal to expand the coverage range of WiFi signals, but the mode increases additional third party equipment on one hand, and on the other hand, the working mode of the third party equipment needs to be manually configured by people, so that the technical requirements on users are higher, the efficiency is low when the working mode of the equipment is manually configured, and the user experience is reduced.
Disclosure of Invention
The embodiment of the application provides a communication method and device, which can solve the problems of low efficiency, high complexity and the like existing in the process of manually configuring the working mode of third-party equipment, and can improve the configuration efficiency and the user experience.
In a first aspect, embodiments of the present application provide a communication method, where the method is applicable to a first network device. The method comprises the following steps: and judging the working states of the access network interface and the local area network interface of the first network equipment. And if the access network interface is in a non-working state and the local area network interface is in a working state, sending a host configuration discovery message through the local area network interface. If a response message sent by the second network device for the host configuration discovery message is received through the local area network interface within a preset time period, determining the working mode of the first network device based on the response message. And if the working mode of the first network equipment is the first working mode, acquiring wireless local area network WiFi configuration information from the second network equipment.
In the method provided by the embodiment of the application, the working mode of the first network device is determined according to the received response message, so that the problems of low efficiency, high complexity and the like existing in the process of manually configuring the working mode of the third party device can be avoided, and the configuration efficiency is improved.
With reference to the first aspect, in a possible implementation manner, the host configuration discovery packet is a DHCP discover packet discovered by a dynamic host configuration protocol. The response message is a dynamic host configuration protocol response DHCP offer message. The DHCP offer message includes a first internet protocol address assigned by the second network device to the first network device. If the first internet protocol address is within the preset internet protocol address range, determining that the working mode of the first network device is a first working mode.
With reference to the first aspect, in a possible implementation manner, the first operation mode is an access point AP bridge mode.
With reference to the first aspect, in a possible implementation manner, if the first ip address is not within the preset ip address range, it is determined that the working mode of the first network device is an AP routing mode.
With reference to the first aspect, in a possible implementation manner, the preset internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
With reference to the first aspect, in a possible implementation manner, if the access network interface is in an operating state or the lan interface is in a non-operating state, it is determined that the operating mode of the first network device is an optical network terminal ONT mode.
With reference to the first aspect, in a possible implementation manner, if a response message sent by the second network device for the host configuration discovery message is not received through the lan interface within the preset period of time, determining that the working mode of the first network device is the ONT mode.
With reference to the first aspect, in a possible implementation manner, if the random number included in the response packet is the same as the random number included in the host configuration discovery packet, the response packet is determined to be a response packet of the host configuration discovery packet.
With reference to the first aspect, in a possible implementation manner, the WiFi configuration information includes a WiFi username and a WiFi password.
With reference to the first aspect, in a possible implementation manner, the access network interface is a PON port of a passive optical network.
With reference to the first aspect, in a possible implementation manner, the local area network interface is a local area network LAN port or a wireless LAN port.
In a second aspect, embodiments of the present application provide a communication method, where the method is applicable to a second network device. The method comprises the following steps: and receiving a host configuration discovery message sent by the first network device through the local area network interface. And sending a response message aiming at the host configuration discovery message to the first network device according to the working mode of the second network device, wherein the response message is used for determining the working mode of the first network device. And if the working mode of the first network equipment is the first working mode, sending WiFi configuration information to the first network equipment.
With reference to the second aspect, in a possible implementation manner, the host configuration discovery packet is a DHCP discover packet discovered by a dynamic host configuration protocol. The response message is a dynamic host configuration protocol response DHCP offer message. The DHCP offer message includes a first ip address assigned to the first network device. The first internet protocol address is used to determine an operating mode of the first network device.
With reference to the second aspect, in a possible implementation manner, if the working mode of the second network device is the second working mode, the first internet protocol address included in the response message is a first internet protocol address allocated by the second network device to the first network device, and the first internet protocol address is in a preset internet protocol address range.
With reference to the second aspect, in a possible implementation manner, the second operation mode is an optical network terminal ONT mode.
With reference to the second aspect, in a possible implementation manner, the preset internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
With reference to the second aspect, in a possible implementation manner, if the working mode of the second network device is an AP bridge mode, the host configuration discovery packet is forwarded to a third network device. The third network device supports dynamic host configuration DHCP protocol. And receiving a response message of the third network equipment aiming at the host configuration discovery message. The response message includes a first internet protocol address allocated by the third network device to the first network device. The first internet protocol address is a public network IP address. And forwarding a response message of the third network device to the host configuration discovery message to the first network device.
In a third aspect, embodiments of the present application provide an apparatus. The apparatus may be the first network device itself, or may be an element or module such as a chip within the first network device. The apparatus comprises means for performing the communication method provided by any one of the possible implementations of the first aspect described above, and thus can also be a benefit (or advantage) provided by implementing the communication method provided by the first aspect.
In a fourth aspect, embodiments of the present application provide an apparatus. The device may be the second network device itself, or may be an element or module such as a chip within the second network device. The apparatus comprises means for performing the communication method provided by any one of the possible implementations of the second aspect described above and can therefore also be advantageous (or advantageous) for implementing the communication method provided by the second aspect.
In a fifth aspect, an embodiment of the present application provides an apparatus, where the apparatus may be the first network device itself, or may be an element or module, such as a chip, inside the first network device. The apparatus includes a memory, a processor, and a transceiver. Wherein the processor is configured to invoke the code stored in the memory to perform the communication method provided by any one of the possible implementations of the first aspect.
In a sixth aspect, an embodiment of the present application provides an apparatus, where the apparatus may be the second network device itself, or may be an element or module, such as a chip, inside the second network device. The apparatus includes a memory, a processor, and a transceiver. Wherein the processor is configured to invoke the code stored in the memory to perform the communication method provided by any one of the possible implementations of the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, where instructions are stored, where when the instructions are executed on a computer, to implement a communication method provided by any one of the feasible implementation manners of the first aspect, and also achieve the beneficial effects (or advantages) provided by the communication method provided by the first aspect.
In an eighth aspect, an embodiment of the present application provides a computer readable storage medium, where an instruction is stored, where the instruction, when executed on a computer, implements a communication method provided by any one of the possible implementation manners of the second aspect, and also implements the beneficial effects (or advantages) provided by the communication method provided by the second aspect.
In a ninth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the communication method provided in the first aspect, and also achieve the beneficial effects provided by the communication method provided in the first aspect.
In a tenth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the communication method provided in the second aspect, and also achieve the beneficial effects provided by the communication method provided in the second aspect.
In an eleventh aspect, embodiments of the present application provide an apparatus that is a first network device. The communication device includes: a processor and an interface circuit. The interface circuit is used for receiving code instructions and transmitting the code instructions to the processor. The processor is configured to execute the code instructions to implement a communication method provided by any one of the possible implementation manners of the first aspect, and may also implement the beneficial effects (or advantages) provided by the communication method provided by the first aspect.
In a twelfth aspect, embodiments of the present application provide an apparatus that is a second network device. The device comprises: a processor and an interface circuit. The interface circuit is used for receiving code instructions and transmitting the code instructions to the processor. The processor is configured to execute the code instructions to implement a communication method provided by any one of the possible implementation manners of the second aspect, and may also implement the benefits (or advantages) provided by the communication method provided by the second aspect.
In a thirteenth aspect, embodiments of the present application provide a communication system including the first network device and the second network device described above.
By adopting the method provided by the embodiment of the application, the problems of low efficiency, high complexity and the like existing in the process of manually configuring the working mode of the third party equipment can be solved, and the configuration efficiency and the user experience can be improved.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a communication method according to an embodiment of the present application;
fig. 3 is a schematic format diagram of a DHCP discover message and a DHCP offer message provided in the embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus according to an embodiment of the present disclosure;
FIG. 5 is a schematic view of another embodiment of an apparatus according to the present disclosure;
FIG. 6 is a schematic view of another embodiment of an apparatus according to the present disclosure;
fig. 7 is a schematic view of another structure of an apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The embodiment of the application provides a communication method and device. Referring to fig. 1, fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application, and the communication method is applicable to the communication system. As shown in fig. 1, the communication system mainly includes a first network device and a second network device. The first network device and the second network device may be the same type of network device. For example, the first network device and the second network device may be an optical network terminal (optical network termination, ONT), an optical network unit (optical network unit, ONU), or the like, which is not limited herein. For ease of understanding, in the embodiments of the present application, a first network device and a second network device will be described. The second network device and the first network device can be connected in a wired or wireless mode. For example, any local area network (local area network, LAN) port on the second network device may be connected to any LAN port on the first network device through a network cable, or the second network device and the first network device may be connected through a wireless LAN port, which is not limited herein. Wherein the second network device may also be connected to a plurality of network devices other than the first network device. Wherein the plurality of network devices and the first network device are the same type of network device. In specific implementation, the working states of the access network interface and the local area network interface of the first network device are judged. If the access network interface is in a non-working state and the local area network interface is in a working state, a host configuration discovery message is sent through the local area network interface. If a response message sent by the second network device for the host configuration discovery message is received through the local area network interface within a preset time period, determining the working mode of the first network device based on the response message. And if the working mode of the first network equipment is the first working mode, acquiring WiFi configuration information of the wireless local area network from the second network equipment.
In general, in order to expand the coverage of WiFi signals, a manner of connecting a third party device to an optical network terminal may be used to expand the coverage of WiFi signals, but this manner increases additional third party devices on one hand, and requires manual configuration of parameters of the third party devices on the other hand, which has high technical requirements on users, and has low efficiency when manually configuring the working modes of the devices, and reduces user experience.
The technical problems to be solved by the communication method provided by the embodiment of the application are as follows: how to efficiently set the operation mode of the network device to improve the user experience.
Referring to fig. 2, fig. 2 is a flow chart of a communication method according to an embodiment of the present application. As shown in fig. 2, the above communication method may include the steps of:
s201, the first network device judges the working states of an access network interface and a local area network interface of the first network device.
In some possible embodiments, the first network device may determine/query the operating states of its own access network interface and lan interface. The access network interface is an interface between an external network (i.e. a wide area network) and an internal network (i.e. a local area network), and the local area network interface is an interface between the internal networks. Specifically, the access network interface may be a passive optical network (passive optical network, PON) port, and the local area network interface may be a LAN port or a wireless LAN port. The operating states of the access network interface or the lan interface may include an operating state (i.e., UP state) and a non-operating state (i.e., DOWN state), among others.
S202, if the access network interface is in a non-working state and the local area network interface is in a working state, the first network equipment generates a host configuration discovery message.
In some possible embodiments, when the access network interface of the first network device is in a non-working state and the lan interface is in a working state, the first network device may generate the host configuration discovery message. The host configuration discovery message may be a dynamic host configuration protocol discovery (dynamic host configuration protocol discover, DHCP discover) message. The DHCP discover message may include a section of character string, i.e., a random number, randomly generated by the first network device.
S203, the first network device sends a host configuration discovery message through the local area network interface.
In some possible embodiments, the first network device may broadcast the host configuration discovery message via a lan interface.
S204, the first network equipment receives the response message.
In some possible embodiments, the first network device may receive a response message sent by the second network device. The response message may be a dynamic host configuration protocol response (dynamic host configuration protocol offer, DHCP offer) message. The DHCP offer message may include a random number, and an internet protocol (internet protocol, IP) address, i.e., a first internet protocol address, assigned by the second network device to the first network device.
Generally, if the random number included in the response message is the same as the random number included in the host configuration discovery message, it may be determined that the response message is the response message of the host configuration discovery message. That is, when the random number included in the response message is the same as the random number included in the host configuration discovery message, it may be determined that the response message and the host configuration discovery message belong to the same session. Wherein the random number is randomly generated and recorded by the first network device. For easy understanding, the embodiment of the present application uses a DHCP discover message as a host configuration discovery message and a DHCP offer message as a response message for illustration.
For example, referring to fig. 3, fig. 3 is a schematic diagram of formats of a DHCP discover message and a DHCP offer message according to an embodiment of the present application. As shown in fig. 3, the basic formats of the DHCP discover message and the DHCP offer message are the same, except that some field values in the messages are different. Specifically, the meaning of each field in the DHCP packet is as follows: op, message type, wherein 1 represents request message and 2 represents response message. htype, hardware address type, where 1 denotes the hardware address of an ethernet of 10 Mb/s. hlen, hardware address length. hop count, i.e. the number of relays traversed by DHCP messages. xid, transaction ID, a random number selected by the client, is used by the server and the client to communicate requests and responses between them, which the client uses to match requests and responses. The ID is set by the client and returned by the server as a 32-bit integer. secs, filled in by the client, represents the number of seconds that have elapsed since the client began to obtain the IP address or the IP address was renewed. flags, flag field. Bit 0 is 0, indicating unicast, and bit 1 indicates broadcast. The IP address of the client is shown as 0 in both DHCP discover and DHCP offer messages. The yiaddr, the IP address assigned to the client by the server, is specifically shown in the DHCP offer message sent by the server, and is shown as 0 in the DHCP discover message. siaddr, indicates the IP address of the server to be used in the next phase of the DHCP protocol flow. The IP address of the DHCP relay. chaddr, hardware address of client. A sname, an optional server hostname. file, the server designates the name of the starting configuration file and the path information for the client, and the file is specifically displayed only in the DHCP Offer message, and is displayed as empty in the DHCP discover message. Options, optional, format "code+length+data". Wherein the server is the second network device, the client is the first network device, the xid value indicated by the xid field is the random number, and the IP address indicated by the yiaddr address is the first internet protocol address.
S205, if the first network device receives a response message sent by the second network device for the host configuration discovery message through the local area network interface within a preset time period, determining the working mode of the first network device based on the response message.
In some possible embodiments, if the first network device receives, through the lan interface, a response message sent by the second network device for the host configuration discovery message within a preset period of time, the first network device may determine the working mode of the first network device based on the response message. That is, after the first network device sends the host configuration discovery message through the lan interface, timing may be started, and if a response message sent by the second network device for the host configuration discovery message is received through the lan interface within a preset period of time, the first network device may determine the working mode of the first network device based on the response message. Here, the preset time period may be 3 seconds, specifically determined according to an actual application scenario, which is not limited herein. Specifically, if the first ip address is within the preset ip address range, the operation mode of the first network device may be determined to be the first operation mode. If the first ip address is not within the preset ip address range, it may be determined that the working mode of the first network device is an AP routing mode. The first operation mode may be an Access Point (AP) bridge mode. The AP bridge mode may be understood as a product form of the first network device is an AP form, that is, the first network device corresponds to an AP, and the first network device operates in the bridge mode. The above AP routing mode may be understood as a product form of the first network device being an AP form, i.e. the first network device is an AP, and the first network device operates in the routing mode. The preset internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation (RFC 1918 address allocation for private internets) protocol.
In a specific implementation, the connection relationship between the second network device and the first network device may be that the lan interface on the first network device is connected to the lan interface of the second network device through a network cable. Therefore, the second network device may receive, through the lan interface on the second network device, the host configuration discovery message sent by the first network device through the lan interface on the first network device. Here, the second network device may send a response message for the host configuration discovery message to the first network device according to the working mode of the second network device by determining the working mode of the second network device. The response message is used for determining a working mode of the first network device.
If the working mode of the second network device is the second working mode, the first internet protocol address included in the response message is an IP address allocated by the second network device to the first network device, and the first internet protocol address is within a preset internet protocol address range. The second working mode may be an ONT mode, and the preset internet protocol address range is an internet protocol address range defined based on a private network communication RFC1918 protocol. It should be appreciated that the second network device is equivalent to a gateway when the operating mode of the second network device is the ONT mode. Since the gateway itself supports the DHCP protocol, the second network device may assign a private network IP address to the first network device connected to the lan interface according to RFC1918 protocol. That is, when the second network device is operating in the ONT mode, the first network device will be assigned a first internet protocol address by the second network device, and the assigned first internet protocol address is a private network IP address. If the second network device is in the AP bridge mode, the second network device will not support the DHCP protocol. Therefore, the second network device can forward or pass through the host configuration discovery message sent by the first network device to the third network device, so that the third network device allocates the first internet protocol address for the first network device. The third network device may be an upper network device of the second network device, and the third network device supports a DHCP protocol. It will be appreciated that the first internet protocol address assigned by the third network device to the first network device is a public network IP address. Therefore, when the second network device receives the response message sent by the third network device and including the first internet protocol address allocated by the third network device to the first network device, the second network device may forward the response message of the third network device to the first network device for the host configuration discovery message, so that the first network device may determine the working mode of the first network device according to the received response message.
Specifically, after the first network device receives the response message sent by the second network device, the first network device may determine the working mode of the first network device according to the first internet protocol address included in the received response message. Specifically, if the first ip address included in the response message is within the preset ip address range, it may be determined that the product form of the second network device is an ONT form, that is, the second network device corresponds to the gateway, and the product form of the first network device is an AP form, that is, the first network device corresponds to the AP. If the first internet protocol address is not within the preset internet protocol address range, the product form of the second network device is determined to be an AP form, i.e. the second network device corresponds to the AP, and the product form of the first network device is an AP form, i.e. the first network device also corresponds to the AP. When the product form of the second network device is an ONT form and the product form of the first network device is an AP form, the working mode of the first network device is a bridge mode, that is, the AP bridge mode.
Alternatively, in some possible embodiments, the operation mode of the first network device may be determined to be the ONT mode when the access network interface of the first network device is in an operating state (i.e., UP state) or the lan interface is in a non-operating state (i.e., DOWN state).
Optionally, in some possible embodiments, if a response message sent by the second network device for the host configuration discovery message is not received through the lan interface within a preset period of time, it may be determined that the working mode of the first network device is an ONT mode.
Optionally, in some possible embodiments, when the random number included in the response packet is different from the random number included in the host configuration discovery packet, it may also be determined that the operation mode of the first network device is an ONT mode.
Optionally, in some possible embodiments, the operation mode of the first network device may be set to an AP bridge mode based on a manual setting manner.
S206, if the working mode of the first network device is the first working mode, the first network device generates a WiFi configuration information acquisition request.
In some possible embodiments, if the operation mode of the first network device is the first operation mode, the first network device may generate the WiFi configuration information acquisition request. The WiFi configuration information acquiring request is used for requesting to acquire WiFi configuration information. The WiFi configuration information may include a WiFi user name, a WiFi password, and the like, which are not limited herein.
S207, the first network device sends a WiFi configuration information acquisition request.
In some possible implementations, both the first network device and the second network device may support a communication protocol for WiFi configuration. For example, the communication protocol may be an easy-mesh protocol or an xlink protocol, and the like, which is not limited herein. After the first network device generates the WiFi configuration information obtaining request, the first network device may send the WiFi configuration information obtaining request to the second network device according to the corresponding communication protocol.
S208, the first network device receives WiFi configuration information response information.
In some possible embodiments, the first network device may obtain the WiFi configuration information carried in the WiFi configuration information response information by receiving the WiFi configuration information response information generated by the second network device based on the WiFi configuration information obtaining request, and analyzing the WiFi configuration information response information. The WiFi configuration information may include a WiFi user name, a WiFi password, and the like, which are not limited herein.
In the embodiment of the application, the working states of the access network interface and the local area network interface of the first network device are judged. If the access network interface is in a non-working state and the local area network interface is in a working state, the host configuration discovery message can be sent through the local area network interface. If a response message sent by the second network device for the host configuration discovery message is received through the local area network interface within a preset time period, the working mode of the first network device can be determined based on the response message. If the working mode of the first network device is the first working mode, the first network device may obtain the WiFi configuration information of the wireless local area network from the second network device. By adopting the embodiment of the application, the problems of low efficiency, high complexity and the like existing in the process of manually configuring the working mode of the third-party equipment can be solved, the configuration efficiency is improved, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present application. The apparatus may be the first network device described in the foregoing embodiment one or embodiment two, and the apparatus may be configured to perform the functions of the first network device described in the foregoing embodiment one or embodiment two. For ease of illustration, only the major components of the device are shown in fig. 4. As can be seen from fig. 4, the device comprises a processor, a memory, a radio frequency circuit, an antenna and an input/output device. The processor is mainly used for processing communication protocols and communication data, controlling the device, executing software programs, processing data of the software programs and the like. The memory is mainly used for storing software programs and data. The radio frequency circuit is mainly used for converting a baseband signal and a radio frequency signal and processing the radio frequency signal. The antenna is mainly used for receiving and transmitting radio frequency signals in the form of electromagnetic waves. Input-output devices, such as touch screens, display screens, keyboards, etc., are primarily used to receive data entered by a user using the device and to output data to the user. It should be noted that, in some scenarios, the communication device may not include an input/output device.
When data need to be sent, the processor carries out baseband processing on the data to be sent and then outputs a baseband signal to the radio frequency circuit, and the radio frequency circuit carries out radio frequency processing on the baseband signal and then sends the radio frequency signal outwards in the form of electromagnetic waves through the antenna. When data is sent to the second network device, the radio frequency circuit receives a radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor, and the processor converts the baseband signal into data and processes the data. For ease of illustration, only one memory and processor is shown in fig. 4. In an actual device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or storage device, etc. The memory may be provided separately from the processor or may be integrated with the processor, which is not limited by the embodiments of the present application.
As an alternative implementation, the processor may include a baseband processor, which is mainly configured to process the communication protocol and the communication data, and/or a central processor, which is mainly configured to control the entire second network device, execute a software program, and process the data of the software program. The processors in fig. 4 may integrate the functions of the baseband processor and the central processor, and those skilled in the art will appreciate that the baseband processor and the central processor may also be separate processors, interconnected by bus technology, etc. Those skilled in the art will appreciate that the second network device may include a plurality of baseband processors to accommodate different network formats, and the second network device may include a plurality of central processors to enhance its processing capabilities, and that the various components of the second network device may be connected by various buses. The baseband processor may also be expressed as a baseband processing circuit or a baseband processing chip. The above-mentioned central processing unit may also be expressed as a central processing circuit or a central processing chip. The function of processing the communication protocol and the communication data may be built in the processor, or may be stored in the storage unit in the form of a software program, which is executed by the processor to realize the baseband processing function.
In the embodiment of the present application, the antenna and the radio frequency circuit with the transceiver function may be regarded as a transceiver unit of the apparatus, and the processor with the processing function may be regarded as a processing unit of the apparatus. As shown in fig. 4, the apparatus includes a transceiving unit 410 and a processing unit 420. Here, the transceiver unit may also be referred to as a transceiver, a transceiver device, or the like. The processing unit may also be called a processor, a processing board, a processing module, a processing device, etc. Alternatively, the device for implementing the receiving function in the transceiver unit 410 may be regarded as a receiving unit, and the device for implementing the transmitting function in the transceiver unit 410 may be regarded as a transmitting unit, i.e. the transceiver unit 410 includes a receiving unit and a transmitting unit. Here, the receiving unit may also be referred to as a receiver, a receiving circuit, or the like. The transmitting unit may also sometimes be referred to as a transmitter, or a transmitting circuit, etc.
In a specific implementation, the transceiver unit 410 is configured to send a host configuration discovery message to the second network device, and receive a response message from the second network device. Here, the specific process of determining the working mode of the first network device by the response message may refer to the process of sending the host configuration discovery message through the lan interface described in step S203 and the process of receiving the response message described in step S204 in the first embodiment, which are not described herein. The transceiver unit 410 is further configured to send a WiFi configuration information acquisition request to a second network device, and receive a WiFi configuration information response request sent by the second network device. The specific process can be referred to the process described in step S207 and step S208 in the first embodiment, and will not be described here again. The processing unit 420 is configured to determine an operating state of an access network interface and a lan interface of the first network device. The specific process can be referred to the process described in step S201 in the first embodiment, and will not be described herein. The processing unit 420 is further configured to determine an operation mode of the first network device according to the response message. The specific process may refer to the process described in step S203 in the first embodiment, and will not be described herein. The processing unit 420 is further configured to generate a host configuration discovery message. The specific process can be referred to the process described in step S202 in the first embodiment, and will not be described herein. The processing unit 420 is further configured to generate a WiFi configuration information acquisition request if it is determined that the operation mode of the first network device is the first operation mode. The specific process may refer to the process described in step S206 in the first embodiment, and will not be described herein.
In an alternative implementation, the host configuration discovery message is a DHCP discover message. The response message is a dynamic host configuration protocol response DHCP offer message. The DHCP offer message includes a first internet protocol address assigned by the second network device to the first network device. The processing unit 420 is configured to:
if the first internet protocol address is within the preset internet protocol address range, determining that the working mode of the first network device is a first working mode.
In an alternative implementation, the first operation mode is an AP bridge mode.
In an alternative implementation, the processing unit 420 is configured to:
and if the first internet protocol address is not in the preset internet protocol address range, determining that the working mode of the first network equipment is an Access Point (AP) routing mode.
In an alternative implementation, the predetermined internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
In an alternative implementation, the processing unit 420 is further configured to:
And if the access network interface is in a working state or the local area network interface is in a non-working state, determining that the working mode of the first network equipment is an optical network terminal ONT mode.
In an alternative implementation, the processing unit 420 is further configured to:
if a response message sent by the second network device for the host configuration discovery message is not received through the local area network interface within the preset time period, determining that the working mode of the first network device is the ONT mode.
In an alternative implementation, the processing unit 420 is further configured to:
if the random number included in the response message is the same as the random number included in the host configuration discovery message, determining that the response message is the response message of the host configuration discovery message.
In an alternative implementation, the WiFi configuration information includes a WiFi username and a WiFi password.
In an optional implementation, the access network interface is a PON interface of a passive optical network.
In an alternative implementation, the LAN interface is a LAN port or a wireless LAN port.
Referring to fig. 5, fig. 5 is a schematic view of another structure of an apparatus according to an embodiment of the present application. The apparatus may be the second network device described in the foregoing embodiment one or embodiment two, and the apparatus may be configured to perform the functions of the second network device described in the foregoing embodiment one or embodiment two. For ease of illustration, only the major components of the device are shown in fig. 5. As can be seen from fig. 5, the device comprises a processor, a memory, a radio frequency circuit, an antenna, and an input/output device. The apparatus shown in fig. 5 is similar in structure to the apparatus shown in fig. 4, and the detailed description of the apparatus shown in fig. 4 is referred to above, and will not be repeated here.
In the embodiment of the present application, the antenna and the radio frequency circuit with the transceiver function may be regarded as a transceiver unit of the apparatus, and the processor with the processing function may be regarded as a processing unit of the apparatus. As shown in fig. 5, the apparatus includes a transceiving unit 510 and a processing unit 520. Here, the transceiver unit may also be referred to as a transceiver, a transceiver device, or the like. The processing unit may also be called a processor, a processing board, a processing module, a processing device, etc. Alternatively, the device for implementing the receiving function in the transceiver unit 510 may be regarded as a receiving unit, and the device for implementing the transmitting function in the transceiver unit 510 may be regarded as a transmitting unit, that is, the transceiver unit 510 includes a receiving unit and a transmitting unit. Here, the receiving unit may also be referred to as a receiver, a receiving circuit, or the like. The transmitting unit may also sometimes be referred to as a transmitter, or a transmitting circuit, etc.
In a specific implementation, the transceiver unit 510 is configured to receive a host configuration discovery message sent by a first network device, and send a response message to the first network device. The specific process may be referred to the implementation process described in step S203 and step S204 in the first embodiment, and will not be described herein. The transceiver unit 510 is further configured to receive a WiFi configuration information acquisition request sent by the first network device, and send a WiFi configuration information response request to the first network device. The specific process may be referred to in step S207 and the implementation process described in step S208 in the first embodiment, and will not be described herein.
In an alternative implementation, the host configuration discovery message is a DHCP discover message. The response message is a dynamic host configuration protocol response DHCP offer message. The DHCP offer message includes a first ip address assigned to the first network device. The first internet protocol address is used to determine an operating mode of the first network device.
In an alternative implementation, the transceiver unit 510 is further configured to:
if the working mode of the second network device is the second working mode, the first internet protocol address included in the response message is a first internet protocol address allocated to the first network device by the second network device, and the first internet protocol address is within a preset internet protocol address range.
In an alternative implementation, the second operation mode is an optical network terminal ONT mode.
In an alternative implementation, the predetermined internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
In an alternative implementation, the transceiver unit 510 is further configured to:
If the working mode of the second network device is an Access Point (AP) bridging mode, forwarding the host configuration discovery message to a third network device, wherein the third network device supports a Dynamic Host Configuration (DHCP) protocol. And receiving a response message of the third network device for the host configuration discovery message, wherein the response message comprises a first internet protocol address allocated by the third network device for the first network device, and the first internet protocol address is a public network IP address. And forwarding a response message of the third network device to the host configuration discovery message to the first network device.
Referring to fig. 6, fig. 6 is a schematic view of another structure of an apparatus according to an embodiment of the present application. The apparatus may be the first network device in the first embodiment or the second embodiment, and the apparatus may be configured to implement a communication method implemented by the first network device. The device comprises: processor 61, memory 62, transceiver 63.
Operation instructions: including various operational instructions for carrying out various operations.
Operating system: including various system programs for implementing various basic services and handling hardware-based tasks.
Only one memory is shown in fig. 6, but a plurality of memories may be provided as needed.
The transceiver 63 may be a communication module, a transceiver circuit. In the embodiment of the present application, the transceiver 63 is configured to perform the operations of sending the host configuration discovery message to the second network device, receiving the response message from the second network device, and so on, which are related to the foregoing embodiments.
The processor 61 may be a controller, CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the present application. Processor 61 may also be a combination that performs computing functions, such as including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
In particular applications, the various components of the device may be coupled together by a bus system that may include, in addition to a data bus, a power bus, a control bus, a status signal bus, and the like.
The present application further provides a computer readable medium having stored thereon a computer program which, when executed by a computer, implements the method or steps performed by the first network device in the above embodiments.
The present application further provides a computer program product, which when executed by a computer, implements the method or the steps performed by the first network device in the foregoing embodiment.
The embodiment of the application also provides an apparatus, which may be the first network device in the above embodiment. The apparatus includes a processor and an interface. The processor is configured to perform the methods or steps performed by the second network device in the above embodiments. It should be understood that the second network device may be a chip, and the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside of the processor, and may exist separately.
Referring to fig. 7, fig. 7 is a schematic view of another structure of an apparatus according to an embodiment of the present application. The apparatus may be the second network device in the above embodiment, and the apparatus may be configured to implement a method implemented by the second network device in the above embodiment. The device comprises: a processor 71, a memory 72, a transceiver 73.
operation instructions: including various operational instructions for carrying out various operations.
Operating system: including various system programs for implementing various basic services and handling hardware-based tasks.
Only one memory is shown in fig. 7, but a plurality of memories may be provided as needed.
The transceiver 73 may be a communication module, a transceiver circuit. In the embodiment of the present application, the transceiver 73 is configured to perform operations such as receiving a host configuration discovery message sent by the first network device, and sending a response message to the first network device.
The processor 71 may be a controller, CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the present application. The processor 71 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
In particular applications, the various components of the apparatus may be coupled together by a bus system that may include, in addition to a data bus, a power bus, a control bus, a status signal bus, and the like.
The present application further provides a computer readable medium having stored thereon a computer program which, when executed by a computer, implements the method or steps performed by the second network device in the above embodiments.
The present application further provides a computer program product, which when executed by a computer, implements the method or the step performed by the second network device in the above embodiment.
The embodiment of the application also provides a device, which may be the second network equipment in the embodiment. The apparatus includes a processor and an interface. The processor is configured to perform the methods or steps performed by the second network device in the above embodiments. It should be understood that the second network device may be a chip, and the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside of the processor, and may exist separately.
It should be noted that the present application also provides a communication system, which includes the aforementioned one or more first network devices, and one or more second network devices.
In the above method embodiments, the implementation may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product described above includes one or more computer instructions. When the above-described computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL), or wireless (e.g., infrared, wireless, microwave, etc.) means, the computer-readable storage medium may be any available medium that can be accessed by the computer or a data storage device such as a server, data center, etc., that contains an integration of one or more available media, the available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., high-density digital video disc (digital video disc, DVD), or semiconductor media (e.g., solid state disk, SSD), etc., the computer instructions may be stored in a computer-readable medium.
It should be noted that, in practical applications, the processor in the embodiments of the present application may be an integrated circuit chip, which has a signal processing capability. In implementation, the steps of the above method embodiments may be implemented by integrated logic circuits of hardware in a processor or instructions in software form. The processor may be a general purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
It will be appreciated that the memory in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM). It should be noted that the memory described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that the terms "system" and "network" in the embodiments of the present application are often used interchangeably. The term "and/or" in this embodiment is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus described above is merely illustrative, e.g., the division of elements is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
In summary, the foregoing description is only a preferred embodiment of the technical solution of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (34)
1. A method of communication, the method comprising:
judging the working states of an access network interface and a local area network interface of first network equipment;
if the access network interface is in a non-working state and the local area network interface is in a working state, a host configuration discovery message is sent through the local area network interface, wherein the host configuration discovery message is a dynamic host configuration protocol discovery DHCP discover message;
if a response message sent by a second network device for the host configuration discovery message is received through the local area network interface within a preset time period, and the response message is determined to be a dynamic host configuration protocol response DHCP offer message, determining a first Internet interconnection protocol address which is allocated for the first network device by the second network device and included in the DHCP offer message;
and if the first Internet protocol address is in the preset Internet protocol address range, determining that the working mode of the first network equipment is a first working mode, and acquiring WiFi configuration information of the wireless local area network from the second network equipment.
2. The method of claim 1, wherein the first mode of operation is an access point, AP, bridge mode.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and if the first internet protocol address is not in the preset internet protocol address range, determining that the working mode of the first network equipment is an Access Point (AP) routing mode.
4. A method according to any of claims 1-3, wherein the pre-set internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
5. The method according to any one of claims 1-4, further comprising:
and if the access network interface is in a working state or the local area network interface is in a non-working state, determining that the working mode of the first network equipment is an optical network terminal ONT mode.
6. The method according to any one of claims 1-5, further comprising:
if a response message sent by the second network device for the host configuration discovery message is not received through the local area network interface within the preset time period, determining that the working mode of the first network device is an optical network terminal ONT mode.
7. The method according to any one of claims 1-6, further comprising:
and if the random number included in the response message is the same as the random number included in the host configuration discovery message, determining that the response message is the response message of the host configuration discovery message.
8. The method of any of claims 1-7, wherein the WiFi configuration information includes a WiFi username, a WiFi password.
9. The method according to any of claims 1-8, wherein the access network interface is a passive optical network PON interface.
10. The method according to any of claims 1-9, wherein the local area network interface is a local area network LAN port or a wireless LAN port.
11. A method of communication, the method comprising:
receiving a host configuration discovery message sent by first network equipment through a local area network interface, wherein the host configuration discovery message is a dynamic host configuration protocol discovery DHCP discover message;
transmitting a response message for the host configuration discovery message to the first network device according to the working mode of the second network device, wherein the response message is a dynamic host configuration protocol response DHCP offer message, the dynamic host configuration protocol response DHCP offer message comprises a first internet protocol address allocated to the first network device, and the first internet protocol address is used for determining the working mode of the first network device;
And if the working mode of the first network equipment is the first working mode, sending WiFi configuration information to the first network equipment.
12. The method according to claim 11, wherein the sending a response message to the host configuration discovery message to the first network device according to the operation mode of the second network device comprises:
if the working mode of the second network device is the second working mode, the first internet protocol address included in the response message is a first internet protocol address allocated to the first network device by the second network device, and the first internet protocol address is in a preset internet protocol address range.
13. The method of claim 12, wherein the second operation mode is an optical network terminal ONT mode.
14. The method according to claim 12 or 13, wherein the preset internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
15. The method according to any one of claims 10-14, wherein the sending a response message to the host configuration discovery message to the first network device according to the operation mode of the second network device comprises:
If the working mode of the second network device is an Access Point (AP) bridging mode, forwarding the host configuration discovery message to third network device, wherein the third network device supports Dynamic Host Configuration (DHCP) protocol;
receiving a response message of the third network device for the host configuration discovery message, wherein the response message comprises a first internet protocol address distributed by the third network device for the first network device, and the first internet protocol address is a public network IP address;
and forwarding a response message of the third network device to the host configuration discovery message to the first network device.
16. A communication device, the device comprising:
the processing unit is used for judging the working states of the access network interface and the local area network interface of the first network equipment;
the receiving and transmitting unit is used for transmitting a host configuration discovery message through the local area network interface if the access network interface is in a non-working state and the local area network interface is in a working state, wherein the host configuration discovery message is a dynamic host configuration protocol discovery DHCP discover message;
the processing unit is further configured to determine a first internet protocol address allocated to the first network device by the second network device included in the DHCP offer message if a response message sent by the second network device for the host configuration discovery message is received through the lan interface within a preset period of time and the response message is determined to be a DHCP offer message;
The processing unit is further configured to determine, if the first ip address is determined to be within a preset ip address range, that the working mode of the first network device is a first working mode;
the transceiver unit is further configured to obtain WiFi configuration information from the second network device if the working mode of the first network device is a first working mode.
17. The apparatus of claim 16, wherein the first mode of operation is an access point, AP, bridge mode.
18. The apparatus according to claim 16 or 17, wherein the processing unit is configured to:
and if the first internet protocol address is not in the preset internet protocol address range, determining that the working mode of the first network equipment is an Access Point (AP) routing mode.
19. The apparatus according to any of claims 16-18, wherein the preset internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
20. The apparatus of any one of claims 16-19, wherein the processing unit is further configured to:
And if the access network interface is in a working state or the local area network interface is in a non-working state, determining that the working mode of the first network equipment is an optical network terminal ONT mode.
21. The apparatus of any one of claims 16-20, wherein the processing unit is further configured to:
if a response message sent by the second network device for the host configuration discovery message is not received through the local area network interface within the preset time period, determining that the working mode of the first network device is an optical network terminal ONT mode.
22. The apparatus of any one of claims 16-21, wherein the processing unit is further configured to:
and if the random number included in the response message is the same as the random number included in the host configuration discovery message, determining that the response message is the response message of the host configuration discovery message.
23. The apparatus of any of claims 16-22, wherein the WiFi configuration information includes a WiFi username, a WiFi password.
24. The apparatus according to any of claims 16-23, wherein the access network interface is a passive optical network PON interface.
25. The apparatus of any of claims 16-24, wherein the local area network interface is a local area network LAN port or a wireless LAN port.
26. A communication device, the device comprising:
the receiving and transmitting unit is used for receiving a host configuration discovery message sent by the first network equipment through the local area network interface, wherein the host configuration discovery message is a dynamic host configuration protocol discovery DHCP discover message;
the transceiver unit is further configured to send a response packet for the host configuration discovery packet to the first network device according to a working mode of the second network device, where the response packet is a dynamic host configuration protocol response DHCP offer packet, and the dynamic host configuration protocol response DHCP offer packet includes a first internet protocol address allocated to the first network device, where the first internet protocol address is used to determine the working mode of the first network device;
the transceiver unit is further configured to send WiFi configuration information to the first network device if the working mode of the first network device is a first working mode.
27. The apparatus of claim 26, wherein the transceiver unit is further configured to:
If the working mode of the second network device is the second working mode, the first internet protocol address included in the response message is a first internet protocol address allocated to the first network device by the second network device, and the first internet protocol address is in a preset internet protocol address range.
28. The apparatus of claim 27, wherein the second operation mode is an optical network termination, ONT, mode.
29. The apparatus according to claim 27 or 28, wherein the preset internet protocol address range is an internet protocol address range defined based on RFC1918 private network address allocation protocol.
30. The apparatus according to any one of claims 26-29, wherein the transceiver unit is further configured to:
if the working mode of the second network device is an Access Point (AP) bridging mode, forwarding the host configuration discovery message to third network device, wherein the third network device supports Dynamic Host Configuration (DHCP) protocol;
receiving a response message of the third network device for the host configuration discovery message, wherein the response message comprises a first internet protocol address distributed by the third network device for the first network device, and the first internet protocol address is a public network IP address;
And forwarding a response message of the third network device to the host configuration discovery message to the first network device.
31. A computer readable storage medium storing instructions which, when executed, cause the method of any one of claims 1-10 to be implemented.
32. A computer readable storage medium storing instructions which, when executed, cause a method as claimed in any one of claims 11 to 15 to be implemented.
33. An apparatus, comprising: a processor, a memory and a transceiver;
the memory is used for storing a computer program;
the processor configured to execute a computer program stored in the memory to cause the apparatus to perform the apparatus of any one of claims 1-10.
34. An apparatus, comprising: a processor, a memory and a transceiver;
the memory is used for storing a computer program;
the processor configured to execute a computer program stored in the memory to cause the apparatus to perform the apparatus of any one of claims 11-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010241190.1A CN113473493B (en) | 2020-03-31 | 2020-03-31 | Communication method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010241190.1A CN113473493B (en) | 2020-03-31 | 2020-03-31 | Communication method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113473493A CN113473493A (en) | 2021-10-01 |
CN113473493B true CN113473493B (en) | 2023-06-30 |
Family
ID=77866008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010241190.1A Active CN113473493B (en) | 2020-03-31 | 2020-03-31 | Communication method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113473493B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114786241B (en) * | 2022-01-14 | 2024-02-20 | 浙江大华技术股份有限公司 | Network selection method, related device, network equipment and storage medium |
CN116055372B (en) * | 2022-08-24 | 2023-10-20 | 荣耀终端有限公司 | Network port type determining method, device, system and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572830A (en) * | 2012-01-19 | 2012-07-11 | 华为技术有限公司 | Method and customer premise equipment (CPE) for terminal access authentication |
WO2013026306A1 (en) * | 2011-08-19 | 2013-02-28 | 中兴通讯股份有限公司 | Method and system for allocating identifier and gateway address |
CN104066083A (en) * | 2013-03-18 | 2014-09-24 | 华为终端有限公司 | Method and device used for accessing wireless local area network |
WO2017092519A1 (en) * | 2015-12-04 | 2017-06-08 | 中兴通讯股份有限公司 | Device and method for acquiring ip address of home base station |
CN107370621A (en) * | 2017-07-07 | 2017-11-21 | 广州视源电子科技股份有限公司 | Hotspot sharing method, readable storage medium and hotspot sharing device |
-
2020
- 2020-03-31 CN CN202010241190.1A patent/CN113473493B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013026306A1 (en) * | 2011-08-19 | 2013-02-28 | 中兴通讯股份有限公司 | Method and system for allocating identifier and gateway address |
CN102572830A (en) * | 2012-01-19 | 2012-07-11 | 华为技术有限公司 | Method and customer premise equipment (CPE) for terminal access authentication |
CN104066083A (en) * | 2013-03-18 | 2014-09-24 | 华为终端有限公司 | Method and device used for accessing wireless local area network |
WO2017092519A1 (en) * | 2015-12-04 | 2017-06-08 | 中兴通讯股份有限公司 | Device and method for acquiring ip address of home base station |
CN107370621A (en) * | 2017-07-07 | 2017-11-21 | 广州视源电子科技股份有限公司 | Hotspot sharing method, readable storage medium and hotspot sharing device |
Non-Patent Citations (1)
Title |
---|
R3-195534 "Analysis on IP address management";Nokia等;《3GPP tsg_ran\wg3_iu》;20191005;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113473493A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11503509B2 (en) | Application server switching method, session management network element, and terminal device | |
CN110602724B (en) | Network configuration method and communication device | |
CN105430059A (en) | Smart client routing | |
US11784963B2 (en) | NAT traversal method, device, and system | |
CN113473493B (en) | Communication method and device | |
CN112104757A (en) | Method, equipment and system for configuring IP address | |
CN104969515A (en) | Methods and gateways for processing DNS request | |
CN103916484A (en) | IP-address configuring method and device | |
KR101159434B1 (en) | Network allocation | |
JP6693799B2 (en) | Relay method and corresponding communication network device, system, computer program and computer-readable storage medium | |
CN114666306B (en) | WebRTC network connection establishment method, server, electronic device and computer readable storage medium | |
WO2017166038A1 (en) | Communication method and terminal | |
JP7426409B2 (en) | Methods, devices, equipment and storage media for determining edge applications | |
CN114765600A (en) | IPv6 address configuration method and routing equipment | |
CN115174310B (en) | PDN dialing and configuration method, system, device, equipment and storage medium | |
US11622263B2 (en) | Wireless repeater device and configuration method for the same | |
US10873561B2 (en) | Method and apparatus for allocating IP parameter | |
CN112511440B (en) | Message forwarding method, system, storage medium and electronic equipment | |
CN112543386B (en) | Address acquisition method and related equipment | |
CN112969199A (en) | Data acquisition method and equipment | |
EP2961110A1 (en) | Packet transmission method and apparatus, and server | |
US20190182768A1 (en) | Terminal and operating method thereof | |
CN116094821B (en) | Route configuration method and device | |
US9485801B1 (en) | Mobile communication device connected to home digital network | |
US20160330169A1 (en) | Base station for ip communications with mobile terminal, and method for acquiring ip of base station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |