CN110474722A - A kind of data channel switching method and device - Google Patents

A kind of data channel switching method and device Download PDF

Info

Publication number
CN110474722A
CN110474722A CN201910751760.9A CN201910751760A CN110474722A CN 110474722 A CN110474722 A CN 110474722A CN 201910751760 A CN201910751760 A CN 201910751760A CN 110474722 A CN110474722 A CN 110474722A
Authority
CN
China
Prior art keywords
data
data channel
channel
channels
switching
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.)
Pending
Application number
CN201910751760.9A
Other languages
Chinese (zh)
Inventor
封志华
黄寿林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910751760.9A priority Critical patent/CN110474722A/en
Publication of CN110474722A publication Critical patent/CN110474722A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • 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/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Landscapes

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

Abstract

This application discloses a kind of data channel switching methods.Wherein, this method may include: the first data channel in the M data channel determined between the first equipment and the second equipment, each of M data channel data channel carries out data interaction for first equipment and second equipment, first data channel is to meet the data channel of default switching condition, and M is the integer greater than 0;According to the operation information of first data channel, the state of the state of first equipment and second equipment, the second data channel is filtered out from the M data channel, the operation information includes one or more in the operating parameter of the data transfer cap of first data channel, the data transmission of first data channel and first data channel;First data channel is switched to second data channel.Using the embodiment of the present invention, being switched fast between different data interchange channel is efficiently realized.

Description

Data channel switching method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for switching data channels.
Background
With the development of the network era, data information interaction is increasingly frequent, and timely circulation, updating and exchange of data are realized under the condition that two parties or even multiple parties need to participate in data interaction together, and meanwhile, the safe transmission of important data is also ensured. For example, in a property insurance business scenario, the pay business system is an interface system for the underwriting system, the claims system, and the financial system. Therefore, the pay-as-you-go business system needs to cover all monetary transactions generated by the underwriting system, the claims system. In order to implement fast switching, service shunting and fault fusing of a plurality of data exchange channels, a payment service system generally introduces a plurality of payment service system channels with the same function but different suppliers. There is no method for efficiently managing multiple data exchange paths in a pay service system. In an information interaction system, different parties generally use different systems, and in order to facilitate information transfer, a plurality of data exchange channels are introduced for a plurality of different parties.
Therefore, how to simply and effectively implement fast switching, service shunting, and fault fusing between different data exchange channels is a problem that needs to be solved urgently in the present application.
Disclosure of Invention
Embodiments of the present invention provide a data channel switching method and apparatus, which can simply and effectively implement fast switching, service shunting, and fault fusing of a data exchange channel.
In a first aspect, an embodiment of the present invention provides a data channel switching method, where the method may include:
determining a first data channel of M data channels between a first device and a second device, wherein each data channel of the M data channels is used for data interaction between the first device and the second device, the first data channel is a data channel meeting a preset switching condition, and M is an integer greater than 0;
screening a second data channel from the M data channels according to the operation information of the first data channel, the state of the first device and the state of the second device, wherein the operation information comprises one or more of a data transmission upper limit of the first data channel, a data transmission type of the first data channel and operation parameters of the first data channel;
switching the first data channel to the second data channel.
By implementing the embodiment of the invention, according to the actual service requirement and the service data transmission condition (for example, data channel fails and data cannot be normally transmitted), the data channel to be switched and the two pieces of equipment connected with the target data channel are determined; under the condition that the data interaction requests of the two devices are confirmed, the data interaction condition of the original two devices and the original data channel information are combined, a new data channel is screened, the switching of the data channel is realized, the switching between different data channels is conveniently realized, and the switched data channel can meet the actual interaction requirements. The method is different from the prior art that the channels are switched only according to the relation state between the equipment and the data channels, and the screening process of the standby data channels is increased; under the condition that the original data channel fails, the failed channel is replaced according to the actual interactive request among the devices, for example, the failed data channel among the devices is confirmed, the data channel to be switched is accurately identified, and the switching efficiency of the data channel is improved; according to the operation information of the original data channel and the state of the equipment, the standby data channel meeting the transmission requirement is screened, and the situations that the data transmission efficiency is reduced, normal transmission cannot be performed or the transmission is not safe and the like due to the switching of the channels are avoided.
In a possible implementation manner, the operation information includes a data transmission upper limit of the first data channel and a data transmission type of the first data channel; the screening out a second data channel from the M data channels according to the operation information of the first data channel, the state of the first device, and the state of the second device includes:
and screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel under the condition that the first equipment and the second equipment are confirmed to be in the running state and a data interaction request exists.
In a possible implementation manner, the screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel includes:
determining N data channels from the M data channels according to the data transmission type of the first data channel, wherein the N data channels are the channels with the data transmission authority of the data type in the M data channels, and N is an integer larger than 0 and smaller than M;
screening out the second data channel with the data transmission upper limit larger than or equal to the data transmission upper limit of the first data channel from the N data channels.
In one possible implementation manner, the switching the first data channel to the second data channel includes:
instructing the first device to send test data to the second device through the second data channel;
and detecting the transmission condition of the test data, and executing the switching of the first data channel to the second data channel under the condition that the second data channel is confirmed to be safe.
In one possible implementation, the first device performs data interaction with a third device through one or more of the M data channels.
In one possible implementation, the method further includes:
and when the data volume transmitted between the first device and the second device exceeds the total data transmission upper limit of the M data channels, adding a third data channel between the first device and the second device.
In a possible implementation manner, each of the M data channels corresponds to an information code, and the information code includes a damage record of the data channel; the method further comprises the following steps:
reading a damage record of each data channel in the M data channels, wherein the damage record comprises damage times and damage duration; screening K data channels with the damage times and the damage duration exceeding a preset threshold, wherein K is an integer greater than or equal to 0; and closing the K data channels.
In a second aspect, an embodiment of the present invention provides a data channel switching apparatus, where the apparatus may include:
a determining unit, configured to determine a first data channel of M data channels between a first device and a second device, where each data channel of the M data channels is used for data interaction between the first device and the second device, the first data channel is a data channel that meets a preset switching condition, and M is an integer greater than 0;
a screening unit, configured to screen a second data channel from the M data channels according to operation information of the first data channel, a state of the first device, and a state of the second device, where the operation information includes one or more of a data transmission upper limit of the first data channel, a data transmission type of the first data channel, and an operation parameter of the first data channel;
a switching unit, configured to switch the first data channel to the second data channel.
In a possible implementation manner, the operation information includes a data transmission upper limit of the first data channel and a data transmission type of the first data channel; the screening unit is specifically configured to:
and screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel under the condition that the first equipment and the second equipment are confirmed to be in the running state and a data interaction request exists.
Further, the screening the second data channel from the M data channels according to the upper limit of the data transmission of the first data channel and the type of the data transmission of the first data channel includes:
determining N data channels from the M data channels according to the data transmission type of the first data channel, wherein the N data channels are the channels with the data transmission authority of the data type in the M data channels, and N is an integer larger than 0 and smaller than M;
screening out the second data channel with the data transmission upper limit larger than or equal to the data transmission upper limit of the first data channel from the N data channels.
In a possible implementation manner, the switching unit is specifically configured to:
instructing the first device to send test data to the second device through the second data channel;
and detecting the transmission condition of the test data, and executing the switching of the first data channel to the second data channel under the condition that the second data channel is confirmed to be safe.
In one possible implementation, the first device performs data interaction with a third device through one or more of the M data channels.
In a possible implementation manner, the apparatus further includes a channel adding unit, configured to:
and when the data volume transmitted between the first device and the second device exceeds the total data transmission upper limit of the M data channels, adding a third data channel between the first device and the second device.
In a possible implementation manner, each of the M data channels corresponds to an information code, and the information code includes a damage record of the data channel; the apparatus further comprises a channel closing unit for:
reading a damage record of each data channel in the M data channels, wherein the damage record comprises damage times and damage duration; screening K data channels with the damage times and the damage duration exceeding a preset threshold, wherein K is an integer greater than or equal to 0; and closing the K data channels.
In a third aspect, an embodiment of the present invention provides a data channel switching device, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 is a schematic diagram of a system architecture for switching data channels according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data channel switching method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another data channel switching method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a data channel switching application scenario provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data channel switching apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data channel switching device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention provide a data channel switching method and apparatus, which can simply and effectively implement fast switching, service shunting, and fault fusing of a data exchange channel.
The terms "comprising" and "having," and any variations thereof, as appearing in the specification, claims and drawings of this application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order. The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
First, some terms in the present application are explained so as to be easily understood by those skilled in the art.
(1) The modularization is a process of splitting and recombining a plurality of functional modules when a complex system is decoupled, and the internal characteristics of the functional modules are reflected by various attributes and states. .
(2) The payment service system is an interface system of an underwriting system, a claim settlement system and a financial system in a property insurance service scene. Therefore, the pay-as-you-go business system needs to cover all monetary transactions generated by the underwriting system, the claims system. In order to realize fast switching, service shunting and fault fusing among a plurality of payment channels, a payment service system generally introduces a plurality of payment channels with the same function but different suppliers. Generally, in an information interaction system, different parties generally use different management systems, and in order to facilitate information transfer, a plurality of data exchange channels are introduced for a plurality of different parties.
In the following, a description is first given of one of the system architectures on which the embodiments of the present invention are based, and the data channel switching method proposed in the present application can be applied to the system architecture. Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture for switching a data channel according to an embodiment of the present invention, as shown in fig. 1, the system architecture includes a server, a terminal (including a first device, a second device, a third device, and the like), and a data channel (including a first data channel, a second data channel, an mth data channel, and the like); the terminal mentioned in the embodiment of the invention can be a mobile phone, a tablet computer, a notebook computer, a palm computer, mobile internet equipment or other mobile terminals; wherein,
a server is a device that provides a computing service, needs to respond to a service request and process the service request, has a capability of supporting and securing the service, and is generally configured by a processor, a hard disk, a memory, a system bus, and the like. Under a network environment, the server is divided into a file server, a database server, an application server, a WEB server and the like according to different service types provided by the server. In the embodiment of the present invention, a server performs information interaction with a terminal and a data channel, for example, the server acquires information of the terminal (such as a state of a first device, a state of a second device, and the like) and operation information of the data channel (such as a transmission upper limit of the first data channel, and the like), performs switching of the data channel according to the acquired information, and executes the following operations: determining a first data channel of M data channels between the first device and the second device; screening out a second data channel from the M data channels according to the running information of the first data channel, the state of the first equipment and the state of the second equipment; switching the first data channel to the second data channel. The embodiment of the invention does not limit the number of the terminals, the interaction modes between the servers and the terminals.
The terminal may be a device located at the outermost periphery of the network in a computer network, or may be used for inputting information and outputting a processing result. And may also be referred to as a system, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, mobile terminal, wireless communication device, user agent, user equipment, plug-in mountable service device, or User Equipment (UE). For example, the terminal may be a cellular phone, a mobile phone, a cordless phone, a smart watch, a wearable device (wearable device), a tablet device, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capabilities, a computing device, a vehicle communication module, a smart meter, or other processing device connected to a wireless modem. In the embodiment of the present invention, data interaction is performed between terminals, for example, a first device sends a data interaction request to a second device, or the first device sends data to the second device or receives data from the second device through a second data channel, or the first device performs data interaction with a third device, and so on.
It will be appreciated that the illustration of fig. 1 is merely an exemplary implementation of an embodiment of the present invention. The system architecture in the embodiments of the present invention may include, but is not limited to, the above system architecture.
The following specifically analyzes and solves the technical problem proposed in the present application in combination with the above system architecture and the embodiment of the data channel switching method provided in the present application.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data channel switching method according to an embodiment of the present invention, where the data channel switching method can be applied to a data channel switching system (including the foregoing architecture). In the following, referring to fig. 2, taking a server as an example of an execution subject, the method may include the following steps S201 to S203.
Step S201: a first data lane of the M data lanes between the first device and the second device is determined.
Specifically, the server determines, from the M data channels, a data channel that meets a preset switching condition, for example, the data channel is damaged, the data type transmitted by the data channel is not appropriate, the upper limit of data transmitted by the data channel is smaller, and the like. Each of the M data channels is used for data interaction between the first device and the second device, the first data channel is a data channel meeting a preset switching condition, and M is an integer greater than 0.
Step S202: and screening out a second data channel from the M data channels according to the running information of the first data channel, the state of the first equipment and the state of the second equipment.
Specifically, the server screens out a second data channel similar to the first data channel or a second data channel with a transmission capability slightly larger than that of the first data channel from the M data channels according to an upper limit of data transmitted by the first data channel, a data type, an operation parameter at a transmission time, and the like, when it is confirmed that both the first device and the second device are in an operation state and a data interaction request exists between the first device and the second device. Wherein the operation information includes one or more of a data transmission upper limit of the first data channel, a data transmission type of the first data channel, and an operation parameter of the first data channel.
Step S203: switching the first data channel to the second data channel.
Specifically, after confirming the second data channel, the server switches the data channel which is failed or cannot meet the transmission requirement to the second data channel, wherein the switching operation can be performed before data transmission or in the data transmission process without influencing the transmission.
By implementing the embodiment of the invention, according to the actual service requirement and the service data transmission condition (for example, data channel fails and data cannot be normally transmitted), the data channel to be switched and the two pieces of equipment connected with the target data channel are determined; under the condition that the data interaction requests of the two devices are confirmed, the data interaction condition of the original two devices and the original data channel information are combined, a new data channel is screened, the switching of the data channel is realized, the switching between different data channels is conveniently realized, and the switched data channel can meet the actual interaction requirements. The method is different from the prior art that the channels are switched only according to the relation state between the equipment and the data channels, and the screening process of the standby data channels is increased; under the condition that the original data channel fails, the failed channel is replaced according to the actual interactive request among the devices, for example, the failed data channel among the devices is confirmed, the data channel to be switched is accurately identified, and the switching efficiency of the data channel is improved; according to the operation information of the original data channel and the state of the equipment, the standby data channel meeting the transmission requirement is screened, and the situations that the data transmission efficiency is reduced, normal transmission cannot be performed or the transmission is not safe and the like due to the switching of the channels are avoided.
The following specifically analyzes and solves the technical problem proposed in the present application in combination with the above system architecture and another embodiment of the data channel switching method provided in the present application.
Referring to fig. 3, fig. 3 is a flow chart illustrating another data channel switching method according to an embodiment of the present invention, where the data channel switching method can be applied to a data channel switching system (including the above-mentioned architecture). In the following, referring to fig. 3, taking a server as an example of an execution subject, the method may include the following steps S301 to S307; the optional steps may include step S304, step S305, step S306, and step S307.
Step S301: a first data lane of the M data lanes between the first device and the second device is determined.
Specifically, please refer to the description of the foregoing step S201.
Optionally, in an actual application scenario, there are a plurality of first devices and second devices, and a plurality of data channels, and switching of the data channels is achieved by changing a relationship state (on or off) of the first devices, the second devices, and the target data channels. For example: in the payment service system, a first device (which may be a payment device used by a merchant a) may originally pay a fee or transfer money to a second device (which may be a collection device used by a bank) through a data channel a, a data channel b and a data channel c; due to various reasons such as business adjustment, the data exchange system no longer supports the interface of the data exchange channel c with the merchant a and the bank W. The system closes the data channel c after receiving the instruction, so that the merchant A can only connect with the bank W through the data channel a and the data channel b (for example, remit to the bank account belonging to the bank W).
Optionally, in a plurality of devices docked by the first device, closing a certain device may cause that the first device cannot perform data interaction with the device, so as to implement switching of the target device. For example, in a payment transaction system, the merchant correspondence is changed and/or the financial institution correspondence is changedChanging, wherein the user corresponding relation change comprises a user corresponding relation reduction instruction and a user corresponding relation increase, and is used for increasing users butted by the target data exchange channel; the financial institution correspondence change includes a financial institution correspondence decrease instruction and a financial institution correspondence increase instruction, which are similar to the user correspondence instruction and are not described herein again. For example, the pay service system receives the instruction of device correspondence reduction (target data channel corresponds to N)0Initial number of first devices), acknowledge N1The corresponding relation between the first device and the data channel, N1Is less than N0And is greater than 0, or, after receiving the instruction of the device correspondence increase, confirms N2The corresponding relation between the first device and the data channel, N2Is an integer greater than M; when the reduced devices and the new devices are accessed, the number of the first devices and the initial number of the first devices are uncertain and are determined according to the actual increase and decrease of the number.
Optionally, the aforementioned corresponding relationship change instruction may be set by a service person of the data exchange system, such as which merchants and banks are docked and which platforms are compatible with the data exchange channels provided. Business personnel can set the many-to-many and one-to-many corresponding relationship between the merchant and the data exchange channel and the many-to-many and one-to-many corresponding relationship between the bank and the data exchange channel.
Optionally, it is determined, through statistics of a sender, a receiver, and data channels in the information interaction system, how many data channels (i.e., the number of data channels) of different platforms the first involved pen can send data to the second device and the number of the second device. For example, device a has three initial data exchange channels, e.g., channel a, channel b, and channel c, where channel a is interfaced with device a1, channel b is interfaced with device b1, and channel c is interfaced with device c 1; device a may interact with device a1 via channel a.
In one possible implementation, the first device performs data interaction with a third device through one or more of the M data channels. For example, the first device may send data to or receive data from the third device via one or more data channels that meet the transmission requirements. Optionally, the first device may interact with multiple devices simultaneously through one or more data channels.
Step S302: and screening out a second data channel from the M data channels according to the running information of the first data channel, the state of the first equipment and the state of the second equipment.
Specifically, please refer to the description of step S202.
In a possible implementation manner, the operation information includes a data transmission upper limit of the first data channel and a data transmission type of the first data channel; the screening out a second data channel from the M data channels according to the operation information of the first data channel, the state of the first device, and the state of the second device includes: and screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel under the condition that the first equipment and the second equipment are confirmed to be in the running state and a data interaction request exists. For example, the server screens the failed data channel for further replacement in the case of an interaction requirement between the first device and the second device.
In a possible implementation manner, the screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel includes: determining N data channels from the M data channels according to the data transmission type of the first data channel, wherein the N data channels are the channels with the data transmission authority of the data type in the M data channels, and N is an integer larger than 0 and smaller than M; screening out the second data channel with the data transmission upper limit larger than or equal to the data transmission upper limit of the first data channel from the N data channels. The embodiment of the invention does not limit the screening sequence of the data transmission types and the data transmission upper limits involved in the screening process.
Step S303: switching the first data channel to the second data channel.
Specifically, please refer to the description of the foregoing step S203.
In one possible implementation manner, the switching the first data channel to the second data channel includes: instructing the first device to send test data to the second device through the second data channel; and detecting the transmission condition of the test data, and executing the switching of the first data channel to the second data channel under the condition that the second data channel is confirmed to be safe. For example, before switching the data channel, the second data channel is checked for security and validity. The first device may be instructed to send test data, detect whether the first data received by the second device is complete, and whether the transmitted data will be acquired by a third party during transmission. And under the condition of meeting the requirements, switching to the second data channel, otherwise, re-screening the data channel meeting the requirements for switching.
Step S304: and when the data volume transmitted between the first device and the second device exceeds the total data transmission upper limit of the M data channels, adding a third data channel between the first device and the second device.
Specifically, the server detects whether the data transmission quantity between the first device and the second device exceeds the total data transmission upper limit of all data channels between the two devices, and if the total data transmission upper limit is exceeded and the first device and the second device are both in an operating state, one or more third data channels are added between the first device and the second device.
In a possible implementation manner, the server confirms that the number of valid data exchange channels between the first device and the second device is K, where K may be greater than M or K is an integer smaller than M and greater than 0. When the number of the data channels is increased on the basis of the number of the first data channels, k is larger than M; when the number of the data channels is reduced on the basis of the number of the first data channels and at least one effective data channel exists, k is less than M and greater than 0; when a certain number of channels are closed and a certain number of channels are opened on the basis of the number of first data exchange channels, the final values of k and M are uncertain.
Step S305: and reading a damage record of each data channel in the M data channels, wherein the damage record comprises damage times and damage duration.
Specifically, the server may obtain the damage record of each data channel according to an information code corresponding to each data channel of the M data channels, where the information code includes the damage record of the data channel.
Step S306: and screening out K data channels with the damage times and the damage duration exceeding a preset threshold.
Specifically, the server analyzes the obtained damage record of each data channel and determines the data channel with the damage times and the damage duration exceeding a threshold; the server evaluates data channels with more damage times and longer damage duration as unstable data channels, and can close the unstable channels or do not give priority to the channels during screening, wherein K is an integer greater than or equal to 0;
step S307: and closing the K data channels.
Specifically, the server may change the state of the K data lanes to a failure state, thereby closing the K data lanes.
In a possible implementation manner, the server determines whether a data channel provided by a platform docked in the current system is retained or whether the data channel fails due to the fact that the platform also changes docking information of the data channel, and determines whether M data channels in the data exchange system can provide corresponding data transmission services, that is, detects an effective data channel in the system. If one or more data channels are judged to be invalid data channels, the relevant information of the valid channels is sent to the system, and the valid data channel information stored by the system is updated, such as the corresponding relation, the type, the number and the like of specific channels. For example, data channel z may only be undocked from either device x or device y, or from both device x and financial institution y. The server judges that the equipment information of the butt-joint party (client or financial institution) of the data channel changes, and can feed back the equipment information to the system in time to update the information stored in the system.
By implementing the embodiment of the invention, according to the actual service requirement and the service data transmission condition (for example, data channel fails and data cannot be normally transmitted), the data channel to be switched and the two pieces of equipment connected with the target data channel are determined; under the condition that the data interaction requests of the two devices are confirmed, the data interaction condition of the original two devices and the original data channel information are combined, a new data channel is screened, the switching of the data channel is realized, the switching between different data channels is conveniently realized, and the switched data channel can meet the actual interaction requirements. The method is different from the prior art that the channels are switched only according to the relation state between the equipment and the data channels, and the screening process of the standby data channels is increased; under the condition that the original data channel fails, the failed channel is replaced according to the actual interactive request among the devices, for example, the failed data channel among the devices is confirmed, the data channel to be switched is accurately identified, and the switching efficiency of the data channel is improved; according to the operation information of the original data channel and the state of the equipment, the standby data channel meeting the transmission requirement is screened, and the situations that the data transmission efficiency is reduced, normal transmission cannot be performed or the transmission is not safe and the like due to the switching of the channels are avoided.
To facilitate understanding of the embodiment of the present invention, the following exemplary lists scenarios applied to the data channel switching method in the present application, which may include switching between charging channels in a charging service system, where the specific scenarios are described as follows:
referring to fig. 4, fig. 4 is a schematic diagram of a data channel switching application scenario according to an embodiment of the present invention. The application scenario includes a server (execution subject of the method embodiment), a data channel (including a first data channel and a second data channel), and a terminal (including a first device and a second device). The payment process in the payment transaction system involves a first device (such as a merchant), a data channel (such as a payment channel), and a second device (such as a bank). In the embodiment of the present invention, a bank, a merchant, and a payment channel (belonging to a payment service system) are taken as examples for explanation. In the present application, "first" and "second" are merely descriptive of the division of the object. For example, the payment transaction system may have access to multiple merchants, banks. Different merchants can select one or more payment channels suitable for the merchants to make funds come and go to a specified bank account, wherein the corresponding relationship among the merchants, the banks and the payment channels is a many-to-many corresponding relationship. In the application scenario, the operation such as fund transfer is originally performed between the merchant and the bank through the charge and payment channel 1. When the actual service requirement changes, after acquiring the information of the first device, the second cheating and the payment channel, the server confirms that the payment channel 1 is closed, screens the standby payment channel 2 according to the running information of the payment channel 1, the running states of the first device and the second device and the data interaction request, and then switches the payment channel 1 into the payment channel 2. The server realizes the switching of the data channels among the devices through the starting or the failure of the data channels; based on a data channel componentization processing method, the relation state (enabling/disabling) among a data receiving party, a data channel and a data sending party is changed, and the switching or disabling of the data channel under different supply platforms is effectively and conveniently realized. In the embodiment of the present invention, the first device, the second device, the first data channel, and the second data channel are all exemplary description objects, and specific analysis objects and recognition results are not limited.
It is to be understood that the above application scenarios are only exemplary embodiments of the present invention, and the application scenarios in the embodiments of the present invention include, but are not limited to, the above application scenarios.
The method of the embodiments of the present invention is explained in detail above, and the related apparatus of the embodiments of the present invention is provided below.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data channel switching apparatus according to an embodiment of the present invention, which may include a determining unit 501, a screening unit 502, a switching unit 503, a channel adding unit 504, and a channel closing unit 505. The optional units include a channel adding unit 504 and a channel closing unit 505.
A determining unit 501, configured to determine a first data channel of M data channels between a first device and a second device, where each data channel of the M data channels is used for data interaction between the first device and the second device, the first data channel is a data channel that meets a preset switching condition, and M is an integer greater than 0;
a screening unit 502, configured to screen a second data channel from the M data channels according to operation information of the first data channel, a state of the first device, and a state of the second device, where the operation information includes one or more of a data transmission upper limit of the first data channel, a data transmission type of the first data channel, and an operation parameter of the first data channel;
a switching unit 503, configured to switch the first data channel to the second data channel.
In a possible implementation manner, the operation information includes a data transmission upper limit of the first data channel and a data transmission type of the first data channel; the screening unit 502 is specifically configured to:
and screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel under the condition that the first equipment and the second equipment are confirmed to be in the running state and a data interaction request exists.
Further, the screening the second data channel from the M data channels according to the upper limit of the data transmission of the first data channel and the type of the data transmission of the first data channel includes:
determining N data channels from the M data channels according to the data transmission type of the first data channel, wherein the N data channels are the channels with the data transmission authority of the data type in the M data channels, and N is an integer larger than 0 and smaller than M;
screening out the second data channel with the data transmission upper limit larger than or equal to the data transmission upper limit of the first data channel from the N data channels.
In a possible implementation manner, the switching unit 503 is specifically configured to:
instructing the first device to send test data to the second device through the second data channel;
and detecting the transmission condition of the test data, and executing the switching of the first data channel to the second data channel under the condition that the second data channel is confirmed to be safe.
In one possible implementation, the first device performs data interaction with a third device through one or more of the M data channels.
In a possible implementation manner, the apparatus 50 further includes a channel adding unit 504, configured to:
and when the data volume transmitted between the first device and the second device exceeds the total data transmission upper limit of the M data channels, adding a third data channel between the first device and the second device.
In a possible implementation manner, each of the M data channels corresponds to an information code, and the information code includes a damage record of the data channel; the apparatus 50 further comprises a channel closing unit 505 for:
reading a damage record of each data channel in the M data channels, wherein the damage record comprises damage times and damage duration; screening K data channels with the damage times and the damage duration exceeding a preset threshold, wherein K is an integer greater than or equal to 0; and closing the K data channels.
It should be noted that the specific implementation of each unit may also correspond to the corresponding description of the method embodiment shown in fig. 2 and fig. 3, and is not described herein again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps described in any of the above method embodiments.
An embodiment of the present invention further provides a computer program, where the computer program includes instructions, and when the computer program is executed by a computer, the computer may enable the computer to perform some or all of the steps in the data channel switching method in the foregoing method embodiment.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data channel switching device according to an embodiment of the present invention, and as shown in fig. 6, a data channel switching apparatus can be implemented in the structure of fig. 6, and the data channel switching device 60 may include at least one storage component 601, at least one processing component 602, and at least one communication component 603. In addition, the device may also include general components such as an antenna, a power supply, etc., which will not be described in detail herein.
The storage component 601 may include one or more storage units, each of which may include one or more memories, which may be used to store programs and various data and enable high-speed, automated access to the programs or data during operation of the device. Physical devices having two stable states, denoted "0" and "1", respectively, may be employed to store information. The storage component 601 may be a Read-Only Memory (ROM) or other types of static storage devices that can store static information and instructions, a Random Access Memory (RAM) or other types of dynamic storage devices that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (which may include Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The processing means 602 may also be referred to as a processor, a processing unit, a processing board, a processing module, a processing device, or the like. The processing unit may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP, or may be a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above programs.
The communication component 603, which may also be referred to as a transceiver, or transceiver, etc., may be used for communicating with other devices or communication networks, which may include elements for wireless, wired, or other communication means.
When the data channel switching device 60 is the server shown in fig. 1, the processing unit 602 is configured to call the data of the storage unit 601 to perform the related description of the method described in fig. 2 or fig. 3.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize 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 should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
In this application, the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional components in the embodiments of the present application may be integrated into one component, or each component may exist alone physically, or two or more components may be integrated into one component. The integrated components can be realized in a form of hardware or a form of software functional units. The integrated components, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of the processes should be determined by their functions and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention. While the present application has been described herein in conjunction with various embodiments, other variations to the disclosed embodiments may be understood and effected by those skilled in the art in practicing the present application as claimed herein.

Claims (10)

1. A method for switching data channels, comprising:
determining a first data channel of M data channels between a first device and a second device, wherein each data channel of the M data channels is used for data interaction between the first device and the second device, the first data channel is a data channel meeting a preset switching condition, and M is an integer greater than 0;
screening a second data channel from the M data channels according to the operation information of the first data channel, the state of the first device and the state of the second device, wherein the operation information comprises one or more of a data transmission upper limit of the first data channel, a data transmission type of the first data channel and operation parameters of the first data channel;
switching the first data channel to the second data channel.
2. The method of claim 1, wherein the operation information comprises an upper data transmission limit of the first data channel and a data transmission type of the first data channel; the screening out a second data channel from the M data channels according to the operation information of the first data channel, the state of the first device, and the state of the second device includes:
and screening the second data channel from the M data channels according to the data transmission upper limit of the first data channel and the data transmission type of the first data channel under the condition that the first equipment and the second equipment are confirmed to be in the running state and a data interaction request exists.
3. The method of claim 2, wherein the screening the second data channel from the M data channels according to the upper data transmission limit of the first data channel and the data transmission type of the first data channel comprises:
determining N data channels from the M data channels according to the data transmission type of the first data channel, wherein the N data channels are the channels with the data transmission authority of the data type in the M data channels, and N is an integer larger than 0 and smaller than M;
screening out the second data channel with the data transmission upper limit larger than or equal to the data transmission upper limit of the first data channel from the N data channels.
4. The method of claim 1, wherein switching the first data channel to the second data channel comprises:
instructing the first device to send test data to the second device through the second data channel;
and detecting the transmission condition of the test data, and executing the switching of the first data channel to the second data channel under the condition that the second data channel is confirmed to be safe.
5. The method of claim 1, wherein the first device is in data communication with a third device via one or more of the M data lanes.
6. The method of claim 1, further comprising:
and when the data volume transmitted between the first device and the second device exceeds the total data transmission upper limit of the M data channels, adding a third data channel between the first device and the second device.
7. The method according to any one of claims 1 to 6, wherein each of the M data channels corresponds to an information code, and the information code comprises a defect record of the data channel; the method further comprises the following steps:
reading a damage record of each data channel in the M data channels, wherein the damage record comprises damage times and damage duration;
screening K data channels with the damage times and the damage duration exceeding a preset threshold, wherein K is an integer greater than or equal to 0;
and closing the K data channels.
8. A data path switching apparatus, comprising:
a determining unit, configured to determine a first data channel of M data channels between a first device and a second device, where each data channel of the M data channels is used for data interaction between the first device and the second device, the first data channel is a data channel that meets a preset switching condition, and M is an integer greater than 0;
a screening unit, configured to screen a second data channel from the M data channels according to operation information of the first data channel, a state of the first device, and a state of the second device, where the operation information includes one or more of a data transmission upper limit of the first data channel, a data transmission type of the first data channel, and an operation parameter of the first data channel;
a switching unit, configured to switch the first data channel to the second data channel.
9. The data channel switching equipment is characterized by comprising a storage component, a communication component and a processing component, wherein the storage component, the communication component and the processing component are connected with each other, the storage component is used for storing data processing codes, and the communication component is used for carrying out information interaction with external equipment; the processing means is configured to invoke program code to perform the method of any of the preceding claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN201910751760.9A 2019-08-15 2019-08-15 A kind of data channel switching method and device Pending CN110474722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910751760.9A CN110474722A (en) 2019-08-15 2019-08-15 A kind of data channel switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910751760.9A CN110474722A (en) 2019-08-15 2019-08-15 A kind of data channel switching method and device

Publications (1)

Publication Number Publication Date
CN110474722A true CN110474722A (en) 2019-11-19

Family

ID=68510092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910751760.9A Pending CN110474722A (en) 2019-08-15 2019-08-15 A kind of data channel switching method and device

Country Status (1)

Country Link
CN (1) CN110474722A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130714A (en) * 2019-11-28 2020-05-08 网银在线(北京)科技有限公司 Data transmission method, device, electronic equipment and computer readable medium
CN114978916A (en) * 2021-02-27 2022-08-30 华为技术有限公司 Method for configuring data transmission bandwidth and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6813241B1 (en) * 1999-12-18 2004-11-02 Nortel Networks Limited Network architecture and method of providing link protection in a bidirectional data traffic network
US20140211614A1 (en) * 2013-01-25 2014-07-31 Arxceo Corporation Methods and systems for providing redundancy in data network communications
CN105553508A (en) * 2015-12-04 2016-05-04 杭州朔天科技有限公司 Efficient low-power Bluetooth data channel dynamic frequency hopping method
CN106230748A (en) * 2016-07-29 2016-12-14 四川九洲电器集团有限责任公司 A kind of packet sending, receiving method and equipment
CN107318173A (en) * 2016-04-26 2017-11-03 腾讯科技(深圳)有限公司 The data transmission method and system of mobile terminal and onboard system
CN108551402A (en) * 2018-04-09 2018-09-18 网易宝有限公司 Method for sending information and its system, medium and computing device
CN109600315A (en) * 2017-09-30 2019-04-09 阿里巴巴集团控股有限公司 The flow control method and method of adjustment of data channel

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6813241B1 (en) * 1999-12-18 2004-11-02 Nortel Networks Limited Network architecture and method of providing link protection in a bidirectional data traffic network
US20140211614A1 (en) * 2013-01-25 2014-07-31 Arxceo Corporation Methods and systems for providing redundancy in data network communications
CN105553508A (en) * 2015-12-04 2016-05-04 杭州朔天科技有限公司 Efficient low-power Bluetooth data channel dynamic frequency hopping method
CN107318173A (en) * 2016-04-26 2017-11-03 腾讯科技(深圳)有限公司 The data transmission method and system of mobile terminal and onboard system
CN106230748A (en) * 2016-07-29 2016-12-14 四川九洲电器集团有限责任公司 A kind of packet sending, receiving method and equipment
CN109600315A (en) * 2017-09-30 2019-04-09 阿里巴巴集团控股有限公司 The flow control method and method of adjustment of data channel
CN108551402A (en) * 2018-04-09 2018-09-18 网易宝有限公司 Method for sending information and its system, medium and computing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130714A (en) * 2019-11-28 2020-05-08 网银在线(北京)科技有限公司 Data transmission method, device, electronic equipment and computer readable medium
CN114978916A (en) * 2021-02-27 2022-08-30 华为技术有限公司 Method for configuring data transmission bandwidth and related equipment
WO2022179427A1 (en) * 2021-02-27 2022-09-01 华为技术有限公司 Configuration method of data transmission bandwidth and related device
CN114978916B (en) * 2021-02-27 2023-11-28 华为技术有限公司 Configuration method of data transmission bandwidth and related equipment

Similar Documents

Publication Publication Date Title
CN111080275B (en) Cross-region resource transfer method, device, equipment and storage medium
US10733580B2 (en) Settlement system for combining stored value type payment system and server management payment system
CN109242483A (en) A kind of dual trading method and system based on centralization and decentralization
CN113256294B (en) Network payment method, device, equipment and system
CN110033268B (en) Wind control method, device and equipment in transfer
CN112163946A (en) Accounting processing method and device based on distributed transaction system
CN110020846B (en) Transfer service processing method and system
CN110474722A (en) A kind of data channel switching method and device
TWI839875B (en) Payment method, user terminal, device, equipment, system and medium
KR20190090859A (en) Method and device to switch call types
CN113179282A (en) Method and device for merging account numbers and server
KR102377625B1 (en) Method for preventing error remittance
CN108492071A (en) A kind of express delivery information processing method and device based on block chain
CN110889682A (en) Payment information processing method, device, medium and equipment based on block chain
CN108038686A (en) The method paid is realized based on credit
JP2010509694A (en) Method and system for allowing full version content on mobile device
WO2019179249A1 (en) Payment method and device and electronic apparatus
CN108848061B (en) User information transmission method and terminal equipment
KR20210109767A (en) A method for providing asset backup services based on blockchain monitoring
CN106855974A (en) A kind of method of mobile payment and device
KR102107454B1 (en) System for multiplication of financial payment networks, method for financial services using the same and computer program for the same
KR102671759B1 (en) System for estimating safety of real estate transaction and method thereof
CN111737262A (en) Data processing method and device
CN111626877A (en) Data processing method
CN109801050A (en) A kind of mobile payment SDK and method of payment for online store

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication