CN107920004A - A kind of method for connecting network of gateway, apparatus and system - Google Patents
A kind of method for connecting network of gateway, apparatus and system Download PDFInfo
- Publication number
- CN107920004A CN107920004A CN201610890187.6A CN201610890187A CN107920004A CN 107920004 A CN107920004 A CN 107920004A CN 201610890187 A CN201610890187 A CN 201610890187A CN 107920004 A CN107920004 A CN 107920004A
- Authority
- CN
- China
- Prior art keywords
- gateway
- network
- configuration information
- server
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000008569 process Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 12
- 238000007726 management method Methods 0.000 description 64
- 238000005192 partition Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 14
- 238000012423 maintenance Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2858—Access network architectures
- H04L12/2859—Point-to-point connection between the data network and the subscribers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- 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
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- 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)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method for connecting network of gateway, apparatus and system, wherein, this method includes:Gateway sends the request message for being used for obtaining IP address according to the configuration information of wide area network WAN connections to server, wherein, the configuration information of the WAN connections of multiple networks is stored with the gateway, which includes point-to-point protocol PPP servers and/or dynamic host configuration protocol DHCP server;The gateway carries out network connection according to the IP address that the server returns.WAN connection of the present invention by pre-setting each seed network in a gateway configures, so as to ensure that gateway accessing into every kind of network, can obtain IP address.Solve the problems, such as that gateway can not carry out network connection in heterogeneous networks in the prior art.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a network connection method, apparatus, and system for a gateway.
Background
With the development of broadband networks, gateways, especially intelligent home gateways, have secretly walked into the homes of common users. The home gateway device is accessed to the internet by dialing by means of the existing computer network technology, and is connected with a network Management platform by a client terminal device wide area network Management Protocol (CWMP) or other protocols based on a Transmission Control Protocol (TCP) mode, so that the aims of remote Management and remote monitoring are fulfilled.
However, as the number of terminal users increases, the network layout of operators becomes more and more complex; furthermore, as market competition increases, brand partitioning and integration becomes very common, and operator networks are artificially partitioned into several sub-networks. In an exemplary embodiment, the sub-networks a, B, C are included in an operator network, and a specific network corresponds to a specific version, and the customized intelligent home gateway devices cannot be commonly used in the sub-network a and the sub-network B due to different brands and different customizations. The VLAN configuration in the sub-network A is different from the VLAN configuration in the sub-network B, the intelligent home gateway device customized to the version A is accessed into the sub-network B, and the WAN connection of the wide area network cannot acquire an address, so that a user cannot surf the internet; the voice server settings of the sub-network A and the sub-network B are different, and the intelligent home gateway device customized to the A version is accessed into the sub-network B, so that the telephone set cannot talk.
How to manage the intelligent home gateway device in the current increasingly large and complex network so that the gateway can perform network connection in different sub-networks is a troublesome problem for operators.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a network connection method, an apparatus, and a system for a gateway, which implement that the same gateway performs network connection in different subnetworks and performs network upgrade.
The technical scheme of the embodiment of the invention is as follows:
a network connection method of a gateway comprises the following steps:
a gateway sends a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, wherein the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server;
and the gateway performs network connection according to the IP address returned by the server.
Further, after the gateway performs network connection according to the IP address returned by the server, the method further includes:
the gateway sends a connection request message for connecting the network management server to the network management server, wherein the connection request message carries identification bit information for identifying the current network connected by the gateway;
and the gateway is connected with the network management server according to the connection request response message returned by the network management server.
Further, the identification bit information includes: a source IP address and/or a virtual local area network identification (VLAN ID) of a network to which the gateway is currently connected.
Further, after the gateway connects with the network management server according to the connection request response message returned by the network management server, the method further includes:
the gateway receives the feature information of the software upgrading version sent by the network management server, wherein the feature information comprises the name and the downloading address of the software upgrading version;
the gateway acquires the software upgrading version according to the characteristic information;
the gateway carries out software upgrading according to the software upgrading version, and replaces first configuration information corresponding to a software basic version stored in a second configuration area with second configuration information corresponding to the software upgrading version, wherein the second configuration information is configuration information of WAN connection of a network currently connected with the gateway;
the gateway is provided with a first configuration area and a second configuration area, the first configuration area stores the first configuration information, the first configuration information is configuration information of WAN connection of all networks stored in the gateway, and the first configuration information in the first configuration area is kept unchanged in the software upgrading process.
Further, after the software upgrade is performed according to the software upgrade version, the method further includes:
replacing the second configuration information stored in the second configuration area with the first configuration information stored in the first configuration area; or,
replacing the second configuration information stored in the second configuration area with the first configuration information by restoring the software upgrade version to the software base version.
An embodiment of the present invention further provides a network connection device for a gateway, including:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server;
and the network connection module is used for carrying out network connection according to the IP address returned by the server.
Further, the apparatus further comprises:
a second sending module, configured to send, by the gateway, a connection request packet for connecting to the network management server after performing network connection according to the IP address returned by the server, where the connection request packet carries identification bit information that identifies a currently connected network of the gateway;
and the connection module is used for connecting with the network management server according to the connection request response message returned by the network management server.
Further, the apparatus further comprises:
the receiving module is used for receiving the feature information of the software upgrading version sent by the network management server after the connection with the network management server is carried out according to the connection request response message returned by the network management server, wherein the feature information comprises the name and the download address of the software upgrading version;
the acquisition module is used for acquiring the software upgrading version according to the characteristic information;
the upgrading module is used for upgrading software according to the software upgrading version and replacing first configuration information corresponding to a software basic version stored in a second configuration area with second configuration information corresponding to the software upgrading version, wherein the second configuration information is configuration information of WAN connection of a network currently connected with the gateway;
the gateway is provided with a first configuration area and a second configuration area, the first configuration area stores the first configuration information, the first configuration information is configuration information of WAN connection of all networks stored in the gateway, and the first configuration information in the first configuration area is kept unchanged in the software upgrading process.
Further, the apparatus further comprises:
a restoring module, configured to restore the first configuration information according to one of the following manners after performing software upgrade according to the software upgrade version:
replacing the second configuration information in the second configuration area with the first configuration information stored in the first configuration area; or,
and recovering the software upgrading version to the software basic version to obtain the first configuration information corresponding to the software basic version.
The embodiment of the invention also provides a network connection system of the gateway, which comprises the following components:
the gateway is used for sending a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, wherein the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server; and the server is used for carrying out network connection according to the IP address returned by the server.
The server is used for receiving the request message sent by the gateway; and returning the IP address.
The embodiment of the invention presets WAN connection configuration of various sub-networks in the gateway, thereby ensuring that the gateway can acquire IP addresses when accessing each network, and is connected to a network manager according to the IP addresses to upgrade the software version.
Description of the drawings:
fig. 1 is a first network connection method of a gateway according to an embodiment of the present invention;
fig. 2 is a first block diagram of a network connection device of a gateway according to an embodiment of the present invention;
fig. 3 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention;
fig. 4 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention;
fig. 5 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention;
FIG. 6 is a block diagram of a network connection system for a gateway according to an embodiment of the present invention;
FIG. 7 is an exemplary network scenario of an embodiment of the present invention;
fig. 8 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention;
fig. 9 is a flowchart of a network connection method of a gateway according to an embodiment of the present invention;
fig. 10 is a flowchart of a method for connecting a network management server of a gateway according to an embodiment of the present invention;
FIG. 11 is a flowchart of a method for managing software versions of a gateway according to an embodiment of the present invention;
fig. 12 is a software version partition diagram of a gateway according to an embodiment of the invention.
Detailed Description
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
The embodiment of the invention provides a network connection method of a gateway, which presets WAN connection configuration of various sub-networks in the gateway, thereby ensuring that the gateway can acquire an IP address when accessing to each network. Fig. 1 is a first network connection method of a gateway according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102: the gateway sends a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, wherein the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server;
step S104: and the gateway performs network connection according to the IP address returned by the server.
Typically, a sub-network is accessed and only one of all WAN connections can be adapted to it, so that only one of the WAN connections can obtain an address. The gateway can perform network connection in the following manner: firstly, a gateway simultaneously sends a connection request of WAN connection to a point-to-point protocol PPP server and a dynamic host configuration protocol DHCP server to carry out network connection, wherein the request carries configuration information of all network WAN connections; secondly, the gateway sends a WAN connection request to the server, the connection request carries part of WAN connection configuration information, and if the connection cannot be established on the network according to the part of WAN connection configuration information, other WAN connection configuration information is sent.
By the method, WAN connection configuration of various sub-networks is preset in the gateway, so that the gateway can be ensured to be accessed to each network and can acquire IP addresses.
Further, after the gateway performs network connection according to the IP address returned by the server, the method further includes:
the gateway sends a connection request message for connecting the network management server to the network management server, wherein the connection request message carries identification bit information for identifying the current network connected by the gateway;
the gateway connects with the network management server according to the connection request response message returned by the network management server.
After the gateway accesses a specific sub-network, the gateway can obtain the connection with the network management server by the method, and then the subsequent internet access operation is carried out.
Further, the identification bit information includes: the source IP address and/or the virtual local area network identification VLAN ID of the network to which the gateway is currently connected.
The identification bit information is not limited to the two kinds of information, and all information capable of representing the current network connected with the gateway can be sent to the network management server as the identification bit information. The network management server can judge which sub-network the gateway accesses according to the identification bit information, and sends a software version upgrading request to the gateway according to the upgrading strategy, wherein the version to be upgraded is the latest software version corresponding to the sub-network. After the software version is upgraded, the gateway can provide more comprehensive network service.
Further, after the gateway connects with the network management server according to the connection request response message returned by the network management server, the method further includes:
the gateway receives the feature information of the software upgrading version sent by the network management server, wherein the feature information comprises the name and the download address of the software upgrading version;
the gateway acquires the software upgrading version according to the characteristic information;
the gateway carries out software upgrading according to the software upgrading version, and replaces first configuration information corresponding to a software basic version stored in a second configuration area with second configuration information corresponding to the software upgrading version, wherein the second configuration information is configuration information of WAN connection of a network currently connected with the gateway;
the gateway is provided with a first configuration area and a second configuration area, the first configuration area stores the first configuration information, the first configuration information is configuration information of WAN connection of all networks stored in the gateway, and the first configuration information in the first configuration area is kept unchanged in the software upgrading process.
At least the two configuration areas exist in the gateway. The first configuration area stores configuration information corresponding to the software basic version, and the most important of the configuration information is the first configuration information, namely configuration information of WAN connection of all networks, and all information in the configuration area is not changed due to upgrading of the software version.
When the gateway is started, the second configuration area stores the configuration information corresponding to the software basic version, including the first configuration information. However, after the gateway accesses a specific network, the information in the second configuration area is changed into the configuration information corresponding to the software upgrade version along with the software version upgrade, and the configuration information includes the second configuration information, that is, the configuration information of the WAN connection of the network to which the gateway is currently connected. The configuration information of the second configuration area is used to provide a real network service.
Further, after the software upgrade is performed according to the software upgrade version, the method further includes:
replacing the second configuration information stored in the second configuration area with the first configuration information stored in the first configuration area; or,
replacing the second configuration information stored in the second configuration area with the first configuration information by restoring the software upgrade version to the software base version.
The first method is to replace the configuration information mainly by a special combination key (such as a Reset key and a Hestel key) or by a remote network management server sending an instruction to simulate the operation of the combination key.
After the basic version is recovered through the method, the gateway can be put into any sub-network, the WAN connection can be identified again, and the upgrading process of the corresponding sub-network software version is completed. The requirements of network maintenance and operator network change are met.
An embodiment of the present invention further provides a network connection device of a gateway, and fig. 2 is a first block diagram of the network connection device of the gateway according to the embodiment of the present invention, as shown in fig. 2, the device includes:
a first sending module 22, configured to send a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, where the gateway stores configuration information of the WAN connection of multiple networks, and the server includes a point-to-point protocol PPP server and/or a dynamic host configuration protocol DHCP server;
and the network connection module 24 is used for performing network connection according to the IP address returned by the server.
Further, fig. 3 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention, and as shown in fig. 3, the network connection device further includes:
a second sending module 32, configured to send, after the gateway performs network connection according to the IP address returned by the server, a connection request packet for connecting to the network management server, where the connection request packet carries identification bit information identifying a currently connected network of the gateway;
the connection module 34 is configured to connect with the webmaster server according to the connection request response message returned by the webmaster server.
Further, fig. 4 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention, and as shown in fig. 4, the network connection device further includes:
a receiving module 42, configured to receive feature information of the software upgrade version sent by the network management server after connecting with the network management server according to a connection request response packet returned by the network management server, where the feature information includes a name and a download address of the software upgrade version;
an obtaining module 44, configured to obtain the software upgrade version according to the feature information;
an upgrade module 46, configured to upgrade software according to the software upgrade version, and replace first configuration information corresponding to a software basic version stored in a second configuration area with second configuration information corresponding to the software upgrade version, where the second configuration information is WAN connection configuration information of a network to which the gateway is currently connected;
the gateway is provided with a first configuration area and a second configuration area, the first configuration area stores the first configuration information, the first configuration information is configuration information of WAN connection of all networks stored in the gateway, and the first configuration information in the first configuration area is kept unchanged in the software upgrading process.
Further, fig. 5 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention, and as shown in fig. 5, the network connection device further includes:
a restoring module 52, configured to restore the first configuration information after the software upgrade according to the software upgrade version according to one of the following manners:
replacing the second configuration information in the second configuration area with the first configuration information stored in the first configuration area; or,
and recovering the software upgrading version to the software basic version to acquire the first configuration information corresponding to the software basic version.
An embodiment of the present invention further provides a network connection system of a gateway, fig. 6 is a block diagram of a network connection system of a gateway according to an embodiment of the present invention, and as shown in fig. 6, the system includes a gateway and a server:
the gateway 62 is configured to send a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, where the gateway stores configuration information of the WAN connection of multiple networks, and the server includes a point-to-point protocol PPP server and/or a dynamic host configuration protocol DHCP server; and the server is used for carrying out network connection according to the IP address returned by the server.
The server 64, configured to receive the request message sent by the gateway; the IP address is returned.
Example one
In the operator network, a number of sub-networks, sub-network a, sub-network B, sub-network C … are included, and under each sub-network there are numerous intelligent home gateway devices. In an operator network, a network management system, that is, a network management server, is responsible for managing numerous intelligent home gateway devices, including configuration parameters, version upgrades, and the like. Fig. 7 is a representative network scenario of an embodiment of the present invention.
The following describes the implementation of the present invention in detail with reference to an exemplary embodiment of the present invention.
Fig. 8 is a block diagram of a network connection device of a gateway according to an embodiment of the present invention, and in fig. 8, among a plurality of modules of the smart home gateway, modules strongly related to the present invention include a WAN connection module 82, a network management module 84, and an upgrade management module 86.
WAN connection module 82: the intelligent home gateway comprises WAN connection configuration suitable for all sub-networks, and the WAN connection module 82 initiates network connection according to the connection configuration information to acquire addresses.
The network management module 84: after the WAN connection acquires the address, a message for establishing a connection request is sent to a network management server in an operator network through the module network management module 84; and after identifying the sub-network where the intelligent home gateway device is located, the network management server sends a software version upgrading request to the intelligent home gateway.
Upgrade management module 86: the upgrade management module 86 downloads the software version according to the information such as the name and address of the software version sent by the network management server, erases the content of the flash chip, and completes the upgrade process.
Fig. 9 is a flowchart of a network connection method of a gateway according to an embodiment of the present invention, and the following describes in detail the work flow of the WAN connection module 82 in an exemplary embodiment with reference to fig. 9.
Step S902: all WAN connections of the intelligent home gateway simultaneously initiate a dialing request;
after the intelligent home gateway is powered on and started and is accessed to a certain operator sub-network through a connection uplink, all WAN connections in default configuration simultaneously send connection requests to a point-to-point Protocol (PPP) server or a Dynamic Host Configuration Protocol (DHCP) server in the network. The PPP server may be a point-to-point protocol over ethernet PPPoE server or a point-to-point protocol over asynchronous transfer network PPPoA server.
Step S904: and acquiring the IP address of the current network according to certain WAN connection configuration information. The intelligent home gateway contains a WAN connection configuration applicable to all sub-networks. For example, in one exemplary network embodiment, the WAN connection required in the sub-network a environment is a PPPoE type, VLAN is a 100 WAN connection, while the WAN connection required in the sub-network B environment is a DHCP type, VLAN is a 200 WAN connection. In the base version for this operator, two WAN connections are included, a PPPoE type, VLAN 100 WAN connection, and a DHCP type, VLAN 200 WAN connection. All WAN connections of the WAN connection module 82 initiate connections simultaneously, attempting to obtain an IP address:
for the connection in the PPPoE mode, the WAN connection module 82 sends out a PPPoE discovery initial message, the PPPoE server sends out a PPPoE discovery providing message, the WAN connection module 82 sends out a PPPoE discovery request message after receiving the PPPoE discovery providing message, and the PPP server returns a PPPoE discovery session confirmation message. The WAN connection acquires an address during the session phase.
For the DHCP mode, the WAN connection module 82 initiates a Dynamic Host Configuration Protocol (DHCP) message interaction, the WAN connection module 821 sends a DHCP Discover request to the DHCP server, the DHCP server returns a DHCP Offer including an allocated address, the WAN connection module 82 returns a DHCPRequest after receiving the DHCP request, the DHCP server sends a DHCP ACK after confirming the DHCP request, and the WAN connection can acquire the address.
If all WAN connections can not acquire addresses, after a certain time interval, all WAN connections simultaneously send requests to a PPPoE server or a DHCP server in the network again; typically, a sub-network is accessed and only one of all WAN connections can be adapted to it, so that only one of the WAN connections can obtain an address. And after the WAN connection acquires the address, the WAN connection module stops continuing dialing.
Fig. 10 is a flowchart of a method for connecting a network management server of a gateway according to an embodiment of the present invention, and the following describes in detail a workflow of the network management module 84 in an exemplary embodiment with reference to fig. 10.
Step S1002: the intelligent home gateway device sends a message for establishing a connection request to a network management server in the operator network by using the address obtained by the WAN connection in step S904, and initiates the connection request;
if the connection is not possible, the process of connection is continued. And if the connection is available, completing the connection process with a network management server in the operator network.
Step S1004: the network management server can judge which sub-network the intelligent home gateway accesses through identification bit information in a request message sent by the equipment, such as different address fields where a source IP address requested by a network management is located, a VLAN ID connected with a WAN (virtual local area network) for obtaining the address or other identification bit information, and sends an upgrading request to the intelligent home gateway according to an upgrading strategy, wherein a version to be upgraded of software is usually the latest version corresponding to the sub-network;
step S1006: after receiving the upgrade request from the network management server, the network management module 84 notifies the upgrade management module 86 to obtain the software upgrade version and upgrade the software version.
The upgrade management module 86 notifies the network management module 84 that the upgrade is complete. After receiving the upgrade completion sent by the upgrade management module 86, the network management module 84 notifies the network management server.
Fig. 11 is a flowchart of a method for managing software versions of a gateway according to an embodiment of the present invention, and the following describes in detail a workflow of the upgrade management module 86 in an exemplary embodiment with reference to fig. 11.
The upgrade management module 86 of the gateway is divided into a Bootloader area, a version 1 area and a version 2 area.
Wherein the version 1 area is a main version area, and the version 2 area is a standby version area. The purpose of the design is to increase the reliability of the upgrading process of the intelligent home gateway and avoid the unrecoverable faults of the product, such as the product being unable to be normally started, caused by power failure, version error and the like. This is only a typical implementation way in this patent, and is not related to this patent, and is not described herein again. Fig. 12 is a software version partition diagram of a gateway according to an embodiment of the invention.
In the version 1 area, there are 4 parts:
the partition 501: the base version default configuration area is provided with,
the partition 502: the current profile area is then used to determine,
partition 503: a factory default configuration area, wherein the configuration area is provided with a plurality of configuration areas,
partition 504: a software version area.
When the intelligent home gateway product of the typical case is delivered from a factory by default, the version and the relevant configuration of the basic version are loaded in the version 1 area, and the loading conditions of each partition are as follows:
partition 501 has a default configuration area for the base version of the software loaded with the default configuration including WAN connections for all subnets.
The partition 502 current profile area, which is factory-matched with the base version default configuration area (501), contains the WAN connections of all subnets in the configuration information. If the user makes any configuration for the product, the configuration is saved to the current profile area.
The partition 503 is a factory default configuration area, and is configured in accordance with the basic version default configuration area (501) at the time of factory shipment, wherein the configuration information includes WAN connections of all subnetworks.
Partition 504 is a software version area, the loaded version being the base version.
The upgrade management module 86 workflow is as follows:
step S1102: after the upgrade management module 86 receives the notification from the network management module 84, the upgrade management module 86 performs the erasing operation of the version 1 region to complete the upgrade of the software version.
After the flash is erased and written, the version 1 area is changed after the intelligent home gateway is started, and the intelligent home gateway can be normally used in the corresponding sub-network. The following describes the case of each partition:
the base version default configuration area (partition 501) is the only configuration that is unchanged, and the default configuration that is still the base version is loaded, which contains the WAN connections for all subnetworks. This leaves a fire for later product maintenance and operator network re-planning;
after the software version of the current configuration file area (partition 502) is upgraded, the current configuration file area is consistent with the configuration information of the factory default configuration area (partition 503). At the later stage, if the user makes any configuration on the product, the configuration is stored in the current configuration file area;
a factory default configuration area (partition 503), after the software version is upgraded, the default configuration of the basic version is changed into the default configuration corresponding to the version of the current connecting sub-network;
software version area (partition 504): the version of the software upgrade required for the upgrade policy is typically the latest version corresponding to the sub-network.
The configuration for actually providing the web service is the configuration of the current profile area (partition 502), and the page can see the configuration of the area 502 as well.
The area 501 stores the default configuration of the base version and the area 503 stores the default configuration of the factory. Before upgrading the sub-network version, the configurations of the 501 area and the 503 area are the same, and are both the configuration information corresponding to the base software version. After the upgrade, 503 area becomes the configuration information corresponding to the sub-network version, 501 is still the configuration information of the basic version. 501 and 503 are stored in order to copy the configuration information therein to the 502 area under a certain scenario. Such an implementation may be used to:
(1) when factory configuration information needs to be restored, the configuration information of the 503 area can be copied to the 502 area, and the home gateway is started in a subnet default configuration;
(2) when the default configuration of the basic version needs to be restored, the configuration of 501 can be taken out and copied to the area 502, and the home gateway is started up according to the default configuration of the basic version.
Step S1104: the configuration information of the current configuration file area (partition 502) is changed into the default configuration of the basic software version in a mode of copying the configuration information by a combination key or in a mode of recovering the software upgrading version to the basic software version to obtain the corresponding configuration information.
The first method is to copy the configuration information of the partition 501 pair to the partition 502 mainly by a special combination key (such as a Reset key + a Hestel key) or by a way that a remote network management server sends an instruction to simulate the operation of the combination key, so as to complete the replacement of the configuration information.
In the second mode, the existing software upgrading version can be restored to the basic version through remote upgrading, and the version can also be restored through a local page mode. And after the current software upgrading version is restored to the basic version, the home gateway is restored to the default configuration of the basic version by default.
After the intelligent home gateway is restarted, the home gateway is started up according to the default configuration of the basic version.
After the basic version is pressed or upgraded, the product is put into any sub-network, and the process of identifying WAN connection and upgrading the corresponding sub-network version can be completed again. The requirements of network maintenance and operator network change are met.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A network connection method of a gateway, comprising:
a gateway sends a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, wherein the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server;
and the gateway performs network connection according to the IP address returned by the server.
2. The method of claim 1, wherein after the gateway makes a network connection based on the IP address returned by the server, the method further comprises:
the gateway sends a connection request message for connecting the network management server to the network management server, wherein the connection request message carries identification bit information for identifying the current network connected by the gateway;
and the gateway is connected with the network management server according to the connection request response message returned by the network management server.
3. The method of claim 2, wherein the identification bit information comprises: a source IP address and/or a virtual local area network identification (VLAN ID) of a network to which the gateway is currently connected.
4. The method according to claim 2, wherein after the gateway connects with the network management server according to the connection request response message returned by the network management server, the method further comprises: :
the gateway receives the feature information of the software upgrading version sent by the network management server, wherein the feature information comprises the name and the downloading address of the software upgrading version;
the gateway acquires the software upgrading version according to the characteristic information;
the gateway carries out software upgrading according to the software upgrading version, and replaces first configuration information corresponding to a software basic version stored in a second configuration area with second configuration information corresponding to the software upgrading version, wherein the second configuration information is configuration information of WAN connection of a network currently connected with the gateway;
the gateway is provided with a first configuration area and a second configuration area, the first configuration area stores the first configuration information, the first configuration information is configuration information of WAN connection of all networks stored in the gateway, and the first configuration information in the first configuration area is kept unchanged in the software upgrading process.
5. The method of claim 4, wherein after a software upgrade pursuant to the software upgrade version, the method further comprises:
replacing the second configuration information stored in the second configuration area with the first configuration information stored in the first configuration area; or,
replacing the second configuration information stored in the second configuration area with the first configuration information by restoring the software upgrade version to the software base version.
6. A network connection device of a gateway, comprising:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server;
and the network connection module is used for carrying out network connection according to the IP address returned by the server.
7. The apparatus of claim 6, wherein the apparatus further comprises:
a second sending module, configured to send, after the gateway performs network connection according to the IP address returned by the server, a connection request packet for connecting to the network management server, where the connection request packet carries identification bit information identifying a currently connected network of the gateway;
and the connection module is used for connecting with the network management server according to the connection request response message returned by the network management server.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the receiving module is used for receiving the feature information of the software upgrading version sent by the network management server after the connection with the network management server is carried out according to the connection request response message returned by the network management server, wherein the feature information comprises the name and the download address of the software upgrading version;
the acquisition module is used for acquiring the software upgrading version according to the characteristic information;
the upgrading module is used for upgrading software according to the software upgrading version and replacing first configuration information corresponding to a software basic version stored in a second configuration area with second configuration information corresponding to the software upgrading version, wherein the second configuration information is configuration information of WAN connection of a network currently connected with the gateway;
the gateway is provided with a first configuration area and a second configuration area, the first configuration area stores the first configuration information, the first configuration information is configuration information of WAN connection of all networks stored in the gateway, and the first configuration information in the first configuration area is kept unchanged in the software upgrading process.
9. The apparatus of claim 8, wherein the apparatus further comprises:
a restoring module, configured to restore the first configuration information according to one of the following manners after performing software upgrade according to the software upgrade version:
replacing the second configuration information in the second configuration area with the first configuration information stored in the first configuration area; or,
and recovering the software upgrading version to the software basic version to obtain the first configuration information corresponding to the software basic version.
10. A network connection system of a gateway comprises the gateway and a server, and is characterized in that:
the gateway is used for sending a request message for acquiring an IP address to a server according to configuration information of WAN connection of a wide area network, wherein the gateway stores the configuration information of the WAN connection of a plurality of networks, and the server comprises a point-to-point protocol (PPP) server and/or a Dynamic Host Configuration Protocol (DHCP) server; and the server is used for carrying out network connection according to the IP address returned by the server.
The server is used for receiving the request message sent by the gateway; and returning the IP address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610890187.6A CN107920004B (en) | 2016-10-11 | 2016-10-11 | Network connection method, device and system of gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610890187.6A CN107920004B (en) | 2016-10-11 | 2016-10-11 | Network connection method, device and system of gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107920004A true CN107920004A (en) | 2018-04-17 |
CN107920004B CN107920004B (en) | 2022-07-08 |
Family
ID=61892792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610890187.6A Active CN107920004B (en) | 2016-10-11 | 2016-10-11 | Network connection method, device and system of gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107920004B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114286420A (en) * | 2021-12-21 | 2022-04-05 | 深圳创维数字技术有限公司 | Locking method, device, server and medium of gateway based on PON technology |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120096175A1 (en) * | 2009-04-20 | 2012-04-19 | Diamantis Kourkouzelis | Dynamic adjustment of connection setup request parameters |
CN103095654A (en) * | 2011-10-31 | 2013-05-08 | 华为技术有限公司 | Virtual local area network (VLAN) configuration method, wireless access point and network control point |
CN103856571A (en) * | 2012-11-30 | 2014-06-11 | 重庆重邮信科通信技术有限公司 | Self-adaptive network connection method and system |
CN103973474A (en) * | 2013-02-01 | 2014-08-06 | 苏州方位通讯科技有限公司 | Network terminal update configuration method |
CN103997428A (en) * | 2014-03-13 | 2014-08-20 | 杭州古北电子科技有限公司 | Fast intelligent network interface type detection, configuration and guide system |
CN104348928A (en) * | 2013-07-31 | 2015-02-11 | 华为技术有限公司 | Method for assigning address resources, management device, request device, and system |
CN104869177A (en) * | 2014-02-21 | 2015-08-26 | 中兴通讯股份有限公司 | Local area network information issuing method and device |
-
2016
- 2016-10-11 CN CN201610890187.6A patent/CN107920004B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120096175A1 (en) * | 2009-04-20 | 2012-04-19 | Diamantis Kourkouzelis | Dynamic adjustment of connection setup request parameters |
CN103095654A (en) * | 2011-10-31 | 2013-05-08 | 华为技术有限公司 | Virtual local area network (VLAN) configuration method, wireless access point and network control point |
CN103856571A (en) * | 2012-11-30 | 2014-06-11 | 重庆重邮信科通信技术有限公司 | Self-adaptive network connection method and system |
CN103973474A (en) * | 2013-02-01 | 2014-08-06 | 苏州方位通讯科技有限公司 | Network terminal update configuration method |
CN104348928A (en) * | 2013-07-31 | 2015-02-11 | 华为技术有限公司 | Method for assigning address resources, management device, request device, and system |
CN104869177A (en) * | 2014-02-21 | 2015-08-26 | 中兴通讯股份有限公司 | Local area network information issuing method and device |
CN103997428A (en) * | 2014-03-13 | 2014-08-20 | 杭州古北电子科技有限公司 | Fast intelligent network interface type detection, configuration and guide system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114286420A (en) * | 2021-12-21 | 2022-04-05 | 深圳创维数字技术有限公司 | Locking method, device, server and medium of gateway based on PON technology |
CN114286420B (en) * | 2021-12-21 | 2023-09-05 | 深圳创维数字技术有限公司 | PON technology-based gateway locking method, device, server and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107920004B (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2549126C2 (en) | Method and system for installing and updating software of application terminal in home network | |
CN101296203B (en) | Device, system and method for automatically configuring application terminal in family network | |
US7159016B2 (en) | Method and apparatus for configuring an endpoint device to a computer network | |
CN101164283B (en) | Method and system for initial configuration of managed devices | |
US20070016658A1 (en) | Digital network modem and configuration system for a digital network modem | |
CN1933493B (en) | IP set-top box dynamic configuring IP method based on DHCP protocol | |
CN103209083B (en) | A kind of device updating method | |
CN112328262A (en) | Deployment method, system and device of operating system and electronic equipment | |
CN101860545A (en) | System and method for implementing automatic configuration of equipment | |
EP1780940A1 (en) | High availability network systems | |
CN101035016A (en) | Terminal equipment configuration system and method | |
CN104767649A (en) | Bare metal server deployment method and device | |
CN101247297A (en) | Device, system and method for automatic configuration of application terminals in home network | |
CN103957117A (en) | System and method for achieving intelligent installation of network equipment | |
CN106572200A (en) | IP address configuration method and IP address configuration device for baseboard management controller BMC | |
CN113645068B (en) | Method for realizing automatic deployment and computer readable storage medium | |
CN103973474A (en) | Network terminal update configuration method | |
CN100362800C (en) | A method of triggering a user terminal to go online through a data message | |
CN106412146B (en) | The method and apparatus that a kind of dhcp client updates IP | |
CN107968725B (en) | Method and device for returning and configuring configuration information of home gateway unit type terminal device | |
CN104811470A (en) | Point-to-point transmission method and network connection device | |
CN107920004B (en) | Network connection method, device and system of gateway | |
JP2006222929A (en) | Network system | |
CN100471159C (en) | A method for automatic configuration of cable bridge equipment | |
EP1881639A1 (en) | A method and system for cpecf (customer premises equipment configuration function) obtaining the terminal equipment information and configuring the terminal equipment |
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 |