CN106332196B - Data communication method and device - Google Patents

Data communication method and device Download PDF

Info

Publication number
CN106332196B
CN106332196B CN201610734170.1A CN201610734170A CN106332196B CN 106332196 B CN106332196 B CN 106332196B CN 201610734170 A CN201610734170 A CN 201610734170A CN 106332196 B CN106332196 B CN 106332196B
Authority
CN
China
Prior art keywords
link
switching
communication
vehicle
original
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
CN201610734170.1A
Other languages
Chinese (zh)
Other versions
CN106332196A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610734170.1A priority Critical patent/CN106332196B/en
Publication of CN106332196A publication Critical patent/CN106332196A/en
Application granted granted Critical
Publication of CN106332196B publication Critical patent/CN106332196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0066Transmission or use of information for re-establishing the radio link of control information between different types of networks in order to establish a new radio link in the target network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a data communication method and a device, wherein the method comprises the following steps: determining a pre-switching link by the vehicle-mounted access point AP; the vehicle-mounted AP receives data messages sent by the trackside switch through the pre-switching link and the original link; and when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication. The method and the device effectively avoid the loss of the data message, realize the zero packet loss of link switching and improve the reliability of the communication system.

Description

Data communication method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data communication method and apparatus.
Background
In a traditional Wireless Local Area Network (WLAN) technology, APs (access points) are connected through a wired network, and the wired connection determines that the APs in the Wireless network still have no mobility, and limits the Wireless freedom. Since the Mesh network technology provides support for the mobility of the AP, the Mesh network technology becomes a major force of the rail transit (e.g., subway, motor train, etc.) communication technology.
At present, the application of the Mesh network technology on the subway is developed very rapidly. In rail transit, CBTC (Communication Based Train Control System) and PIS (Passenger Information System) are two main applications, and the systems are used for providing monitoring and video application functions. The CBTC is used for train control, the PIS is used for train video and monitoring applications, and both systems undoubtedly need support of a communication System so as to perform timely and effective vehicle-ground data communication and synchronization, that is, support of a Distributed Control System (DCS) is needed. The CBTC is used as a train control system, relates to operations such as train movement stop and vehicle door opening and closing, and has a very high requirement on the reliability of a communication system.
Disclosure of Invention
The application provides a data communication method and device.
Specifically, the present application discloses a data communication method, which includes:
determining a pre-switching link by the vehicle-mounted access point AP;
the vehicle-mounted AP receives data messages sent by the trackside switch through the pre-switching link and the original link;
and when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication.
The application also discloses a data communication device, the device is applied to on-vehicle access point AP, the device includes:
a first determining module, configured to determine a pre-switched link;
a receiving module, configured to receive, after the pre-switched link is determined by the first determining module, a data packet sent by a trackside switch through the pre-switched link and an original link;
and the switching module is used for switching to the pre-switching link for data communication when the receiving module receives the unicast data message sent by the pre-switching link for the first time.
Compared with the prior art, the method has the following advantages:
according to the data communication scheme, the vehicle-mounted AP can determine a pre-switching link firstly; then, receiving the data message sent by the trackside switch through the pre-switching link and the original link; and finally, when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication. Therefore, in the application, considering that the communication link switching needs waiting time, the communication link can be pre-switched after the pre-switched link is determined, and in the pre-switching stage, the pre-switched link and the original link can operate simultaneously, so that the loss of data messages between the successful switching of the pre-switched link is effectively avoided, the zero packet loss of the link switching is realized, and the reliability of the communication system is improved.
Secondly, in the application, when the vehicle-mounted AP receives the unicast data message sent through the pre-switching link for the first time, the vehicle-mounted AP can switch to the pre-switching link in time to perform data communication to complete switching of the communication link, thereby accurately ensuring accuracy of the switching time.
Drawings
FIG. 1 is a flow chart of steps of a method of data communication in an embodiment of the present application;
FIG. 2 is a flow chart of steps of yet another method of data communication in an embodiment of the present application;
FIG. 3 is a flow chart illustrating a data communication method according to an embodiment of the present application;
fig. 4 is a block diagram of a data communication apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a preferred data communication apparatus in the embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Currently, Mesh network technology is widely applied to rail transit. Taking the current subway Mesh network as an example, as long as configuration is allowed and the strength of the wireless signal is proper, the vehicle-mounted AP can establish a Mesh Link (Link) with the trackside AP. The method for establishing the Link has certain randomness, and in order to guarantee the communication quality, the conventional subway Mesh implementation method generally establishes a plurality of Mesh links, regularly detects the communication quality condition of each Mesh Link, and always selects the Link with the best communication quality as a main Link to bear the communication between the trackside AP and the vehicle-mounted AP so as to achieve the purpose of stabilizing the Link quality.
Further, since the communication of the two-layer network depends on an Address Resolution Protocol (ARP) entry, in the switching process of the Mesh Link, the vehicle-mounted AP needs to send a switching request message, such as an ARP message, to the trackside switch to refresh the ARP entry of the trackside switch. However, there is a certain processing time from the instant when the vehicle-mounted AP sends out the ARP packet to the instant when the trackside switch receives the ARP packet and completes the refresh of the ARP entry, and during this time, the original communication link between the original trackside AP and the vehicle-mounted AP has been configured to be in a standby state (i.e., the original communication link has not been qualified to transmit data), but because the trackside switch ARP entry has not been refreshed yet, the data packet sent by the trackside switch is still sent to the original trackside AP; further, since the trackside switch does not sense the specific state (whether in the standby state) of the original communication link, the original trackside AP continues to transmit the received data packet to the vehicle-mounted AP through the original communication link. However, the vehicle-mounted AP is aware of the state of the original communication link, so that after receiving the data packet sent by the original trackside AP through the original communication link, the vehicle-mounted AP discards the data packet sent by the original trackside AP through the original communication link when determining that the original communication link is in the backup state, which results in packet loss. In the environment with high reliability requirement, such as vehicle-to-ground communication, especially CBTC, the packet loss of data can cause serious safety problem.
The data communication method provided by the embodiment of the application can be used for solving the problem of packet loss in the communication link switching process.
Referring to fig. 1, a flow chart illustrating steps of a data communication method in an embodiment of the present application is shown. In this embodiment, the data communication method includes:
and 102, determining a pre-switching link by the vehicle-mounted AP.
Generally, in a subway wireless Mesh network, in order to ensure the communication quality between a vehicle-mounted AP and a trackside AP, a plurality of communication links may be established between the vehicle-mounted AP and the trackside AP for bearing the communication between the trackside AP and the vehicle-mounted AP.
Due to the influence of factors such as external environment, the communication quality of a communication link between the vehicle-mounted AP and the trackside AP changes at any time. In this embodiment, one communication link with the best current communication quality may be selected from a plurality of communication links, but is not limited to the selected communication link.
In this embodiment, the communication quality of each Mesh Link may be determined in any suitable manner. For example, the communication quality of each meslink may be determined based on, but not limited to, index data such as RSSI (Received Signal Strength) and/or LQI (link quality indicator).
And 104, the vehicle-mounted AP receives the data message sent by the trackside switch through the pre-switching link and the original link.
In this embodiment, after determining the pre-switched link, switching of the communication link may not be performed immediately, but the pre-switched link and the original link may be selected to be used simultaneously for transmitting the data packet, so as to implement dual-link operation, that is, the data packet sent over the pre-switched link and the original link may be received simultaneously. And under the double-link operation environment, waiting for the trackside switch to receive the switching request message and finishing the refreshing of the switch list item. That is, in the pre-switching stage, the vehicle AP may receive the data packet sent through the pre-switching link and the original link at the same time.
It should be noted that the original link refers to an original communication link between the vehicle-mounted AP and the trackside AP. The communication quality of the pre-switched link is better than that of the original link.
And 106, when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication.
In this embodiment, the data messages sent via the pre-switched link and/or the original link include, but are not limited to: unicast data messages, broadcast data messages, multicast data messages, and the like. When the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, the vehicle-mounted AP can be switched to the pre-switching link to carry out data communication. That is, the pre-switched link can be used alone for data communication, and the original link is not used for data communication.
In summary, in the data communication method according to this embodiment, the vehicle-mounted AP may determine the pre-handover link first; then, receiving the data message sent by the pre-switching link and the original link; and finally, when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication. It can be seen that, in this embodiment, it is considered that a waiting time is required for performing the switching of the communication link, so that the pre-switching of the communication link can be performed after the pre-switching link is determined, and in the pre-switching stage, the pre-switching link and the original link can be operated simultaneously, thereby effectively avoiding the loss of data packets between successful switching of the pre-switching link, realizing zero packet loss in link switching, and improving the reliability of the communication system.
Secondly, in this embodiment, when receiving the unicast data packet sent over the pre-switching link for the first time, the vehicle-mounted AP may switch to the pre-switching link in time to perform data communication to complete switching of the communication link, thereby accurately ensuring accuracy of the switching time.
Referring to fig. 2, a flow chart illustrating steps of another data communication method in the embodiment of the present application is shown. In this embodiment, the data communication method includes:
in step 202, the vehicle AP determines a pre-handoff link.
In this embodiment, the pre-switched link may be determined according to communication qualities of a plurality of communication links between the in-vehicle AP and the trackside AP. One possible way to determine the pre-switched link may be as follows: monitoring the communication quality of at least two communication links, and respectively acquiring the communication quality of each communication link; wherein the at least two communication links comprise the original link; when the communication quality corresponding to the original link is lower than the communication quality of the other communication links except the original link, one communication link with the best communication quality can be selected from the other communication links to be used as the pre-switching link.
It should be noted that, in this embodiment, after the vehicle-mounted AP determines the pre-handover link, a handover request message (e.g., an ARP message) may be sent to the trackside switch. The ARP message may be used to request the trackside switch to update an ARP entry. After the wayside switch completes updating the ARP entry, the vehicle-mounted AP may perform data communication with the new wayside AP determined according to the updated ARP entry.
And step 204, the vehicle-mounted AP marks the original link as a reserved state.
In this embodiment, after determining the pre-switched link, the vehicle-mounted AP may mark the original link as a preliminary link state, and when the original link is in the preliminary link state, the original link may also be used for transmission of a data packet.
And step 206, the vehicle-mounted AP receives the data message sent by the trackside switch through the pre-switching link and the original link.
In this embodiment, since it takes time for the trackside switch to receive the switching request message and for the switch to refresh the ARP entry after receiving the switching request message, the vehicle-mounted AP may transmit the data message through the dual link before the trackside switch successfully completes the ARP entry refresh, that is, the vehicle-mounted AP may receive the data message sent through the pre-switch link and the original link at the same time.
Step 208, the vehicle-mounted AP judges whether the same data message exists in the data message sent by the trackside switch through the pre-switch link and the original link; upon a determination of yes, the following step 210 may be performed; if the determination is no, the following step 212 may be executed without performing processing.
In this embodiment, since the trackside switch has not yet successfully completed refreshing the ARP entry at this time, there is no unicast data packet transmission on the pre-switched link for a while. Then, in order to avoid that the broadcast packet or the multicast packet impacts the vehicle-mounted AP during the operation of the dual link, the vehicle-mounted AP may perform a re-determination process on the received data packet, that is, determine whether the same data packet exists in the data packet transmitted through the pre-switched link and the original link, where the data packet to be re-determined is mainly a broadcast data packet or a multicast data packet.
Step 210, the vehicle-mounted AP respectively determines the uplink links corresponding to the same data packets, retains the data packets of which the uplink links are pre-switched links, and discards the data packets of which the uplink links are original links.
And step 212, when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication.
In this embodiment, if the vehicle-mounted AP successfully receives the unicast data packet sent over the pre-switch link, it indicates that the trackside switch has successfully completed refreshing the ARP entry at this time. Therefore, when the vehicle-mounted AP receives the unicast data packet sent through the pre-switched link for the first time, the vehicle-mounted AP can switch to the pre-switched link to perform data communication, that is, the vehicle-mounted AP does not continue to use the original link to perform data packet transmission.
Preferably, when the on-board AP first receives the unicast data packet sent over the pre-handover link, the on-board AP may also change the flag of the original link from the pre-backup state to the backup state. In this embodiment, when the original link is in the backup state, the data packet is not transmitted any more. Therefore, when determining that only the pre-switched link is used for data message transmission, the mark of the original link can be modified from the preliminary state to the backup state.
In summary, in the data communication method according to this embodiment, the vehicle-mounted AP may determine the pre-handover link first; then, receiving the data message sent by the trackside switch through the pre-switching link and the original link; and finally, when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication. It can be seen that, in this embodiment, it is considered that a waiting time is required for performing the switching of the communication link, so that the pre-switching of the communication link can be performed after the pre-switching link is determined, and in the pre-switching stage, the pre-switching link and the original link can be operated simultaneously, thereby effectively avoiding the loss of data packets between successful switching of the pre-switching link, realizing zero packet loss in link switching, and improving the reliability of the communication system.
Secondly, in this embodiment, when receiving the unicast data packet sent over the pre-switching link for the first time, the vehicle-mounted AP may switch to the pre-switching link in time to perform data communication to complete switching of the communication link, thereby accurately ensuring accuracy of the switching time.
In addition, in this embodiment, in the pre-switching stage, that is, in the stage of using the pre-switching link and the original link at the same time, a re-judging mechanism for the data message is introduced, so that the problem of abnormal upper layer service and even broadcast storm caused by the repeated message transmission is effectively prevented.
With reference to the foregoing embodiments, the present embodiment explains the data communication method by a specific example. In the embodiment, the data communication method may be, but is not limited to, applied to a Mesh networking environment of rail transit (e.g., subway, train, etc.). The Mesh networking may include: the system comprises a trackside AP, a vehicle-mounted AP and a trackside switch. The Mesh Link can be established between the vehicle-mounted AP and any one trackside AP, that is, the Mesh Link can be established between the vehicle-mounted AP and a plurality of trackside APs, and generally, the Mesh Link with the best communication quality can be selected to bear communication between the trackside AP and the vehicle-mounted AP.
Referring to fig. 3, a flowchart of a data communication method in the embodiment of the present application is shown. The specific flow of the data communication method may be as follows:
in step 302, the vehicle AP (i.e., the vehicle side) determines that a link switching condition is reached.
As described above, generally, a communication link with the best communication quality is selected to carry communication between the trackside AP and the onboard AP. The determination that the link switching condition is reached may be understood as: the communication quality of the current original Link in all the Mesh links is not optimal.
And step 304, the vehicle-mounted AP determines the pre-switching link and sends an ARP message to the trackside switch.
In this embodiment, the pre-switched Link is one communication Link with the best communication quality among all Mesh links. Wherein, the original link is: a communication link between the onboard AP and an original trackside AP (e.g., trackside AP 1); the pre-switched link is: a communication link between the onboard AP and a new trackside AP (e.g., trackside AP 2).
After step 304, the vehicle-mounted end will perform step 306, and the ground end (i.e., the wayside switch) will start to perform step 402.
Step 306, the vehicle-mounted AP continues to receive the data message through the original link.
In this embodiment, the vehicle-mounted AP continues to receive the data packet through the original link, which means that the vehicle-mounted AP currently receives the data packet through the dual link of the original link and the pre-switched link, and at this time, the corresponding state of the original link is the pre-backup state.
And 308, the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time.
It should be noted that, during the process of executing steps 302 and 308 at the vehicle-mounted end, the ground end executes steps 402 and 406 at the same time.
Wherein, the steps 402-406 may specifically be as follows:
step 402, the wayside switch receives the ARP message.
And step 404, the trackside switch refreshes the ARP list item according to the ARP message.
In this embodiment, before the wayside switch receives the ARP packet and successfully refreshes the ARP entry according to the ARP packet, the vehicle-mounted end can transmit the data packet through the dual link (step 306)
And step 406, the trackside switch successfully refreshes the ARP table entry, and sends the data message to the new trackside AP.
In this embodiment, the data packet sent to the new trackside AP may be a unicast data packet, and correspondingly, the vehicle-mounted terminal executes step 308 correspondingly.
At this point, the step flow of the ground end is completed, and the following steps of the vehicle-mounted end are explained continuously.
And step 310, the vehicle-mounted AP uses the pre-switching link to carry out communication, and the state of the original link is modified into a backup state.
In this embodiment, the original link is no longer used for data packet transmission when the original link is in the backup state. At this time, data packet transmission can be performed only by using the pre-switched link, that is, the link switching is completed, and communication is performed by using the switched new link.
In summary, in the data communication method according to this embodiment, the vehicle-mounted AP may determine the pre-handover link first; then, receiving the data message sent by the trackside switch through the pre-switching link and the original link; and finally, when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication. It can be seen that, in this embodiment, it is considered that a waiting time is required for performing the switching of the communication link, so that the pre-switching of the communication link can be performed after the pre-switching link is determined, and in the pre-switching stage, the pre-switching link and the original link can be operated simultaneously, thereby effectively avoiding the loss of data packets between successful switching of the pre-switching link, realizing zero packet loss in link switching, and improving the reliability of the communication system.
Secondly, in this embodiment, when receiving the unicast data packet sent over the pre-switching link for the first time, the vehicle-mounted AP may switch to the pre-switching link in time to perform data communication to complete switching of the communication link, thereby accurately ensuring accuracy of the switching time.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
On the basis of the above method embodiment, referring to fig. 4, a block diagram of a data communication device in the embodiment of the present application is shown. In this embodiment, the data communication device is applied to an on-vehicle AP, and specifically includes:
a first determining module 402 for determining a pre-switched link.
A receiving module 404, configured to receive a data packet sent by the trackside switch via the pre-switched link and the original link after the first determining module 402 determines the pre-switched link.
A switching module 406, configured to switch to the pre-switched link for data communication when the receiving module 404 receives the unicast data packet sent over the pre-switched link for the first time.
It can be seen that, in this embodiment, it is considered that a waiting time is required for performing the switching of the communication link, so that the pre-switching of the communication link can be performed after the pre-switching link is determined, and in the pre-switching stage, the pre-switching link and the original link can be operated simultaneously, thereby effectively avoiding the loss of data packets between successful switching of the pre-switching link, realizing zero packet loss in link switching, and improving the reliability of the communication system.
Secondly, in this embodiment, when a unicast data packet sent over the pre-switched link is received for the first time, the pre-switched link can be switched to in time to perform data communication to complete switching of the communication link, so that accuracy of the switching time is accurately ensured.
In a preferred aspect of this embodiment, referring to fig. 5, a block diagram of a preferred data communication device in this embodiment is shown.
In a preferable aspect of this embodiment, the data communication apparatus may further include: a determining module 408, configured to determine whether the data packets sent by the trackside switch through the pre-switched link and the original link and received by the receiving module 404 have the same data packet; wherein the data packet includes: a broadcast data message or a multicast data message.
A second determining module 410, configured to determine, when the determination result of the determining module 408 is yes, uplink links corresponding to the same data packets respectively.
A processing module 412, configured to reserve the data packet of which the uplink determined by the second determining module 410 is the pre-switch link, and discard the data packet of which the uplink determined by the second determining module 410 is the original link.
In another preferable aspect of this embodiment, the data processing apparatus may further include:
a preliminary link marking module 414, configured to mark the original link in a preliminary state after the first determining module 402 determines that the link is pre-switched.
A backup marking module 416, configured to modify the marking of the original link from the pre-backup state to a backup state when the receiving module 404 first receives the unicast data packet sent over the pre-switched link.
In another preferred aspect of this embodiment, the data processing apparatus may further include:
a monitoring module 418, configured to monitor communication quality of at least two communication links, and obtain the communication quality of each communication link respectively; wherein the original link is included in the at least two communication links.
Further preferably, the first determining module 402 may be further configured to select, when the communication quality corresponding to the original link monitored by the monitoring module 418 is lower than the communication quality of the other communication links except the original link, one communication link with the best communication quality from the other communication links as the pre-hand-off link.
In summary, the data communication apparatus according to this embodiment may determine the pre-handover link first; then, receiving the data message sent by the pre-switching link and the original link; and finally, when the unicast data message sent by the pre-switching link is received for the first time, switching to the pre-switching link for data communication. It can be seen that, in this embodiment, it is considered that a waiting time is required for performing the switching of the communication link, so that the pre-switching of the communication link can be performed after the pre-switching link is determined, and in the pre-switching stage, the pre-switching link and the original link can be operated simultaneously, thereby effectively avoiding the loss of data packets between successful switching of the pre-switching link, realizing zero packet loss in link switching, and improving the reliability of the communication system.
Secondly, in this embodiment, when a unicast data packet sent over the pre-switched link is received for the first time, the pre-switched link can be switched to in time to perform data communication to complete switching of the communication link, so that accuracy of the switching time is accurately ensured.
In addition, in this embodiment, in the pre-switching stage, that is, in the stage of using the pre-switching link and the original link at the same time, a re-judging mechanism for the data message is introduced, so that the problem of abnormal upper layer service and even broadcast storm caused by the repeated message transmission is effectively prevented.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
The data communication method and apparatus provided by the present application are described in detail above, and a specific example is applied in the description to explain the principles and embodiments of the present application, and the description of the above embodiment is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A method of data communication, comprising:
determining a pre-switching link by the vehicle-mounted access point AP;
the vehicle-mounted AP receives data messages sent by the trackside switch through the pre-switching link and the original link;
the vehicle-mounted AP judges whether the same data message exists in the data message sent by the trackside switch through the pre-switch link and the original link; wherein the data packet includes: broadcasting data messages or multicasting data messages;
if yes, respectively determining the uplink corresponding to the same data message;
the vehicle-mounted AP reserves a data message of which the uplink is a pre-switching link, and discards a data message of which the uplink is an original link;
and when the vehicle-mounted AP receives the unicast data message sent by the pre-switching link for the first time, switching to the pre-switching link for data communication.
2. The method of claim 1, further comprising:
after determining the pre-switched link, the vehicle-mounted AP marks the original link as a preliminary copy state;
and when the unicast data message sent by the pre-switching link is received for the first time, the vehicle-mounted AP modifies the mark of the original link from the pre-backup state to the backup state.
3. The method of claim 1, wherein the determining of the pre-switched link by the vehicular AP comprises:
the vehicle-mounted AP monitors the communication quality of at least two communication links and respectively acquires the communication quality of each communication link; wherein the at least two communication links comprise the original link;
and when the communication quality corresponding to the original link is lower than the communication quality of other communication links except the original link in the at least two communication links, the vehicle-mounted AP selects one communication link with the optimal communication quality from the other communication links as the pre-switching link.
4. A data communication device is applied to an on-vehicle Access Point (AP), and comprises the following components:
a first determining module, configured to determine a pre-switched link;
a receiving module, configured to receive, after the pre-switched link is determined by the first determining module, a data packet sent by a trackside switch through the pre-switched link and an original link;
a judging module, configured to judge whether the same data packet exists in the data packet received by the receiving module and sent by the trackside switch through the pre-switched link and the original link; wherein the data packet includes: broadcasting data messages or multicasting data messages;
a second determining module, configured to determine, when the determination result of the determining module is yes, uplink links corresponding to the same data packet respectively;
a processing module, configured to reserve the data packet of which the uplink determined by the second determining module is the pre-switched link, and discard the data packet of which the uplink determined by the second determining module is the original link;
and the switching module is used for switching to the pre-switching link for data communication when the receiving module receives the unicast data message sent by the pre-switching link for the first time.
5. The apparatus of claim 4, further comprising:
the pre-backup marking module is used for marking the original link as a pre-backup state after the first determining module determines that the link is pre-switched;
and the backup marking module is used for modifying the mark of the original link from the preliminary copy state to the backup state when the receiving module receives the unicast data message sent by the pre-switching link for the first time.
6. The apparatus of claim 4, further comprising:
the monitoring module is used for monitoring the communication quality of at least two communication links and respectively acquiring the communication quality of each communication link; wherein the at least two communication links comprise the original link;
the first determining module is further configured to select, when the communication quality corresponding to the original link monitored by the monitoring module is lower than the communication quality of the other communication links except the original link in the at least two communication links, one communication link with the best communication quality from the other communication links as the pre-handover link.
CN201610734170.1A 2016-08-26 2016-08-26 Data communication method and device Active CN106332196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610734170.1A CN106332196B (en) 2016-08-26 2016-08-26 Data communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610734170.1A CN106332196B (en) 2016-08-26 2016-08-26 Data communication method and device

Publications (2)

Publication Number Publication Date
CN106332196A CN106332196A (en) 2017-01-11
CN106332196B true CN106332196B (en) 2020-01-24

Family

ID=57790610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610734170.1A Active CN106332196B (en) 2016-08-26 2016-08-26 Data communication method and device

Country Status (1)

Country Link
CN (1) CN106332196B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108738037B (en) * 2017-04-17 2021-07-30 上海大唐移动通信设备有限公司 Identification method and device
CN110876137A (en) * 2018-09-03 2020-03-10 普天信息技术有限公司 Switching system and method of vehicle-mounted terminal in rail transit line switching operation
CN109347590B (en) * 2018-10-19 2020-02-04 北京经纬恒润科技有限公司 Synchronization method of DoIP entity in vehicle-mounted Ethernet and DoIP entity
CN113689192B (en) * 2021-08-24 2024-05-31 卡斯柯信号有限公司 Communication-based train control system data generation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394364A (en) * 2008-10-30 2009-03-25 西安电子科技大学 MIPv6 seamless switching method based on dual network cards
CN103731890A (en) * 2013-12-11 2014-04-16 福建星网锐捷网络有限公司 Link switching method under high-speed motion state, vehicle-mounted AP and system
CN105430699A (en) * 2015-11-18 2016-03-23 北京华信联创科技有限公司 Method, device and system for inter-AP high-speed switching of terminal in WLAN network
CN105430695A (en) * 2015-11-30 2016-03-23 中国联合网络通信集团有限公司 AP switching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394364A (en) * 2008-10-30 2009-03-25 西安电子科技大学 MIPv6 seamless switching method based on dual network cards
CN103731890A (en) * 2013-12-11 2014-04-16 福建星网锐捷网络有限公司 Link switching method under high-speed motion state, vehicle-mounted AP and system
CN105430699A (en) * 2015-11-18 2016-03-23 北京华信联创科技有限公司 Method, device and system for inter-AP high-speed switching of terminal in WLAN network
CN105430695A (en) * 2015-11-30 2016-03-23 中国联合网络通信集团有限公司 AP switching method

Also Published As

Publication number Publication date
CN106332196A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106332196B (en) Data communication method and device
CN108366391B (en) Communication method, network equipment and system
US20190222982A1 (en) V2X Communication Method, Device, and System
WO2017202306A1 (en) Channel management method and relevant equipment for wireless local area network for use in rail transportation
US9094223B2 (en) Predictive caching and tunneling for time-sensitive data delivery to roaming client devices
JP6081567B1 (en) Terminal device, communication system, and connection destination selection method
KR20120100473A (en) Apparatus and method for controlling relay mode of base station in communication system
CN108683986B (en) Fleet communication method, computer-readable storage medium and terminal
CN112789886A (en) Radio resource conversion in a fleet of vehicles
WO2017133629A1 (en) Message forwarding method, device, system, and computer storage medium
CN105792137A (en) Inter-vehicle communication method and device
WO2016023513A1 (en) Method and device for wireless local area network switching in rail traffic
CN103067995B (en) Access handoff method and system and mobile access device
JP4934542B2 (en) Wireless train control system and wireless train control method
JP6385579B2 (en) Improved method for handling communication system handovers
CN102625471A (en) Reconstruction method and device of wireless link
Wang et al. The QoS Indicators Analysis of Integrated EUHT Wireless Communication System Based on Urban Rail Transit in High‐Speed Scenario
CN108924901B (en) Communication link switching method and device
CN102300233B (en) The processing method of transmission gap pattern sequence, Apparatus and system
US8619694B2 (en) Mobile radio communications device for communication within a packet data network
JP2018056736A (en) Radio system for radio type train control system
CN107613574B (en) Channel configuration method, vehicle-mounted AP, detection equipment and wireless communication system
US20210345351A1 (en) Method and apparatus for sending response information, storage medium, and electronic device
CN111093233A (en) Switching control method, device and base station
KR102287253B1 (en) Communication switching technology in case of error of direct communication between adjacent trains

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou science and Technology Development Zone, Zhejiang high tech park, No. six and road, No. 310

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant