CN114726835A - Gateway directory information sending method and device based on caching technology - Google Patents

Gateway directory information sending method and device based on caching technology Download PDF

Info

Publication number
CN114726835A
CN114726835A CN202210311241.2A CN202210311241A CN114726835A CN 114726835 A CN114726835 A CN 114726835A CN 202210311241 A CN202210311241 A CN 202210311241A CN 114726835 A CN114726835 A CN 114726835A
Authority
CN
China
Prior art keywords
information
equipment
sip
directory
directory information
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.)
Granted
Application number
CN202210311241.2A
Other languages
Chinese (zh)
Other versions
CN114726835B (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.)
China Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security Technology Co Ltd
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 China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202210311241.2A priority Critical patent/CN114726835B/en
Publication of CN114726835A publication Critical patent/CN114726835A/en
Application granted granted Critical
Publication of CN114726835B publication Critical patent/CN114726835B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Computational Linguistics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a gateway directory information sending method and device based on a cache technology, and relates to the technical field of the Internet. The method receives SIP information sent by a superior domain; analyzing the SIP information and determining a current equipment identifier corresponding to the SIP information; searching current equipment directory information corresponding to the current equipment identification in a mapping relation between the pre-cached equipment identification and the equipment directory information; and sending the SIP information to a central signaling control server of the subordinate domain based on the current equipment directory information. It can be seen that, the embodiment of the present application applies the concept of caching to the interaction between the gateway and the central signaling control server, so as to accelerate the response to the SIP message of the upper domain, shorten the response time, and improve the performance of the lower domain platform.

Description

Gateway directory information sending method and device based on caching technology
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for sending gateway directory information based on a cache technology.
Background
Between different networks, the device in the domain sends information to the device outside the domain, and the information needs to be converted to some extent through the gateway and then forwarded to the external domain, and the communication includes information transmission, time subscription and the like, and the gateway needs to acquire the information of the domain.
With the rapid development of technology, SIP (Session Initiation Protocol) for IP-based services has come into play. SIP is a protocol that is suitable for various media contents to realize multi-user sessions, and has now become a specification of the internet work task force. In the field of SIP communication, an upper domain needs to SUBSCRIBE a device directory and the like to a lower domain through a SIP SUBSCRIBE method, and therefore, the response time is long, the efficiency is low, and the technical problem needs to be solved urgently.
Disclosure of Invention
In view of the above, the present application is proposed to provide a gateway directory information transmission method and apparatus based on cache technology that overcomes or at least partially solves the above problems. The technical scheme is as follows:
in a first aspect, a method for sending gateway directory information based on a caching technology is provided, which is applied to a gateway and includes the following steps:
receiving SIP information sent by an upper domain;
analyzing the SIP information and determining a current equipment identifier corresponding to the SIP information;
searching current equipment directory information corresponding to the current equipment identification in a mapping relation between the pre-cached equipment identification and the equipment directory information;
and sending the SIP information to a central signaling control server of a subordinate domain based on the current equipment directory information.
In a possible implementation manner, the SIP information is analyzed, and a current device identifier corresponding to the SIP information is determined; in the mapping relationship between the pre-cached device identifier and the device directory information, searching for the current device directory information corresponding to the current device identifier includes:
analyzing the SIP information, and determining a current equipment identifier corresponding to the SIP information and request content for subscribing equipment directory information to a lower-level domain according to an SIP SUBSCRIBE method in the SIP information;
and searching the current equipment directory information corresponding to the current equipment identifier in the mapping relation between the pre-cached equipment identifier and the equipment directory information based on the request content for subscribing the equipment directory information to the lower-level domain.
In one possible implementation, the method further includes: storing the mapping relation between the equipment identification and the equipment directory information, and storing the last modification time of the equipment identification and the equipment directory information; carrying the mapping relation between the cached equipment identification and the equipment directory information in the heartbeat information to a content relation system CMS;
in the mapping relationship between the pre-cached device identifier and the device directory information, searching for the current device directory information corresponding to the current device identifier includes:
and searching a mapping relation between the pre-cached equipment identification and the equipment directory information in the CMS, and screening out the current equipment directory information of the last modification time corresponding to the current equipment identification.
In one possible implementation, the method further includes:
collecting the geographical position information of one or more resource platforms in the region;
the collected geographical position information of one or more resource platforms in the local area is multicast and issued to the gateway equipment in other areas, and the geographical position information multicast and issued by the gateway equipment in other areas is collected;
and storing the gateway equipment and the collected geographic position information of the local area and other areas in a local map directory, and caching the local map directory.
In one possible implementation, the method further includes:
receiving geographical position information of a visited area sent by a superior domain;
determining equipment information of gateway equipment of the visited area according to the geographical position information of the visited area and the cached local map directory;
forwarding the resource directory request to a resource platform of the visited area via the gateway device of the visited area;
and receiving resource content returned by the resource platform of the visited area by the gateway equipment of the visited area.
In a possible implementation manner, the receiving geographic location information of a visited area sent by an upper domain includes:
and (4) framing the visited area on the map, and receiving the geographical position information of the visited area, which is extracted and sent by the superior domain based on the framed visited area.
In one possible implementation, the geographic location information includes latitude and longitude information.
In one possible implementation, the method further includes:
before analyzing the SIP information, a SUBSCRIBE request is carried out on the equipment receiving the SIP information by using a SUBSCRIBE method, an equipment response module is established, whether the equipment receiving the SIP information needs to be analyzed and labeled is judged according to the response condition of the equipment, if the equipment needs to be analyzed and labeled, the equipment label is carried out on the equipment label after the SIP information is analyzed and the current equipment label corresponding to the SIP information is determined, and the specific steps comprise,
step A1: judging whether the equipment receiving the SIP information needs to analyze and label according to the response condition of the equipment to the SUBSCRIBE request by using a formula (1)
Figure BDA0003567209250000031
G (a) represents a judgment value of the analysis label of the a-th device receiving the SIP information; d2(a) A binary form of response data indicating that the a-th device having received the SIP information responds to the SUBSCRIBE request; []16Indicating that the numerical value in the brackets is converted into a 16-system number; "200 OK" means character string form200OK data;
step A2: analyzing the SIP information by using a formula (2) to obtain a current equipment identifier corresponding to the SIP information
Figure BDA0003567209250000032
Wherein [ P (a)]2The method comprises the steps that the SIP information of the a-th equipment which receives the SIP information is analyzed to obtain a binary form of current equipment identification data; [ SIP (a)]2The binary form of the SIP information of the a-th equipment which receives the SIP information is represented, and the SIP information consists of a starting line, a head field, a null line and a message body;
Figure BDA0003567209250000041
indicating a loop left shift; a. theSIPA binary form of standard starting line data representing SIP information; t isSIPA binary form of standard header field data representing the SIP information; len () represents the number of bits of binary data in parentheses; > represents a right-shifted symbol;
step A3: and D, performing equipment labeling on the equipment identifier by using a formula (3) according to the judgment result of the step A1 and the current equipment identifier corresponding to each SIP information
Figure BDA0003567209250000042
Wherein [ Z (a)]2Representing a binary form of new equipment identification data after equipment marking is carried out on the equipment identification of the a-th equipment which receives the SIP information; ksIPA binary form of the blank line data representing SIP information.
In a second aspect, an apparatus for sending gateway directory information based on a caching technology is provided, which is applied to a gateway, and includes:
the receiving module is used for receiving SIP information sent by a superior domain;
the determining module is used for analyzing the SIP information and determining the current equipment identifier corresponding to the SIP information;
the searching module is used for searching the current equipment directory information corresponding to the current equipment identification in the mapping relation between the pre-cached equipment identification and the equipment directory information;
and the sending module is used for sending the SIP information to a central signaling control server of a subordinate domain based on the current equipment directory information.
In one possible implementation, the determining module is further configured to: analyzing the SIP information, and determining a current equipment identifier corresponding to the SIP information and request content for subscribing equipment directory information to a lower-level domain according to an SIP SUBSCRIBE method in the SIP information;
the lookup module is further configured to: and searching the current equipment directory information corresponding to the current equipment identifier in the mapping relation between the pre-cached equipment identifier and the equipment directory information based on the request content for subscribing the equipment directory information to the lower-level domain.
In one possible implementation, the apparatus further includes:
the cache module is used for storing the mapping relation between the equipment identifier and the equipment directory information and storing the last modification time of the equipment identifier and the equipment directory information; carrying the mapping relation between the cached equipment identification and the equipment directory information in the heartbeat information to a content relation system CMS;
the searching module is further configured to search a mapping relationship between the pre-cached device identifier and the device directory information in the CMS, and screen out the current device directory information of the last modification time corresponding to the current device identifier.
In one possible implementation, the apparatus further includes a processing module;
the processing module is used for:
collecting the geographical position information of one or more resource platforms in the region;
the collected geographical position information of one or more resource platforms in the local area is multicast and issued to the gateway equipment in other areas, and the geographical position information multicast and issued by the gateway equipment in other areas is collected;
and storing the gateway equipment and the collected geographic position information of the local area and other areas in a local map directory, and caching the local map directory.
In one possible implementation, the processing module is further configured to:
receiving geographical position information of a visited area sent by a superior domain;
determining equipment information of gateway equipment of the visited area according to the geographical position information of the visited area and the cached local map directory;
forwarding the resource directory request to a resource platform of the visited area via the gateway device of the visited area;
and receiving resource content returned by the resource platform of the visited area by the gateway equipment of the visited area.
In one possible implementation, the processing module is further configured to:
and (4) framing the visited area on the map, and receiving the geographical position information of the visited area, which is extracted and sent by the superior domain based on the framed visited area.
In one possible implementation, the geographic location information includes latitude and longitude information.
In one possible implementation, the determining module is further configured to:
before analyzing the SIP information, a SUBSCRIBE request is carried out on equipment receiving the SIP information by using a SUBSCRIBE method, an equipment response module is established, whether the equipment receiving the SIP information needs to be analyzed and labeled is judged according to the response condition of the equipment, if the equipment needs to be analyzed and labeled, the equipment identification is labeled after the SIP information is analyzed and the current equipment identification corresponding to the SIP information is determined, and the specific steps comprise,
step A1: judging whether the equipment receiving the SIP information needs to analyze and label according to the response condition of the equipment to the SUBSCRIBE request by using a formula (1)
Figure BDA0003567209250000061
G (a) represents a judgment value of the analysis label of the a-th device receiving the SIP information; d2(a) A binary form of response data indicating that the a-th device having received the SIP information responds to the SUBSCRIBE request; []16Indicating that the numerical value in the brackets is converted into a 16-system number; "200 OK" means 200OK data in the form of a character string;
step A2: analyzing the SIP information by using a formula (2) to obtain a current equipment identifier corresponding to the SIP information
Figure BDA0003567209250000062
Wherein [ P (a)]2The method comprises the steps that the SIP information of the a-th equipment which receives the SIP information is analyzed to obtain a binary form of current equipment identification data; [ SIP (a)]2The binary form of the SIP information of the a-th equipment which receives the SIP information is represented, and the SIP information consists of a starting line, a head field, a null line and a message body;
Figure BDA0003567209250000063
indicating a loop left shift; a. theSIPA binary form of standard starting line data representing SIP information; t isSIPA binary form of standard header field data representing the SIP information; len () represents the number of bits of binary data in parentheses; > denotes a symbol shifted to the right;
step A3: and D, performing equipment labeling on the equipment identifier by using a formula (3) according to the judgment result of the step A1 and the current equipment identifier corresponding to each SIP information
Figure BDA0003567209250000064
Wherein [ Z (a)]2Representing a binary form of new equipment identification data after equipment marking is carried out on the equipment identification of the a-th equipment which receives the SIP information; kSIPRepresenting SIP messagesAnd a binary form of the blank line data of the message.
By means of the technical scheme, the gateway directory information sending method and device based on the caching technology, provided by the embodiment of the application, receive SIP information sent by a superior domain; analyzing the SIP information and determining a current equipment identifier corresponding to the SIP information; searching current equipment directory information corresponding to the current equipment identifier in a mapping relation between the equipment identifier cached in advance and the equipment directory information; and sending the SIP information to a central signaling control server of the subordinate domain based on the current equipment directory information. It can be seen that, the embodiments of the present application apply the caching idea to the interaction between the gateway and the central signaling control server, so as to accelerate the response to the SIP message of the higher domain, shorten the response time, and improve the performance of the lower domain platform.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a flowchart illustrating a gateway directory information sending method based on a caching technology according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a gateway directory information transmission method based on a caching technique according to another embodiment of the present application;
fig. 3 is a block diagram illustrating a gateway directory information transmission apparatus based on a caching technique according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a gateway directory information transmission apparatus based on a caching technique according to another embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that such uses are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the term "include" and its variants are to be read as open-ended terms meaning "including, but not limited to".
The embodiment of the application provides a gateway directory information sending method based on a cache technology. As shown in fig. 1, the method for sending gateway directory information based on the caching technology may include the following steps S101 to S104:
step S101, receiving SIP information sent from a superior domain;
step S102, analyzing the SIP information, and determining a current equipment identifier corresponding to the SIP information;
step S103, searching current equipment directory information corresponding to the current equipment identification in a mapping relation between the equipment identification cached in advance and the equipment directory information;
and step S104, sending the SIP information to a central signaling control server of the lower domain based on the current equipment directory information.
The method comprises the steps of receiving SIP information sent by a superior domain; analyzing the SIP information and determining a current equipment identifier corresponding to the SIP information; searching current equipment directory information corresponding to the current equipment identification in a mapping relation between the pre-cached equipment identification and the equipment directory information; and sending the SIP information to a central signaling control server of the subordinate domain based on the current equipment directory information. It can be seen that, the embodiment of the present application applies the concept of caching to the interaction between the gateway and the central signaling control server, so as to accelerate the response to the SIP message of the upper domain, shorten the response time, and improve the performance of the lower domain platform.
In this embodiment, the upper domain may be a domain where the information initiator is located, the lower domain may be a domain where the information receiver is located, and the upper domain and the lower domain may belong to different domains.
A possible implementation manner is provided in the embodiment of the present application, in the above step S102, the SIP information is analyzed, the current device identifier corresponding to the SIP information is determined, specifically, the SIP information is analyzed, and the current device identifier corresponding to the SIP information and the request content for subscribing to the device directory information in the lower-level domain are determined according to the SIP SUBSCRIBE method in the SIP information; further, in step S103, the current device directory information corresponding to the current device identifier is searched in the mapping relationship between the pre-cached device identifier and the device directory information, which may specifically be based on the content of the request for subscribing to the device directory information from the lower domain, and the current device directory information corresponding to the current device identifier is searched in the mapping relationship between the pre-cached device identifier and the device directory information. The embodiment applies the caching idea to the interaction between the gateway and the central signaling control server, can quicken the response to the SIP SUBSCRIBE message of the superior domain, shortens the response time and improves the performance of the subordinate domain platform.
The embodiment of the application provides a possible implementation manner, and the mapping relation between the equipment identifier and the equipment directory information can be stored, and the final modification time of the equipment identifier and the equipment directory information is stored; the mapping relationship between the cached device identifier and the device directory information carried in the heartbeat information is stored in a Content Management System (CMS); further, in step S103, in the mapping relationship between the pre-cached device identifier and the device directory information, the current device directory information corresponding to the current device identifier is searched, specifically, the mapping relationship between the pre-cached device identifier and the device directory information is searched in the CMS, and the current device directory information of the last modification time corresponding to the current device identifier is screened out. In the embodiment, the caching technology is applied to the gateway, the gateway stores the mapping from the equipment identifier to the equipment directory and stores the last modification time, the storage space occupied by the whole record is very small, and the excessive occupation of the storage resource of the gateway can be avoided; the gateway carries the cached directory information in the heartbeat information to the CMS, which returns only the changed information entry in the 200OK to avoid dirty data.
A possible implementation manner is provided in the embodiment of the present application, and the caching scheme may further include the following steps a1 to a 3:
a1, collecting the geographical location information of one or more resource platforms in the area;
step a2, multicasting and issuing the collected geographical location information of one or more resource platforms in the local area to gateway devices in other areas, and collecting the geographical location information multicast and issued by the gateway devices in other areas;
step a3, storing the gateway devices and the collected geographic location information of the local area and other areas in a local map directory, and caching the local map directory.
According to the method and the device, the directory query and the resource sharing of the equipment are realized through the geographical position information, a large number of inter-domain relations and large-scale directory pushing and keeping alive are not required to be established, the pressure on each platform is low, the problem of a central platform bottleneck point does not exist, and the resource sharing among different areas can be simply and conveniently realized.
The embodiment of the present application provides a possible implementation manner, and after caching the local map directory, the following steps B1 to B4 may be further included:
step B1, receiving the geographical location information of the visited area sent by the superior domain;
step B2, determining the device information of the gateway device in the visited area according to the geographical position information of the visited area and the cached local map directory;
step B3, forwarding the resource directory request to the resource platform of the visited area through the gateway device of the visited area;
and step B4, receiving the resource content returned by the resource platform of the visited area through the gateway device of the visited area.
The method comprises the steps of receiving geographical position information of a visited area sent by a superior domain; determining equipment information of gateway equipment of the visited area according to the geographical position information of the visited area and the cached local map directory; forwarding the resource directory request to a resource platform of the visited area via the gateway device of the visited area; and receiving resource content returned by the resource platform of the visited area by the gateway equipment of the visited area. The method and the device for realizing the directory query and the resource sharing of the equipment have the advantages that the directory query and the resource sharing of the equipment are realized through the geographical position information, a large number of inter-domain relations and large-scale directory pushing and keep-alive are not needed, the pressure on each platform is low, the problem of bottleneck points of a central platform does not exist, and the resource sharing among different areas can be conveniently realized.
In the embodiment of the present application, a possible implementation manner is provided, in which step B1 receives the geographical location information of the visited area sent by the upper level domain, specifically, the visited area may be framed on a map, and the geographical location information of the visited area extracted and sent by the upper level domain based on the framed visited area is received. Therefore, the user can select the visited area independently, and the selection is very convenient and efficient.
In the above embodiment, the geographic location information may be latitude and longitude information, and may further include zip codes of each region, and the like, which is not limited in the embodiment of the present application, and directory query and resource sharing of the device are realized through the geographic location information, without establishing a large amount of inter-domain relationships and large-scale directory push and keep-alive, and the pressure on each platform is small, and the problem of a central platform bottleneck point does not exist, and resource sharing between different regions can be conveniently realized.
The embodiment of the application provides a possible implementation manner, before analyzing the SIP information, the method also can utilize a SUBSCRIBE method to make a SUBSCRIBE request for the device receiving the SIP information, establish a device response module, judge whether the device receiving the SIP information needs to analyze and label according to the response condition of the device, if the device needs to analyze and label, analyze the SIP information, determine the current device identifier corresponding to the SIP information, label the device identifier, and the specific steps include,
step A1: judging whether the equipment receiving the SIP information needs to analyze and label according to the response condition of the equipment to the SUBSCRIBE request by using a formula (1)
Figure BDA0003567209250000111
G (a) represents a judgment value of the analysis label of the a-th device receiving the SIP information; d2(a) Binary form of response data of the a-th device receiving the SIP information to the SUBSCRIBE request; []16Indicating that the numerical value in the brackets is converted into a 16-system number; "200 OK" means 200OK data in the form of a character string;
step A2: analyzing the SIP information by using a formula (2) to obtain a current equipment identifier corresponding to the SIP information
Figure BDA0003567209250000112
Wherein [ P (a)]2The method comprises the steps that the SIP information of the a-th equipment which receives the SIP information is analyzed to obtain a binary form of current equipment identification data; [ SIP (a)]2A binary form of the SIP information representing the a-th device that receives the SIP information, the SIP information consisting of a start line, a header field, an empty line, and a message body;
Figure BDA0003567209250000113
indicating a loop left shift; a. theSIPA binary form of standard starting line data representing SIP information; t isSIPA binary form of standard header field data representing SIP information; len () represents the number of bits of binary data in parentheses; > represents a right-shifted symbol;
step A3: and D, labeling the equipment by using a formula (3) according to the judgment result of the step A1 and the current equipment identifier corresponding to each SIP information
Figure BDA0003567209250000114
Wherein [ Z (a)]2Representing a binary form of new equipment identification data after equipment marking is carried out on the equipment identification of the a-th equipment which receives the SIP information; kSIPA binary form of the blank line data representing SIP information.
The beneficial effects of the above technical scheme are: firstly, judging whether the equipment receiving the SIP information needs to be analyzed and labeled according to the response condition of the equipment to the SUBSCRIBE request by using a formula (1) in the step A1, and further knowing the response state of each equipment; then, the formula (2) in the step A2 is used for analyzing the SIP information to obtain the current equipment identifier corresponding to the SIP information, so that the current equipment identifier corresponding to the SIP information is efficiently analyzed; and finally, equipment marking is carried out on the equipment identification by using a formula (3) in the step A3 according to the judgment result of the step A1 and the current equipment identification corresponding to each SIP information, and further equipment marking is carried out on the equipment with problems, so that the equipment can be further maintained and processed subsequently.
In the above, various implementation manners of each link of the embodiment shown in fig. 1 are introduced, and the gateway directory information sending method based on the caching technology will be described in detail below by using a specific embodiment.
Another embodiment of the present application provides a gateway directory information sending method based on a caching technology. As shown in fig. 2, the gateway directory information sending method based on the caching technology may be applied to a gateway device, and specifically may include the following steps S201 to S210.
Step S201, storing the mapping relationship between the device identifier and the device directory information, and storing the last modification time of the device identifier and the device directory information.
Step S202, the mapping relationship between the cached device identifier and the device directory information is carried in the heartbeat information to the CMS.
Step S203 receives the SIP information transmitted from the upper domain.
Step S204, analyzing the SIP information, and determining the current equipment identification corresponding to the SIP information and the request content of subscribing the equipment directory information to the lower-level domain according to the SIP SUBSCRIBE method in the SIP information.
Step S205 is to search the current device directory information corresponding to the current device identifier in the mapping relationship between the device identifier cached in advance and the device directory information based on the content of the request for subscribing to the device directory information from the lower domain.
Step S206, the SIP information is sent to the central signaling control server of the lower domain based on the current device directory information.
And step S207, receiving the geographical position information of the visited area sent by the upper domain.
Before this step, the steps a1 to A3 described above may also be performed, and will not be described here.
And step S208, determining the equipment information of the gateway equipment of the visited area according to the geographical position information of the visited area and the cached local map directory.
Step S209, the gateway device in the visited area forwards the resource directory request to the resource platform in the visited area.
Step S210, receiving, by the gateway device in the visited area, resource content returned by the resource platform in the visited area.
The embodiment of the application applies the caching technology to the gateway, the gateway stores the mapping from the equipment identifier to the equipment directory and stores the last modification time, the whole record occupies a very small storage space, and the storage resource of the gateway can be prevented from being excessively occupied; the gateway carries the cached directory information in the heartbeat information to the CMS, which returns only the changed information entry in the 200OK to avoid dirty data.
Moreover, the catalog query and resource sharing of the equipment are realized through the geographical position information, a large number of inter-domain relations and large-scale catalog pushing and keep-alive are not required to be established, the pressure on each platform is low, the problem of bottleneck points of a central platform is solved, and the resource sharing among different areas can be conveniently realized.
It should be noted that, in practical applications, all the possible embodiments described above may be combined in a combined manner at will to form possible embodiments of the present application, and details are not described here again.
Based on the same inventive concept, the embodiment of the present application further provides a gateway directory information sending apparatus based on the caching technology.
Fig. 3 is a block diagram illustrating a gateway directory information transmission apparatus based on a caching technique according to an embodiment of the present application. As shown in fig. 3, the apparatus for sending gateway directory information based on a caching technology may be applied to a gateway, and specifically may include a receiving module 310, a determining module 320, a searching module 330, and a sending module 340.
A receiving module 310, configured to receive SIP information sent from a superior domain;
a determining module 320, configured to analyze the SIP information and determine a current device identifier corresponding to the SIP information;
the searching module 330 is configured to search, in the mapping relationship between the pre-cached device identifier and the device directory information, current device directory information corresponding to the current device identifier;
a sending module 340, configured to send the SIP information to a central signaling control server of the lower domain based on the current device directory information.
In an embodiment of the present application, a possible implementation manner is provided, and the determining module 320 shown in fig. 3 is further configured to: analyzing the SIP information, and determining the current equipment identifier corresponding to the SIP information and the request content of subscribing equipment directory information to a lower-level domain according to an SIP SUBSCRIBE method in the SIP information;
the lookup module 330 is further configured to: and searching the current equipment directory information corresponding to the current equipment identifier in the mapping relation between the pre-cached equipment identifier and the equipment directory information based on the request content of subscribing the equipment directory information to the lower-level domain.
In the embodiment of the present application, a possible implementation manner is provided, as shown in fig. 4, the apparatus shown in fig. 3 above may further include a cache module 410, configured to store a mapping relationship between the device identifier and the device directory information, and store a last modification time of the device identifier and the device directory information; carrying the mapping relation between the cached equipment identification and the equipment directory information in the heartbeat information to a content relation system CMS;
the searching module 330 is further configured to search a mapping relationship between the pre-cached device identifier and the device directory information in the CMS, and filter out current device directory information of the last modification time corresponding to the current device identifier.
In the embodiment of the present application, a possible implementation manner is provided, as shown in fig. 4, the apparatus shown in fig. 3 above may further include a processing module 420, configured to collect geographic location information of one or more resource platforms in the area; the collected geographical position information of one or more resource platforms in the local area is multicast and issued to the gateway equipment in other areas, and the geographical position information multicast and issued by the gateway equipment in other areas is collected; and storing the gateway equipment and the collected geographic position information of the local area and other areas in a local map directory, and caching the local map directory.
In an embodiment of the present application, a possible implementation manner is provided, and the processing module 420 shown in fig. 4 is further configured to:
receiving geographical position information of a visited area sent by a superior domain;
determining equipment information of gateway equipment of the visited area according to the geographical position information of the visited area and the cached local map directory;
forwarding the resource directory request to a resource platform of the visited area through gateway equipment of the visited area;
and receiving the resource content returned by the resource platform of the visited area by the gateway equipment of the visited area.
In an embodiment of the present application, a possible implementation manner is provided, and the processing module 420 shown in fig. 4 is further configured to:
and framing the visited area on the map, and receiving the geographic position information of the visited area, which is extracted and sent by the superior domain based on the framed visited area.
The embodiment of the application provides a possible implementation manner, and the geographic position information comprises longitude and latitude information.
It can be clearly understood by those skilled in the art that the specific working processes of the system, the apparatus, and the module described above may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, the detailed description is omitted here.
In an embodiment of the present application, a possible implementation manner is provided, and the determining module 320 shown in fig. 3 is further configured to:
before analyzing the SIP information, a SUBSCRIBE request is carried out on the equipment receiving the SIP information by using a SUBSCRIBE method, an equipment response module is established, whether the equipment receiving the SIP information needs to be analyzed and labeled is judged according to the response condition of the equipment, if the equipment needs to be analyzed and labeled, the equipment labeling is carried out on the equipment identification after the SIP information is analyzed and the current equipment identification corresponding to the SIP information is determined, the specific steps comprise,
step A1: judging whether the equipment receiving the SIP information needs to analyze and label according to the response condition of the equipment to the SUBSCRIBE request by using a formula (1)
Figure BDA0003567209250000151
G (a) represents a judgment value of the analysis label of the a-th device receiving the SIP information; d2(a) A binary form of response data indicating that the a-th device having received the SIP information responds to the SUBSCRIBE request; []16Indicating that the numerical value in the brackets is converted into a 16-system number; "200 OK" means 200OK data in the form of a character string;
step A2: analyzing the SIP information by using a formula (2) to obtain a current equipment identifier corresponding to the SIP information
Figure BDA0003567209250000152
Wherein [ P (a)]2The method comprises the steps that the SIP information of the a-th equipment which receives the SIP information is analyzed to obtain a binary form of current equipment identification data; [ SIP (a)]2The binary form of the SIP information of the a-th equipment which receives the SIP information is represented, and the SIP information consists of a starting line, a head field, an empty line and a message body;
Figure BDA0003567209250000161
indicating a loop left shift; a. theSIPA binary form of standard starting line data representing SIP information; t isSIPSecond of standard header field data representing SIP informationA binary system form; len () represents the number of bits of binary data in parentheses; > represents a right-shifted symbol;
step A3: and D, labeling the equipment by using a formula (3) according to the judgment result of the step A1 and the current equipment identifier corresponding to each SIP information
Figure BDA0003567209250000162
Wherein [ Z (a)]2Representing a binary form of new equipment identification data after equipment marking is carried out on the equipment identification of the a-th equipment which receives the SIP information; kSIPA binary form of the blank line data representing SIP information.
Those of ordinary skill in the art will understand that: the technical solution of the present application may be essentially implemented or all or part of the technical solution may be implemented in a form of a software product, where the computer software product is stored in a storage medium and includes program instructions, so that an electronic device (for example, a personal computer, a server, or a network device) executes all or part of the steps of the method described in the embodiments of the present application when the program instructions are executed. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (an electronic device such as a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the electronic device, the electronic device executes all or part of the steps of the method described in the embodiments of the present application.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present application; such modifications or substitutions do not depart from the scope of the present application.

Claims (10)

1. A gateway directory information sending method based on a cache technology is applied to a gateway and is characterized by comprising the following steps:
receiving SIP information sent from a superior domain;
analyzing the SIP information and determining a current equipment identifier corresponding to the SIP information;
searching current equipment directory information corresponding to the current equipment identification in a mapping relation between the pre-cached equipment identification and the equipment directory information;
and sending the SIP information to a central signaling control server of a subordinate domain based on the current equipment directory information.
2. The method for sending gateway directory information based on caching technology according to claim 1, wherein the SIP information is parsed, and a current device identifier corresponding to the SIP information is determined; in the mapping relationship between the pre-cached device identifier and the device directory information, searching for the current device directory information corresponding to the current device identifier includes:
analyzing the SIP information, and determining a current equipment identifier corresponding to the SIP information and request content for subscribing equipment directory information to a lower-level domain according to an SIP SUBSCRIBE method in the SIP information;
and searching the current equipment directory information corresponding to the current equipment identifier in the mapping relation between the pre-cached equipment identifier and the equipment directory information based on the request content for subscribing the equipment directory information to the lower-level domain.
3. The method for sending gateway directory information based on cache technology according to claim 1 or 2, further comprising: storing the mapping relation between the equipment identification and the equipment directory information, and storing the last modification time of the equipment identification and the equipment directory information; carrying the mapping relation between the cached equipment identification and the equipment directory information in the heartbeat information to a content relation system CMS;
in the mapping relationship between the pre-cached device identifier and the device directory information, searching for the current device directory information corresponding to the current device identifier includes:
and searching a mapping relation between the pre-cached equipment identification and the equipment directory information in the CMS, and screening out the current equipment directory information of the last modification time corresponding to the current equipment identification.
4. The method for sending gateway directory information based on cache technology according to claim 1, further comprising:
collecting the geographical position information of one or more resource platforms in the region;
the collected geographical position information of one or more resource platforms in the local area is multicast and issued to the gateway equipment in other areas, and the geographical position information multicast and issued by the gateway equipment in other areas is collected;
and storing the gateway equipment and the collected geographic position information of the local area and other areas in a local map directory, and caching the local map directory.
5. The method for sending the gateway directory information based on the caching technology according to claim 4, further comprising:
receiving geographical position information of a visited area sent by a superior domain;
determining equipment information of gateway equipment of the visited area according to the geographical position information of the visited area and the cached local map directory;
forwarding the resource directory request to a resource platform of the visited area via the gateway device of the visited area;
and receiving resource content returned by the resource platform of the visited area by the gateway equipment of the visited area.
6. The method as claimed in claim 5, wherein the receiving the geographical location information of the visited area sent by the upper domain includes:
and framing the visited area on the map, and receiving the geographic position information of the visited area, which is extracted and sent by the superior domain based on the framed visited area.
7. The method for sending gateway directory information based on cache technology according to claim 2, further comprising:
before analyzing the SIP information, a SUBSCRIBE request is carried out on equipment receiving the SIP information by using a SUBSCRIBE method, an equipment response module is established, whether the equipment receiving the SIP information needs to be analyzed and labeled is judged according to the response condition of the equipment, if the equipment needs to be analyzed and labeled, the equipment identification is labeled after the SIP information is analyzed and the current equipment identification corresponding to the SIP information is determined, and the specific steps comprise,
step A1: judging whether the equipment receiving the SIP information needs to analyze and label according to the response condition of the equipment to the SUBSCRIBE request by using a formula (1)
Figure FDA0003567209240000031
G (a) represents a judgment value of the analysis label of the a-th device receiving the SIP information; d2(a) Binary form of response data of the a-th device receiving the SIP information to the SUBSCRIBE request; []16Indicating that the numerical value in the brackets is converted into a 16-system number; "200 OK" means 200OK data in the form of a character string;
step A2: analyzing the SIP information by using a formula (2) to obtain a current equipment identifier corresponding to the SIP information
Figure FDA0003567209240000032
Wherein [ P (a)]2The method comprises the steps that the SIP information of the a-th equipment which receives the SIP information is analyzed to obtain a binary form of current equipment identification data; [ SIP (a)]2The binary form of the SIP information of the a-th equipment which receives the SIP information is represented, and the SIP information consists of a starting line, a head field, a null line and a message body;
Figure FDA0003567209240000033
indicating a loop left shift; a. theSIPA binary form of standard starting line data representing SIP information; t is a unit ofSIPA binary form of standard header field data representing the SIP information; len () represents the number of bits of binary data in parentheses; > represents a right-shifted symbol;
step A3: and D, labeling the equipment by using a formula (3) according to the judgment result of the step A1 and the current equipment identifier corresponding to each SIP message
Figure FDA0003567209240000034
Wherein [ Z (a)]2Representing a binary form of new equipment identification data after equipment marking is carried out on the equipment identification of the a-th equipment which receives the SIP information; kSIPA binary form of the blank line data representing SIP information.
8. A gateway directory information sending device based on cache technology is applied to a gateway, and is characterized by comprising the following components:
the receiving module is used for receiving SIP information sent by a superior domain;
the determining module is used for analyzing the SIP information and determining the current equipment identifier corresponding to the SIP information;
the searching module is used for searching the current equipment directory information corresponding to the current equipment identification in the mapping relation between the pre-cached equipment identification and the equipment directory information;
and the sending module is used for sending the SIP information to a central signaling control server of a subordinate domain based on the current equipment directory information.
9. The apparatus according to claim 8, wherein the determining module is further configured to: analyzing the SIP information, and determining a current equipment identifier corresponding to the SIP information and request content for subscribing equipment directory information to a lower-level domain according to an SIP SUBSCRIBE method in the SIP information;
the lookup module is further configured to: and searching current equipment directory information corresponding to the current equipment identifier in a mapping relation between the equipment identifier cached in advance and the equipment directory information based on the request content for subscribing the equipment directory information to the lower-level domain.
10. The apparatus for sending gateway directory information based on caching technology according to claim 8 or 9, further comprising:
the cache module is used for storing the mapping relation between the equipment identifier and the equipment directory information and storing the last modification time of the equipment identifier and the equipment directory information; carrying the mapping relation between the cached equipment identification and the equipment directory information in the heartbeat information to a content relation system CMS;
the searching module is further configured to search a mapping relationship between the pre-cached device identifier and the device directory information in the CMS, and screen out the current device directory information of the last modification time corresponding to the current device identifier.
CN202210311241.2A 2022-03-28 2022-03-28 Gateway directory information sending method and device based on caching technology Active CN114726835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210311241.2A CN114726835B (en) 2022-03-28 2022-03-28 Gateway directory information sending method and device based on caching technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210311241.2A CN114726835B (en) 2022-03-28 2022-03-28 Gateway directory information sending method and device based on caching technology

Publications (2)

Publication Number Publication Date
CN114726835A true CN114726835A (en) 2022-07-08
CN114726835B CN114726835B (en) 2022-12-02

Family

ID=82239295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210311241.2A Active CN114726835B (en) 2022-03-28 2022-03-28 Gateway directory information sending method and device based on caching technology

Country Status (1)

Country Link
CN (1) CN114726835B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050207432A1 (en) * 2004-03-19 2005-09-22 Commoca, Inc. Internet protocol (IP) phone with search and advertising capability
CN1972304A (en) * 2005-11-21 2007-05-30 埃森哲全球服务有限公司 Unified directory and presence system for universal access to telecommunications services
CN101233730A (en) * 2004-12-31 2008-07-30 Ut斯达康公司 Universal port user agent capable of caching route information among sessions and associated method
CN101583016A (en) * 2008-05-15 2009-11-18 华为技术有限公司 Method for displaying and sending service status information, user terminal equipment and service processing unit
CN101729318A (en) * 2009-12-10 2010-06-09 中国电信股份有限公司 Modulus mutual control gateway, monitoring system and monitoring method
WO2011053858A1 (en) * 2009-10-30 2011-05-05 Time Warner Cable Inc. Methods and apparatus for packetized content delivery over a content delivery network
CN102138312A (en) * 2007-09-28 2011-07-27 爱立信电话股份有限公司 Failure recovery in an IP multimedia subsystem network
CN106230981A (en) * 2016-09-06 2016-12-14 浙江宇视科技有限公司 Monitoring resource share method and device
CN106953905A (en) * 2017-03-14 2017-07-14 浙江宇视科技有限公司 Catalogue sharing method and device between domain
CN106982355A (en) * 2017-04-06 2017-07-25 浙江宇视科技有限公司 The video monitoring system and anti-leak server of a kind of anti-image leakage
CN108574597A (en) * 2017-08-01 2018-09-25 北京视联动力国际信息技术有限公司 A kind of newer method, apparatus of state and interactive system
CN111294231A (en) * 2018-12-07 2020-06-16 杭州海康威视系统技术有限公司 Resource management method and system
US20200314632A1 (en) * 2019-03-28 2020-10-01 T-Mobile Usa, Inc. Policy enhancement for mixed capability devices
CN112540954A (en) * 2019-09-23 2021-03-23 无锡江南计算技术研究所 Multi-level storage construction and online migration method in directory unit

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050207432A1 (en) * 2004-03-19 2005-09-22 Commoca, Inc. Internet protocol (IP) phone with search and advertising capability
CN101233730A (en) * 2004-12-31 2008-07-30 Ut斯达康公司 Universal port user agent capable of caching route information among sessions and associated method
CN1972304A (en) * 2005-11-21 2007-05-30 埃森哲全球服务有限公司 Unified directory and presence system for universal access to telecommunications services
CN102138312A (en) * 2007-09-28 2011-07-27 爱立信电话股份有限公司 Failure recovery in an IP multimedia subsystem network
CN101583016A (en) * 2008-05-15 2009-11-18 华为技术有限公司 Method for displaying and sending service status information, user terminal equipment and service processing unit
WO2011053858A1 (en) * 2009-10-30 2011-05-05 Time Warner Cable Inc. Methods and apparatus for packetized content delivery over a content delivery network
CN101729318A (en) * 2009-12-10 2010-06-09 中国电信股份有限公司 Modulus mutual control gateway, monitoring system and monitoring method
CN106230981A (en) * 2016-09-06 2016-12-14 浙江宇视科技有限公司 Monitoring resource share method and device
CN106953905A (en) * 2017-03-14 2017-07-14 浙江宇视科技有限公司 Catalogue sharing method and device between domain
CN106982355A (en) * 2017-04-06 2017-07-25 浙江宇视科技有限公司 The video monitoring system and anti-leak server of a kind of anti-image leakage
CN108574597A (en) * 2017-08-01 2018-09-25 北京视联动力国际信息技术有限公司 A kind of newer method, apparatus of state and interactive system
CN111294231A (en) * 2018-12-07 2020-06-16 杭州海康威视系统技术有限公司 Resource management method and system
US20200314632A1 (en) * 2019-03-28 2020-10-01 T-Mobile Usa, Inc. Policy enhancement for mixed capability devices
CN112540954A (en) * 2019-09-23 2021-03-23 无锡江南计算技术研究所 Multi-level storage construction and online migration method in directory unit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JUHANI LATVAKOSKI,JOUNI HEIKKINEN: ""A Trustworthy Communication Hub for Cyber-Physical Systems"", 《FUTURE INTERNET》 *
王晓雷等: "IMS中的一种跨域信任机制", 《计算机工程与应用》 *

Also Published As

Publication number Publication date
CN114726835B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN1327355C (en) Address changing device, message treatment method and apparatus
US7974277B2 (en) System and method for routing calls
CN107181675A (en) Service calling method and device
US20030110257A1 (en) Method for performing a load distribution between session initiation protocol servers within an intra domain
CN105847399A (en) Server scheduling method and device
WO2003078459A2 (en) Method and apparatus for configuring and controlling network resources in content delivery with distributed rules
US8009585B2 (en) Method and system for topology discovery in an SIP network
CN1848778A (en) Method of monitoring progress of a signalling message and network monitoring apparatus
CN107483260A (en) Fault handling method and device, electronic equipment
WO2020206660A1 (en) Network resource request method and apparatus, electronic device and storage medium
CN107454007A (en) A kind of processing method and processing device of gateway service
CN103404221A (en) Method of routing a session from a calling party in a serving communication network of the calling party to a called party
CN103535011A (en) Routing method, device, and system in content delivery network (CDN)
US7877479B2 (en) Bandwidth control system and method capable of reducing traffic congestion on content servers
CN111049947A (en) Message forwarding method and device, electronic equipment and storage medium
CN114726835B (en) Gateway directory information sending method and device based on caching technology
CN109327435B (en) Media resource acquisition method and device and gateway equipment
CN102098328B (en) Method and equipment for correlating hypertext transport protocol (HTTP) streams
CN112087532B (en) Information acquisition method, device, equipment and storage medium
CN106506400B (en) data stream identification method and outlet device
CN110753364B (en) Network monitoring method, system, electronic equipment and storage medium
CN101465786B (en) Method for forwarding resource, network entity and network system
CN116821215A (en) OPC UA server searching method based on port inquiry
US20120297029A1 (en) Method and Apparatus For Routing XCAP Requests
JP2007035053A (en) Method for maintaining session between different-terminals

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
GR01 Patent grant
GR01 Patent grant