A method, system, device and medium for data link layer handover

By employing a direct split-and-re-encapsulate conversion method in a dedicated network, the optimal packet length is calculated and the fiber channel data frames are split, thus solving the problem of low efficiency in traditional handover schemes and achieving efficient data link layer channel handover and fast information transmission.

CN117560116BActive Publication Date: 2026-07-24BEIJING UNIV OF POSTS & TELECOMM +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING UNIV OF POSTS & TELECOMM
Filing Date
2023-11-14
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Traditional data link layer switching schemes are inefficient in dedicated networks when fiber optic links are damaged, and cannot guarantee the timely transmission of critical information.

Method used

The direct split-and-re-encapsulate conversion method is adopted. By monitoring the wireless channel status to calculate the optimal packet length, the data frame of the fiber optic channel is split to obtain the wireless data packet payload, and then reconstructed into a data frame that conforms to the wireless channel transmission standard.

Benefits of technology

It effectively improves the efficiency of channel switching at the data link layer of dedicated network communication, reduces latency, and enables rapid splitting and reconstruction of heterogeneous channel cells.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117560116B_ABST
    Figure CN117560116B_ABST
Patent Text Reader

Abstract

The application discloses a data link layer switching method, system, device and medium, and relates to the technical field of communication; the method comprises the following steps: in an error correction coding system of a given channel error probability, a wireless channel state is monitored, and an optimal packet length corresponding to a maximum wireless channel throughput is calculated; a data frame of a fiber channel is split based on the optimal packet length, and a wireless data packet payload is obtained; the wireless data packet payload is reconstructed, and a data frame meeting a wireless channel transmission standard is obtained. The application aims to provide a data link layer switching method, system, device and medium, adopts a "direct splitting-repackaging" conversion mode, and effectively improves the switching efficiency of a special network communication data link layer channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a data link layer switching method, system, device, and medium. Background Technology

[0002] Private networks can provide privacy, security, reliability, and various service support, enabling users to avoid unnecessary performance waste, ensuring network reliability and security, simplifying management, improving network efficiency, and achieving effective network management and data security. Private networks based on multi-mode communication are being widely researched by various countries.

[0003] Fiber optic communication and wireless communication are two commonly used communication systems in dedicated networks. Fiber optic communication offers advantages such as long transmission distance, large transmission capacity, and high transmission security, while wireless communication offers advantages such as low cost, strong environmental adaptability, and high system scalability. When a fiber optic link in a dedicated network is damaged, heterogeneous channel switching is required.

[0004] In dedicated networks, where random damage such as fiber optic cable breakage may occur at the physical layer of communication, traditional data link layer handover schemes decapsulate the first channel data frame to obtain the payload, and then recapsulate the payload according to the new second channel data frame structure. Because traditional data link layer handover schemes require both decapsulation and recapsulation, they suffer from low efficiency. Summary of the Invention

[0005] The purpose of this invention is to provide a data link layer switching method, system, device and medium that adopts a "direct split-re-encapsulation" conversion method, which effectively improves the channel switching efficiency of dedicated network communication data link layer.

[0006] To achieve the above objectives, the present invention provides the following solution:

[0007] A data link layer switching method includes:

[0008] In an error correction coding system with a given channel error probability, the wireless channel state is monitored, and the optimal packet length corresponding to the maximum wireless channel throughput is calculated.

[0009] The data frames of the fiber optic channel are split based on the optimal packet length to obtain the wireless data packet payload.

[0010] The wireless data packet payload is reconstructed to obtain a data frame that conforms to the wireless channel transmission standard.

[0011] Optionally, the optimal packet length corresponding to the maximum wireless channel throughput is calculated, specifically including:

[0012] Calculate the packet collision probability p based on the probability τ of transmitting packet data in any time slot and the number of nodes n in the wireless local area network.c :

[0013] p c =1-(1-τ) n-1 ;

[0014] Based on the bit error rate P after error correction b Given the target packet length L, the length H of the header overhead in the radio packet payload, and the length F of the parity bit in the radio packet payload, calculate the packet transmission error probability p with respect to the target packet length. f :

[0015] p f =1-(1-P) b ) L+H+F ;

[0016] Based on the packet collision probability p c And the packet transmission error probability p with respect to the target packet length f Calculate the packet transmission failure probability p with respect to the target packet length:

[0017] p = p c +p f -p c p f =1-(1-τ) n-1 (1-P b ) L+H+H

[0018] According to the information transmission rate R c Distributed coordination function inter-frame interval T DIFS Short frame interval T SIFS The target packet length L, the length H of the header overhead in the radio packet payload, the length F of the checksum in the radio packet payload, and the length H of the packet acknowledgment message. ACK Calculate the channel average successful transmission time T with respect to the target packet length. s and the average collision time T with respect to the target group length c :

[0019]

[0020]

[0021] Based on the probability τ of transmitting packet data in any time slot and the number of nodes n in the wireless local area network, calculate the probability P that at least one node transmits a packet in a given time slot. tr The conditional probability P of a node successfully sending a packet. s :

[0022] P tr =1-(1-τ)n ;

[0023]

[0024] Based on the channel average successful transmission time T for the target packet length s The average collision time T with respect to the target group length c The probability P that at least one node transmits a packet in a given time slot tr The conditional probability P of a node successfully sending a packet. s Calculate the packet transmission error probability p with respect to the target packet length. f Given the time slot length σ and the target packet length L, construct the wireless channel throughput S with respect to the target packet length:

[0025]

[0026] Let the partial derivative of the wireless channel throughput S with respect to the target packet length L be equal to zero. This yields the target packet length L corresponding to the maximum wireless channel throughput S with respect to the target packet length. This target packet length L corresponding to the maximum wireless channel throughput S with respect to the target packet length is then taken as the optimal packet length L. opt :

[0027]

[0028] Where α represents the first parameter.

[0029] Optionally, the splitting principle is: the splitting is performed from left to right and from top to bottom.

[0030] Optionally, the optical fiber channel is a synchronous transmission module or an optical transmission unit.

[0031] A data link layer handover system, wherein the data link layer handover system is applied to the data link layer handover method described above, the data link layer handover system comprising:

[0032] The optimal packet length determination module is used to monitor the wireless channel state and calculate the optimal packet length corresponding to the maximum wireless channel throughput in an error correction coding system with a given channel error probability.

[0033] The wireless data packet payload determination module is used to split the data frames of the optical fiber channel based on the optimal packet length to obtain the wireless data packet payload.

[0034] The first channel data frame determination module is used to reconstruct the wireless data packet payload to obtain a data frame that conforms to the wireless channel transmission standard.

[0035] Optionally, the optical fiber channel is a synchronous transmission module or an optical transmission unit.

[0036] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the data link layer switching method as described above.

[0037] A computer-readable storage medium storing a computer program that, when executed, implements the data link layer switching method as described above.

[0038] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0039] This invention discloses a data link layer switching method, system, device, and medium. The method includes: monitoring the wireless channel state in an error correction coding system with a given channel error probability, and calculating the optimal packet length corresponding to the maximum wireless channel throughput; splitting the data frame of the optical fiber channel based on the optimal packet length to obtain the wireless data packet payload; and reconstructing the wireless data packet payload to obtain a data frame conforming to the wireless channel transmission standard. The purpose of this invention is to provide a data link layer switching method, system, device, and medium that adopts a "direct split-re-encapsulation" conversion method, effectively improving the efficiency of data link layer channel switching in dedicated network communication. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a schematic diagram of a data link layer switching method provided in an embodiment of the present invention;

[0042] Figure 2 This is a use case of a data link layer switching method provided in an embodiment of the present invention;

[0043] Figure 3 A comparison diagram of a data link layer switching method provided in an embodiment of the present invention and a traditional method;

[0044] Figure 4 This is a flowchart of a data link layer switching method provided in an embodiment of the present invention. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] like Figure 2 As shown, when a link is damaged in a dedicated network communication, the traditional "decapsulation-recapsulation" data link layer channel switching scheme is slow and cannot guarantee the timely transmission of critical information. To solve this problem, this invention provides a data link layer switching method, system, device and medium that adopts a "direct decapsulation-recapsulation" conversion method, which effectively improves the efficiency of dedicated network communication data link layer channel switching.

[0047] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] Example 1

[0049] like Figure 4 As shown, a data link layer switching method of the present invention includes:

[0050] Step 101: In an error correction coding system with a given channel error probability, monitor the wireless channel state and calculate the optimal packet length corresponding to the maximum wireless channel throughput.

[0051] Calculating the optimal packet length corresponding to the maximum wireless channel throughput specifically includes:

[0052] Calculate the packet collision probability p based on the probability τ of transmitting packet data in any time slot and the number of nodes n in the wireless local area network. c :

[0053] p c =1-(1-τ) n-1 ;

[0054] Based on the bit error rate P after error correction b Given the target packet length L, the length H of the header overhead in the radio packet payload, and the length F of the parity bit in the radio packet payload, calculate the packet transmission error probability p with respect to the target packet length. f :

[0055] p f =1-(1-P) b ) L+H+F ;

[0056] Based on the packet collision probability pc And the packet transmission error probability p with respect to the target packet length f Calculate the packet transmission failure probability p with respect to the target packet length:

[0057] p = p c +p f -p c p f =1-(1-τ) n-1 (1-P b ) L+H+F

[0058] According to the information transmission rate R c Distributed coordination function inter-frame interval T DIFS Short frame interval T SIFS The target packet length L, the length H of the header overhead in the radio packet payload, the length F of the checksum in the radio packet payload, and the length H of the packet acknowledgment message. ACK Calculate the channel average successful transmission time T with respect to the target packet length. s and the average collision time T with respect to the target group length c :

[0059]

[0060]

[0061] Based on the probability τ of transmitting packet data in any time slot and the number of nodes n in the wireless local area network, calculate the probability P that at least one node transmits a packet in a given time slot. tr The conditional probability P of a node successfully sending a packet. s :

[0062] P tr =1-(1-τ) n ;

[0063]

[0064] Based on the channel average successful transmission time T for the target packet length s The average collision time T with respect to the target group length c The probability P that at least one node transmits a packet in a given time slot tr The conditional probability P of a node successfully sending a packet. s Calculate the packet transmission error probability p with respect to the target packet length. f Given the time slot length σ and the target packet length L, construct the wireless channel throughput S with respect to the target packet length:

[0065]

[0066] Set the partial derivative of the wireless channel throughput S with respect to the target packet length L equal to zero, where M = (1 - P tr )σ+(H ACK +R c T SIFS )P s P tr / R c , and we get:

[0067]

[0068] When (1 - P b ) L ≠0 and H << L, let ln(1 - P b ) = K, and after simplifying and organizing the above formula, we get:

[0069] [[ID=3`1]]

[0070] By solving the above quadratic equation in one variable about L, we can obtain the optimal packet length L that maximizes the throughput S opt , as calculated in S101 in Figure 1 to get the optimal packet length L opt :

[0071]

[0072] where α represents the first parameter.

[0073] In a specific application, α, M, and K are represented as intermediate variables, and α = (1 - P tr )σR c +(H ACK +R c T SIFS )P s P tr

[0074] Step 102: Split the data frame of the optical fiber channel based on the optimal packet length to obtain the wireless packet payload.

[0075] The wireless packet payload is the wireless packet payload based on the IEEE 802.11 series standards.

[0076] The optical fiber channel is a synchronous transport module or an optical transport unit.

[0077] Split the synchronous transport module - N (STM - N) or the optical transport unit (OTU) into several segments according to the optimal packet length calculated in Step 101. The STM - N and OTU k - frame structures are 9 rows by 270×N columns and 4 rows by 4080 columns respectively. When splitting, follow the principle of from left to right and from top to bottom.

[0078] Step 103: Reconstruct the wireless data packet payload to obtain a data frame that conforms to the wireless channel transmission standard.

[0079] The data segments obtained in step 102 are used as payloads, and the split cells are repackaged based on the wireless data frame structure of the IEEE 802.11 series of standards.

[0080] like Figure 1 As shown, S101: Calculate the optimal block length L for cell splitting. opt .

[0081] S102: Based on the optimal grouping length L opt The data packets are then split to obtain the wireless data packet payload.

[0082] S103: Reconstruct the wireless data packet payload to obtain a data frame that conforms to the wireless channel transmission standard.

[0083] Example 2

[0084] A data link layer handover system, wherein the data link layer handover system is applied to the data link layer handover method described in Embodiment 1, the data link layer handover system comprising:

[0085] The optimal packet length determination module is used to monitor the wireless channel state and calculate the optimal packet length corresponding to the maximum wireless channel throughput in an error correction coding system with a given channel error probability.

[0086] The wireless data packet payload determination module is used to split the data frames of the optical fiber channel based on the optimal packet length to obtain the wireless data packet payload.

[0087] The optical fiber channel is a synchronous transmission module or an optical transmission unit.

[0088] The first channel data frame determination module is used to reconstruct the wireless data packet payload to obtain a data frame that conforms to the wireless channel transmission standard.

[0089] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the data link layer switching method as described in Embodiment 1.

[0090] A computer-readable storage medium storing a computer program that, when executed, implements the data link layer switching method as described in Embodiment 1.

[0091] This invention relates to a method for fast packet splitting / reconstruction of variable-length cells in dedicated networks, based on channel matching from fiber optic channels to wireless channels. Figure 3 As shown, compared with the traditional "decapsulation-recapsulation" conversion, the present invention adopts the "direct splitting-recapsulation" conversion method, which effectively improves the channel switching efficiency of dedicated network communication data link layer, reduces latency, and realizes rapid splitting / reconstruction of heterogeneous channel cells in the face of random damage.

[0092] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0093] This document uses specific examples to illustrate the first principle and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A data link layer switching method, characterized in that, The data link layer switching method includes: In an error correction coding system with a given channel error probability, the wireless channel state is monitored, and the optimal packet length corresponding to the maximum wireless channel throughput is calculated. The data frames of the fiber optic channel are split based on the optimal packet length to obtain the wireless data packet payload. The payload of the wireless data packet is reconstructed to obtain a data frame that conforms to the wireless channel transmission standard.

2. The data link layer switching method according to claim 1, characterized in that, Calculating the optimal packet length corresponding to the maximum wireless channel throughput includes: Calculate the packet collision probability p based on the probability τ of transmitting packet data in any time slot and the number of nodes n in the wireless local area network. c : p c =1-(1-τ) n-1 ; Based on the bit error rate P after error correction b Given the target packet length L, the length H of the header overhead in the radio packet payload, and the length F of the parity bit in the radio packet payload, calculate the packet transmission error probability p with respect to the target packet length. f : p f =1-(1-P b ) L+H+F ; Based on the packet collision probability p c And the packet transmission error probability p with respect to the target packet length f Calculate the packet transmission failure probability p with respect to the target packet length: p=p c +p f -p c p f =1-(1-τ) n-1 (1-P b ) L+H+F According to the information transmission rate R c Distributed coordination function inter-frame interval T DIFS Short frame interval T SIFS The target packet length L, the length H of the header overhead in the radio packet payload, the length F of the checksum in the radio packet payload, and the length H of the packet acknowledgment message. ACK Calculate the channel average successful transmission time T with respect to the target packet length. s and the average collision time T with respect to the target group length c : Based on the probability τ of transmitting packet data in any time slot and the number of nodes n in the wireless local area network, calculate the probability P that at least one node transmits a packet in a given time slot. tr The conditional probability P of a node successfully sending a packet. s : P tr =1-(1-τ) n ; Based on the channel average successful transmission time T for the target packet length s The average collision time T with respect to the target group length c The probability P that at least one node transmits a packet in a given time slot tr The conditional probability P of a node successfully sending a packet. s Calculate the packet transmission error probability p with respect to the target packet length. f Given the time slot length σ and the target packet length L, construct the wireless channel throughput S with respect to the target packet length: Let the partial derivative of the wireless channel throughput S with respect to the target packet length L be equal to zero. This yields the target packet length L corresponding to the maximum wireless channel throughput S with respect to the target packet length. This target packet length L corresponding to the maximum wireless channel throughput S with respect to the target packet length is then taken as the optimal packet length L. opt : Where α represents the first parameter.

3. The data link layer switching method according to claim 1, characterized in that, The splitting principle is as follows: splitting is carried out from left to right and from top to bottom.

4. The data link layer switching method according to claim 1, characterized in that, The optical fiber channel is a synchronous transmission module or an optical transmission unit.

5. A data link layer switching system, characterized in that, The data link layer handover system is applied to the data link layer handover method according to any one of claims 1-4, and the data link layer handover system comprises: The optimal packet length determination module is used to monitor the wireless channel state and calculate the optimal packet length corresponding to the maximum wireless channel throughput in an error correction coding system with a given channel error probability. The wireless data packet payload determination module is used to split the data frames of the optical fiber channel based on the optimal packet length to obtain the wireless data packet payload. The first channel data frame determination module is used to reconstruct the wireless data packet payload to obtain a data frame that conforms to the wireless channel transmission standard.

6. The data link layer switching system according to claim 5, characterized in that, The optical fiber channel is a synchronous transmission module or an optical transmission unit.

7. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the data link layer switching method as described in any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed, implements the data link layer switching method as described in any one of claims 1 to 4.