CN115767655A - SIM switching method based on heartbeat package - Google Patents

SIM switching method based on heartbeat package Download PDF

Info

Publication number
CN115767655A
CN115767655A CN202211343423.4A CN202211343423A CN115767655A CN 115767655 A CN115767655 A CN 115767655A CN 202211343423 A CN202211343423 A CN 202211343423A CN 115767655 A CN115767655 A CN 115767655A
Authority
CN
China
Prior art keywords
heartbeat
sim
service
communication module
remote communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211343423.4A
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.)
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power 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 State Grid Fujian Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Fujian Electric Power Co Ltd
Priority to CN202211343423.4A priority Critical patent/CN115767655A/en
Publication of CN115767655A publication Critical patent/CN115767655A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an SIM switching method based on heartbeat packets, which comprises the following steps: step 1: taking the time of sending the heartbeat packet by the 5G remote communication module as a timing starting point and marking as T0, and taking the time of receiving the heartbeat packet by the 5G remote communication module as a timing end point and marking as T1; defining T1-T0 as the service delay of the heartbeat packet; step 2: using the heartbeat service time delay and the heartbeat service success rate as 2 indexes reflecting the wireless channel quality and the wireless channel congestion condition, and comprehensively evaluating the quality of the network environment; by applying the technical scheme, a self-adaptive SIM switching strategy is introduced into the remote communication module, and the module is ensured to always reside in a network with the best network quality.

Description

SIM switching method based on heartbeat package
Technical Field
The invention relates to the technical field of communication, in particular to an SIM switching method based on a heartbeat packet.
Background
In a power grid system, an electric power acquisition terminal is an important service terminal, can acquire data of an electric meter and various sensors, integrates a 5G remote communication module through a reserved communication bin, and transmits the acquired data back to a service master station through 5G connection. The 5G telecommunications module is provided with a SIM card slot, and network connection can be acquired by purchasing the SIM card from an operator. Common power acquisition terminals include an energy controller, a concentrator, a special transformer acquisition terminal, a transformer area intelligent fusion terminal, a three-phase meter and the like, and all need to acquire 5G network connection through a matched 5G remote communication module.
The existing 5G telecommunication module can be embedded with two or more Subscriber Identity Modules (SIMs), which can be in the form of a common pluggable SIM card or an eSIM chip. Each user identity identification module corresponds to a telecommunication operator and can provide legal identity information for the 5G remote communication module to access the network under the corresponding operator network, so that the 5G remote communication module has the access capability under the corresponding operator network 5G. In the above scheme, by integrating a plurality of SIMs, the communication reliability is improved by the 5G remote communication module, and when one SIM cannot be connected due to environmental factors or poor network coverage, the standby SIM can be switched to ensure the communication reliability.
The heartbeat package is a common technical means for keeping the IP online of the terminal, and ensures that a remote server can find the terminal. In the heartbeat mechanism, the terminal periodically sends heartbeat packets to the server, and the server replies a confirmation packet to the terminal after receiving the heartbeat packets of the terminal. For a 5G remote communication module integrated with a multi-Subscriber Identity Module (SIM), the existing mechanism cannot accurately judge which SIM has the best network condition, so that the terminal cannot be ensured to stay in the best network environment all the time, and the communication reliability cannot be further improved.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method for switching an SIM based on heartbeat packets, so as to introduce a self-adaptive SIM switching policy into a remote communication module and ensure that the module always resides in a network with the best network quality.
In order to realize the purpose, the invention adopts the following technical scheme: a SIM switching method based on heartbeat packets comprises the following steps:
step 1: taking the time of sending the heartbeat packet by the 5G remote communication module as a timing starting point, and marking as T0, and taking the time of receiving the heartbeat packet confirmation by the 5G remote communication module as a timing end point, and marking as T1; defining T1-T0 as the service delay of the heartbeat packet;
step 2: taking the heartbeat service delay and the heartbeat service success rate as 2 indexes reflecting the wireless channel quality and the wireless channel congestion condition, and comprehensively evaluating the quality of the network environment;
and step 3: recording the number n of SIM of 5G remote communication module user identity identification modules;
and 4, step 4: the tau is recorded as an n multiplied by m matrix, the matrix is initialized to be 0 and used for recording the heartbeat packet service time delay of n SIMs, each SIM respectively initiates m heartbeat services, m is larger than 2, and the time delay of the m heartbeat services is recorded; the heartbeat service frequency m can be configured;
and 5: the 5G remote communication module uses SIM _1, SIM _2,., SIM _ n initiates the 1 st heartbeat service, records the heartbeat service time delay, and sequentially stores in tau (1,1), tau (2,1),. And τ (n, 1);
and 6: at interval t, repeating the step 5,5G, wherein the telecommunication module uses SIM _1, SIM _2,. Cndot, SIM _ n initiates heartbeat services for 2 to m times, records the heartbeat service time delay, and stores the heartbeat service time delay into τ (1,i), τ (2,i),. Cndot, τ (n, i) in sequence, wherein i =2,. Cndot, m; the interval time t is configurable;
and 7: the lambda is recorded as an n x (m-2) matrix, 1 maximum value and 1 minimum value of each row of the tau are removed on the basis of the tau, namely the tau is corrected, and the condition that the heartbeat service time delay average value cannot reflect the real wireless channel quality and the wireless channel congestion degree due to too large or too small heartbeat service time delay is avoided;
and step 8: taking δ as an n × 1 vector, initializing to 0, and recording an average value of vectors in rows of a λ matrix, wherein δ (1) = [ λ (1,1) + λ (1,2) +. +. + λ (1,m-2) ]/(m-2), δ (2) = [ λ (2,1) + λ (2,2) +. +. + λ (2,m-2) ]/(m-2),. -, δ (n) = [ λ (n, 1) + λ (n, 2) +. + λ (n, m-2) ]/(m-2);
and step 9: δ (1) - δ (n) represent the average of (m-2) heartbeat traffic delays of SIM _ 1-SIM _ n;
step 10: carrying out normalization processing on the delta by taking the minimum value of the delta element as a reference, and recording a processing result as mu;
step 11: recording v as an n multiplied by 1 vector, wherein the vector is initialized to 0 and is used for recording the success rate of the heartbeat service of n SIMs;
step 12: the 5G remote communication module sequentially uses SIM _1 and SIM _2, the SIM _ n initiates w heartbeat services, w is more than 2, and the average success rate of the w heartbeat services is recorded and stored into v (1), v (2), a. The heartbeat service frequency w can be configured;
step 13: setting weight values alpha and beta; the value ranges of the 2 weighted values are all larger than 0;
step 14: let xi be an n × 1 vector, let xi interior element map as the reciprocal of corresponding position element in μ, i.e., xi (1) =1/μ (1), xi (2) =1/μ (2),.. Eta.,. Xi (n) =1/μ (2);
step 15: let Priority be an n × 1 vector, let Priority = α × ξ + β × v;
step 16: the larger the Priority value is, the smaller the time delay of the heartbeat service is, the larger the success rate of the heartbeat service is, namely, the better the network condition is; on the contrary, the smaller the value, the larger the heartbeat service delay is, the smaller the success rate of the heartbeat service is, that is, the worse the network condition is;
and step 17: the configuration of the weight values alpha and beta adjusts the influence of heartbeat service time delay and heartbeat service success rate on Priority by adjusting the weight values of alpha and beta;
step 18: the 5G remote communication module calculates the maximum value Priority (i) of the Priority vector, i is more than or equal to 1 and less than or equal to n, wherein i represents the ith SIM; the greater the Priority (i), the better the network condition corresponding to SIM _ i;
step 19: selecting SIM _ i as a user identity identification module of the 5G remote communication module, and subsequently initiating network access by taking the SIM _ i as a reference;
step 20: interval T, according to the above steps, recalculating Priority; if the recalculated SIM is the same as the currently used SIM, continuing to use the current SIM; if the SIM is different from the currently used SIM, switching to a new SIM and re-initiating network access; the interval time T is configurable.
Compared with the prior art, the invention has the following beneficial effects:
1. and (3) introducing the heartbeat packet, and extracting double indexes of time delay and success rate of the heartbeat packet to be used as a reference for comparing the quality of different network channel conditions.
2. The heartbeat packet service time delay calculation method is introduced, m heartbeat packet service time delays are obtained by initiating m heartbeat packet services, the maximum value and the minimum value of the m heartbeat packet service time delays are eliminated, and abnormal time delays are prevented from being merged into calculation. By calculating the average value, the evaluation of the service delay of the heartbeat packet is more accurate.
3. In the Priority calculation, a weight calculation method is introduced, so that the influence of the heartbeat packet service delay and the heartbeat packet service success rate on the Priority can be flexibly adjusted.
4. Based on the SIM switching mechanism of the heartbeat package, the network quality is selected by comparing the heartbeat package service time delay and the heartbeat package service success rate of different SIMs, and the best network is selected to reside all the time.
Detailed Description
The present invention is further illustrated by the following examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application; as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
A SIM switching method based on heartbeat packets comprises the following steps:
step 1: the time of sending the heartbeat packet by the 5G remote communication module is taken as a timing starting point and is recorded as T0, and the time of receiving the heartbeat packet confirmation by the 5G remote communication module is taken as a timing end point and is recorded as T1. And defining T1-T0 as the service delay of the heartbeat packet.
Step 2: in the heartbeat packet interaction process, the transmission of heartbeat packets (uplink transmission) and the transmission of heartbeat confirmation packets (downlink transmission) are involved. When the channel quality is poor or the wireless channel is congested, the transmission of the heartbeat packet and the confirmation packet thereof is more prone to make errors, so that the larger the time delay of the heartbeat service is, the smaller the success rate of the heartbeat service is; conversely, when the channel quality is good or the wireless channel is not congested, the smaller the heartbeat service delay is, the larger the heartbeat service success rate is. In view of this, the heartbeat service delay and the heartbeat service success rate are used as 2 indexes reflecting the quality of the wireless channel and the congestion condition of the wireless channel, and the quality of the network environment is comprehensively evaluated.
And step 3: the number of 5G remote communication module Subscriber Identity Modules (SIM) is recorded as n.
And 4, step 4: and (4) recording tau as an n multiplied by m matrix, initializing the matrix to be 0, and recording the heartbeat packet service time delay of n SIMs, wherein each SIM respectively initiates m-time (m is more than 2) heartbeat services and records the m-time heartbeat service time delay. The heartbeat service number m can be configured.
And 5: the 5G remote communication module uses SIM _1, SIM _2,.. In turn, SIM _ n initiates the 1 st heartbeat service, records the heartbeat service time delay, and stores τ (1,1), τ (2,1),. And τ (n, 1) in turn.
Step 6: at interval t, repeating step 5,5G telecommunications module sequentially uses SIM _1, SIM _2,., SIM _ n initiates heartbeat traffic from 2 to m, records the heartbeat traffic latency, and sequentially stores in τ (1,i), τ (2,i),.., τ (n, i), where i =2,.., m. The interval time t is configurable.
And 7: let λ be an n × (m-2) matrix, which is obtained by eliminating 1 maximum value and 1 minimum value of τ per row on the basis of τ, i.e. correcting τ, the method avoids the phenomenon that the average value of the heartbeat service time delay cannot reflect the real quality and congestion degree of the wireless channel due to the occurrence of too large or too small heartbeat service time delay.
And step 8: let δ be an n × 1 vector, initialized to 0, for recording an average value of vectors in rows of a λ matrix, where δ (1) = [ λ (1,1) + λ (1,2) +. +. + λ (1,m-2) ]/(m-2), δ (2) = [ λ (2,1) + λ (2,2) +. +. + λ (2,m-2) ]/(m-2),. - · δ (n) = [ λ (n, 1) + λ (n, 2) +. + λ (n, m-2) ]/(m-2).
And step 9: δ (1) to δ (n) represent average values of (m-2) heartbeat traffic delays of SIM _1 to SIM _ n. By calculating the average value, the sudden probability of the time delay of a single heartbeat service can be avoided, and the accuracy of the time delay of the air interface is improved.
Step 10: and d, normalizing the delta by taking the minimum value of the delta element as a reference, and recording the processing result as mu.
Step 11: note that v is an n × 1 vector, and the vector is initialized to 0, which is used to record the success rate of the heartbeat service of n SIMs.
Step 12: the 5G remote communication module uses SIM _1, SIM _2, a. The heartbeat traffic number w is configurable.
Step 13: the weight values α, β are set. The value ranges of the 2 weighted values are all larger than 0.
Step 14: let xi be an n × 1 vector, let xi interior element map as the reciprocal of corresponding position element in μ, i.e., xi (1) =1/μ (1), xi (2) =1/μ (2),.. Eta.,. Xi (n) =1/μ (2).
Step 15: let Priority be an n × 1 vector, let Priority = α × ξ + β × v.
Step 16: each element of Priority comprehensively considers the heartbeat service delay and the heartbeat service success rate. The larger the Priority value is, the smaller the time delay of the heartbeat service is, the larger the success rate of the heartbeat service is, namely, the better the network condition is; conversely, the smaller the value, the larger the heartbeat service delay is, the smaller the success rate of the heartbeat service is, that is, the worse the network condition is.
And step 17: the weight values alpha and beta can be configured, and the influence of heartbeat service time delay and heartbeat service success rate on Priority can be adjusted by adjusting the weight values of alpha and beta.
Step 18: the 5G remote communication module calculates the maximum value Priority (i) of the Priority vector, i ≦ 1 ≦ n, where i represents the ith SIM. Priority (i) is the highest, indicating that the network condition for SIM _ i is the best.
Step 19: and selecting the SIM _ i as a user identity identification module of the 5G remote communication module, and then initiating network access by taking the SIM _ i as a reference.
Step 20: the Priority is recalculated at the interval T according to the above steps. If the recalculated SIM is the same as the currently used SIM, continuing to use the current SIM; if the SIM is different from the currently used SIM, switching to a new SIM and re-initiating network access. The interval time T is configurable.

Claims (1)

1. A method for switching SIM based on heartbeat package is characterized by comprising the following steps:
step 1: taking the time of sending the heartbeat packet by the 5G remote communication module as a timing starting point and marking as T0, and taking the time of receiving the heartbeat packet by the 5G remote communication module as a timing end point and marking as T1; defining T1-T0 as the service time delay of the heartbeat packet;
step 2: taking the heartbeat service delay and the heartbeat service success rate as 2 indexes reflecting the wireless channel quality and the wireless channel congestion condition, and comprehensively evaluating the quality of the network environment;
and step 3: recording the number n of SIM of 5G remote communication module user identity identification modules;
and 4, step 4: the tau is recorded as an n multiplied by m matrix, the matrix is initialized to be 0 and used for recording the heartbeat packet service time delay of n SIMs, each SIM respectively initiates m heartbeat services, m is larger than 2, and the time delay of the m heartbeat services is recorded; the heartbeat service frequency m can be configured;
and 5: the 5G remote communication module uses SIM _1, SIM _2, a.t., SIM _ n initiates the 1 st heartbeat service, records the heartbeat service time delay, and stores tau (1,1), tau (2,1), a.t., tau (n, 1) in sequence;
and 6: at interval t, repeating step 5,5G, wherein the telecommunication module uses SIM _1, SIM _2,. In turn, SIM _ n initiates heartbeat traffic from 2 to m times, records the heartbeat traffic delay, and stores it in turn into τ (1,i), τ (2,i),.., τ (n, i), wherein i =2,... M; the interval time t is configurable;
and 7: the lambda is recorded as an n x (m-2) matrix, 1 maximum value and 1 minimum value of each row of the tau are removed on the basis of the tau, namely the tau is corrected, and the condition that the heartbeat service time delay average value cannot reflect the real wireless channel quality and the wireless channel congestion degree due to too large or too small heartbeat service time delay is avoided;
and 8: let δ be an n × l vector, initialized to 0, for recording the average value of each line vector of λ matrix, where δ (1) = [ λ (1,1) + λ (1,2) + … + λ (1,m-2) ]/(m-2), δ (2) = [ λ (2,1) + λ (2,2) + … + λ (2,m-2) ]/(m-2), · δ (n) = [ λ (n, 1) + λ (n, 2) + … + λ (n, m-2) ]/(m-2);
and step 9: δ (1) - δ (n) represent the average of (m-2) heartbeat traffic delays for SIM _ 1-SIM _ n;
step 10: carrying out normalization processing on the delta by taking the minimum value of the delta element as a reference, and recording a processing result as mu;
step 11: v is recorded as an n multiplied by 1 vector, the vector is initialized to 0, and the vector is used for recording the heartbeat service success rate of n SIMs;
step 12: the 5G remote communication module sequentially uses SIM _1 and SIM _2, the SIM _ n initiates w heartbeat services, w is more than 2, and the average success rate of the w heartbeat services is recorded and respectively stored in v (1), v (2), so, v (n); the heartbeat service frequency w can be configured;
step 13: setting weight values alpha and beta; the value ranges of the 2 weighted values are all larger than 0;
step 14: let xi be an n × 1 vector, let xi interior element map as the reciprocal of corresponding position element in μ, i.e., xi (1) =1/μ (1), xi (2) =1/μ (2),.. Eta.,. Xi (n) =1/μ (2);
step 15: let Priority be an n × 1 vector, let Priority = α × ξ + β × ν;
step 16: the larger the Priority value is, the smaller the time delay of the heartbeat service is, the larger the success rate of the heartbeat service is, namely, the better the network condition is; on the contrary, the smaller the value, the larger the heartbeat service delay is, the smaller the success rate of the heartbeat service is, that is, the worse the network condition is;
and step 17: the configuration of the weight values alpha and beta adjusts the influence of heartbeat service time delay and heartbeat service success rate on Priority by adjusting the weight values of alpha and beta;
step 18: the 5G remote communication module calculates the maximum value Priority (i) of the Priority vector, i is more than or equal to 1 and less than or equal to n, wherein i represents the ith SIM; the greater the Priority (i), the better the network condition corresponding to SIM _ i;
step 19: selecting SIM _ i as a user identity identification module of the 5G remote communication module, and subsequently initiating network access by taking the SIM _ i as a reference;
step 20: the interval T is calculated again according to the steps; if the recalculated SIM is the same as the currently used SIM, continuing to use the current SIM; if the SIM is different from the currently used SIM, switching to a new SIM and restarting network access; the interval time T is configurable.
CN202211343423.4A 2022-10-29 2022-10-29 SIM switching method based on heartbeat package Pending CN115767655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211343423.4A CN115767655A (en) 2022-10-29 2022-10-29 SIM switching method based on heartbeat package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211343423.4A CN115767655A (en) 2022-10-29 2022-10-29 SIM switching method based on heartbeat package

Publications (1)

Publication Number Publication Date
CN115767655A true CN115767655A (en) 2023-03-07

Family

ID=85354367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211343423.4A Pending CN115767655A (en) 2022-10-29 2022-10-29 SIM switching method based on heartbeat package

Country Status (1)

Country Link
CN (1) CN115767655A (en)

Similar Documents

Publication Publication Date Title
Almes et al. The behavior of ethernet-like computer communications networks
US5872771A (en) Adaptive connection admission control method using traffic measurement and estimation
EP1730913B1 (en) Apparatus and method for compensating for data degradation
KR102433853B1 (en) Method and apparatus for setting quite window in passive optical network system
US9066164B2 (en) Overhead adjustment scheme for passive optical networks
DK0431438T3 (en) Method of managing data streams in a digital broadband telecommunications network with integrated services as well as networks for practicing this approach
CN103595656A (en) DVB_RCS satellite channel dynamic distribution method based on predicating of wavelet neural network
Soares et al. Throughput analytical modeling of IEEE 802.11 ah wireless networks
CN115767655A (en) SIM switching method based on heartbeat package
EP0765047A1 (en) Method for measuring a signal transmission delay time station, terminal station and network system to perform this method
EP1135959B1 (en) Queue management in packet switched networks
US20010055314A1 (en) Dynamic bandwidth assignment system and dynamic bandwith assignment method capable of reducing cell transmission delay
CN114884537B (en) Intelligent cognitive joint capturing method and system for multi-beam time division access signals
CN115361716A (en) SIM switching method based on random access air interface time delay
Wang et al. A deep learning assisted approach for minimizing the age of information in a WiFi network
EP3085018B1 (en) Distributed saturation detection method for wireless network nodes
CN110646778A (en) Time difference of flight acquisition system and method
KR20050061996A (en) The scheme of scheduling for ethernet-pon dba
JP3328176B2 (en) Buffer and handover trunk
Bhatia et al. Closed-form expression for the collision probability in the IEEE Ethernet Passive Optical Network registration scheme
CN108495354B (en) Access control method
EP4044544A1 (en) Multichannel data sending method and apparatus, multichannel data receiving method and apparatus, medium, and electronic device
WO1998039881A1 (en) Packet-oriented networks
JP2003244195A (en) Communication traffic analysis method and communication traffic analysis apparatus
Callegati et al. Analysis of CSMA/CA protocol for wireless networking of ATM multiservice applications

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