CN115883383A - Network expansion communication method, device, equipment and storage medium - Google Patents

Network expansion communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN115883383A
CN115883383A CN202211592339.6A CN202211592339A CN115883383A CN 115883383 A CN115883383 A CN 115883383A CN 202211592339 A CN202211592339 A CN 202211592339A CN 115883383 A CN115883383 A CN 115883383A
Authority
CN
China
Prior art keywords
network
interface
routing rule
default routing
communication
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
Application number
CN202211592339.6A
Other languages
Chinese (zh)
Other versions
CN115883383B (en
Inventor
王斌
郭宝雪
王贯钊
肖贺
许贝贝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Youren Networking Co ltd
Original Assignee
Shandong Youren Networking Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Youren Networking Co ltd filed Critical Shandong Youren Networking Co ltd
Priority to CN202211592339.6A priority Critical patent/CN115883383B/en
Publication of CN115883383A publication Critical patent/CN115883383A/en
Application granted granted Critical
Publication of CN115883383B publication Critical patent/CN115883383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of computer networks and discloses a network extension communication method, a device, equipment and a storage medium, wherein the method comprises the steps of acquiring first state information of a wireless network interface and second state information of a local Ethernet interface; based on a preset network priority rule, selecting a current network communication interface from a local Ethernet interface and a wireless network interface according to the first state information and the second information; establishing a new default routing rule on a local or corresponding network expander according to the current network communication interface; and performing network data communication based on the new default routing rule. According to the invention, the network communication is expanded by acquiring the state information of the network interface, selecting the network communication interface according to the state information and establishing a new default routing rule for the local or network expander through the network communication interface, and compared with the prior art, the host and the network expander can form a network topology, so that the bandwidth utilization rate of a network system is improved.

Description

Network extension communication method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer networks, and in particular, to a method, an apparatus, a device, and a storage medium for network extension communication.
Background
With the occurrence of diversified application scenarios of various users, various gateway products are developed, in order to cope with some scenarios requiring coexistence of a wireless network and a wired network, an ethernet interface is used to connect a host computer and an expansion machine to realize expansion of multiple network functions, but because respective networks between the host computer and the network expansion machine are independent, the host computer and the network expansion machine are as independent routing devices. Therefore, how to form a network topology by the host and the network expander to improve the utilization rate of the bandwidth of the network system becomes an urgent problem to be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention provides a network expansion communication method, a device, equipment and a storage medium, aiming at solving the technical problem that a host and a network expansion machine cannot form a network topology in the prior art so as to improve the utilization rate of network system bandwidth.
In order to achieve the above object, the present invention provides a network expansion communication method, including the following steps:
acquiring first state information of the wireless network interface and second state information of the local Ethernet interface;
based on a preset network priority rule, selecting a current network communication interface from the wireless network interface and the local Ethernet interface according to the first state information and the second state information;
sending an update command of a default routing rule to a target network expander according to the current network communication interface, wherein the target network expander updates the internal default routing rule when receiving the update command;
when the updating command is sent, establishing a new default routing rule on a local or corresponding network expander according to the current network communication interface;
and performing network data communication based on the new default routing rule.
Optionally, the step of selecting a current network communication interface from the wireless network interface and the local ethernet interface according to the first status information and the second status information based on a preset network priority rule includes:
judging whether the second state information is connectable with an external network or not according to the preset network priority rule;
and if so, taking the local Ethernet interface as the current network communication interface.
Optionally, after the step of determining whether the second status information is connectable to an external network according to the preset network priority rule, the method further includes:
if not, judging whether the first state information is connectable to an external network according to the interface type of the wireless network interface;
and if so, selecting the wireless network interface as the current network communication interface.
Optionally, the step of sending an update command of the default routing rule to the network extender according to the current network communication interface includes:
judging whether the current network communication interface is the local Ethernet interface;
and if so, sending a deletion command of the default routing rule to all the network expansion machines so that the network expansion machines delete the internal default routing rule.
Optionally, if so, after the step of sending a deletion command of the default routing rule to all the network expansion machines so that the network expansion machines delete the default routing rule, the method further includes:
if not, judging that the current network communication interface is the wireless network interface;
and when the current network communication interface is the wireless network interface, deleting the local default routing rule, and sending a deleting command of the default routing rule to other network extension machines except the network extension machine where the wireless network interface is located, so that the other network extension machines delete the internal default routing rule.
Optionally, the step of establishing a new default routing rule on a local or corresponding network extension machine according to the current network communication interface when the update command is sent includes:
when the updating command is sent, if the current network communication interface is the local Ethernet interface, establishing a new local default routing rule locally;
or, when the update command is sent, if the current network communication interface is the wireless network interface, controlling the network expander corresponding to the wireless network interface to internally establish a new default routing rule according to the update command.
Optionally, before the step of obtaining the first status information of the wireless network interface and the second status information of the local ethernet interface, the method further includes:
acquiring preset network parameters;
and performing local parameter configuration according to the network parameters, and executing the step of acquiring the first state information of the wireless network interface and the second state information of the local Ethernet interface when the configuration is completed.
In addition, to achieve the above object, the present invention provides a network expansion communication apparatus, including:
the state information acquisition module is used for acquiring first state information of the wireless network interface and second state information of the local Ethernet interface;
a communication interface selection module, configured to select, based on a preset network priority rule, a current network communication interface from the local ethernet interface and the wireless network interface according to the first status information and the second status information;
the routing rule updating module is used for sending an updating command of a default routing rule to a target network expander according to the current network communication interface, and the target network expander updates the internal default routing rule when receiving the updating command;
a default routing establishing module, configured to establish a new default routing rule on a local or corresponding network expander according to the current network communication interface when sending the update command;
and the data communication module is used for carrying out network data communication based on the new default routing rule.
In addition, to achieve the above object, the present invention further provides a network expansion communication device, which is characterized in that the device includes: a memory, a processor and a network extension communication program stored on the memory and executable on the processor, the network extension communication program being configured to implement the steps of the network extension communication method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having a network extension communication program stored thereon, which when executed by a processor implements the steps of the network extension communication method as described above.
The invention obtains the first state information of the wireless network interface and the second state information of the local Ethernet interface; based on a preset network priority rule, selecting a current network communication interface from the local Ethernet interface and the wireless network interface according to the first state information and the second state information; sending an updating command of a default routing rule to a target network expander according to the current network communication interface, wherein the target network expander updates the internal default routing rule when receiving the updating command; when the updating command is sent, establishing a new default routing rule on a local or corresponding network expander according to the current network communication interface; and carrying out network data communication based on the new default routing rule. The invention enables the network communication to be expanded by acquiring the state information of the network interface, selecting the network communication interface according to the state information and establishing a new default routing rule for the local or network expander through the network communication interface.
Drawings
Fig. 1 is a schematic structural diagram of a network expansion communication device of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a method for network expansion communication according to the present invention;
FIG. 3 is a schematic diagram illustrating an overall network framework connection in a first embodiment of a method for network-based extension communication according to the present invention;
fig. 4 is a flowchart illustrating a second embodiment of a network expansion communication method according to the present invention;
fig. 5 is a flowchart illustrating a third embodiment of a network expansion communication method according to the present invention;
fig. 6 is a flowchart illustrating a fourth embodiment of a network expansion communication method according to the present invention;
fig. 7 is a schematic diagram illustrating an information interaction flow between a host and a network expander in a fourth embodiment of a network expansion communication method according to the present invention;
fig. 8 is a block diagram of an apparatus of a network expansion communication apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a network expansion communication device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the network expansion communication device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of network expansion communication devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a network extension communication program.
In the network expansion communication device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the network expansion communication device of the present invention may be provided in the network expansion communication device, and the network expansion communication device calls the network expansion communication program stored in the memory 1005 through the processor 1001 and executes the network expansion communication method provided by the embodiment of the present invention.
An embodiment of the present invention provides a network expansion communication method, and referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the network expansion communication method according to the present invention.
In this embodiment, the network expansion communication method includes the following steps:
step S10: acquiring first state information of the wireless network interface and second state information of the local Ethernet interface;
it should be noted that the main body of the method in this embodiment may be a network switching device with network communication and program running functions, such as a network switch, a router, and the like, or may be other network devices with network switching functions that can implement the same or similar functions, which is not limited in this embodiment. Embodiments of the network expansion communication method of the present invention will be described herein by taking a network switching device as an example.
It should be noted that the wireless network interface may include a Wi-Fi module, a 4G module, a 5G module, or a CAT1 module, and the 4G module, the 5G module, and the CAT1 module may be replaced with each other on the same network expander, that is, one network expander may select any one of the 4G module, the 5G module, and the CAT1 module as the network interface.
It should be understood that the first status information is status information indicating whether the wireless network interface is connectable to an external network, and the network switching device may provide a plurality of network connection modes for the user by obtaining the first status information.
It can be understood that the second status information is status information of whether the local ethernet interface of the network switching device is connectable to the external network.
Further, step S10 is preceded by: acquiring preset network parameters; and performing local parameter configuration according to the network parameters, and executing the step of acquiring the first state information of the wireless network interface and the second state information of the local Ethernet interface when the configuration is completed.
It should be noted that the network parameter is a basic parameter for enabling the network switching device to operate, and the corresponding network parameter may be: IP address of network card, gateway address, subnet mask and whether to start DHCP.
In specific implementation, the network switching device obtains the first state information of the wireless network interface and the second state information of the local ethernet interface in real time through a network communication management program, and provides a wired network or a wireless network in various forms for a user according to the obtained information, so that the network is expanded.
Step S20: based on a preset network priority rule, selecting a current network communication interface from the local Ethernet interface and the wireless network interface according to the first state information and the second state information;
it should be understood that the preset network priority rule may be a rule that the ethernet interface network priority is higher than the Wi-Fi interface network, and the Wi-Fi interface network priority is higher than the 4G interface network.
In a specific implementation, according to a preset network priority rule and the first state information and the second state information, an interface with the highest current priority is determined from the local ethernet interface and the wireless network interface, and the interface with the highest current priority is used as a network communication interface for external transmission.
Step S30: sending an updating command of a default routing rule to a target network expander according to the current network communication interface, wherein the target network expander updates the internal default routing rule when receiving the updating command;
it should be noted that the target network expander may be an expander with a Wi-Fi interface network, an expander with a 4G interface network, or an expander with other wireless network interfaces.
It should be understood that the default routing rule may include three routing rules, namely a default route, a host route and a network route, where the default routing rule is that when no other existing route is found for a destination address in an IP data packet, all data packets whose routing destination is not in a routing table of a router selected by the router use the default route, and the route is generally connected to another router, and the router also processes the data packet; if it is known how this packet should be routed, the packet will be forwarded to the known route; otherwise, the packet is forwarded to the default route and thus to another router, the route increasing by one hop each time it is forwarded.
It will be appreciated that the update command may comprise a command sent by the network switching device to the network extender to establish or delete a default routing rule.
It is to be understood that the internal default routing rule is an already configured routing rule that the network extender itself has.
In a specific implementation, the network switching device sends an update command of the default routing rule to the expander with the corresponding network communication interface according to the selected current network communication interface, and updates the default routing rule according to the update command when the expander with the corresponding network communication interface receives the update command of the default routing rule.
Step S40: when the updating command is sent, establishing a new default routing rule on a local or corresponding network expander according to the current network communication interface;
in a specific implementation, when the network switching device sends an update command, if the current network interface is an ethernet interface, the new default routing rule is established locally; if the current network interface is a wireless network interface, the transmitted command can enable the expander with the corresponding wireless network interface to establish a new default route
Step S50: and carrying out network data communication based on the new default routing rule.
In specific implementation, after a local or corresponding network expander establishes a new default routing rule, network data communication can be performed according to the new default routing rule.
It should be noted that, referring to fig. 3, fig. 3 is a schematic diagram of an overall network framework connection in a first embodiment of a network extension communication method according to the present invention.
The figure comprises a host and two network expanders, wherein the network expanders are a network expander 1 (namely a Wi-Fi network expander) and a network expander 2 (namely a 4G network expander) respectively, and the host and the network expanders jointly form a system capable of flexibly combining network functions. The network functions provided to the outside only comprise a wired network, namely, the wired network is composed of an Ethernet LAN interface 4 and an Ethernet WAN interface 5. If a Wi-Fi network function is required, it can be implemented by matching [ network extender 1 ]. If the 4G network function is needed, the network expansion can be realized through matching (a network expander 2). The host computer and the network expansion machine are communicated by adopting an Ethernet interface, and the host computer comprises a plurality of Ethernet interfaces, namely a WAN interface and a plurality of LAN interfaces. When the host is used alone (i.e., without any network extender elected), the host can be used as a network device that supports only wired networks. When the host computer is used in combination with the network expander, the Wi-Fi network and the 4G network can be expanded by the network expander. The two independent routing function devices are needed to realize the effect of a single routing device with multiple network functions in a cooperative working mode. A LAN interface on the host interfaces with an Ethernet interface on the network extender. And the USB interface (or RS232/485 serial port, SPI interface, IIC interface and the like) on the host is connected with the USB interface (or RS232/485 serial port, SPI interface, IIC interface and the like) on the network expansion machine. Then, the network interfaces connected together are used for transmitting high-speed network data loads, and the USB interfaces connected together (or RS232/485 serial port, SPI interface, IIC interface) are used for transmitting control information of the cooperative work of the host and the network expansion machine. When the host and the network expander are used in a combined manner, the interface capable of being connected to the public network (internet) comprises: the ethernet WAN interface 5, the Wi-Fi modules (which need to work in a station mode), and the 4G modules (i.e., the 4G network) are collectively called "WAN interfaces". The three interfaces are divided into main interface and standby interface, and when the main interface can not be connected with the public network, the standby interface is tried to be started to be connected with the external network. The host and the network expander respectively check the WAN interface, the expander sends the checking state result of the WAN interface to the host through the management interface, the host carries out comprehensive judgment, and the extranet communication interface with the highest priority in the available WAN interfaces is selected as the whole. Accordingly, the processor 1 in the host, the processor 2 in the network extender 1 and the processor 3 in the network extender 2 can be used to process data generated during network communication.
In this embodiment, first state information of the wireless network interface and second state information of the local ethernet interface are obtained; based on a preset network priority rule, selecting a current network communication interface from the local Ethernet interface and the wireless network interface according to the first state information and the second state information; sending an update command of a default routing rule to a target network expander according to the current network communication interface, wherein the target network expander updates the internal default routing rule when receiving the update command; when the updating command is sent, establishing a new default routing rule on a local or corresponding network expansion machine according to the current network communication interface; and performing network data communication based on the new default routing rule. The invention enables the network communication to be expanded by acquiring the state information of the network interface, selecting the network communication interface according to the state information and establishing a new default routing rule for the local or network expander through the network communication interface.
Referring to fig. 4, fig. 4 is a flowchart illustrating a network expansion communication method according to a second embodiment of the present invention.
Based on the first embodiment, in this embodiment, in order to select the current network communication interface, the step S20 includes:
step S201: judging whether the second state information is connectable with an external network or not according to the preset network priority rule;
it can be understood that the network switching device may determine whether the ethernet interface is connectable to the external network according to the network priority rule and the second status information of the ethernet interface, so as to select the subsequent current network communication interface.
Step S202: and if so, taking the local Ethernet interface as the current network communication interface.
It can be understood that, when the second status information of the ethernet interface is connectable to the external network, the local ethernet interface is selected as the current network communication interface.
Further, after the step S201, the method further includes:
step S203: if not, judging whether the first state information is connectable with an external network according to the interface type of the wireless network interface;
it should be understood that the network interface type may be a Wi-Fi network interface (i.e., wi-Fi module), a 4G network interface (i.e., 4G module), a 5G network interface (i.e., 5G module), or a CAT1 network interface (i.e., CAT1 module).
It can be understood that when the second state information of the ethernet interface is that the external network cannot be connected, whether the Wi-Fi network interface can be connected to the external network is first determined according to the network priority rule, and if the Wi-Fi network interface cannot be connected to the external network, the 4G network interface is continuously selected according to the priority rule.
It should be noted that the 4G network interface, the 5G network interface, and the CAT1 network interface may be replaced on the same network expander.
Step S204: and if so, selecting the wireless network interface as the current network communication interface.
It should be understood that if the Wi-Fi network interface can be connected to an external network, the Wi-Fi network interface is used as the current network communication interface; and if the Wi-Fi network interface can not be connected with an external network, taking the 4G network interface as the current network communication interface.
In this embodiment, the network switching device determines, according to the network priority rule and the second state information of the ethernet interface, whether the ethernet interface is connectable to the external network, and if the ethernet interface is connectable to the external network, the local ethernet interface is used as the current network communication interface; if the Ethernet interface can not be connected with the external network, judging whether a Wi-Fi network interface in the interface type of the wireless network interface can be connected with the external network according to a priority rule, and if the Wi-Fi network interface can be connected with the external network, using the Wi-Fi network interface as a current network communication interface; and if the Wi-Fi network interface can not be connected with an external network, continuing to use the 4G network interface as the current network communication interface according to the network priority rule.
Referring to fig. 5, fig. 5 is a flowchart illustrating a network expansion communication method according to a third embodiment of the present invention.
Based on the first embodiment, in this embodiment, in order to update the default route, the step S30 includes:
step S301: judging whether the current network communication interface is the local Ethernet interface;
it should be noted that, by determining the current network communication interface, the network switching device may perform the next operation of updating the default routing rules of the local and network expanders.
Step S302: and if so, sending a deletion command of the default routing rule to all the network expansion machines so that the network expansion machines delete the internal default routing rule.
It can be understood that, if the current network communication interface is the local ethernet interface, the network switching device sends a deletion command of the default routing rule to all the network expanders, and when the network expanders receive the deletion command, the internal default routing rule can be deleted by itself.
After step S302, the method further includes:
step S303: if not, judging that the current network communication interface is the wireless network interface;
step S304: and when the current network communication interface is the wireless network interface, deleting the local default routing rule, and sending a deletion command of the default routing rule to other network extension machines except the network extension machine where the wireless network interface is located, so that the other network extension machines delete the internal default routing rule.
It can be understood that, in the above steps, if the current network communication interface is a local ethernet interface, it is determined that the current network communication interface is a wireless network interface, and when the current network interface is a wireless network interface, the local default routing rule is deleted, and a default routing rule deletion command is sent to the network expander without a wireless network interface, so that the network expander without a wireless network interface deletes the internal default routing rule.
In this embodiment, the network switching device further updates the default routing rules of the local and network expanders by judging the current network interface, and if the current network interface is judged to be the local ethernet interface, the network switching device may send a deletion command of the default routing rule to all network expanders, and cause the network expanders to delete the internal default routing rule; if the current network interface is judged to be the wireless network interface, the network switching equipment can delete the local default routing rule and send a default routing rule deleting command to other network expansion machines except the network expansion machine where the wireless network interface is located, so that the other network expansion machines delete the internal default routing rule.
Referring to fig. 6, fig. 6 is a flowchart illustrating a network expansion communication method according to a fourth embodiment of the present invention.
Based on the first embodiment, in this embodiment, in order to establish a new default routing rule, the step S40 includes:
step S401: when the updating command is sent, if the current network communication interface is the local Ethernet interface, establishing a new local default routing rule locally;
it is understood that, when the selected current network communication interface is the local ethernet interface, the network switching device may send a default routing rule deleting command to the network expander, and establish a new default routing rule locally.
Step S402: or, when the update command is sent, if the current network communication interface is the wireless network interface, controlling a network expander corresponding to the wireless network interface to internally establish a new default routing rule according to the update command.
It can be understood that, when the selected current network communication interface is a wireless network interface, the network switching device may send a default routing rule establishing command to the network extension machine having the wireless network interface, and the network extension machine having the wireless network interface may internally establish a new default routing rule after receiving the default routing rule establishing command.
It should be noted that, referring to fig. 7, fig. 7 is a schematic diagram of an information interaction flow between a host and a network expander in a fourth embodiment of a network expansion communication method according to the present invention. In the figure, firstly, configured network priority parameters are read by a host computer, the host computer 1 and the network expansion machine 2 detect the active state of a WAN interface (namely whether the WAN interface can be connected with an external network) through a management interface (which can be a USB interface, an RS232/485 serial port, an SPI interface, an IIC interface and the like) of the host computer in real time, the host computer decides the currently available WAN interface according to the existing network priority rule, and if the available WAN interface is the Ethernet WAN interface 5 on the host computer, the host computer sends a coordination command to the network expansion machine 1 and the network expansion machine 2: delete default routing rule command and establish a default routing rule within [ host ]. Both [ network expander 1 ] and [ network expander 2 ] execute a "delete default routing rule command"; if the available WAN interface is a Wi-Fi interface of [ network expander 1 ] or a 4G interface of [ network expander 2 ], the host sends a command of establishing a default routing rule of the corresponding interface to the corresponding network expander, and deletes the existing default routing rule of [ host ]. And (3) establishing a default routing rule according to the command [ the network expander 1 ] or [ the network expander 2 ].
In this embodiment, if the network communication interface acquired by the network switching device is a local ethernet interface, a default route deletion command may be sent to the network expander, and a new default route rule is locally established; and if the acquired network communication interface is a wireless network interface, sending a default routing establishment command to a network expander corresponding to the wireless network interface so as to enable the corresponding network expander to establish a new default routing rule.
Referring to fig. 8, fig. 8 is a block diagram illustrating an apparatus structure of a network expansion communication apparatus according to the present invention.
A status information obtaining module 801, configured to obtain first status information of the wireless network interface and second status information of the local ethernet interface;
a communication interface selection module 802, configured to select, based on a preset network priority rule, a current network communication interface from the local ethernet interface and the wireless network interface according to the first status information and the second status information;
a routing rule updating module 803, configured to send an update command of a default routing rule to a target network extender according to the current network communication interface, where the target network extender updates an internal default routing rule when receiving the update command;
a default routing establishing module 804, configured to establish a new default routing rule on a local or corresponding network expansion machine according to the current network communication interface when sending the update command;
a data communication module 805 configured to perform network data communication based on the new default routing rule.
In this embodiment, a status information obtaining module obtains first status information of the wireless network interface and second status information of the local ethernet interface; then, a communication interface selection module selects a current network communication interface from the local Ethernet interface and the wireless network interface according to the first state information and the second state information based on a preset network priority rule; sending an updating command of a default routing rule to a target network expander through a routing rule updating module according to the current network communication interface, wherein the target network expander updates the internal default routing rule when receiving the updating command; in a default route establishing module, when the updating command is sent, establishing a new default route rule on a local or corresponding network extension machine according to the current network communication interface; and finally, the data communication module carries out network data communication based on the new default routing rule. According to the invention, the network communication is expanded by acquiring the state information of the network interface, selecting the network communication interface according to the state information and establishing a new default routing rule for the local or network expander through the network communication interface, and compared with the prior art, the host and the network expander can form a network topology, so that the bandwidth utilization rate of a network system is improved.
For each embodiment or specific implementation manner of the network expansion communication apparatus of the present invention, reference may be made to the above method embodiments, which are not described herein again.
Furthermore, an embodiment of the present invention further provides a storage medium, where the storage medium stores a network extension communication program, and the network extension communication program, when executed by a processor, implements the steps of the network extension communication method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention can be essentially said to be embodied in the form of a software product, which is stored in a storage medium (e.g. a read-only memory/random access memory, a magnetic disk) and includes instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. A network extension communication method is applied to a network system comprising at least one host and a plurality of network extension machines, wherein the host is connected with the network extension machines through Ethernet interfaces, a local network interface is arranged in the host, and a wireless network interface is arranged in the network extension machine, and the method comprises the following steps:
acquiring first state information of the wireless network interface and second state information of the local Ethernet interface;
based on a preset network priority rule, selecting a current network communication interface from the wireless network interface and the local Ethernet interface according to the first state information and the second state information;
sending an update command of a default routing rule to a target network expander according to the current network communication interface, wherein the target network expander updates the internal default routing rule when receiving the update command;
when the updating command is sent, establishing a new default routing rule on a local or corresponding network expansion machine according to the current network communication interface;
and performing network data communication based on the new default routing rule.
2. The method of claim 1, wherein the step of selecting a current network communication interface from the wireless network interface and the local ethernet interface according to the first status information and the second status information based on a preset network priority rule comprises:
judging whether the second state information is a connectable external network or not according to the preset network priority rule;
and if so, taking the local Ethernet interface as the current network communication interface.
3. The method of claim 2, wherein after the step of determining whether the second status information is connectable to an external network according to the preset network priority rule, the method further comprises:
if not, judging whether the first state information is connectable to an external network according to the interface type of the wireless network interface;
and if so, selecting the wireless network interface as the current network communication interface.
4. The method of claim 1, wherein the step of sending an update command for a default routing rule to a network extender based on the current network communication interface comprises:
judging whether the current network communication interface is the local Ethernet interface;
and if so, sending a deletion command of the default routing rule to all the network expansion machines so that the network expansion machines delete the internal default routing rule.
5. The method as claimed in claim 4, wherein if yes, after the step of sending a deletion command of the default routing rule to all network extenders, so that the network extenders delete the default routing rule, further comprising:
if not, judging that the current network communication interface is the wireless network interface;
and when the current network communication interface is the wireless network interface, deleting the local default routing rule, and sending a deleting command of the default routing rule to other network extension machines except the network extension machine where the wireless network interface is located, so that the other network extension machines delete the internal default routing rule.
6. The method of claim 1, wherein the step of establishing a new default routing rule on a local or corresponding network extender based on the current network communication interface when sending the update command comprises:
when the updating command is sent, if the current network communication interface is the local Ethernet interface, establishing a new local default routing rule locally;
or, when the update command is sent, if the current network communication interface is the wireless network interface, controlling a network expander corresponding to the wireless network interface to internally establish a new default routing rule according to the update command.
7. The method of claim 1, wherein the step of obtaining the first status information of the wireless network interface and the second status information of the local ethernet interface is preceded by the step of:
acquiring preset network parameters;
and performing local parameter configuration according to the network parameters, and executing the step of acquiring the first state information of the wireless network interface and the second state information of the local Ethernet interface when the configuration is completed.
8. A network expansion communication apparatus, characterized in that the apparatus comprises:
the state information acquisition module is used for acquiring first state information of the wireless network interface and second state information of the local Ethernet interface;
the communication interface selection module is used for selecting a current network communication interface from the local Ethernet interface and the wireless network interface according to the first state information and the second state information based on a preset network priority rule;
the routing rule updating module is used for sending an updating command of a default routing rule to a target network expander according to the current network communication interface, and the target network expander updates the internal default routing rule when receiving the updating command;
a default route establishing module, configured to establish a new default route rule on a local or corresponding network extension machine according to the current network communication interface when the update command is sent;
and the data communication module is used for carrying out network data communication based on the new default routing rule.
9. A network expansion communication device, characterized in that the device comprises: a memory, a processor and a network extension communication program stored on the memory and executable on the processor, the network extension communication program being configured to implement the steps of the network extension communication method of any of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a network extension communication program, which when executed by a processor implements the steps of the network extension communication method according to any one of claims 1 to 7.
CN202211592339.6A 2022-12-09 2022-12-09 Network extension communication method, device, equipment and storage medium Active CN115883383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211592339.6A CN115883383B (en) 2022-12-09 2022-12-09 Network extension communication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211592339.6A CN115883383B (en) 2022-12-09 2022-12-09 Network extension communication method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115883383A true CN115883383A (en) 2023-03-31
CN115883383B CN115883383B (en) 2024-05-10

Family

ID=85767129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211592339.6A Active CN115883383B (en) 2022-12-09 2022-12-09 Network extension communication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115883383B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103460755A (en) * 2011-04-05 2013-12-18 诺基亚公司 Method and apparatus for enabling provision of routing information and network selection information to one or more devices
CN104243208A (en) * 2014-09-09 2014-12-24 福建星网锐捷网络有限公司 Port expansion and message processing method, device and network device
CN105743782A (en) * 2016-01-29 2016-07-06 深圳市美贝壳科技有限公司 Routing control method when networks of multi-network-card equipment are switched
CN112087375A (en) * 2020-08-28 2020-12-15 上海中觅通信技术有限公司 WAN port switching method of WAN port standby router, storage medium and router
CN112532756A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Interface extension method, device and system
CN112929942A (en) * 2021-02-09 2021-06-08 惠州Tcl移动通信有限公司 Intelligent routing method, system, storage medium and terminal equipment
CN114666864A (en) * 2022-03-24 2022-06-24 青岛海信移动通信技术股份有限公司 Multi-network communication method, terminal device, storage medium, and program product
CN115277410A (en) * 2022-08-04 2022-11-01 深圳市共进电子股份有限公司 Gateway adjusting method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103460755A (en) * 2011-04-05 2013-12-18 诺基亚公司 Method and apparatus for enabling provision of routing information and network selection information to one or more devices
CN104243208A (en) * 2014-09-09 2014-12-24 福建星网锐捷网络有限公司 Port expansion and message processing method, device and network device
CN105743782A (en) * 2016-01-29 2016-07-06 深圳市美贝壳科技有限公司 Routing control method when networks of multi-network-card equipment are switched
CN112532756A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Interface extension method, device and system
CN112087375A (en) * 2020-08-28 2020-12-15 上海中觅通信技术有限公司 WAN port switching method of WAN port standby router, storage medium and router
CN112929942A (en) * 2021-02-09 2021-06-08 惠州Tcl移动通信有限公司 Intelligent routing method, system, storage medium and terminal equipment
CN114666864A (en) * 2022-03-24 2022-06-24 青岛海信移动通信技术股份有限公司 Multi-network communication method, terminal device, storage medium, and program product
CN115277410A (en) * 2022-08-04 2022-11-01 深圳市共进电子股份有限公司 Gateway adjusting method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115883383B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
US9094850B2 (en) Assistance device
EP3125476B1 (en) Service function chaining processing method and device
US20060083261A1 (en) Data transmission apparatus, data transmission method, data transmission program, and recording medium
CN110752975B (en) Network sharing method and device
US20130107794A1 (en) Network communication device and method of selecting active network interface
CN109862606B (en) Self-service equipment communication method, device and system
CN111147314A (en) Switch upgrading method, device and storage medium
JP2022068125A (en) Method for controlling traffic forwarding, device, and system
CN113098722A (en) Multi-network card management method, device and computer readable storage medium
CN115865654A (en) Method for communicating with server, electronic device and storage medium
KR20090006632A (en) Virtual firewall system and the control method for using based on commonness security policy
US11929851B2 (en) Gateway selection method, device, and system
CN114025000B (en) Method, device, equipment and storage medium for establishing network access relationship
WO2024109617A1 (en) Communication method and apparatus, electronic device and readable storage medium
CN113824789A (en) Configuration method, device, equipment and storage medium of path descriptor
CN112511402B (en) Role mode adjusting method and device, wireless mesh network equipment and storage medium
JP5327896B2 (en) Wireless LAN access point and wireless terminal connection maintaining method
US11095514B2 (en) System and method for propagating anima network objective changes
CN115883383A (en) Network expansion communication method, device, equipment and storage medium
WO2022057724A1 (en) Data offloading method and device
CN110224950B (en) Stack system detection system, method, device and computer readable storage medium
CN115051949A (en) Data routing method and device
WO2024114535A2 (en) Data forwarding method and device, and computer-readable storage medium
CN110891009B (en) VPN channel networking method, device, equipment and medium
JP3669366B2 (en) Mobile terminal and network interface switching method

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