Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A fast processing method for real-time high concurrent long connection timeout

A processing method and long connection technology, applied in the field of Internet of Vehicles, can solve the problems of long time period, inability to achieve real-time efficiency and accuracy, and achieve the effect of short time period

Active Publication Date: 2022-07-01
FJ MOTOR GRP YUDO NEW ENERGY AUTOMOBILE CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the data reaches a certain amount, the traversal time period is long, and it is impossible to achieve real-time, efficient and accurate effects

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A fast processing method for real-time high concurrent long connection timeout

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to describe in detail the technical content, structural features, achieved objectives and effects of the technical solution, the following detailed description is given in conjunction with specific embodiments and accompanying drawings.

[0025] In this embodiment, the vehicle terminal connection platform adopts TCP long connection, and the terminal status is online and active through the heartbeat method. Referring to the definition of the national standard protocol, the reporting heartbeat interval is set to 60 seconds, and the platform processing principle is to verify that no receipt is received within 120 seconds. Heartbeat data is regarded as timeout, and the link is disconnected and resources are reclaimed. Therefore, in this embodiment, the array length L is set as the time threshold value of 120, and the address subscript includes (0, 1, 2, 3...119) 120 values. Each vehicle terminal identification code in the array has a corresponding link. When each v...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The real-time high-concurrency long-connection fast processing method of the present invention includes the following steps: S1: constructing an array P whose length is L and whose address subscripts are i=0, 1, 2, . . . , L-1. Each element P(i) includes a vehicle identification set, the length L of the array P is a time threshold, and a cross-relation table is constructed. S2: start the system; S3: initialize the array; S4: start the thread, initialize the pointer value T; S5: During the unit pointer time, the signal data of all vehicles in the system are collected; S6: determine whether there is a vehicle sending a signal within the unit pointer time S7: determine whether the end command is received. The above technical solution adopts the method of preset array P in the cache (the length L of the array P is a time threshold), a cross-relation table, and the establishment of a pointer. During the processing process, the array is deleted within the cycle time period, and the unresponsiveness in the system is deleted. For vehicle information, only the information that responds to the vehicle in the time period is retained. The overall data volume of the array is small, and the traversal time period is short.

Description

technical field [0001] The invention relates to the field of Internet of Vehicles, in particular to a real-time high-concurrency long-connection timeout fast processing method. Background technique [0002] In the Internet of Vehicles industry, the terminal vehicle and the server use the TCP long connection method, and the real-time data requirements are very high. After the number of vehicles reaches hundreds of thousands, the resource requirements for the server maintenance link are getting higher and higher. When the vehicle is disabled, according to the design mode of self-protection and resource saving, the terminal vehicle will enter a sleep state, and the demand for link disconnection will be generated at this time. Resource is also an important factor to increase the concurrent access of terminals. [0003] The current common practice is to store the vehicle's unique identifier, link id and the time of the last reported data in the Map, and start a separate thread t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/145H04L67/5651H04L67/12
CPCH04L67/145H04L67/12H04L67/5651
Inventor 刘思琼陈啟南刘心文赵明
Owner FJ MOTOR GRP YUDO NEW ENERGY AUTOMOBILE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products