CN112543230B - Method, device, equipment and medium for communication between controller host and cloud platform - Google Patents

Method, device, equipment and medium for communication between controller host and cloud platform Download PDF

Info

Publication number
CN112543230B
CN112543230B CN202011400949.2A CN202011400949A CN112543230B CN 112543230 B CN112543230 B CN 112543230B CN 202011400949 A CN202011400949 A CN 202011400949A CN 112543230 B CN112543230 B CN 112543230B
Authority
CN
China
Prior art keywords
communication link
main communication
cloud platform
link
controller host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011400949.2A
Other languages
Chinese (zh)
Other versions
CN112543230A (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.)
Shenzhen Jieshun Science and Technology Industry Co Ltd
Original Assignee
Shenzhen Jieshun Science and Technology Industry 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 Shenzhen Jieshun Science and Technology Industry Co Ltd filed Critical Shenzhen Jieshun Science and Technology Industry Co Ltd
Priority to CN202011400949.2A priority Critical patent/CN112543230B/en
Publication of CN112543230A publication Critical patent/CN112543230A/en
Application granted granted Critical
Publication of CN112543230B publication Critical patent/CN112543230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application discloses a method, a device, equipment and a computer readable storage medium for communication between a controller host and a cloud platform, wherein the method comprises the following steps: detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and opening the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route. According to the technical scheme, the abnormal condition that the main communication link does not work normally is timely found through the active detection of the main communication link, the normal connection and normal communication between the controller host and the cloud platform are guaranteed through the auxiliary link, the controller host and the cloud platform are prevented from being interrupted, the parking service is prevented from being interrupted as much as possible, and the running stability and reliability of the parking lot are improved.

Description

Method, device, equipment and medium for communication between controller host and cloud platform
Technical Field
The present disclosure relates to the field of network communications technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for communicating a controller host with a cloud platform.
Background
In a parking lot, a controller host is connected with a cloud platform through a network and communicates so as to realize the processing of parking business.
At present, the controller host is connected and communicated with the cloud platform through a communication link, and when the communication link fails, the controller host is disconnected with the cloud platform, and the parking service is interrupted, so that the parking lot cannot normally operate. And it is detected after the interruption of the parking service, and the maintenance is performed after the network of the controller host is found to be faulty, which results in the continuous interruption of the parking service.
In summary, how to avoid interruption of parking service as much as possible is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, an apparatus, a device, and a computer readable storage medium for communication between a controller host and a cloud platform, which are used to avoid interruption of parking service as much as possible.
In order to achieve the above object, the present application provides the following technical solutions:
a method of controller host communication with a cloud platform, comprising:
detecting whether a main communication link between a controller host in a parking lot and a cloud platform works normally or not;
if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link;
and opening the target auxiliary link, and updating a routing table and a default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
Preferably, after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, the method further includes:
detecting whether the main communication link is restored to normal;
if yes, updating the routing table and the default route according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route.
Preferably, after determining that the primary communication link is restored to normal, the method further comprises:
and detecting whether the main communication link is stable within a preset time length, if so, executing the step of updating the routing table and the default route according to the main communication link.
Preferably, before detecting whether the primary communication link returns to normal, the method further comprises:
and opening an interface of the main communication link, and controlling the main communication link not to join the routing table.
Preferably, detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally includes:
and detecting the phy state, detecting the network state of the main communication link through an icmp protocol, and if the phy state and/or the network state of the main communication link are abnormal, determining that the main communication link does not work normally.
Preferably, after determining that the primary communication link is not working properly, the method further comprises:
and sending out a notice that the main communication link does not work normally.
Preferably, detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally includes:
and detecting whether the main communication link works normally or not at preset time intervals.
A controller host and cloud platform communication device, comprising:
the first detection module is used for detecting whether a main communication link between a controller host and the cloud platform in the parking lot works normally or not;
the selecting module is used for closing the interface of the main communication link and selecting a target auxiliary link from at least one auxiliary link if the main communication link does not work normally;
and the starting module is used for starting the target auxiliary link, and updating a routing table and a default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
A controller host and cloud platform communication device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for communicating a controller host with a cloud platform according to any of the above when executing the computer program.
A computer readable storage medium having stored therein a computer program which when executed by a processor performs the steps of the controller host and cloud platform communication method of any of the above.
The application provides a method, a device, equipment and a computer readable storage medium for communication between a controller host and a cloud platform, wherein the method comprises the following steps: detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and opening the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
According to the technical scheme, whether the main communication link between the controller host and the cloud platform in the parking lot works normally is detected, the interface of the main communication link is closed when the main communication link does not work normally is detected, the target auxiliary link is selected from the auxiliary links, the target auxiliary link is opened, the routing table and the default route are updated, so that the controller host can communicate with the cloud platform through the target auxiliary link, namely, the abnormal condition that the main communication link does not work normally can be timely found through the active detection of the main communication link, and the auxiliary link is utilized to ensure the normal connection and normal communication between the controller host and the cloud platform when the main communication link does not work normally, so that the controller host and the cloud platform are prevented from being interrupted due to the fact that the main communication link does not work normally, the interruption of parking service is avoided as much as possible, and the running stability and reliability of the parking lot are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a flowchart of a method for communication between a controller and a cloud platform according to an embodiment of the present application;
fig. 2 is a schematic connection diagram between a controller host and a cloud platform according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a controller host and a cloud platform communication device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a controller host and a cloud platform communication device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, which is a flowchart illustrating a method for communication between a controller and a cloud platform according to an embodiment of the present application, the method for communication between a controller and a cloud platform according to an embodiment of the present application may include:
s11: detecting whether a main communication link between a controller host in a parking lot and a cloud platform works normally or not; if yes, executing step S11, and if not, executing step S12;
considering that the prior art that the communication connection between the controller host and the cloud platform is realized through one communication link can cause the controller host to disconnect from the cloud platform after the communication link fails, thereby interrupting parking service, detecting the parking service after the interruption and maintaining the parking service when the communication link between the controller host and the cloud platform fails, and continuously interrupting the parking service.
Specifically, when the controller host in the parking lot and the cloud platform are connected and communicated through the main communication link, whether the main communication link between the controller host and the cloud platform works normally or not can be detected, so that the abnormal condition that the main communication link does not work normally can be timely found through active detection. When the detection is performed, if it is determined that the main communication link between the controller host and the cloud platform is in normal operation, step S11 may be continuously performed to continuously detect the main communication link, and if it is determined that the main communication link between the controller host and the cloud platform is not in normal operation, step S12 may be performed.
S12: the interface of the primary communication link is closed and a target secondary link is selected from the at least one secondary link.
When it is determined that the main communication link between the controller host and the cloud platform does not work normally, the interface of the main communication link may be closed, that is, an unnecessary interface may be closed, and at the same time, one auxiliary link may be selected from at least one auxiliary link set in advance between the controller host and the cloud platform as a target auxiliary link, specifically, random selection may be performed, or each auxiliary link may be numbered in advance, and selection may be performed in order of from small to large or from large to small.
It should be noted that, when only one auxiliary link is provided, the auxiliary link may be directly used as a target auxiliary link, and in order to reduce the running cost of the parking lot, one auxiliary link may be preferably provided, specifically, fig. 2 may be referred to, which shows a connection schematic diagram between the controller host and the cloud platform provided in the embodiment of the present application, and in fig. 2, one main communication link and one auxiliary link are provided between the controller host and the cloud platform.
S13: and opening the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
After the target auxiliary link is selected, the target auxiliary link can be started, and the routing table and the default route can be updated according to the started target auxiliary link, namely, the routing table and the default route are updated to be data transmission paths by the target auxiliary link, so that the controller can communicate with the cloud platform according to the updated routing table and the updated default route and through the target auxiliary link, and equipment accessed through the controller host can be accessed to the cloud platform through the controller host and the target auxiliary link, so that parking business in a parking lot can be continued without interruption, and the reliability, stability and continuity of operation of the parking lot are improved. In addition, because the communication link between the controller host and the cloud platform is switched without human intervention, the communication cost of the controller host and the cloud platform can be reduced, and the labor cost of parking lot operation is reduced.
It should be noted that after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, whether the target auxiliary link works normally or not may be detected, and when the target auxiliary link does not work normally, the controller host may switch to the main communication link or any other auxiliary link (when the main communication link is normal, the controller host may switch to the main communication link directly, and when the main communication link is abnormal, the controller host may switch to any other auxiliary link) so that the controller host may communicate with the cloud platform continuously, thereby avoiding interruption of the parking service.
According to the technical scheme, whether the main communication link between the controller host and the cloud platform in the parking lot works normally is detected, the interface of the main communication link is closed when the main communication link does not work normally is detected, the target auxiliary link is selected from the auxiliary links, the target auxiliary link is opened, the routing table and the default route are updated, so that the controller host can communicate with the cloud platform through the target auxiliary link, namely, the abnormal condition that the main communication link does not work normally can be timely found through the active detection of the main communication link, and the auxiliary link is utilized to ensure the normal connection and normal communication between the controller host and the cloud platform when the main communication link does not work normally, so that the controller host and the cloud platform are prevented from being interrupted due to the fact that the main communication link does not work normally, the interruption of parking service is avoided as much as possible, and the running stability and reliability of the parking lot are improved.
The method for communicating the controller with the cloud platform provided by the embodiment of the application, after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, may further include:
detecting whether the main communication link is restored to normal;
if yes, the routing table and the default route are updated according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route.
In the application, after the routing table and the default route are updated according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, whether the main communication link is restored or not can be detected, if the main communication link is not restored, the controller host can continue to communicate with the cloud platform through the target auxiliary link and can continue to execute the step of detecting whether the main communication link is restored normally, if the main communication link is restored to be normal, the interface of the target auxiliary link can be closed, and the routing table and the default route are updated according to the main communication link so that the controller host can communicate with the cloud platform through the main communication link according to the routing table and the default route, namely, the controller host can be connected and communicate with the cloud platform through the main communication link by utilizing the restored main communication link, namely, under the condition that the main communication link is normal, the main communication link is preferentially adopted to provide services for communication between the controller host and the cloud platform.
The method for communication between the controller and the cloud platform provided in the embodiment of the present application may further include, after determining that the main communication link is restored to normal:
and detecting whether the main communication link is stable within a preset time length, and if so, executing the step of updating the routing table and the default route according to the main communication link.
After determining that the main communication link is restored to be normal, whether the main communication link remains stable for a preset time length can be detected, if the main communication link does not remain stable for the preset time length, the network of the main communication link is not stable, at this time, in order to avoid affecting the communication between the controller host and the cloud platform, the step of updating the routing table and the default route according to the main communication link is not performed, if the main communication link remains stable for the preset time length, the network of the main communication link is stable, at this time, the step of updating the routing table and the default route according to the main communication link can be performed, so as to improve the communication quality and the communication stability of the controller host and the cloud platform.
It should be noted that the above-mentioned preset time period may be set manually and empirically.
The method for communication between the controller and the cloud platform provided in the embodiment of the present application may further include, before detecting whether the main communication link is restored to normal:
the interface of the primary communication link is opened and the primary communication link is controlled not to join the routing table.
After the routing table and the default route are updated according to the target auxiliary link, so that the controller host can communicate with the cloud platform through the target auxiliary link according to the routing table and the default route and before whether the main communication link is recovered to be normal is detected, the interface of the main communication link can be opened, but the main communication link is not added into the routing table at this time, so that the influence on the communication between the controller host and the cloud platform is avoided, and the routing table and the default route can be updated according to the main communication link directly after the main communication link is recovered to be normal, namely the work of the main communication link is recovered directly.
The method for detecting whether the main communication link between the controller host and the cloud platform in the parking lot works normally can include:
and detecting the phy state, detecting the network state of the main communication link through an icmp protocol, and if the phy state and/or the network state of the main communication link are abnormal, determining that the main communication link does not work normally.
In the application, when detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally, a phy (physical interface transceiver) state can be detected, and an icmp (Internet Control Message Protocol ) protocol can be sent to detect a network state of the main communication link through the icmp protocol, if the phy state is abnormal and/or the network state of the main communication link is abnormal, the main communication link is determined to not work normally, and if the phy state is normal and the network state of the main communication link is normal, the main communication link is determined to be normal.
Similarly, when detecting whether the main communication link is normal, the phy may be detected, and the network state of the main communication link may be detected through the icmp protocol, and if both are normal, it may be determined that the main communication link is normal.
The method for communication between the controller and the cloud platform provided in the embodiment of the present application may further include, after determining that the main communication link does not work normally:
a notification is sent that the primary communication link is not working properly.
After determining that the main communication link does not work normally, a notification that the main communication link does not work normally can be sent out, specifically, a notification that the main communication link does not work normally can be sent out through any one or any combination of a plurality of buzzing, flashing of an indicator light, mail notification and short message notification, so that a manager of a parking lot can timely learn the message that the main communication link does not work normally, and timely perform maintenance and other operations on the main communication link.
The method for detecting whether the main communication link between the controller host and the cloud platform in the parking lot works normally can include:
and detecting whether the main communication link works normally or not at preset time intervals.
When the main communication link is detected, whether the main communication link works normally or not can be detected at preset time intervals, wherein the size of the preset time intervals can be set according to experience or actual needs.
Of course, whether the main communication link works normally may also be detected in real time or after receiving the detection command, and the detection mode is not limited in this application.
The embodiment of the application also provides a communication device for a controller host and a cloud platform, referring to fig. 3, which shows a schematic structural diagram of the communication device for the controller host and the cloud platform, which may include:
the first detection module 31 is configured to detect whether a main communication link between a controller host and a cloud platform in a parking lot works normally;
a selecting module 32, configured to close an interface of the primary communication link and select a target auxiliary link from at least one auxiliary link if the primary communication link does not work normally;
and the opening module 33 is configured to open the target auxiliary link, and update the routing table and the default route according to the target auxiliary link, so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
The embodiment of the application provides a controller host computer and cloud platform communication device, may further include:
the second detection module is used for detecting whether the main communication link is recovered to be normal or not after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route;
and the updating module is used for updating the routing table and the default route according to the main communication link if the main communication link is recovered to be normal, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route.
The embodiment of the application provides a controller host computer and cloud platform communication device, may further include:
and the third detection module is used for detecting whether the main communication link is stable within a preset time length after the main communication link is determined to be normal, and if so, executing the step of updating the routing table and the default route according to the main communication link.
The embodiment of the application provides a controller host computer and cloud platform communication device, may further include:
and the control module is used for starting the interface of the main communication link before detecting whether the main communication link is recovered to be normal or not, and controlling the main communication link not to join the routing table.
The embodiment of the present application provides a controller host and cloud platform communication device, the first detection module 31 may include:
the first detection unit is used for detecting the phy state, detecting the network state of the main communication link through an icmp protocol, and if the phy state and/or the network state of the main communication link are abnormal, determining that the main communication link does not work normally.
The embodiment of the application provides a controller host computer and cloud platform communication device, may further include:
and the sending notification module is used for sending a notification that the main communication link does not work normally after determining that the main communication link does not work normally.
The embodiment of the present application provides a controller host and cloud platform communication device, the first detection module 31 may include:
and the second detection unit is used for detecting whether the main communication link works normally or not at preset time intervals.
The embodiment of the application also provides a communication device for a controller host and a cloud platform, referring to fig. 4, which shows a schematic structural diagram of the communication device for the controller host and the cloud platform, which may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and opening the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps can be realized:
detecting whether a main communication link between a controller in a parking lot and a cloud platform works normally or not; if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link; and opening the target auxiliary link, and updating the routing table and the default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The description of the relevant parts in the communication device, the device and the computer readable storage medium of the controller host and the cloud platform provided in the embodiments of the present application may refer to the detailed description of the corresponding parts in the communication method of the controller host and the cloud platform provided in the embodiments of the present application, which is not repeated here.
It is noted that 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. Moreover, 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 is inherent to. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A method for communicating a controller host with a cloud platform, comprising:
detecting whether a main communication link between a controller host in a parking lot and a cloud platform works normally or not;
if not, closing the interface of the main communication link, and selecting a target auxiliary link from at least one auxiliary link;
opening the target auxiliary link, and updating a routing table and a default route according to the target auxiliary link so that the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route;
after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route, the method further comprises:
detecting whether the main communication link is restored to normal;
if yes, updating the routing table and the default route according to the main communication link, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route;
after determining that the primary communication link is restored to normal, further comprising:
detecting whether the main communication link is stable within a preset time length, if so, executing the step of updating the routing table and the default route according to the main communication link;
before detecting whether the primary communication link is restored to normal, the method further comprises:
opening an interface of the main communication link, and controlling the main communication link not to join the routing table;
detecting whether a main communication link between a controller host and a cloud platform in a parking lot works normally, comprising:
and detecting the phy state, detecting the network state of the main communication link through an icmp protocol, and if the phy state and/or the network state of the main communication link are abnormal, determining that the main communication link does not work normally.
2. The controller-host-to-cloud platform communication method of claim 1, further comprising, after determining that the primary communication link is not working properly:
and sending out a notice that the main communication link does not work normally.
3. The method of claim 1, wherein detecting whether a primary communication link between the controller host and the cloud platform in the parking lot is operating properly comprises:
and detecting whether the main communication link works normally or not at preset time intervals.
4. An apparatus for a controller host to communicate with a cloud platform, comprising:
the first detection module is used for detecting whether a main communication link between a controller host and the cloud platform in the parking lot works normally or not;
the selecting module is used for closing the interface of the main communication link and selecting a target auxiliary link from at least one auxiliary link if the main communication link does not work normally;
the starting module is used for starting the target auxiliary link, updating a routing table and a default route according to the target auxiliary link, and enabling the controller host to communicate with the cloud platform through the target auxiliary link according to the routing table and the default route;
further comprises:
the second detection module is used for detecting whether the main communication link is recovered to be normal or not after the controller host communicates with the cloud platform through the target auxiliary link according to the routing table and the default route;
the updating module is used for updating the routing table and the default route according to the main communication link if the main communication link is recovered to be normal, so that the controller host communicates with the cloud platform through the main communication link according to the routing table and the default route;
the third detection module is configured to detect whether the main communication link remains stable for a preset time period after determining that the main communication link returns to normal, and if so, execute the step of updating the routing table and the default route according to the main communication link;
the control module is used for starting an interface of the main communication link before detecting whether the main communication link is recovered to be normal or not, and controlling the main communication link not to join the routing table;
the first detection module includes:
the first detection unit is used for detecting the phy state, detecting the network state of the main communication link through an icmp protocol, and determining that the main communication link does not work normally if the phy state and/or the network state of the main communication link are abnormal.
5. A communication device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for communicating a controller host with a cloud platform according to any of claims 1 to 3 when executing the computer program.
6. A computer readable storage medium, characterized in that it has stored therein a computer program which, when executed by a processor, implements the steps of the method for communication between a controller host and a cloud platform according to any of claims 1 to 3.
CN202011400949.2A 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform Active CN112543230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011400949.2A CN112543230B (en) 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011400949.2A CN112543230B (en) 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform

Publications (2)

Publication Number Publication Date
CN112543230A CN112543230A (en) 2021-03-23
CN112543230B true CN112543230B (en) 2023-06-27

Family

ID=75015761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011400949.2A Active CN112543230B (en) 2020-12-04 2020-12-04 Method, device, equipment and medium for communication between controller host and cloud platform

Country Status (1)

Country Link
CN (1) CN112543230B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7174393B2 (en) * 2000-12-26 2007-02-06 Alacritech, Inc. TCP/IP offload network interface device
CN102368860B (en) * 2011-08-23 2018-07-06 李秀川 A kind of method for switching network and device
CN107332683A (en) * 2016-04-29 2017-11-07 中国移动通信集团内蒙古有限公司 A kind of link switch-over method and system
CN109118600B (en) * 2018-08-09 2022-01-25 武汉锐杰智通网络科技有限公司 Parking charging cloud platform and method based on Internet of things
CN111262665B (en) * 2018-11-30 2022-04-12 北京金山云网络技术有限公司 Data communication method, device, controller and system
CN111193664A (en) * 2020-01-16 2020-05-22 郑州轻工业大学 Link backup method and device for computer network

Also Published As

Publication number Publication date
CN112543230A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN108270669B (en) Service recovery device, main controller, system and method of SDN network
CN102546222B (en) Backup system and fault detection and processing method
CN102137017B (en) Working method and device used for virtual network unit
CN101702663A (en) Method for updating ring network topology information, device and system thereof
CN102088415B (en) Method and device for MAC (media access control) address withdrawal
CN112165429B (en) Link aggregation convergence method and device for distributed switching equipment
CN102195861A (en) Method and device for establishing BFD (bidirectional forwarding detection) session in route switching process
CN111585797B (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN111988162A (en) Method and device for managing port configuration mode
CN111030877A (en) Main/standby equipment switching method and device
EP2530881A1 (en) Media access control address protection method and switch
CN112543230B (en) Method, device, equipment and medium for communication between controller host and cloud platform
CN101340377B (en) Method, apparatus and system for data transmission in double layer network
CN109445975B (en) Exception handling method, logic device and member equipment
CN102158393B (en) Method and device for updating virtual private network (VPN) routing
CN111629386B (en) Communication method, system and equipment
CN111371680B (en) Route management method, device, equipment and storage medium for dual-computer hot standby
CN106330571B (en) A kind of fault handling method and device
CN102546313B (en) Multi-activation detection method and multi-activation detection device
CN103596041A (en) Information prompt method and device
CN100401681C (en) Method for realizing configuration of service frame data
CN110138636B (en) Dynamic linear protection method and device
CN108174417B (en) Main/standby switching method and device, related electronic equipment and readable storage medium
JP2018046356A (en) Radio network system, management device thereof and radio base station setting change method
CN107340973B (en) Method and system for accessing asynchronous logic unit

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