SAP Global Deployment Efficiency: Cloud with Slow Overseas Access Speed??? Solution//Global IPLC service provider of Shigeng Communication
一、In the global operating environment, overseas employees often encounter repeated disconnections and operational delays when accessing the SAP system located at the headquarters in China. The network latency caused by physical distance combined with firewall policy restrictions makes cross-border access to ERP and OA systems a pain point for enterprise digital collaboration. This article will delve into the root causes of the problem and provide a systematic solution from the network layer to the application layer.
1. The Five Core Problems of Cross border Access Discontinuation
Physical delay in transoceanic transmission
The round-trip time (RTT) for data packets crossing the Pacific Ocean typically exceeds 200-300ms, far exceeding the single digit latency of local access. Every click requires waiting for a signal to cross the ocean, exacerbating the risk of operational interruption
International bandwidth bottlenecks and routing detours
International submarine cables have limited bandwidth and severe congestion during peak hours. Even more tricky is that data packets often detour around third country nodes (such as Europe or America), resulting in an actual path distance increase of 30% -50% compared to a straight line
VPN path extension: When forced to access SAP through a Canadian VPN, data needs to detour through North America before returning to the Chinese server, resulting in doubled latency due to path extension
Firewall blocks long connections: For security reasons, enterprise firewalls will actively terminate idle TCP connections, while SAP Router cannot sense the connection status in a timely manner when crossing security domains, resulting in gateway connection table overflow
SAP session management mechanism
The default setting for the system parameter rdisp/gui_outo-logout is automatic disconnection after 30 minutes of inactivity. For cross-border users, the operation interval caused by network delay is easily misjudged as "no operation"
Traditional protocols such as OpenVPN have high encryption overhead, while SAP Router does not enable TCP keep alive mechanism, making it easy to be mistakenly cleaned in cross firewall environments
2. Layered Solution: From Network Architecture to Code Optimization
▶ Network layer: Connecting the transmission "highway"
Global Acceleration Network (SASE architecture)
Principle: Deploy edge nodes domestically, connect users directly to Shanghai/Beijing access points, and connect to Canadian data centers through enterprise dedicated lines
Effect: Delay reduced by 40% -60%, packet loss rate<0.1%
Implementation path:
-Solution A: Deploy Cisco AnyConnect Secure Mobility+Umbrella
-Option B: Adopt Zscaler ZIA private access point
-Cost: Medium sized enterprises have an average annual investment of approximately $15000: cite [2]
SD-WAN intelligent routing
#Example: SD-WAN path quality detection logic if latency (CN ->US)>300ms:
Switch_cath (flow_Tokyo) # Enable Japanese transit node
Dynamic selection of optimal path: Real time detection of the status of China US routes, automatic avoidance of congested nodes
Domestic compliance plan: Tigerobo supports encryption protocols registered with the Ministry of Public Security
Gateway parameter tuning
Key configuration:
Gw/max_comn=500 # Increase maximum number of connections gw/soukepalive=1 # Enable TCP keep alive packet detection connection status: cite [6]
After restarting, the connection status can be monitored through SMGW to avoid the accumulation of "zombie connections".
▶ SAP system layer: session stability reinforcement
Session Preserving Program (Z_SX Scheme)
Principle: By sending a heartbeat signal every 5 seconds through the backend job, SAP Router is prevented from timeout and disconnection
Operation steps:
SE38 → Execute program Z_SX → Keep this session → New session Operation Business: cite [1]: cite [3]
Improved version code (adding 6-hour automatic exit to avoid resource leakage):
ParameterS: p_cycle TYPE i DEFAULT 2200. "2200 * 5 seconds ≈ 6 hours WHILE time<p_cycle
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING text = 'Connection Keeper'.
WAIT UP TO 5 SECONDS.ENDWHILE.:cite[2]
Intelligent session management (ZLMLINK solution)
Advanced program features:
When there is only one session left and the current number of user sessions IF gv_num=1
CALL FUNCTION 'TH_CREATE-FOREIGN-PODE' "Create a new session ENDIF.: cite [7]
Automatically detect the number of sessions and create a new session to prevent disconnection when there is only one session left
Multilingual prompt: "Please use a different conversation to work
Core Logic:
Permanent parameter adjustment
RZ11 → Modify Parameters:
Rdisp/gui_outo-logout=7200 "timeout extended to 2 hours: cite [4]
▶ Application layer: Protocol and timeout control
HTTP call timeout setting
When the external interface freezes, actively interrupt the connection to release resources:
Pv_tttp_cient ->send (EXPORTING timeout=5). "5-second timeout IF sy subrc=1
MESSAGE 'interface timeout! ' TYPE 'E'. ENDIF.:cite[9]
Asynchronous RFC fault-tolerant processing
Use STARTING NEW TASK to separate long tasks and continue execution even if the client is disconnected:
CALL FUNCTION 'REMOTE_SERVICE'
STARTING NEW TASK l_taskid WITHOUT WAITING FOR TEST. "Do not wait for callback: cite [10]
3. Scenario based solution combination
Typical case: A car company's Canadian factory visits Shanghai SAP
Problem: OA submission takes more than 2 minutes, frequent session timeouts
Solution: Deploy Zscaler nodes (Vancouver → Shanghai dedicated line)+optimize SAP gateway parameters
Result: Delay reduced from 380ms to 150ms, timeout interrupts decreased by 90%
4. Avoiding pitfalls guide: key precautions
Safety compliance red line
SD-WAN services need to have ICP filing and Level 3 security certification
The financial industry avoids using public agents and prioritizes private deployment solutions
Resource occupancy balance
Z-DX program needs to set a running limit (recommended ≤ 6 hours) to prevent server resource leakage
Regularly check the background processes in SM50 and clean up abnormal tasks
Protocol selection suggestions
Preferred protocols: WireGuard>IKEv2/IPSec>OpenVPN
Delay comparison: WireGuard (110ms) vs OpenVPN (290ms): cite [3]
Conclusion: Building a resilient connectivity architecture
Solving cross-border SAP access disconnections requires three-dimensional collaboration of network layer acceleration, system layer optimization, and application layer fault tolerance:
Short and fast solution: enable Z-DX session maintenance+local network optimization, effective within 24 hours
Medium - to long-term investment: Deploying SASE architecture to lay the foundation for global business connectivity
There is no silver bullet in technology, but there is an optimal combination. When physical distance becomes a predetermined constraint, and through the elastic design of technological architecture, the data flood crosses oceans, every millisecond of optimization is a silent tribute to global collaboration.
二、Shigeng Communication Global Office Network Products:
The global office network product of Shigeng Communication is a high-quality product developed by the company for Chinese and foreign enterprise customers to access the application data transmission internet of overseas enterprises by making full use of its own network coverage and network management advantages.
Features of Global Application Network Products for Multinational Enterprises:
1. Quickly access global Internet cloud platform resources
2. Stable and low latency global cloud based video conferencing
3. Convenient and fast use of Internet resource sharing cloud platform (OA/ERP/cloud storage and other applications
Product tariff:
Global office network expenses | Monthly rent payment/yuan | Annual payment/yuan | Remarks |
Quality Package 1 | 1000 | 10800 | Free testing experience for 7 days |
Quality Package 2 | 1500 | 14400 | Free testing experience for 7 days |
Dedicated line package | 2400 | 19200 | Free testing experience for 7 days |