Relay Server Channel Switching for Reliable Data Frames
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing communication systems face interruptions and reduced reliability when switching from direct channel to relay channel communication, especially due to firewall or NAT access issues, leading to reestablishment of communication channels and increased data transmission time.
Innovation Solution
A system and method that utilize a relay server to transmit incompletely sent data frames through a relay channel when switching from direct channel to relay channel communication, using a User Datagram Protocol (UDP) for direct channel and Transmission Control Protocol (TCP) for relay channel, ensuring immediate retransmission of incomplete frames without waiting for a preset time.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If direct channel communication is used, then data transmission speed is improved, but communication reliability deteriorates when access is blocked by firewall or NAT
Solution Approach 1:
The system dynamically switches between direct channel and relay channel communication modes based on real-time accessibility conditions. When direct channel becomes inaccessible due to firewall or NAT, the system automatically transitions to relay channel mode, and can switch back when direct channel becomes available again, ensuring continuous reliable communication.
Solution Approach 2:
A relay server is introduced as an intermediary component that facilitates communication between terminals when direct channel is blocked. The relay server receives data from the transmitting terminal and forwards it to the receiving terminal, bypassing firewall and NAT restrictions while maintaining communication reliability.
2Reliability
If communication channel is reestablished when direct channel becomes impossible, then communication continuity is maintained, but data transmission time increases
Solution Approach 1:
The system performs preliminary actions by pre-establishing relay channel connectivity and maintaining communication state information before direct channel failure occurs. When direct channel becomes inaccessible, the system can immediately switch to relay channel without needing to reestablish communication from scratch, thus reducing time loss.
Solution Approach 2:
The system ensures continuous data transmission by maintaining active communication sessions and buffer states during channel transitions. Data transmission continues uninterrupted through the relay channel as soon as direct channel becomes unavailable, avoiding complete communication interruption and reducing overall transmission time.
3Reliability
If a list of frames is newly generated when communication scheme changes, then data transmission reliability is ensured, but data transmission time increases
Solution Approach 1:
The system pre-generates and maintains frame lists during direct channel communication, organizing data into transmission-ready frames before channel switch is needed. When communication scheme changes to relay channel, these pre-prepared frames can be immediately transmitted without regeneration, ensuring reliability while minimizing time loss.
Solution Approach 2:
The frame list management system dynamically adapts to channel changes by maintaining frame state information across communication mode transitions. Frames that were prepared for direct channel transmission remain valid and can be seamlessly continued in relay channel mode, avoiding the need to recreate the entire frame list and reducing transmission time.
Data Source
AI summary
A system and method for changing communication channels is provided. In the system, a transmitting peer divides transmission data into frames to generate an unfinished frame list and transmits a data frame to a receiving terminal according to the unfinished frame list and a receiving peer receives a data frame from the transmitting peer and transmits a response frame to the transmitting peer in response to the received data frame during direct channel communication. The transmitting peer transmits incompletely transmitted data frames (whose response frames have not been received) included in the unfinished frame list to the receiving peer through a relay server when a communication scheme has been changed from the direct channel communication scheme to a relay channel communication scheme. When the communication scheme is changed as circumstances require, specifically, from the direct scheme to the relay scheme, it is possible to rapidly change the communication channel without interruption of data communication.


