[go: up one dir, main page]

WO2018161215A1 - Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé - Google Patents

Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé Download PDF

Info

Publication number
WO2018161215A1
WO2018161215A1 PCT/CN2017/075756 CN2017075756W WO2018161215A1 WO 2018161215 A1 WO2018161215 A1 WO 2018161215A1 CN 2017075756 W CN2017075756 W CN 2017075756W WO 2018161215 A1 WO2018161215 A1 WO 2018161215A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
network
role
mode
gateway
Prior art date
Application number
PCT/CN2017/075756
Other languages
English (en)
Chinese (zh)
Inventor
吴铁军
胡忠良
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/075756 priority Critical patent/WO2018161215A1/fr
Publication of WO2018161215A1 publication Critical patent/WO2018161215A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Definitions

  • the present application relates to the field of communications, and in particular, to a method for automatically switching a working mode of a network device and a network device thereof.
  • the network generally consists of a home gateway plus multiple devices.
  • home networks have gradually expanded, and the typical scenario is the extension of Wi-Fi networks.
  • a Wi-Fi relay (Access Point, AP) device In order to extend the use of Wi-Fi in the home network, a Wi-Fi relay (Access Point, AP) device is usually used.
  • the AP device accesses the home network in a bridging manner, so that devices linked to the AP can directly connect directly with other devices in the home network.
  • router devices are used in the home network, and these routers are part of the home network.
  • the terminal devices in the home network that are linked to different routers cannot be directly in the local area network (LAN). Communication needs to be forwarded through one or more routers.
  • LAN local area network
  • China Telecom defines the management specifications of the external AP, and requires that the network devices (mainly including routers and AP devices) in the home network need to use the bridge mode. Therefore, it is necessary to configure the cascaded network devices in the home network to be in a bridged working mode.
  • the networking mode of the current home network device manufacturer is manually configured through the World Wide Web (WEB) page, so that the network device switches between the bridge mode and the route mode, and the user performs networking according to the network working mode of the device, and according to The use of devices in the home network, the working mode configuration of the cascaded routing device, manual switching to the bridge mode through the WEB page.
  • WEB World Wide Web
  • the current switching method requires high technical requirements for users. Users need to know the working mode and networking mode of the home network device. It is necessary to have tools for accessing the home network device to configure the working mode of the device (such as a personal computer and a browser).
  • the networking mode (bridge mode or routing mode) of the home network device cannot be changed once it is set. When the networking relationship of the home network changes, the mode of the related home network device needs to be reconfigured, and the network maintenance cost is high. .
  • the embodiment of the present application provides a method for automatically switching a working mode of a network device and a network device thereof, where the network device can automatically switch the working mode when the state of the network device of the home network changes.
  • An embodiment of the present application provides a method for automatically switching a working mode of a network device, which specifically includes:
  • the home network With the gradual increase of network devices in the home network, in order to expand the use of the network, the home network often needs to be extended by the cascading device.
  • the working mode of the network device can be automatically switched, Will reduce network maintenance costs.
  • the first network device determines whether there is a presence in the home network. There is a change in the status of the network device, and if so, the network device that changes according to the status determines its own network role; if the first network device determines that its own network role is the gateway device, the first network device will The working mode of the network device is automatically configured to be in the routing mode.
  • the first network device When the first network device determines that its network role is a cascading device, the first network device automatically configures its working mode to be in the bridging mode. In the embodiment of the present application, after determining the network role of the first network device, the first network device automatically switches its working mode, thereby reducing the cost of network maintenance.
  • determining the first network device Network roles include:
  • the state of the first network device changes, that is, when the first network device joins the home network as a new network device, the state of the first network device changes from offline to online or the network of the first network device in the home network
  • the first network device will sense the change of its own state, and send the first request information to the second network device, where the sending mode is to all the home network.
  • the second network device broadcasts, wherein the second network device is a network device other than the first network device in the home network.
  • the second network device After receiving the first request message, the second network device sends a first feedback message to the first network device, where the first feedback message carries the IP of the second network device, and the first network device receives the first feedback according to the first feedback message.
  • the information determines the network roles of all the second network devices, and then the first network device determines its own network role according to the network role of the second network device.
  • the network function of the first network device is determined according to the change of the state of the first network device, and the achievability of the embodiment of the present application is increased, and the burden of the first network device is reduced. Improve the efficiency of the first network device.
  • the determining, by the first network device, the network role of the first network device according to the network role of the second network device includes:
  • the number of the gateway devices in the second network device is determined.
  • the first network device finds that there is one or more gateway devices in the second network device, that is, when the first network device finds that the gateway device exists in the second network device, the first network device will The network device is determined to be a cascading device; when the first network device finds that there is no gateway device in the second network device, but the first network device senses that it has acquired its own WAN port IP, at this time, the first network device will The network device is determined to be the gateway device.
  • the first network device finds that there is no gateway device in the second network device and does not obtain the WAN port IP, the first network device will maintain the current network role.
  • the embodiment of the present application specifically describes how the first network device determines the network role of the first network device according to the network role of the second network device, which enriches the specific implementation manner of this embodiment.
  • the method further includes:
  • the first network device sends a second request message to the second network device, where the specific sending manner is to broadcast in the home network, so that the network device in the home network receives the message, where the second request message carries the first network.
  • the IP of the device so that after the second network device receives the second request message sent by the first network device, the working mode is configured Set to bridge mode.
  • the first network device after the first network device learns that the gateway device does not exist in the second network device, and the network device itself obtains the WAN port IP, the first network device also needs to send the second request message to the second network device, enriching The implementation of this embodiment.
  • determining the first network device Network roles include:
  • the fourth network device When the state of the fourth network device in the home network changes, that is, when the fourth network device joins the home network as a new network device, the state of the fourth network device changes from offline to online, and the state of the fourth network device When changing from online to offline or when the role of the fourth network device in the home network is switched (the gateway device and the cascade device are interchanged), the fourth network device will sense that its own state changes, generate and broadcast a third request message.
  • each third network device in the home network will broadcast a second feedback message in the home network, where the second feedback message carries the IP of the third network device, when the first network device After receiving the second feedback message, the network role of the third network device is obtained according to the second feedback message, and then the first network device determines the network role of the third network device according to the network role of the third network device, where The third network device is a fourth network device in the home network and other network devices than the first network device.
  • how the first network device determines the network role of the first network device is specifically described, which enriches the implementation means of the embodiment of the present application.
  • the first network device determines that the state of the at least one network device in the home network changes, determining the first network.
  • the network roles of the device include:
  • the first network device When the first network device senses that it is powered on or goes online, it will obtain its own IP and then obtain its own network role according to the IP. In the embodiment of the present application, the first network device can obtain its own network role according to the IP address of the network port, and the achievability of the embodiment of the present application is increased.
  • the acquiring, by the first network device, the network role of the first network device according to the first network device IP includes:
  • the first network device After the first network device obtains its own IP, it will determine its own network role according to the type of the IP. When the first network device determines that its IP type belongs to the WAN type, it will determine its own network role as The gateway device; when the first network device determines that the type of its own IP belongs to the local area network type, it will determine its own network role as the cascading device.
  • the first network device is specifically configured to obtain its own network role according to its own IP, which increases the achievability and operability of the embodiment of the present application.
  • the first network device determines that the state of the at least one network device in the home network changes, determining the first After the network role of the network device, the method further includes:
  • the first network device When the first network device is a gateway device, the first network device further needs to broadcast a first switching instruction to the fifth network device in the home network, where the first switching instruction indicates that the working mode of the fifth network device is configured as a bridge mode.
  • the fifth network device is a network device other than the first network device in the home network.
  • the first network device if the first network device is a gateway device, the first network device further needs to send a first switching instruction to the fifth network device, so that the fifth network can configure its working mode as the bridge mode according to the instruction. , adding the embodiment of the present application Achievability.
  • the gateway device in the fifth network device broadcasts a second switching instruction to the home network, where the first network device will Receiving the second switching instruction, and configuring the working mode to be a bridge mode according to the second switching instruction, wherein the second switching instruction indicates that the working mode of the first network device is configured to be a bridge mode.
  • the second switching instruction from the fifth network device is received, so that the working mode of the first network device is configured as a bridge mode, and the implementation of the application is added. The achievability of the example.
  • a second aspect of the embodiment of the present application provides a network device, including:
  • a determining unit configured to determine a network role of the first network device when the first network device determines that a state of the at least one network device exists in the home network
  • the first configuration unit is configured to: when the determining unit determines The network function of the first network device is a gateway device, and the working mode is configured as a routing mode
  • the second configuration unit is configured to: when the determining unit determines that the network role of the first network device is a cascading device, The working mode is configured as a bridge mode.
  • the first network device after determining the network role of the first network device, the first network device automatically switches its working mode, thereby reducing the cost of network maintenance.
  • the determining unit includes:
  • a sending subunit configured to: when the first network device determines that the state of the first network device changes, send a first request message to the second network device, where the second network device is in the home network a first receiving subunit of the first network device, configured to receive a first feedback message of the second network device, where the first feedback message carries a network between the networks of the second network device
  • the first feedback message is sent by the second network device according to the first request message
  • the first obtaining subunit is configured to receive the first feedback message according to the receiving subunit
  • the first network device is specifically configured to determine the network role of the first network device, which increases the achievability of the embodiment of the present application, reduces the burden on the first network device, and improves the first network device. Work efficiency.
  • the determining subunit includes:
  • a first determining module configured to determine, according to the network role of the second network device, that one or more gateway devices are present in the second network device, determining that the network role of the first network device is a cascading device
  • a second determining module configured to: when it is learned that the gateway device is not present in the second network device according to the network role of the second network device, and the first network device acquires the WAN port IP of the WAN, determine the The network function of the first network device is a gateway device, and the holding module is configured to learn, according to the network role of the second network device, that the gateway device does not exist in the second network device, and the first network device does not obtain the When the WAN port is IP, the first network device maintains the current network role.
  • the embodiment of the present application specifically describes how the first network device determines the network role of the first network device according to the network role of the second network device, and enriches the specific implementation of the embodiment. formula.
  • the network device further includes:
  • a sending module configured to send a second request message to the second network device, where the second request message instructs the second network device to configure an operating mode to a bridging mode.
  • the first network device after the first network device learns that the gateway device does not exist in the second network device, and the network device itself obtains the WAN port IP, the first network device also needs to send the second request message to the second network device, enriching The implementation of this embodiment.
  • the determining unit includes: (when the network device whose state changes is not the first network device)
  • a second receiving subunit configured to receive a second feedback message, where the second feedback message is sent by the third network device according to the third request message, where the second feedback information carries an IP of the third network device,
  • the third request message is generated by the fourth network device and is broadcast in the home network, where the fourth network device is a network device whose status is changed in the home network, and the third network device is the first network device except the first network device and a network device other than the fourth network device; a second obtaining subunit, configured to acquire a network role of the third network device according to the second feedback message; and a second determining subunit, configured to use, according to the third network
  • the network role of the device determines the network role of the first network device. In the embodiment of the present application, how the first network device determines the network role of the first network device is specifically described, which enriches the implementation means of the embodiment of the present application.
  • the determining unit includes:
  • a third acquiring subunit configured to acquire the first network device IP when the first network device determines that the state of the first network device changes
  • the fourth acquiring subunit is configured to be used according to the first
  • the network device IP acquires a network role of the first network device.
  • the first network device can obtain its own network role according to the IP address of the network port, and the achievability of the embodiment of the present application is increased.
  • the fourth acquiring subunit includes:
  • a third determining module configured to determine, when the type of the first network device IP is a WAN type, a network role of the first network device as a gateway device, and a fourth determining module, configured to determine the first
  • the network role of the first network device is determined to be a cascading device.
  • the first network device is specifically configured to obtain its own network role according to its own IP, which increases the achievability and operability of the embodiment of the present application.
  • the network device further includes:
  • a sending unit configured to: when the network role of the first network device is a gateway device, send a first switching instruction to the third network device, where the first switching instruction indicates that the working mode of the third network device is configured as a bridge a mode, the third network device is another network device in the home network except the first network device.
  • the first network device if the first network device is a gateway device, the first network device needs to go to the first The fifth network device sends the first switching instruction, so that the fifth network can configure its working mode as the bridging mode according to the instruction, and the implementation of the application is added. The achievability of the example.
  • a receiving module configured to: when the network role of the first network device is a cascading device, receive a second switching instruction sent by the gateway device in the fifth network device, and operate the mode according to the second switching instruction
  • the configuration is a bridge mode
  • the second switching instruction indicates that the working mode of the first network device is configured as a bridge mode.
  • the first network device is a cascading device
  • the second switching instruction from the fifth network device is received, so that the working mode of the first network device is configured as a bridge mode, and the implementation of the application is added. The achievability of the example.
  • a third aspect of the embodiments of the present application provides a network device, including:
  • the network device can automatically switch its working mode and reduce network maintenance costs.
  • the embodiments of the present application have the following advantages:
  • the network role of the first network device when the first network device determines that the state of the at least one network device in the home network changes, the network role of the first network device is determined, if the network role of the first network device The gateway device configures the working mode as a routing mode; if the network role of the first network device is a cascading device, the first network device configures the working mode as a bridge mode .
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • FIG. 1 is a schematic structural diagram of a network in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a discovery protocol framework of UPnP according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of an embodiment of a method for automatically switching a working mode of a network device according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of another embodiment of a method for automatically switching a working mode of a network device according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of another embodiment of a method for automatically switching a working mode of a network device according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of an embodiment of a network structure in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an embodiment of a network device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another embodiment of a network device according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another embodiment of a network device according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another embodiment of a network device according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another embodiment of a network device according to an embodiment of the present application.
  • the embodiment of the present invention provides a method for automatically switching a working mode of a network device and a network device thereof, which are used to automatically configure an operating mode of the network device and reduce maintenance cost of the network device.
  • FIG. 1 is a cascading network device (referred to as a router in the embodiment of the present application) accessing a gateway device in a routing mode.
  • China Telecom defines the management specifications of the external AP devices, and requires that the working modes of the extended network devices (cascading devices) in the home network use the bridge mode, and the gateway devices in the home network.
  • the working mode uses the routing mode. Therefore, the working mode of the cascading device in the home network needs to be configured as a bridge mode, and the working mode of the gateway device in the home network is configured as a routing mode.
  • the network device in the embodiment of the present application may use a Universal Plug and Play (UPnP) protocol, and may also use other protocols.
  • UnP Universal Plug and Play
  • the network device developer defines the protocol.
  • the specific protocol is not limited herein.
  • the UPnP protocol is a set of network protocols promoted by the UPnP TM Forum.
  • the goal of the agreement is to enable home networks (data sharing, communication and entertainment) and various devices in the corporate network to be seamlessly connected to each other, ie in a home network or a corporate network, between two or more terminal devices Communicate with each other regardless of their physical location and simplify the implementation of the relevant network.
  • UpnP achieves this by defining and publishing UPnP device control protocols based on open, Internet communication network protocol standards.
  • the current home network discovery protocol is generally implemented based on a Transmission Control Protocol (TCP) broadcast message.
  • UPnP is a relatively mature home network discovery protocol in the industry.
  • the discovery protocol framework of UPnP is shown in Figure 2. Because UPnP is extended based on the HTTP HyperText Transfer Protocol (HTTP) protocol, any legal field can be added to the HTTP header. We can enable devices in the home network to see each other's working modes.
  • HTTP HyperText Transfer Protocol
  • the Device Network Type (DNT) field can be added. This field is an optional field if the device It is a network device and is used to describe the network working mode of the device.
  • the premise that the working mode of the network device is automatically switched is that the user configuration recorded in the user configuration in the network device is configured as an adaptive mode.
  • the network device in the home network determines its own network role through negotiation between network devices.
  • the network device's own network role needs to be determined through mutual negotiation between the network devices in the home network, and then the network device configures its own working mode according to its own network role.
  • an embodiment of a method for automatically switching a working mode of a network device in the embodiment of the present application includes:
  • the first network device sends first request information to a network device in the home network.
  • the first request message is broadcasted to the home network according to the change, and the first request message requests to know the network of other network devices in the home network.
  • the second network device in the home network will receive the first request message.
  • other network devices except the first network device in the home network are referred to as the second network device.
  • the scenario in which the first network device senses that its state has changed may be that the first network device joins the home network as a new network device, and the state of the first network device changes from offline to online or the first network device. Network roles in the home network are switched.
  • the second network device sends a first feedback message to the network device in the home network.
  • the second network device after the second network device receives the first request message sent by the first network device, the second network device broadcasts the first feedback message in the home network according to the request message, where the first network device will The first feedback message sent by the second network device is received according to the broadcast, where the first feedback message should carry the IP of the second network device, and the first feedback message may carry the current working mode of the second network device, or The first network device determines the network role of the second network device according to the IP information.
  • the first network device determines its own network role according to the first feedback message. If the first network device is a gateway device, step 304 is performed. If the first network device is a cascade device, step 305 is performed.
  • the first network device acquires the network role of the second network device according to the first feedback message, and the specific acquiring method is According to the IP of the second network device carried in the first feedback message, when the type of the IP is a WAN type, the first network device determines that the network role of the second network device is a gateway device, and when the type of the IP is a local area network type The first network device determines that the network role of the second network device is a cascading device; after the first network device acquires the network role of each second network device, it determines the acquired network of the second network device. The number of the gateway devices in the role.
  • the first network The device determines that its own network role is a cascading device; when the second network device acquired by the first network device does not have a gateway device, that is, the obtained network The number of the device is 0, and the first network device obtains the IP of the WAN. At this time, the first network device determines its own network role as the gateway device; when the first network device acquires the second network device The gateway device does not exist, that is, the number of the obtained gateway devices is 0, but the first network device does not obtain the IP of the WAN. At this time, the first network device determines its own network role as the cascade device. .
  • a network device will also broadcast a second request message in the home network, wherein the second request message indicates that the device receiving the message configures the working mode to be in a bridge mode, in which the second request message is written in the second request message.
  • the IP address of a network device so that the network device that receives the message in the home network knows that the gateway device exists in the home network, and then the network device that receives the message in the home network locates its own network role as a cascading device, and then according to Your own network role configures its working mode to bridge mode.
  • the first network device configures the working mode as a path. By mode.
  • the first network device configures the working mode as the routing mode, where the first network device is current.
  • the working mode is the bridge mode
  • the first network device switches its working mode to the routing mode; if the current working mode of the first network device is the routing mode, the first network device maintains the current status.
  • the first network device configures the working mode as a bridging mode.
  • the first network device configures the working mode as the bridging mode, in which, if the first network device is currently The working mode is the routing mode, and the first network device switches its working mode to the bridging mode; if the current working mode of the first network device is the bridging mode, the first network device maintains the current status.
  • the state change in the home network is not the first network device, but a device other than the first network device, such as the fourth network device, that is, when the fourth network device is added as a new network device.
  • the first network device determines its own network.
  • An embodiment of the role is that when the fourth network device senses that its state changes, the third request message is generated and broadcast according to the state change information, when each third network device in the home network receives the third request.
  • the second feedback message is broadcasted in the home network according to the third request message, where the second feedback message carries the IP of the third network device, and after receiving the second feedback message, the first network device will Obtaining a network role of the third network device according to the second feedback message, and then the first network device is further configured according to the network of the third network device Color to determine their role in the network, wherein the third network device to other network devices in the home network in addition to the first and fourth network equipment network equipment.
  • the first network device determines, according to the state change of the network device in the home network, the second network device determines the network role of the first network device, if the network role of the first network device is the gateway device.
  • the first network device configures the working mode as the routing mode; if the network role of the first network device is the cascading device, the first network device configures the working mode to the bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • the network device itself determines its own network role.
  • network devices in the home network are not required to negotiate with each other, that is, independent of other network devices in the home network, and the network device independently determines its own network role, and then the network device works on its own according to its own network role. Mode to configure. .
  • another embodiment of a method for automatically switching a network device working mode in an embodiment of the present application includes:
  • the first network device acquires its own IP according to its own state change.
  • the first network device when the first network device senses that it is powered on or goes online, it will actively acquire its own IP.
  • a specific example is that when the first network device is started, the first network device waits for an online event of the network port. If the network port is online, the IP address is obtained.
  • the first network device obtains its own network role according to its own IP. If the first network device is a gateway device, step 403 is performed. If the first network device is a cascade device, step 404 is performed.
  • the IP after the first network device obtains its own IP, the IP will be type-determined. If the type of the IP determined by the first network device is a WAN type, determining that the network role of the first network device is a gateway device; if the first network device determines that the type of the IP of the first network device is a local area network type, determining the first network device The network role is a cascade device.
  • the first network device configures the working mode as a routing mode.
  • the first network device configures the working mode as the routing mode, where the first network device is current.
  • the working mode is the bridge mode
  • the first network device switches its working mode to the routing mode; if the current working mode of the first network device is the routing mode, the first network device maintains the current status.
  • the first network device configures the working mode to be a bridge mode.
  • the first network device configures the working mode as the bridging mode, for example, if the first network device is currently The working mode is the routing mode, and the first network device switches its working mode to the bridging mode; if the current working mode of the first network device is the bridging mode, the first network device maintains the current status.
  • the first network device determines the network role of the first network device according to the IP address of the first network device. If the network role of the first network device is the gateway device, the first network device configures the working mode as the route. Mode; if the network role of the first network device is a cascade device, the first network device configures the working mode to the bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • the gateway device and the cascade device perform negotiation communication.
  • This embodiment is mainly applied to a scenario where the number of network devices in the home network is small.
  • the first network device determines that it is a gateway device, it configures its working mode as a routing mode and sends the mode to the home network.
  • the non-gateway network device ie, the cascading device
  • the embodiments of the present application negotiate the working mode of the network device as long as it is a Socket message communication based on the Transmission Control Protocol/Internet Protocol (TCP/IP), or even based on Layer 2 communication.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • some network devices can simply negotiate a working mode based on a TCP link, and configure a routing mode of the device into a bridge mode.
  • This method is relatively simple to apply to a LAN network with only a small number of network devices, that is, it does not negotiate through UPnP broadcast messages, but directly communicates through peer-to-peer communication.
  • another embodiment of a method for automatically switching a working mode of a network device in the embodiment of the present application includes:
  • the first network device determines its own network role according to its own IP.
  • the network role of the first network device is a gateway device, step 502 is performed.
  • the network role of the first network device is a cascade device, steps are performed. 503.
  • the first network device determines that its IP is a wide area network IP, it determines that its own network role is a gateway device.
  • the first network device determines that its own IP is a local area network IP, it determines that its own network role is Cascading equipment.
  • the first network device sends a switching instruction to the fifth network device, so that the fifth network device is configured according to the switching finger. Let configure your own working mode.
  • the first network device when it is determined that the first network device is a gateway device, the first network device sends a first switching instruction to the fifth network device, so that the fifth network device configures its working mode as a bridge mode according to the instruction.
  • the first switching instruction indicates that the working mode of the fifth network device is configured as a bridge mode, and the fifth network device is a network device other than the first network device in the home network.
  • the fifth network device when the fifth network device receives the first switching instruction, if the current working mode of the fifth network device is the gateway mode, then the fifth network device needs to switch its working mode to the bridge mode; If the current working mode of the fifth network device is the bridge mode, the fifth network device maintains the status quo.
  • the first network device receives a second switching instruction sent by the gateway device in the fifth network device, and configures its working mode according to the second switching instruction.
  • the gateway device in the fifth network device broadcasts the second switching instruction to the home network.
  • the first network device will receive the second switching instruction, and configure the working mode to be a bridge mode according to the second switching instruction, wherein the second switching instruction indicates that the working mode of the first network device is configured as a bridge mode.
  • the first network device when the first network device receives the second switching instruction, if the current working mode of the first network device is the gateway mode, the first network device needs to switch its working mode to the bridge mode; The current working mode of the network device is the bridge mode, and the first network device maintains the status quo.
  • the first network device determines the network role of the first network device according to its own IP, it will communicate with another network role in the home network, that is, the gateway device and the cascading device.
  • Communicating if the network role of the first network device is a gateway device, the first network device configures an operating mode to a routing mode and sends a switching instruction to the fifth network device; if the network role of the first network device is a cascading device, Then, according to the switching instruction sent by the gateway device, its working mode is configured as the bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • the home network device can automatically configure its working mode according to mutual negotiation or self-determination, thereby simplifying the networking and configuration process of the home network; when the network devices in the home network are interchanged After that, the network device can also configure its own working mode; when there are multiple routing devices in the home network, if a critical node (gateway device) in the home network fails, the user can take a secondary node (cascading device) directly. Replace it without having to manually modify the working mode.
  • a critical node gateway device
  • the device In the home network, there is also a usage scenario: the device is uplinked via Wi-Fi. At this point, if the device is a separate Wi-Fi uplink, there is no problem. However, there may be cases where both the uplink and the Wi-Fi uplink exist simultaneously.
  • Network devices can also use UPnP packets for network negotiation to decide whether to use Wi-Fi uplink or Ethernet uplink.
  • the network device When the network device starts up, it also satisfies the Ethernet uplink and Wi-Fi uplink conditions (that is, the uplink port has a link, and Wi-Fi can also be linked).
  • the network device user When the network device user is configured to be adaptive, it should be used preferentially. Upward (disconnect Wi-Fi link). However, at this time, it is possible to use the state port as the downlink LAN side interface. Therefore, dynamic identification is required, and the negotiation decision is as follows:
  • the network device automatically turns off or disables Wi-Fi first
  • the network device sends the extended UPnP query message to the uplink port;
  • Iii Analyze the received reply message. If there is a route mode device (ie, a gateway device), it means that it can switch to the uplink state. In the adaptive mode, the device automatically switches to the Ethernet uplink.
  • a route mode device ie, a gateway device
  • Ethernet uplink is online (the link is normal), refer to step 1) to send a search message to the port;
  • step 1) if the network device that receives the route is consistent with the currently cached device information, it indicates that the uplink and the Wi-Fi uplink can reach the same network device;
  • the user configuration of the network device is adaptive, disconnect or disable the Wi-Fi network, and switch to the uplink;
  • the UPnP protocol sends a related state change packet when the network status changes.
  • an embodiment of the network device in the embodiment of the present application includes:
  • FIG. 7 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
  • the network device 700 may have a large difference due to different configurations or performances, and may include one or more central processing units (CPUs) 710 (for example, one or more processors) and memory 720, one or more storage media 730 that store application 733 or data 732 (eg, one or one storage device in Shanghai).
  • the memory 720 and the storage medium 730 may be short-term storage or persistent storage.
  • the program stored on storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
  • Network device 700 may also include one or more power sources 740, one or more wired or wireless network interfaces 750, one or more input and output interfaces 760, and/or one or more operating systems 731, such as WindoWs ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more. It will be understood by those skilled in the art that the network device structure illustrated in FIG. 7 does not constitute a limitation to the network device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • the memory 720 can be used to store software programs and modules, and the processor 710 executes various functional applications and data processing of the network devices by running software programs and modules stored in the memory 720.
  • the memory 720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of network devices (such as audio data, phone books, etc.).
  • memory 720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the program of the rate transfer adjustment mechanism and the received data stream provided in the embodiment of the present application are stored in the memory 720, and the processor 710 calls from the memory 720 when it is needed.
  • the processor 710 is a control center of the network device, and can adjust the transmission rate according to the set adjustment mechanism.
  • the processor 710 connects various portions of the entire network device using various interfaces and lines, performs various types of network devices by running or executing software programs and/or modules stored in the memory 720, and recalling data stored in the memory 720. Function and processing data so that the opponent can adjust the transmission rate.
  • the processor 710 can include one or more processing units.
  • the processor 710 is configured to perform steps 301 to 305 in FIG. 3, and details are not described herein again.
  • the input interface 750 and the output interface 760 are used to control the input and output external devices
  • the processor 710 is connected to the input interface 750 and the output interface 760 through the internal bus of the network device, and the input interface 750 and the output interface 760 respectively
  • the upstream and downstream external devices are connected to finally realize the data transmission of the processor 710 and the upstream and downstream external devices.
  • the data can be transmitted between different devices through the input interface 750 and the output interface 760, and the output rate of the service can be quickly adjusted to adapt.
  • Bandwidth changes demand as needed, and reduces node data caching, node processing latency, and end-to-end transmission latency.
  • FIG. 7 is a detailed description of the network device in the embodiment of the present application from the perspective of the hardware processing.
  • the network device in the embodiment of the present application is described in detail from the perspective of the modular functional entity.
  • FIG. 8 in the embodiment of the present application,
  • One embodiment of a network device includes:
  • a determining unit 801 configured to determine, when the first network device determines that a state of the at least one network device exists in the home network, to change a network role of the first network device;
  • the determining unit 801 includes:
  • the sending subunit 8011 is configured to: when the first network device determines that the state of the first network device changes, send a first request message to the second network device, where the second network device is a home network except the first network Other network devices of the device;
  • the first receiving sub-unit 8012 is configured to receive a first feedback message of the second network device, where the first feedback message carries the protocol IP of the interconnection between the networks of the second network device, where the first feedback message is the second network device according to the Sending a request message;
  • a first obtaining sub-unit 8013 configured to acquire a network role of the second network device according to the first feedback message received by the receiving subunit;
  • the first determining subunit 8014 is configured to determine a network role of the first network device according to the network role of the second network device acquired by the obtaining subunit.
  • the first determining subunit 8014 further includes:
  • the first determining module 80141 is configured to determine, when the one or more gateway devices are present in the second network device according to the network role of the second network device, that the network role of the first network device is a cascading device;
  • the second determining module 80142 is configured to: when the network device of the second network device learns that the gateway device does not exist in the second network device, and the first network device acquires the WAN port IP of the WAN, determine that the network role of the first network device is Gateway device
  • the sending module 80143 is configured to send a second request message to the second network device, where the second request message instructs the second network device to configure the working mode to the bridge mode.
  • the maintaining module 80144 is configured to: when the network device of the second network device learns that the gateway device does not exist in the second network device, and the first network device does not obtain the WAN port IP, the first network device maintains the current network role.
  • a first configuration unit 802 configured to: when the determining unit determines that the network role of the first network device is a gateway device, configure the working mode as a routing mode;
  • the second configuration unit 803 is configured to configure the working mode to be a bridge mode when the determining unit determines that the network role of the first network device is a cascading device.
  • the determining unit 801 determines a network role of the first network device. If the network role of the first network device is a gateway device, the first configuration unit 802 configures the working mode as a routing mode; if the first network device The network role is a cascade device, and the second configuration unit 803 configures the working mode to the bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • another embodiment of the network device in this embodiment of the present application includes:
  • a determining unit 901 configured to determine, when the first network device determines that a state of the at least one network device exists in the home network, to change a network role of the first network device;
  • the determining unit 901 further includes:
  • the second receiving subunit 9011 is configured to receive a second feedback message, where the second feedback message is sent by the third network device according to the third request message, the second feedback information carries the IP of the third network device, and the third request message is sent by the fourth
  • the network device generates and broadcasts in the home network
  • the fourth network device is a network device whose state transmission changes in the home network
  • the third network device is a network device other than the first network device and the fourth network device in the home network
  • a second obtaining sub-unit 9012 configured to acquire a network role of the third network device according to the second feedback message
  • the second determining subunit 9013 is configured to determine a network role of the first network device according to the network role of the third network device.
  • the first configuration unit 902 is configured to: when the determining unit determines that the network role of the first network device is a gateway device, configure the working mode as a routing mode;
  • the second configuration unit 903 is configured to configure the working mode to be a bridge mode when the determining unit determines that the network role of the first network device is a cascading device.
  • the determining unit 901 determines a network role of the first network device, if the first network device The network role is a gateway device, and the first configuration unit 902 configures the working mode as the routing mode; if the network role of the first network device is the cascading device, the second configuration unit 903 configures the working mode as the bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • another embodiment of the network device in this embodiment of the present application includes:
  • a determining unit 1001 configured to determine, when the first network device determines that a state of the at least one network device exists in the home network, to change a network role of the first network device;
  • the determining unit 1001 further includes:
  • the third obtaining subunit 10011 is configured to acquire the first network device IP when the first network device determines that the state of the first network device changes;
  • the fourth obtaining subunit 10012 is configured to acquire a network role of the first network device according to the first network device IP.
  • the fourth obtaining subunit 10012 further includes:
  • the third determining module 100121 is configured to: when determining that the type of the first network device IP is a wide area network type, determine that the network role of the first network device is a gateway device;
  • the fourth determining module 100122 is configured to determine that the network role of the first network device is a cascading device when determining that the type of the first network device IP is a local area network type.
  • the first configuration unit 1002 is configured to: when the determining unit determines that the network role of the first network device is a gateway device, configure the working mode as a routing mode;
  • the second configuration unit 1003 is configured to configure the working mode to be a bridge mode when the determining unit determines that the network role of the first network device is a cascading device.
  • the determining unit 1001 determines the network role of the first network device. If the network role of the first network device is a gateway device, the first configuration unit 1002 configures the working mode as the routing mode; if the first network device The network role is a cascading device, and the second configuration unit 1003 configures the working mode to be a bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • another embodiment of the network device in this embodiment of the present application includes:
  • a determining unit 1101 configured to determine, when the first network device determines that a state of the at least one network device exists in the home network, to change a network role of the first network device;
  • the determining unit 1101 further includes:
  • the third obtaining sub-unit 11011 is configured to acquire the first network device IP when the first network device determines that the state of the first network device changes;
  • the fourth obtaining subunit 11012 is configured to acquire a network role of the first network device according to the first network device IP.
  • the fourth obtaining subunit 11012 further includes:
  • the third determining module 110121 is configured to: when determining that the type of the first network device IP is a wide area network type, determine that the network role of the first network device is a gateway device;
  • the fourth determining module 110122 is configured to determine that the network role of the first network device is a cascading device when determining that the type of the first network device IP is a local area network type.
  • the sending unit 1102 is configured to: when the network role of the first network device is a gateway device, send a first switching instruction to the third network device, where the first switching instruction indicates that the working mode of the third network device is configured as a bridge mode, and the third network
  • the device is another network device in the home network except the first network device;
  • the receiving module 1103 is configured to: when the network role of the first network device is a cascading device, receive a second switching instruction sent by the gateway device in the fifth network device, and configure the working mode to be in a bridge mode according to the second switching instruction,
  • the second switching instruction indicates that the working mode of the first network device is configured as a bridge mode.
  • the determining unit 1101 determines a network role of the first network device. If the network role of the first network device is a gateway device, the sending unit 1102 sends a first switching instruction to the third network device, indicating the third network device.
  • the working mode is configured as a routing mode; if the network role of the first network device is a cascading device, the receiving module 1103 receives a second switching instruction sent by the gateway device in the fifth network device, and operates the mode according to the second switching instruction. Configured in bridge mode.
  • the embodiment of the present application enables the network device to automatically configure the working mode of the network device according to its own network role, thereby reducing the maintenance cost of the network device.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • An integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium.
  • the technical solution of the present application in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Selon un mode de réalisation, la présente invention concerne un procédé de commutation automatique d'un mode de fonctionnement d'un équipement de réseau et un équipement de réseau associé, lesquels sont utilisés pour configurer automatiquement le mode de fonctionnement de l'équipement de réseau et pour réduire le coût de maintenance de l'équipement de réseau. Le procédé du mode de réalisation de l'invention comprend les étapes suivantes : un premier équipement de réseau détermine le rôle de réseau du premier équipement de réseau lorsqu'il est déterminé que l'état d'au moins un équipement de réseau dans un réseau domestique change ; si le rôle de réseau du premier équipement de réseau est un équipement de passerelle, alors le premier équipement de réseau configure son mode de fonctionnement en tant que mode de routage ; et si le rôle de réseau du premier équipement de réseau est un équipement en cascade, le premier équipement de réseau configure son mode de fonctionnement en tant que mode de pontage. Le mode de réalisation de la présente invention permet à l'équipement de réseau de configurer automatiquement le mode de fonctionnement de l'équipement de réseau en fonction du rôle de réseau de l'équipement de réseau et de réduire le coût de maintenance de l'équipement de réseau.
PCT/CN2017/075756 2017-03-06 2017-03-06 Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé WO2018161215A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/075756 WO2018161215A1 (fr) 2017-03-06 2017-03-06 Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/075756 WO2018161215A1 (fr) 2017-03-06 2017-03-06 Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé

Publications (1)

Publication Number Publication Date
WO2018161215A1 true WO2018161215A1 (fr) 2018-09-13

Family

ID=63447175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075756 WO2018161215A1 (fr) 2017-03-06 2017-03-06 Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé

Country Status (1)

Country Link
WO (1) WO2018161215A1 (fr)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070253344A1 (en) * 2006-04-28 2007-11-01 Microsoft Corporation Auto-configuring operation modes for network elements
CN102571513A (zh) * 2010-11-26 2012-07-11 巴比禄股份有限公司 便携式装置、以及动作模式的设定方法
CN102811165A (zh) * 2011-05-31 2012-12-05 巴比禄股份有限公司 网络系统、网关装置以及路径决定方法
CN102811502A (zh) * 2011-05-31 2012-12-05 巴比禄股份有限公司 网络连接装置以及动作模式设定方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070253344A1 (en) * 2006-04-28 2007-11-01 Microsoft Corporation Auto-configuring operation modes for network elements
CN102571513A (zh) * 2010-11-26 2012-07-11 巴比禄股份有限公司 便携式装置、以及动作模式的设定方法
CN102811165A (zh) * 2011-05-31 2012-12-05 巴比禄股份有限公司 网络系统、网关装置以及路径决定方法
CN102811502A (zh) * 2011-05-31 2012-12-05 巴比禄股份有限公司 网络连接装置以及动作模式设定方法

Similar Documents

Publication Publication Date Title
Dely et al. Openflow for wireless mesh networks
US8885504B2 (en) Method, apparatus and system for bandwidth aggregation of mobile internet access node
US8442532B2 (en) System and method of handling IP layer mobility in a wireless network
US20130242843A1 (en) Wireless communication system, base station, and terminal
CN105992262B (zh) 一种无线Mesh网络的自适应模式切换方法
JP2003333080A (ja) リンク方式間の移行方法及びモバイル・コンピューティング装置
US9225551B2 (en) Communications device
CN102801623B (zh) 一种多接入数据转发方法及设备
JP4452283B2 (ja) ネットワークデバイス間のデータ転送の最適化のための方法及びシステム
KR20140017677A (ko) 다중경로 오버레이 네트워크 및 그의 다중경로 관리 프로토콜
CN105657571A (zh) 一种局域网内视频传输节省带宽的方法
CN102638382A (zh) 实现dlna的方法及dlna代理设备
JP5976956B2 (ja) 共有媒体ブリッジング
JP5367764B2 (ja) 仮想ネットワークシステム、構成変更方法、トンネル接続装置、及びプログラム
WO2015074537A1 (fr) Procédé et appareil de commande de protocole de communication dans un dispositif tv intelligent
WO2017119219A1 (fr) Procede de communication
CN114765578B (zh) 一种服务质量控制方法及相关设备
Owada et al. An Implementation of layer 2 overlay mesh network and edge computing platform for IoT
JP6531540B2 (ja) ネットワーク接続装置、ネットワーク接続装置の動作モードを切り替える方法
WO2018161215A1 (fr) Procédé de commutation automatique de mode de fonctionnement d'équipement de réseau et équipement de réseau associé
WO2019120188A1 (fr) Procédé de commutation automatique de modes de communication, terminal et dispositif intelligent
WO2015085801A1 (fr) Procédé et appareil de traitement de pannes pour pont-routeur de périphérie dans un réseau trill
TWI689183B (zh) 適用於網狀網路之中繼器
WO2013189130A1 (fr) Système de communication et procédé de communication dans un système de communication basé sur un réseau ad hoc
JP7090423B2 (ja) 通信装置、通信方法、及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17899314

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17899314

Country of ref document: EP

Kind code of ref document: A1