CN112333295A - Multipath connection method and device, electronic equipment and storage medium - Google Patents

Multipath connection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112333295A
CN112333295A CN202011033766.1A CN202011033766A CN112333295A CN 112333295 A CN112333295 A CN 112333295A CN 202011033766 A CN202011033766 A CN 202011033766A CN 112333295 A CN112333295 A CN 112333295A
Authority
CN
China
Prior art keywords
address
path
configuration information
local
updating
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.)
Withdrawn
Application number
CN202011033766.1A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011033766.1A priority Critical patent/CN112333295A/en
Publication of CN112333295A publication Critical patent/CN112333295A/en
Priority to PCT/CN2021/089935 priority patent/WO2022062390A1/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The application discloses a multipath connection method, a multipath connection device, an electronic device and a computer readable storage medium, wherein the method is applied to a client and comprises the following steps: receiving multipath IP address configuration information sent by a server; updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information; automatically connecting or disconnecting the IP path by combining the local IP address configuration information, the local routing configuration and the currently connected IP path; and updating the client routing table based on the local IP address configuration information, and starting or closing monitoring on the corresponding IP address in the server to complete the updating of the multi-path connection. Therefore, the method and the device solve the problem of multi-path IP configuration in the environment that the network topology is uncertain or changes along with the service configuration frequently, improve the flexibility of the service configuration, and expand the application scenes of the multi-path technology.

Description

Multipath connection method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a multipath connection method and apparatus, an electronic device, and a computer-readable storage medium.
Background
When two devices communicate with each other, a session can establish a single or multiple physical or logical paths for a specific layer protocol, so as to improve transmission efficiency and fault tolerance. In practical applications, a certain layer protocol can aggregate multiple path sessions of the layer into one session view and provide the session view to the upper layer.
In general application, the path configuration of the multipath is clear, stable and needs no change. However, there is also a scenario that the network topology is uncertain or changes frequently with the service configuration, that is, the path configuration between two devices needs to be modified frequently according to the actual requirement. Therefore, how to solve the problem of modifying the path configuration is a key concern for those skilled in the art.
Disclosure of Invention
The application aims to provide a multipath connection method, a multipath connection device, an electronic device and a computer readable storage medium, which solve the problem of multipath IP configuration in an environment where the network topology is uncertain or changes frequently along with service configuration.
In order to achieve the above object, the present application provides a multipath connection method, applied to a client, including:
receiving multipath IP address configuration information sent by a server;
updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information;
combining the local IP address configuration information, the local routing configuration and the current connected IP path, and automatically connecting or disconnecting the IP path;
and updating a client routing table based on the local IP address configuration information, and starting or closing monitoring of the corresponding IP address in the server to complete updating of the multi-path connection.
Optionally, the receiving the multipath IP address configuration information sent by the server includes:
receiving configuration information which is sent by a server and used for configuring and managing an IP address;
and/or receiving the configuration information which is sent by the server and used for adding, modifying or deleting the multi-path IP address and appointing the corresponding route.
Optionally, the receiving the multipath IP address configuration information sent by the server includes:
providing a visual configuration interface for a user terminal by using the server so as to receive multi-path IP address configuration information issued by the user terminal;
and acquiring the multi-path IP address configuration information forwarded by the server through managing the IP address.
Optionally, the updating local IP address configuration information according to the multipath IP address configuration information, and updating local routing configuration based on the local IP address configuration information includes:
if the multi-path IP address configuration information is configuration information for configuring a management IP address, the local management IP address of the client is synchronously updated;
if the multi-path IP address configuration information is used for newly adding/modifying/deleting multi-path IP addresses and appointing the configuration information of corresponding routes, newly adding/modifying/deleting the multi-path IP addresses in the local IP address configuration information;
after a target multi-path IP address is newly added/modified, judging whether a route pointing to the target multi-path IP address exists or not, if so, replacing the original route by using a designated route, and configuring the priority of the designated route as the highest;
after deleting the target multi-path IP address, judging whether a route pointing to the target multi-path IP address exists, and if so, directly deleting the original route.
Optionally, the automatically connecting or disconnecting the IP path by combining the local IP address configuration information, the local routing configuration, and the currently connected IP path includes:
traversing the current connected IP paths according to a preset time interval to acquire IP addresses corresponding to the connected IP paths;
judging whether the IP address belongs to a defined IP address in the local IP address configuration information, if not, automatically executing disconnection operation on the current connected IP path;
traversing the defined IP address in the local IP address configuration information, and detecting whether the corresponding defined IP address exists in the current connected IP path;
and if the corresponding defined IP address is not detected in the current connected IP path, automatically performing the connection operation of the IP path based on the defined IP address.
Optionally, the updating a client routing table based on the local IP address configuration information, and turning on or off monitoring of a corresponding IP address in the server includes:
reading the local IP address configuration information and a client routing table, and judging whether the local IP address configuration information is consistent with the client routing table;
if the local IP address configuration information is inconsistent with the client routing table, updating the client routing table based on the local IP address configuration information;
connecting the server through a management IP address, and detecting whether monitoring is started aiming at a defined IP address in the local IP address configuration information;
and if the monitoring is not started aiming at the defined IP address, restarting the monitoring aiming at the current defined IP address.
In order to achieve the above object, the present application provides a multipath connection device, applied to a client, including:
the configuration receiving module is used for receiving the multi-path IP address configuration information sent by the server;
the configuration updating module is used for updating local IP address configuration information according to the multi-path IP address configuration information and updating local routing configuration based on the local IP address configuration information;
a path configuration module, configured to automatically connect or disconnect an IP path in combination with the local IP address configuration information, the local routing configuration, and the currently connected IP path;
and the monitoring starting module is used for updating a client routing table based on the local IP address configuration information, starting or closing monitoring of the corresponding IP address in the server and finishing updating of the multi-path connection.
Optionally, the path configuration module includes:
the path traversing unit is used for traversing the current connected IP paths according to a preset time interval so as to acquire IP addresses corresponding to the connected IP paths;
a path disconnection unit, configured to determine whether the IP address belongs to a defined IP address in the local IP address configuration information, and if not, automatically perform a disconnection operation on the currently connected IP path;
the address traversal unit is used for traversing the defined IP address in the local IP address configuration information and detecting whether the corresponding defined IP address exists in the current connected IP path or not;
and the path connection unit is used for automatically performing connection operation of the IP path based on the defined IP address if the corresponding defined IP address is not detected in the current connected IP path.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
a processor for implementing the steps of any of the multipath connection methods disclosed above when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of any of the multipath connection methods disclosed in the foregoing.
According to the above scheme, the multipath connection method provided by the application is applied to a client, and includes: receiving multipath IP address configuration information sent by a server; updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information; combining the local IP address configuration information, the local routing configuration and the current connected IP path, and automatically connecting or disconnecting the IP path; and updating a client routing table based on the local IP address configuration information, and starting or closing monitoring of the corresponding IP address in the server to complete updating of the multi-path connection. As can be seen from the above, after receiving the multipath IP address configuration information sent by the server, the present application can update the local IP address configuration and the local routing configuration according to the information, so as to connect or disconnect a path according to the updated configuration, and maintain monitoring for the corresponding IP address in the server, thereby solving the multipath IP configuration problem in an environment where the network topology is uncertain or changes frequently with the service configuration, improving flexibility of the service configuration, and expanding an application scenario of the multipath technology.
The application also discloses a multipath connecting device, an electronic device and a computer readable storage medium, which can also achieve the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a multipath connection method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of another multipath connection method disclosed in the embodiment of the present application;
fig. 3 is a structural diagram of a multipath connecting device disclosed in an embodiment of the present application;
fig. 4 is a block diagram of an electronic device disclosed in an embodiment of the present application;
fig. 5 is a block diagram of another electronic device disclosed in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, the path configuration of the multipath is clear, stable, and does not need to be changed. However, there is also a scenario that the network topology is uncertain or changes frequently with the service configuration, that is, the path configuration between two devices needs to be modified frequently according to the actual requirement.
Therefore, the embodiment of the application discloses a multipath connection method, which solves the problem of multipath IP configuration in an environment where the network topology is uncertain or changes frequently along with service configuration, and improves the flexibility of service configuration.
Referring to fig. 1, an embodiment of the present application discloses a multipath connection method, applied to a client, including:
s101: receiving multipath IP address configuration information sent by a server;
in the embodiment of the application, the client can receive the multipath IP address configuration information sent by the server. Specifically, the server may be used to provide a visual configuration interface to the user terminal, so as to receive the configuration information of the multi-path IP address sent by the user terminal. And then the client can acquire the multi-path IP address configuration information forwarded by the server through the management IP address.
It should be noted that the above-mentioned multi-path IP address configuration information may include, but is not limited to, configuration information for configuring a management IP address, configuration information for adding/modifying/deleting a multi-path IP address, and configuration information for specifying a corresponding route.
S102: updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information;
in this step, the client may update the local IP address configuration information according to the multipath IP address configuration information, and correspondingly update the local routing configuration.
In a specific implementation, if the multi-path IP address configuration information is configuration information for configuring a management IP address, the local management IP address of the client is updated synchronously. And if the multi-path IP address configuration information is used for newly adding/modifying/deleting the multi-path IP address and appointing the configuration information of the corresponding route, newly adding/modifying/deleting the multi-path IP address in the local IP address configuration information.
It can be understood that, after the target multi-path IP address is newly added/modified, it can be determined whether a route pointing to the target multi-path IP address exists, and if so, the original route is replaced by the designated route in the configuration information, and the priority of the designated route is configured to be the highest; after deleting the target multi-path IP address, judging whether a route pointing to the target multi-path IP address exists, and if so, directly deleting the original route.
S103: combining the local IP address configuration information, the local routing configuration and the current connected IP path, and automatically connecting or disconnecting the IP path;
it can be understood that, after the client updates the local IP address configuration information and the local routing configuration according to the configuration information of the server, the connection or disconnection operation of the IP path can be performed in combination with the currently connected path and the above information. That is, whether the path corresponding to the IP address in the updated local IP address configuration information is connected or not can be detected, and if not, the connection operation of the IP path is executed; and detecting whether the IP address corresponding to the current connected IP path belongs to the IP address in the updated local IP address configuration information, and if not, executing the disconnection operation of the IP path.
S104: and updating a client routing table based on the local IP address configuration information, and starting or closing monitoring of the corresponding IP address in the server to complete updating of the multi-path connection.
It should be noted that, in the embodiment of the present application, the client routing table may be further updated based on the local IP address configuration information, and the monitoring of the corresponding IP address is started, that is, the client routing table and the protocol monitoring of the server are maintained according to the current IP configuration, so as to ensure that the configuration information is kept consistent.
As a feasible implementation manner, the present application may first read the local IP address configuration information and the client routing table, and determine whether the local IP address configuration information and the client routing table are consistent. And if the local IP address configuration information is inconsistent with the client routing table, updating the client routing table based on the local IP address configuration information. The server can be connected through the management IP address to detect whether monitoring is started aiming at the defined IP address in the local IP address configuration information; and if the monitoring is not started for the defined IP address, restarting the monitoring for the current defined IP address.
According to the above scheme, the multipath connection method provided by the application is applied to a client, and includes: receiving multipath IP address configuration information sent by a server; updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information; combining the local IP address configuration information, the local routing configuration and the current connected IP path, and automatically connecting or disconnecting the IP path; and updating a client routing table based on the local IP address configuration information, and starting or closing monitoring of the corresponding IP address in the server to complete updating of the multi-path connection. As can be seen from the above, after receiving the multipath IP address configuration information sent by the server, the present application can update the local IP address configuration and the local routing configuration according to the information, so as to connect or disconnect a path according to the updated configuration, and maintain monitoring for the corresponding IP address in the server, thereby solving the multipath IP configuration problem in an environment where the network topology is uncertain or changes frequently with the service configuration, improving flexibility of the service configuration, and expanding an application scenario of the multipath technology.
The embodiment of the application discloses another multipath connection method, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme. Referring to fig. 2, specifically:
s201: receiving multipath IP address configuration information sent by a server;
s202: updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information;
s203: traversing the current connected IP paths according to a preset time interval to acquire IP addresses corresponding to the connected IP paths;
s204: judging whether the IP address belongs to a defined IP address in the local IP address configuration information, if not, automatically executing disconnection operation on the current connected IP path;
s205: traversing the defined IP address in the local IP address configuration information, and detecting whether the corresponding defined IP address exists in the current connected IP path;
s206: if the corresponding defined IP address is not detected in the current connected IP path, automatically performing the connection operation of the IP path based on the defined IP address;
in the embodiment of the application, in order to ensure the timely update of the IP path, the current connected IP path may be traversed according to a preset time interval, so as to obtain an IP address corresponding to each connected IP path. And judging whether the IP address belongs to a defined IP address in the local IP address configuration information or not according to the local IP address configuration information. If the IP address does not belong to the current defined IP address, the IP address does not need to be connected with the path, and disconnection operation can be automatically executed on the current connected IP path.
In addition, the embodiment of the application also traverses the defined IP address in the local IP address configuration information to detect whether the corresponding defined IP address exists in the current connected IP path. If the corresponding defined IP address is not detected in the current connected IP path, the IP address is represented as a newly defined IP address needing to be connected, and the connection operation of the IP path can be automatically carried out based on the defined IP address.
S207: and updating a client routing table based on the local IP address configuration information, and starting or closing monitoring of the corresponding IP address in the server to complete updating of the multi-path connection.
A system architecture adopted by the multipath connection method provided in the embodiment of the present application is described below with a specific implementation scenario. Specifically, the present system may specifically include: the system comprises a configuration IP subsystem, a configuration routing subsystem, a connection path subsystem and a monitoring IP subsystem.
Specifically, the configured IP subsystem works on the server side, and is configured to add, modify, or delete multiple paths, and specifically may accept the following four operations: setting a management IP z, and restricting the client to be certain to communicate the IP z communication under the normal condition without depending on a specific route; adding a multi-path IP a for a server side, and designating a route as r (a); changing the multipath IP a of the server end into b and appointing a route as r (b); and deleting the multipath IP a of the server side. After finishing one operation, the server updates the current IP set I { < a, r (a) >, … }, and sends the operation content to the configuration routing subsystem of the client through the current management IP z.
It should be noted that the configuration routing subsystem operates in the client, and is configured to configure the multipath IP routing. The subsystem monitors the notice from the server side configuration IP subsystem, and when the operation issued by the server is to set a management IP address z, the management IP address is synchronously updated to be z at the client side; when the operation sent by the server is to add, modify or delete multipath, the IP set I { < a, r (a) >, … } is synchronously updated at the client, and the corresponding operation is executed: if the specific operation is adding a path, checking whether the client has a route pointing to the IP a before, if so, deleting, configuring the route pointing to the IP a as r (a), and setting the priority of the route as the highest; if the specific operation is to modify the path, checking whether the client has the routes pointing to the IP a and the IP b before, if so, deleting the route, then configuring the route pointing to the IP b as r (b), and setting the priority of the route as the highest; if the specific operation is deleting the path, checking whether the client has a route pointing to the IP a before, and if so, deleting the route.
It will be appreciated that the connection path subsystem operates at the client for automatically connecting and disconnecting paths. The subsystem may specifically execute the following processes cyclically according to a certain time period: reading a current configured IP set I { < a, R (a) >, … }, a connected path set S { < a, S (a) >, … }, and a routing table R { R (a), … }; traversing the IP address of the path in the S, and if the path is not in the I, closing the path; and traversing IP I in I, and if not in S, checking whether a corresponding route R (I) is in R. If yes, the protocol of the server side is monitored through IP i connection, and a new path is generated.
The monitoring IP subsystem works on the client and is used for monitoring equipment configuration and network environment. The subsystem can specifically detect the following items in a circulating manner: reading a currently configured IP set I { < a, R (a) >, … }, a routing table R { (R (a), … }, checking that I is consistent with R, and if I is not consistent with R, reconfiguring the routing table according to the configuration of I; and connecting the server end through the IP z, and inquiring and confirming that all the IP in the configured IP set I are open protocol monitoring. If the protocol monitoring on a certain IP i is not opened, the server end is connected through the IP z, and the protocol monitoring on the i is opened again.
In the following, a multipath connection device provided by an embodiment of the present application is described, and a multipath connection device described below and a multipath connection method described above may be referred to each other.
Referring to fig. 3, an embodiment of the present application provides a multipath connection apparatus for a client, where the apparatus includes:
a configuration receiving module 301, configured to receive multipath IP address configuration information sent by a server;
a configuration updating module 302, configured to update local IP address configuration information according to the multipath IP address configuration information, and update local routing configuration based on the local IP address configuration information;
a path configuration module 303, configured to automatically connect or disconnect an IP path in combination with the local IP address configuration information, the local routing configuration, and the currently connected IP path;
a monitoring starting module 304, configured to update a client routing table based on the local IP address configuration information, and start or close monitoring on a corresponding IP address in the server, so as to complete updating of the multi-path connection.
For the specific implementation process of the modules 301 to 304, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
On the basis of the foregoing embodiment, as a preferred implementation, the path configuration module may specifically include:
the path traversing unit is used for traversing the current connected IP paths according to a preset time interval so as to acquire IP addresses corresponding to the connected IP paths;
a path disconnection unit, configured to determine whether the IP address belongs to a defined IP address in the local IP address configuration information, and if not, automatically perform a disconnection operation on the currently connected IP path;
the address traversal unit is used for traversing the defined IP address in the local IP address configuration information and detecting whether the corresponding defined IP address exists in the current connected IP path or not;
and the path connection unit is used for automatically performing connection operation of the IP path based on the defined IP address if the corresponding defined IP address is not detected in the current connected IP path.
The present application further provides an electronic device, and as shown in fig. 4, an electronic device provided in an embodiment of the present application includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and provides computing and controlling capability for the electronic device, and when executing the computer program stored in the memory 100, the multipath connection method disclosed in any of the foregoing embodiments may be implemented.
On the basis of the above embodiment, as a preferred implementation, referring to fig. 5, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
While FIG. 5 shows only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration shown in FIG. 5 does not constitute a limitation of the electronic device, and may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium has a computer program stored thereon, and the computer program realizes the multipath connection method disclosed in any one of the embodiments when executed by a processor.
According to the method and the device, after the multi-path IP address configuration information sent by the server is received, the local IP address configuration and the local routing configuration can be updated according to the information, so that path connection or disconnection can be carried out according to the updated configuration, monitoring aiming at the corresponding IP address in the server is maintained, the problem of multi-path IP configuration in the environment that the network topology is uncertain or changes along with the service configuration frequently is solved, the flexibility of service configuration is improved, and the application scene of the multi-path technology is expanded.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A multipath connection method is applied to a client and comprises the following steps:
receiving multipath IP address configuration information sent by a server;
updating local IP address configuration information according to the multi-path IP address configuration information, and updating local routing configuration based on the local IP address configuration information;
combining the local IP address configuration information, the local routing configuration and the current connected IP path, and automatically connecting or disconnecting the IP path;
and updating a client routing table based on the local IP address configuration information, and starting or closing monitoring of the corresponding IP address in the server to complete updating of the multi-path connection.
2. The multi-path connection method as claimed in claim 1, wherein the receiving the multi-path IP address configuration information sent by the server includes:
receiving configuration information which is sent by a server and used for configuring and managing an IP address;
and/or receiving the configuration information which is sent by the server and used for adding, modifying or deleting the multi-path IP address and appointing the corresponding route.
3. The multi-path connection method as claimed in claim 2, wherein the receiving the multi-path IP address configuration information sent by the server includes:
providing a visual configuration interface for a user terminal by using the server so as to receive multi-path IP address configuration information issued by the user terminal;
and acquiring the multi-path IP address configuration information forwarded by the server through managing the IP address.
4. The multi-path connection method as claimed in claim 2, wherein the updating the local IP address configuration information according to the multi-path IP address configuration information and the updating the local routing configuration based on the local IP address configuration information comprises:
if the multi-path IP address configuration information is configuration information for configuring a management IP address, the local management IP address of the client is synchronously updated;
if the multi-path IP address configuration information is used for newly adding/modifying/deleting multi-path IP addresses and appointing the configuration information of corresponding routes, newly adding/modifying/deleting the multi-path IP addresses in the local IP address configuration information;
after a target multi-path IP address is newly added/modified, judging whether a route pointing to the target multi-path IP address exists or not, if so, replacing the original route by using a designated route, and configuring the priority of the designated route as the highest;
after deleting the target multi-path IP address, judging whether a route pointing to the target multi-path IP address exists, and if so, directly deleting the original route.
5. The multi-path connection method as claimed in any one of claims 1 to 4, wherein the automatically connecting or disconnecting an IP path in combination with the local IP address configuration information, the local routing configuration and the currently connected IP path comprises:
traversing the current connected IP paths according to a preset time interval to acquire IP addresses corresponding to the connected IP paths;
judging whether the IP address belongs to a defined IP address in the local IP address configuration information, if not, automatically executing disconnection operation on the current connected IP path;
traversing the defined IP address in the local IP address configuration information, and detecting whether the corresponding defined IP address exists in the current connected IP path;
and if the corresponding defined IP address is not detected in the current connected IP path, automatically performing the connection operation of the IP path based on the defined IP address.
6. The multi-path connection method as claimed in claim 5, wherein the updating the client routing table and turning on or off the listening to the corresponding IP address in the server based on the local IP address configuration information comprises:
reading the local IP address configuration information and a client routing table, and judging whether the local IP address configuration information is consistent with the client routing table;
if the local IP address configuration information is inconsistent with the client routing table, updating the client routing table based on the local IP address configuration information;
connecting the server through a management IP address, and detecting whether monitoring is started aiming at a defined IP address in the local IP address configuration information;
and if the monitoring is not started aiming at the defined IP address, restarting the monitoring aiming at the current defined IP address.
7. A multipath connection device applied to a client comprises:
the configuration receiving module is used for receiving the multi-path IP address configuration information sent by the server;
the configuration updating module is used for updating local IP address configuration information according to the multi-path IP address configuration information and updating local routing configuration based on the local IP address configuration information;
a path configuration module, configured to automatically connect or disconnect an IP path in combination with the local IP address configuration information, the local routing configuration, and the currently connected IP path;
and the monitoring starting module is used for updating a client routing table based on the local IP address configuration information, starting or closing monitoring of the corresponding IP address in the server and finishing updating of the multi-path connection.
8. The multi-path connection device as claimed in claim 7, wherein the path configuration module comprises:
the path traversing unit is used for traversing the current connected IP paths according to a preset time interval so as to acquire IP addresses corresponding to the connected IP paths;
a path disconnection unit, configured to determine whether the IP address belongs to a defined IP address in the local IP address configuration information, and if not, automatically perform a disconnection operation on the currently connected IP path;
the address traversal unit is used for traversing the defined IP address in the local IP address configuration information and detecting whether the corresponding defined IP address exists in the current connected IP path or not;
and the path connection unit is used for automatically performing connection operation of the IP path based on the defined IP address if the corresponding defined IP address is not detected in the current connected IP path.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the multi-path joining method as claimed in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the multi-path joining method as claimed in any one of claims 1 to 6.
CN202011033766.1A 2020-09-27 2020-09-27 Multipath connection method and device, electronic equipment and storage medium Withdrawn CN112333295A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011033766.1A CN112333295A (en) 2020-09-27 2020-09-27 Multipath connection method and device, electronic equipment and storage medium
PCT/CN2021/089935 WO2022062390A1 (en) 2020-09-27 2021-04-26 Multi-path connection method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011033766.1A CN112333295A (en) 2020-09-27 2020-09-27 Multipath connection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112333295A true CN112333295A (en) 2021-02-05

Family

ID=74303426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011033766.1A Withdrawn CN112333295A (en) 2020-09-27 2020-09-27 Multipath connection method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112333295A (en)
WO (1) WO2022062390A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608690A (en) * 2021-07-17 2021-11-05 济南浪潮数据技术有限公司 Method, device and equipment for iscsi target multipath grouping and readable medium
WO2022062390A1 (en) * 2020-09-27 2022-03-31 苏州浪潮智能科技有限公司 Multi-path connection method and apparatus, electronic device, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8203938B2 (en) * 2008-05-22 2012-06-19 Level 3 Communications, Llc Multi-router IGP fate sharing
CN102480377B (en) * 2010-11-25 2015-05-20 中兴通讯股份有限公司 Management method and system of aggregation link
US10171303B2 (en) * 2015-09-16 2019-01-01 Avago Technologies International Sales Pte. Limited IP-based interconnection of switches with a logical chassis
CN106100986A (en) * 2016-07-25 2016-11-09 乐视控股(北京)有限公司 Line control of communication method and device
CN112333295A (en) * 2020-09-27 2021-02-05 苏州浪潮智能科技有限公司 Multipath connection method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022062390A1 (en) * 2020-09-27 2022-03-31 苏州浪潮智能科技有限公司 Multi-path connection method and apparatus, electronic device, and storage medium
CN113608690A (en) * 2021-07-17 2021-11-05 济南浪潮数据技术有限公司 Method, device and equipment for iscsi target multipath grouping and readable medium
CN113608690B (en) * 2021-07-17 2023-12-26 济南浪潮数据技术有限公司 Method, device, equipment and readable medium for iscsi target multipath grouping

Also Published As

Publication number Publication date
WO2022062390A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
CN111756756B (en) Terminal network control method and device, electronic equipment and storage medium
CN112737899B (en) Intelligent device management method and device, storage medium and electronic device
US11249788B2 (en) Cloud management platform, and virtual machine management method and system
KR20130060273A (en) Setup and configuration of a network storage system
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
CN112333295A (en) Multipath connection method and device, electronic equipment and storage medium
WO2021223454A1 (en) Screen projection method and system
CN110474960B (en) Method and device for service deployment in virtual network
US20140156820A1 (en) Configuration information selection based on extracted information
CN115801699A (en) CDN scheduling method, device and system
CN111585801A (en) ZigBee device upgrading method and related device
CN103546352A (en) Remote control method and device based on wireless login
CN110730244A (en) Networking method and system of DHT (distributed hash table) system, network equipment and storage medium
CN109510717B (en) Method, device, equipment and storage medium for acquiring information of node equipment
CN105306244B (en) Router management method, system and equipment
CN106571968A (en) Business switching method and system
CN104253792A (en) Substrate management controller virtual system and method
CN110519148B (en) Method, system and storage medium for establishing VPN channel by multilink backup
CN112954770A (en) Device binding method and device, storage medium and electronic device
CN110809045B (en) Data communication method and related equipment thereof
CN111314394B (en) Resource publishing method, device, equipment and storage medium of Internet of things
CN110851186A (en) Network equipment restarting method and device, electronic equipment and readable storage medium
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN109542841A (en) The method and terminal device of data snapshot are created in cluster

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210205

WW01 Invention patent application withdrawn after publication