CN108989467B - Centralized addressing method - Google Patents

Centralized addressing method Download PDF

Info

Publication number
CN108989467B
CN108989467B CN201811007767.1A CN201811007767A CN108989467B CN 108989467 B CN108989467 B CN 108989467B CN 201811007767 A CN201811007767 A CN 201811007767A CN 108989467 B CN108989467 B CN 108989467B
Authority
CN
China
Prior art keywords
message
link information
terminal
addressing method
cache
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.)
Active
Application number
CN201811007767.1A
Other languages
Chinese (zh)
Other versions
CN108989467A (en
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.)
Anhui Jianghuai Automobile Group Corp
Original Assignee
Anhui Jianghuai Automobile Group Corp
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 Anhui Jianghuai Automobile Group Corp filed Critical Anhui Jianghuai Automobile Group Corp
Priority to CN201811007767.1A priority Critical patent/CN108989467B/en
Publication of CN108989467A publication Critical patent/CN108989467A/en
Application granted granted Critical
Publication of CN108989467B publication Critical patent/CN108989467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a centralized addressing method, which comprises the following steps: an uplink stage: after a terminal accesses a gateway, acquiring a report message and link information of the terminal; registering link information in a cache, and writing a report message into a message queue; extracting the report message from the message queue and forwarding the report message to a service server; a downlink stage: after receiving a push message of a service server, writing the push message into a message queue; inquiring link information from the cache; and extracting the push message according to the link information and then sending the push message to the corresponding terminal. The invention provides that the link information is reserved when the message is reported, and the required message is pushed to the corresponding terminal after the link information is inquired reversely in the message sending process, so that the defects of the traditional IP broadcast are overcome.

Description

Centralized addressing method
Technical Field
The invention relates to the field of car networking, in particular to a centralized addressing method.
Background
In the design of a service end of the Internet of vehicles, a terminal access gateway is an important component of the whole system. The system is responsible for establishing communication connection with vehicle-mounted terminal equipment and keeping the connection stable; while dispatching requests to specific automotive remote Service providers (TSPs). Meanwhile, the gateway is also a downlink message channel, and needs to receive the push message of the TSP service system and correctly address to a specific target car machine to implement message delivery. As traffic volume increases, the initial single-terminal access gateway instances have been insufficient to bear such pressure, necessitating multi-instance deployment of the gateway for multi-terminal access. However, a problem arises at this time, in which a terminal is connected to a certain gateway instance in a TCP or other protocol form, and when the terminal is in a message downlink stage, there are also a plurality of gateway instances for accessing different terminals, but the gateway instances are not transparent to the service system, and the service system cannot know which gateway instance should be selected to push a message to be delivered, so that the message pushing fails.
For this reason, the push service of the TSP generally adopts an IP broadcast form, that is, under the condition that the service system does not know which gateway is maintaining the terminal requiring the push message, all gateway instances are treated as the same thing, and the push message is broadcast to all gateways. After receiving the message, the gateway instance needs to judge by itself, if a certain terminal maintained by the instance is a target terminal, the push message is issued, otherwise, the push message is discarded. It can be seen that the existing broadcasting form brings extra network burden, and the resource consumption is large, and the disadvantage is more obvious especially when the global message is centrally issued.
Disclosure of Invention
The invention aims to provide a centralized addressing method for solving the problem of network pressure caused by IP broadcasting.
The technical scheme adopted by the invention is as follows:
a centralized addressing method, comprising:
an uplink stage:
after a terminal accesses a gateway, acquiring a report message and link information of the terminal;
registering link information in a cache, and writing a report message into a message queue;
extracting the report message from the message queue and forwarding the report message to a service server;
a downlink stage:
after receiving a push message of a service server, writing the push message into a message queue;
inquiring link information from the cache;
and extracting the push message according to the link information and then sending the push message to the corresponding terminal.
Optionally, after the terminal accesses the gateway, the method further includes: and monitoring the online state of the terminal in real time.
Optionally, the method further includes: and updating the online state in the cache in real time.
Optionally, the method further includes: the presence status is written to the message queue.
Optionally, the method further includes: in the uplink phase, the online status is extracted from the message queue and forwarded to the service server.
Optionally, the method further includes: and setting a corresponding table of the online terminal and the accessed gateway in the cache according to the link information and the online state.
Optionally, the extracting, according to the link information, the push message and then issuing the push message to the corresponding terminal includes:
and extracting the push message according to the corresponding table and then sending the push message to the corresponding terminal.
Optionally, the method further includes: and after the writing operation is performed on the message queue, backing up the message queue.
Optionally, the link information includes gateway IP and access port information.
Optionally, the registering the link information in the cache includes: and saving the link information in the cache in a key-value structure.
The invention provides that the link information is reserved when the message is reported, and the required message is pushed to the corresponding terminal after the link information is inquired reversely in the message sending process, so that the defects of the traditional IP broadcast are overcome. Furthermore, the online condition of the terminal is updated in real time in the interaction process, and the online state of the terminal is considered together when a message is sent, so that the user experience machine cost balance is remarkably improved compared with the traditional scheme.
Drawings
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of an embodiment of a centralized addressing method provided by the present invention;
fig. 2 is a flowchart of a centralized addressing method according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
The present invention provides an embodiment of a centralized addressing method, as shown in fig. 1, the method specifically includes an uplink stage and a downlink stage.
Performed in the upstream phase
And step S1, after the terminal accesses the gateway, acquiring the report message and link information of the terminal.
The terminal referred to herein may be a car machine, a mobile phone, or other applicable intelligent device, and the link information may include at least an IP of an instance of a gateway accessed by the terminal and port information of an access port, or may specifically include other legal terminal-related information.
And step S2, registering link information in the buffer and writing the report message into a message queue.
The operation of writing the message queue is a core step of data forwarding, and specifically, multiple queue services can be provided to ensure normal communication of the whole system, and the system coupling degree can be reduced. The specific writing mode can refer to various existing technical means, and the invention is not limited to this; it should be noted that, in this embodiment, it is proposed to register link information of the terminal in the cache, that is, to "register" information such as a gateway IP port, "and in a specific operation, a global cache (redis) may be set to implement this function, and a key-value structure is preferably adopted to store the link information in the cache, for example, the cache type is hash < String, String >, a cache key name NETGATE _ IP, a cache subkey name $ tertiary id, and the cache value is a gateway IP + port accessed by $ tertiary id.
And step S3, extracting the report message from the message queue and forwarding the report message to the service server.
And then, continuing the conventional reporting operation, namely extracting the reporting message from the message queue and forwarding the reporting message to the service server. The business server referred to herein may refer to a carrier platform of a remote service provided by an automobile remote service provider, but is not limited to include other cloud systems and cloud service platforms.
Performed in the downstream phase
And step S4, after receiving the push message of the service server, writing the push message into the message queue. As mentioned above, this process is a common implementation choice for forwarding operation in a communication session, and is not described herein again.
And step S5, inquiring the link information from the cache.
The process can be viewed as a reverse polling action, i.e. after receiving the push message, the push message is not addressed "forward", but the registration information at the time of initial access is back-checked, so as to match the corresponding target terminal.
And step S6, extracting the push message according to the link information and then sending the push message to the corresponding terminal.
And finally, taking the inquired link information as a basis, taking the push message out of the queue and sending the push message to a corresponding terminal, thereby achieving the purposes of targeting and saving resources.
In addition, the invention also considers the condition that the terminal is off-line in the session process, so as to further improve the reliability and the effectiveness of information transmission, the invention provides that the on-line state of the terminal can be monitored in real time after the terminal is accessed into the gateway. Reference may be made in particular to the following two real-time references, which indicate that the two schemes may also be performed in combination in other comprehensive embodiments, and that the sequence of steps in the schemes described below is not shown by a sequential order by a schematic arrow.
A specific embodiment, illustrated with reference to figure 2:
and step S10, monitoring the online state of the terminal in real time after the terminal accesses the gateway.
And step S20, acquiring the report message and link information of the terminal.
And step S30, registering link information in the cache, updating the online state in real time, and writing the report message into a message queue.
And step S40, setting a corresponding table of the online terminal and the accessed gateway in the cache according to the link information and the online state. It should be noted that this step is a preferred solution, and in other embodiments, there may be no need to set a corresponding table or establish association between the terminal and the access gateway in other forms.
And step S50, extracting the report message from the message queue and forwarding the report message to the service server.
And step S60, after receiving the push message of the service server, writing the push message into the message queue.
And step S70, inquiring the corresponding table from the cache.
And step S80, extracting the push message according to the corresponding table and then sending the push message to the corresponding terminal. Of course, in other embodiments where no mapping table is set, the step may be to extract the push message and send the extracted push message to the corresponding terminal according to the link information and the online status.
In another specific embodiment, the presence status may be written into the message queue, and it should be noted that, as the presence status of the terminal is updated in real time, the operation of writing the presence information is a dynamic process in essence, that is, once the status of the terminal changes, the latest middle-end status is written into the queue. In addition, in order to increase the session transparency, the online state can be extracted from the message queue and forwarded to the service server in the uplink stage, so that the dynamic change of the terminal is synchronized with the remote server in real time, and the subsequent message pushing and corresponding issuing operation is facilitated to be optimized or simplified.
It may also be supplemented that the message queue is backed up after the aforementioned write operation to the message queue. The process may refer to backup of the written report message, push message, and the online status by setting a backup queue service.
Finally, it should be noted that when constructing an execution module that completes the above steps, reference may be made to the following:
the method comprises the steps that an access module is arranged, is mainly responsible for functions such as access, activation and login related to a terminal, and can be specifically used for sending acquired link information and reported messages to a global cache and a message queue respectively;
and a forwarding module is arranged and mainly responsible for interaction actions related to the service system, including functions of conventional service system authentication, message conversion and the like. The method and the device can be specifically used for extracting the report message from the message queue and forwarding the report message to the service server, and writing the push message into the message queue after receiving the push message of the service server. Correspondingly, the forwarding module can also be used for inquiring the link information from the cache, extracting the push message according to the link information and then sending the push message to the corresponding terminal.
In practice, however, the above modules are not limited to be provided, and for example, in some embodiments, a gateway management module may be provided, which may be used to synchronize the message queue with the service server to achieve session transparency. The skilled person can develop the module arrangement based on the above embodiments and preferred solutions, and the present invention is not limited to this.
The structure, features and effects of the present invention have been described in detail with reference to the embodiments shown in the drawings, but the above embodiments are merely preferred embodiments of the present invention, and it should be understood that technical features related to the above embodiments and preferred modes thereof can be reasonably combined and configured into various equivalent schemes by those skilled in the art without departing from and changing the design idea and technical effects of the present invention; therefore, the invention is not limited to the embodiments shown in the drawings, and all the modifications and equivalent embodiments that can be made according to the idea of the invention are within the scope of the invention as long as they are not beyond the spirit of the description and the drawings.

Claims (10)

1. A centralized addressing method, comprising:
an uplink stage:
after a terminal accesses a gateway, acquiring a report message and link information of the terminal;
registering link information in a cache, and writing a report message into a message queue;
extracting the report message from the message queue and forwarding the report message to a service server;
a downlink stage:
after receiving a push message of a service server, writing the push message into a message queue;
reversely inquiring the link information from the cache;
and extracting the push message according to the link information and then sending the push message to the corresponding terminal.
2. The centralized addressing method of claim 1, further comprising, after the terminal accesses the gateway: and monitoring the online state of the terminal in real time.
3. The centralized addressing method of claim 2, further comprising: and updating the online state in the cache in real time.
4. The centralized addressing method of claim 3, further comprising: the presence status is written to the message queue.
5. The centralized addressing method of claim 4, further comprising: in the uplink phase, the online status is extracted from the message queue and forwarded to the service server.
6. The centralized addressing method of claim 3, further comprising: and setting a corresponding table of the online terminal and the accessed gateway in the cache according to the link information and the online state.
7. The centralized addressing method of claim 6, wherein the extracting the push message according to the link information and then sending the push message to the corresponding terminal comprises:
and extracting the push message according to the corresponding table and then sending the push message to the corresponding terminal.
8. The centralized addressing method of claim 1, further comprising: and after the writing operation is performed on the message queue, backing up the message queue.
9. The centralized addressing method according to any of claims 1-8, wherein the link information comprises gateway IP and access port information.
10. The centralized addressing method according to any of claims 1-8, wherein registering link information in the cache comprises: and saving the link information in the cache in a key-value structure.
CN201811007767.1A 2018-08-31 2018-08-31 Centralized addressing method Active CN108989467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811007767.1A CN108989467B (en) 2018-08-31 2018-08-31 Centralized addressing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811007767.1A CN108989467B (en) 2018-08-31 2018-08-31 Centralized addressing method

Publications (2)

Publication Number Publication Date
CN108989467A CN108989467A (en) 2018-12-11
CN108989467B true CN108989467B (en) 2020-10-30

Family

ID=64547457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811007767.1A Active CN108989467B (en) 2018-08-31 2018-08-31 Centralized addressing method

Country Status (1)

Country Link
CN (1) CN108989467B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819029A (en) * 2019-01-18 2019-05-28 成都众云微科技有限公司 A kind of reversed addressing method based on electronics juqum stateless protocol

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222452A (en) * 2007-01-08 2008-07-16 福特全球技术公司 Wireless gateway apparatus and method for bridging data between vehicle and exterior data network
CN101730012A (en) * 2008-10-21 2010-06-09 中国移动通信集团公司 Method and system for addressing short-message gateways and short-message gateways
CN102300206A (en) * 2010-06-22 2011-12-28 中兴通讯股份有限公司 Addressing method of wireless sensor network (WSN) terminal and combination network
CN102882972A (en) * 2012-10-10 2013-01-16 全渝娟 Universal gatekeeper system of mobile internet of things
CN103391325A (en) * 2013-07-30 2013-11-13 李想 Network operating system device and method for Internet of Things
CN104734873A (en) * 2013-12-20 2015-06-24 深圳市国微电子有限公司 Switching system and management method and system for buffer in switching equipment in switching system
CN105336172A (en) * 2015-10-16 2016-02-17 江苏南亿迪纳数字科技发展有限公司 Electronic license plate and Internet of Vehicles addressing method based on network digital genes
CN105897603A (en) * 2014-11-24 2016-08-24 泰瑞数创科技(北京)有限公司 Mass multi-protocol internet of vehicles terminal access technology

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917492B (en) * 2010-08-06 2013-06-05 北京乾唐视联网络科技有限公司 Communication method and communication system of novel network
FR2980938B1 (en) * 2011-09-30 2015-12-04 Thales Sa METHOD FOR FIABILIZING THE CONTINUITY OF COMMUNICATIONS OPERATED FROM A 4G MOBILE TERMINAL CONNECTED TO AN IP INTERCONNECTION NETWORK
CN104811357B (en) * 2014-01-26 2018-11-09 广东夏野日用电器有限公司 A kind of Internet of things system
CN105072145A (en) * 2015-06-30 2015-11-18 青岛海尔智能家电科技有限公司 IOT (Internet of Things) communication method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222452A (en) * 2007-01-08 2008-07-16 福特全球技术公司 Wireless gateway apparatus and method for bridging data between vehicle and exterior data network
CN101730012A (en) * 2008-10-21 2010-06-09 中国移动通信集团公司 Method and system for addressing short-message gateways and short-message gateways
CN102300206A (en) * 2010-06-22 2011-12-28 中兴通讯股份有限公司 Addressing method of wireless sensor network (WSN) terminal and combination network
CN102882972A (en) * 2012-10-10 2013-01-16 全渝娟 Universal gatekeeper system of mobile internet of things
CN103391325A (en) * 2013-07-30 2013-11-13 李想 Network operating system device and method for Internet of Things
CN104734873A (en) * 2013-12-20 2015-06-24 深圳市国微电子有限公司 Switching system and management method and system for buffer in switching equipment in switching system
CN105897603A (en) * 2014-11-24 2016-08-24 泰瑞数创科技(北京)有限公司 Mass multi-protocol internet of vehicles terminal access technology
CN105336172A (en) * 2015-10-16 2016-02-17 江苏南亿迪纳数字科技发展有限公司 Electronic license plate and Internet of Vehicles addressing method based on network digital genes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《物联网轻量级IP寻址技术研究》;骆冰清;《中国博士学位论文全文数据库 信息科技辑》;20170515;I136-17 *

Also Published As

Publication number Publication date
CN108989467A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN110752943B (en) Distributed fault diagnosis system and method for power transmission line
CN101848107B (en) SNMP (Simple Network Management Protocol) network element and communication method of SNMP network element and proprietary protocol network element
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN103516785A (en) Web page proxy system and communication method thereof
CN104144098A (en) Information pushing method and system and pushing server equipment
CN103440142A (en) GPRS (General Packet Radio Service)-based remote upgrade and dynamic loading method
CN112187903B (en) Message pushing method and device and message service system
CN111787031B (en) Method for sending control instruction of Internet of things equipment based on distributed technology
CN103716230A (en) Message sending method, device and server
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device
CN108989467B (en) Centralized addressing method
US11425632B2 (en) Mechanism to provide updates to NB-IoT devices
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN101753561B (en) Business cluster processing method and cluster system
CN110572350B (en) Method and equipment for carrying out IMS service registration
CN101330664B (en) Method, system and apparatus for realizing multimedia business
CN108270876B (en) Method for realizing proxy server in signal system
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN109120578B (en) Method and device for realizing link connection processing
CN216387853U (en) Real-time vehicle fault pushing system of electric vehicle remote service and management system
CN102546686B (en) A kind of method of resource downloading, system and application server
CN114489730A (en) Remote upgrading method, terminal equipment and computer readable storage medium
CN107995641B (en) Management method, device and the computer readable storage medium of terminal and real-time base station communication failure
CN102413454B (en) Method for data transmission and always online gateway (AOG) system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230601 No. 99 Ziyun Road, Hefei Economic and Technological Development Zone, Anhui Province

Applicant after: Anhui Jianghuai Automobile Group Limited by Share Ltd

Address before: 230601 No. 669 Shixin Road, Taohua Industrial Park, Hefei City, Anhui Province

Applicant before: Anhui Jianghuai Automobile Group Limited by Share Ltd

GR01 Patent grant
GR01 Patent grant