WO2021232887A1 - Hpack动态表获取方法、通信设备、核心网系统及存储介质 - Google Patents

Hpack动态表获取方法、通信设备、核心网系统及存储介质 Download PDF

Info

Publication number
WO2021232887A1
WO2021232887A1 PCT/CN2021/079214 CN2021079214W WO2021232887A1 WO 2021232887 A1 WO2021232887 A1 WO 2021232887A1 CN 2021079214 W CN2021079214 W CN 2021079214W WO 2021232887 A1 WO2021232887 A1 WO 2021232887A1
Authority
WO
WIPO (PCT)
Prior art keywords
dynamic
http2
hpack
communication network
network element
Prior art date
Application number
PCT/CN2021/079214
Other languages
English (en)
French (fr)
Inventor
王晓斌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021232887A1 publication Critical patent/WO2021232887A1/zh

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • 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/04Protocols for data compression, e.g. ROHC
    • 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/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Definitions

  • This application relates to the field of communications, for example, it relates to a method for obtaining a dynamic table of next-generation Hypertext Transfer Protocol (Header Compression for Hyper Text Transfer Protocol 2, HPACK), communication equipment, core network system, and storage medium.
  • next-generation Hypertext Transfer Protocol Header Compression for Hyper Text Transfer Protocol 2, HPACK
  • communication equipment for example, it relates to a method for obtaining a dynamic table of next-generation Hypertext Transfer Protocol (Header Compression for Hyper Text Transfer Protocol 2, HPACK), communication equipment, core network system, and storage medium.
  • HPACK Hypertext Transfer Protocol
  • the service-based interface (SBI) in the core network generally adopts the next-generation HyperText Transfer Protocol (HyperText Transfer Protocol2, HTTP2) as the standard protocol.
  • HTTP2 HyperText Transfer Protocol
  • a signaling collection device is used to collect HTTP2 signaling on the SBI, and then the collected HTTP2 signaling is analyzed to obtain the user’s business data, so as to understand the user’s business habits, needs, etc. based on the analysis results. Provide users with better services in the follow-up process.
  • the signaling collection device in order to obtain a complete HPACK dynamic table based on signaling collection, the signaling collection device must start HTTP2 signaling collection from the first HTTP2 stream after the communication link is established.
  • the signaling collection equipment cannot start HTTP2 signaling collection from the first HTTP2 stream after the communication link is established. It may happen that the signaling analysis equipment cannot parse the collected HTTP2 signaling, which strictly limits the signaling collection.
  • This application provides a method for obtaining HPACK dynamic table, communication equipment, core network system and storage medium.
  • a method for obtaining HPACK dynamic tables includes: after establishing an HTTP2 connection on the communication link established with the peer communication network element, HTTP2 stream transmission is performed on the communication link with the peer communication network element; and the dynamic table is sent to the meter management device Table update information, where the dynamic table update information is used by the table management device to obtain the current HPACK dynamic table of the communication link.
  • the dynamic table update information includes the link identifier of the communication link, the dynamic mapping relationship of the HTTP2 stream transmitted on the communication link, and the dynamic activation
  • the flow identifier of the HTTP2 flow of the mapping relationship, and the dynamic mapping relationship is the correspondence between the HTTP header information of the HTTP2 flow and the index.
  • An HPACK dynamic table acquisition method including: receiving dynamic table update information sent by a communication network element, wherein the dynamic table update information includes a link identifier, a dynamic mapping relationship, and a flow identifier of an HTTP2 stream that enables the dynamic mapping relationship.
  • the mapping relationship is the corresponding relationship between the HTTP header information and the index of the transmitted HTTP2 stream on the communication link corresponding to the link identifier; the current HPACK dynamic table of the communication link is obtained according to the dynamic mapping relationship.
  • a communication device includes a processor, a memory, and a communication bus; the communication bus is set to realize the connection and communication between the processor and the memory; the processor is set to execute one or more programs stored in the memory to realize The first method for obtaining the HPACK dynamic table; or, the processor is configured to execute one or more programs stored in the memory to implement the method for obtaining the second HPACK dynamic table.
  • a core network system including a signaling collection device, a signaling analysis device, a table management device, and at least two communication network elements, the table management device is in communication connection with the signaling analysis device and the communication network element, and the signaling analysis device is in communication with the communication network element.
  • the signaling collection device is in communication connection; at least one communication network element of the at least two communication network elements is a communication device that implements the first HPACK dynamic table acquisition method by the above-mentioned processor executing a program; the table management device is the above-mentioned processor executing a program to achieve the above
  • the communication equipment of the second HPACK dynamic table acquisition method the signaling acquisition equipment is set to perform HTTP2 for the communication link between the communication network element and the peer communication network element during the HTTP2 stream transmission between the communication network element and the peer communication network element Signaling collection, and transfer the collected HTTP2 signaling to the signaling analysis device; the signaling analysis device is set to obtain the HPACK dynamic table corresponding to the communication link from the table management device, and pair it according to the dynamic mapping relationship in the HPACK dynamic table
  • the HTTP2 signaling collected by the signaling collection device is analyzed.
  • a storage medium stores at least one of a first HPACK dynamic table acquisition program and a second HPACK dynamic table acquisition program.
  • the first HPACK dynamic table acquisition program can be executed by one or more processors to achieve The first HPACK dynamic table acquisition method; the second HPACK dynamic table acquisition program can be executed by one or more processors to realize the above second HPACK dynamic table acquisition method.
  • Figure 1 is a signaling collection solution that meets the relevant technical requirements shown in the first embodiment of the application;
  • Figure 2 is a signaling collection scheme that does not meet the relevant technical requirements shown in the first embodiment of the application;
  • FIG. 3 is a flowchart of a method for obtaining an HPACK dynamic table provided in Embodiment 1 of the application;
  • FIG. 4 is a flow chart of a table management device provided in Embodiment 1 of the present application for obtaining HPACK dynamic tables according to dynamic table update information;
  • FIG. 5 is a flowchart of another table management device provided in the first embodiment of the application to obtain the HPACK dynamic table according to the dynamic table update information;
  • FIG. 6 is a flowchart of a method for obtaining an HPACK dynamic table provided in the second embodiment of the application.
  • FIG. 7 is a flowchart of a method for obtaining an HPACK dynamic table provided in the third embodiment of the application.
  • FIG. 8 is a schematic diagram of the hardware structure of a communication device provided in Embodiment 4 of this application.
  • Fig. 9 is a schematic diagram of a core network provided in the fourth embodiment of the application.
  • the 5th Generation mobile communication system core network (the 5th Generation mobile communication system Core network, 5GC) network SBI used HTTP2 is by SpeeDY (SPDY) (Google developed based on Transmission Control Protocol (Transmission Control Protocol, TCP) session Layer protocol) The protocol evolved. HTTP2 and HTTP1.x maintain a high degree of compatibility in the request method, status code, Uniform Resource Identifier (URI) and even most HTTP header fields, which is often said The format of the request line, request header, request body, response line, response header, and response body is consistent. However, considering that the header of HTTP signaling contains a large number of the same fields, these fields increase the burden of data transmission. Therefore, HTTP2 uses binary encoding and uses the HPACK algorithm to compress HTTP header information such as request lines, request headers, response lines, and response headers.
  • the mapping relationship between the HTTP header information and the index can be established through a "dictionary". In this way, after the network elements at both ends of the communication know the mapping relationship, they can directly enter the HTTP2 signaling header Carrying index. After the signaling receives the HTTP2 signaling, it can restore the index to the corresponding HTTP header information by consulting the mapping relationship in the dictionary according to the index carried in the HTTP2 signaling header, which can reduce the amount of data transmitted. .
  • the HPACK algorithm defines two tables, one is the HPACK static table (Static Table), and the other is the HPACK dynamic table (Dynamic Table).
  • the HPACK static table is determined with reference to the standards uniformly formulated by the Internet Engineering Task Force (IETF), which maintains some fixed mapping relationships between HTTP header information and indexes, and will not change; the same is true for the HPACK dynamic table. It is used to maintain the mapping relationship between the index and the HTTP header information, but the mapping relationship in the dynamic table is different under different TCP links.
  • IETF Internet Engineering Task Force
  • the decoding of HTTP2 signaling relies on the HPACK static table and the HPACK dynamic table, and the acquisition of the HPACK dynamic table is particularly critical.
  • the communication network element will first indicate the HTTP header information and the corresponding index to the peer communication network element in an HTTP2 signaling, that is, indicate that the HTTP header information corresponds to After receiving the HTTP2 signaling, the corresponding dynamic mapping relationship can be stored by the communication network element at the opposite end.
  • the two communication network elements have "enabled” a dynamic mapping relationship that has never been enabled before.
  • the header information can be compressed and replaced by the dynamic mapping relationship, and they can replace the header information of the HTTP2 signaling with the corresponding index value, and then send it to the opposite communication network element. Therefore, in order to ensure that the acquired dynamic mapping relationship is sufficient to parse the HTTP2 signaling collected at any one time, in related technologies, the signaling collection device is required to obtain from two communication network elements (respectively, communication network element A and communication network element A). B) After the communication link is established, the first HTTP2 signaling is collected. Please refer to Figure 1.
  • Figure 2 shows that if the HTTP2 signaling collection process of the signaling collection device is not started when the TCP link between the communication network element A and the communication network element B is established, the signaling collection device starts the HTTP2 signaling collection At that moment, some HTTP2 streams have been transmitted on the TCP link.
  • HTTP2 stream b when the signaling collection device is performing signaling collection, HTTP2 stream b has been transmitted, which will cause the signaling collection device to acquire There is no signaling corresponding to HTTP2 stream a and HTTP2 stream b. If there is a dynamic mapping relationship between communication network element A and communication network element B in HTTP2 stream a and HTTP2 stream b, in the subsequent process, HTTP2 signaling with the same header will no longer carry HTTP header information, and Only the index value is carried. In this way, the part of the HTTP2 signaling collected by the signaling collection device cannot be successfully parsed.
  • the communication network element and the peer communication network element communicating with the communication network element may both be network elements in the core network.
  • the communication network element and the peer communication network element communicating with the communication network element may be network elements in a 5GC network.
  • the communication link established between the communication network element and the peer communication network element may be a TCP link.
  • the communication link is not limited to only a TCP link.
  • it can also be a type of link other than the TCP link.
  • the communication network element and the peer communication network element establish an HTTP2 connection, so that subsequent HTTP2 stream transmission can be performed based on the HTTP2 protocol.
  • the HTTP2 stream can be transmitted from the local communication network element to the peer communication network element, or from the peer communication network element to the local communication network element.
  • part of the HTTP2 stream on the communication link is transmitted from the local communication network element to the opposite communication network element, and the other part is transmitted by the opposite communication network element.
  • the communication network element is transmitted to the local communication network element.
  • S304 The communication network element sends dynamic table update information to the table management device.
  • the communication network element not only needs to establish a communication link to communicate with the peer communication network element, but also communicates with the meter management device.
  • the meter management device can be set as the HPACK used for HTTP2 communication between the communication network elements.
  • Dynamic table management In some examples, a table management device may be set to store HPACK dynamic tables among multiple communication network elements.
  • the table management device may be a dynamic table storage server that is set to store HPACK dynamic tables among multiple communication network elements.
  • the HPACK dynamic table used for HTTP2 communication between the two is stored and maintained, so as to provide the corresponding HPACK dynamic table to other devices that need the HPACK dynamic table, for example, to provide the signaling analysis device with the HPACK dynamic table required by the signaling analysis device surface.
  • the communication network element After the communication network element performs HTTP2 stream transmission with the opposite communication network element, it may send dynamic table update information to the table management device.
  • the dynamic table update information is the information used to allow the table management device to obtain the HPACK dynamic table corresponding to the communication link.
  • the HPACK dynamic table of a communication link includes multiple dynamic mapping relationships currently enabled on the communication link, that is, the correspondence between the HTTP header information and the index of each HTTP2 stream transmitted on the communication link.
  • the HPACK dynamic table should also include information indicating that the HTTP2 stream corresponding to the dynamic mapping relationship is enabled-stream identifier.
  • the HTTP2 stream a is referred to as the enabling HTTP2 of the dynamic mapping relationship x Flow
  • the communication network element needs to notify the table management device of the matter through the dynamic table update information. Therefore, the dynamic table update information usually includes the dynamic mapping relationship of the HTTP2 stream that has been transmitted on the corresponding communication link and the HTTP2 stream-enabled flow identifier corresponding to each dynamic mapping relationship. The reason that the HTTP2 stream is enabled in the dynamic table update information is because the communication network element and the peer communication network element may modify the previously enabled dynamic mapping relationship during the communication process.
  • the index " The HTTP header information corresponding to 77" is "xxxy", but in the HTTP2 stream h, the HTTP header information corresponding to the index "77” is modified to "xxyy”.
  • the signaling analysis process if the collected signaling is the signaling before HTTP2 stream h, it should continue to be parsed according to the previous dynamic mapping relationship, while the HTTP signaling corresponding to HTTP2 stream h and the subsequent signaling should be It needs to be parsed according to the latter dynamic mapping relationship.
  • the signaling analysis device in order to ensure that the signaling analysis device can know what dynamic mapping relationship should be used to analyze the signaling collected at a time, it is necessary to carry the dynamic mapping relationship corresponding to the flow identifier of the HTTP2 flow enabled in the dynamic table update information, so that the table management device Record in the HPACK dynamic table.
  • the table management device usually needs to manage the HPACK dynamic table corresponding to more than one communication link, in order to allow the table management device to know that the dynamic mapping relationship is corresponding to the dynamic table update information sent by the communication network element.
  • the communication network element may carry information that can indicate the corresponding communication link and the link identifier in the dynamic table update information.
  • the link identifier may be at least one of an Internet Protocol (IP) address, port number, and link identifier.
  • IP Internet Protocol
  • the communication network element may send dynamic table update information to the table management device after the transmission of each HTTP2 stream is completed.
  • the communication network element and the peer communication network element will not enable a new dynamic mapping relationship in every HTTP2 stream.
  • the dynamic mapping relationship that has been enabled before must be used. Therefore, only in some scenarios, The communication network element and the opposite communication network element may have enabled a new dynamic mapping relationship through the HTTP2 flow.
  • the HTTP2 signaling corresponding to the HTTP2 flow directly includes the dynamic mapping relationship. Therefore, the communication network element can directly send dynamic table update information to the table management device based on the dynamic mapping relationship carried in the HTTP2 signaling.
  • an HTTP2 stream recently transmitted by the communication network element and the peer communication network element still reuses the previously enabled dynamic mapping relationship.
  • the communication network element can use the HTTP2 information corresponding to the HTTP2 stream.
  • the index in the command is queried to determine the dynamic mapping relationship of the HTTP2 stream, and then the dynamic information is sent to the table management device based on the dynamic mapping relationship.
  • the communication network element may send the dynamic table update information to the table management device only after it has enabled a new dynamic mapping relationship on the communication link with the peer communication network element. In other words, if the current The HTTP2 stream transmitted by the communication network element and the peer communication network element still uses the previous dynamic mapping relationship. After the HTTP2 stream is transmitted, the communication network element does not need to send dynamic table update information to the table management device. Therefore, in some examples of this embodiment, before the communication network element sends the dynamic table update information to the table management device, it will first determine whether a new dynamic mapping is enabled in a recently transmitted HTTP2 stream (that is, the most recent HTTP2 stream).
  • the communication network element can judge whether the HTTP header information of the most recent HTTP2 stream is the same as the HTTP header information of other transmitted HTTP2 streams on the communication link. If the HTTP header information of the HTTP2 stream is the same, it means that the new dynamic mapping relationship has not been enabled in the recent HTTP2 stream. If the HTTP header information of the recent HTTP2 stream is different from the HTTP header information of other transmitted HTTP2 streams on the communication link , It means that a new dynamic mapping relationship has been enabled in the HTTP2 stream recently. In other examples of this embodiment, the communication network element can determine whether the complete header information and index are carried in the header of the most recent HTTP2 stream.
  • the header of the most recent HTTP2 stream carries complete header information and index . It means that the recent HTTP2 stream has enabled a new dynamic mapping relationship; if the header of the recent HTTP2 stream only carries an index, it can be determined that the recent HTTP2 stream has not enabled a new dynamic mapping relationship.
  • each time a communication network element sends dynamic table update information to the table management device it will carry the dynamic mapping relationship of all transmitted HTTP2 streams on the corresponding communication link in the dynamic table update information.
  • the dynamic table update information carries the dynamic mapping relationship of all transmitted HTTP2 streams on the communication link, which does not mean that the number of dynamic mapping relationships in the dynamic table update information is the same as the number of all transmitted HTTP2 streams on the communication link, because a dynamic The mapping relationship may correspond to more than one HTTP2 stream at the same time.
  • the table management device receives the dynamic table update information sent by the communication network element and extracts the dynamic mapping relationship from it, and then directly obtains the HPACK dynamic table corresponding to the current communication link, without paying attention to communication. The content of the dynamic table update information previously sent by the network element.
  • the communication network element when the communication network element sends dynamic table update information to the table management device, it may only carry the dynamic mapping relationship of the latest HTTP2 flow in the dynamic table update information, that is, the communication network element and the pair The dynamic mapping relationship of an HTTP2 stream recently transmitted between the end communication network elements.
  • the table management device after the table management device receives the dynamic table update information sent by the communication network element, it needs to combine the dynamic mapping relationship in the dynamic table update information with the dynamic mapping relationship previously sent by the communication network element to obtain the communication. Link the current corresponding HPACK dynamic table.
  • the table management device obtains the current HPACK dynamic table corresponding to the communication link according to the dynamic mapping relationship in the dynamic table update information.
  • the table management device After the table management device receives the dynamic table update information sent by the communication network element, it can extract the link identifier and the dynamic mapping relationship from the dynamic table update information. Based on the extracted link identifier, the table management device can determine which communication link the dynamic mapping relationship in the dynamic table update information is sent to, and then the table management device can manage the dynamic mapping relationship in units of communication links, based on receiving The obtained dynamic mapping relationship obtains the current HPACK dynamic table of the corresponding communication connection.
  • a communication network element After a communication network element establishes a communication link with the peer communication network element and establishes an HTTP2 connection on the communication link, it performs HTTP2 streaming on the communication link with the peer communication network element. Transmission. After starting the transmission of the HTTP2 stream, the communication network element can send dynamic table update information including link identification, dynamic mapping relationship, and flow identification to the table management device.
  • the link identification can indicate the corresponding communication link to the table management device
  • the dynamic The mapping relationship can indicate to the table management device the correspondence between the HTTP header information and the index of the HTTP2 stream that has been transmitted on the communication link
  • the flow identifier can indicate that the HTTP2 stream corresponding to the dynamic mapping relationship is enabled, so that the table management device can obtain The current HPACK dynamic table of the communication link corresponding to the link identifier.
  • the table management device can obtain the HPACK dynamic table required by the signaling analysis process according to the dynamic table update information sent by the communication network element in the communication link, and "decouple" the acquisition process of the HPACK dynamic table from the signaling collection process, so that The acquisition of the HPACK dynamic table no longer needs to rely on the signaling collection process of the signaling collection equipment.
  • the signaling collection device to start HTTP2 signaling collection from the beginning of the communication link establishment.
  • the start of HTTP2 signaling collection can be flexibly determined according to actual needs. According to the method provided in the embodiments of this application, regardless of the signaling collection When the device starts to collect the HTTP2 signaling on the corresponding communication link, it will not affect the normal analysis of the HTTP2 signaling. Therefore, the method provided in the embodiment of this application improves the flexibility of the signaling collection device for signaling collection. sex.
  • the table management device can refer to the flowchart shown in Figure 4 to obtain the HPACK dynamic table of the corresponding communication link. .
  • the table management device searches the historical HPACK dynamic table of the communication link maintained by the local end according to the link identifier.
  • the table management device can query the multiple HPACK dynamic tables maintained at the local end according to the link identifier extracted from the dynamic table update information, and find the corresponding HPACK dynamic table.
  • the HPACK dynamic table is the previous maintenance of the corresponding communication link by the table management device.
  • Table 1 shows the historical HPACK dynamic table maintained by the table management device for the communication link L1.
  • S404 The table management device adds the dynamic mapping relationship in the dynamic table update information to the historical HPACK dynamic table.
  • the table management device can add the dynamic mapping relationship in the received dynamic table update information to the historical HPACK dynamic table, and record the flow identifier of the HTTP2 stream that enables the dynamic mapping relationship. Assuming that the dynamic mapping relationship carried in the dynamic table update information is "80-yxxy", the table management device finds the historical HPACK dynamic table maintained at the local end, that is, after the above table 1, it will modify table 1 to obtain a new one HPACK dynamic table, please refer to Table 2 below.
  • the communication network element can directly send the current HPACK dynamic table of the communication link to the table management device. Refer to the flowchart shown in FIG. 5 for the table management device to obtain the HPACK dynamic table.
  • the table management device searches the historical HPACK dynamic table of the communication link maintained at the local end according to the link identifier.
  • This process is basically the same as the process of S402 in FIG. 4, and will not be repeated here.
  • the table management device uses the HPACK dynamic table in the dynamic table update information to replace the historical HPACK dynamic table.
  • the table management device can delete the historical HPACK dynamic table, and at the same time save the HPACK dynamic table carried in the dynamic table update information, that is, use the HPACK dynamic table in the dynamic table update information to replace and overwrite the historical HPACK. Dynamic table.
  • the table management device After receiving the dynamic table update information of the communication network element, it will first determine whether the dynamic mapping relationship carried in the dynamic table update information exists in the historical HPACK dynamic table maintained by the local end for the corresponding communication link. If the dynamic table update information carries The dynamic mapping relationship exists in the historical HPACK dynamic table maintained at the local end for the corresponding communication link, and no operation is performed, and the dynamic table update information can be directly discarded.
  • the table management device does not need to make a judgment, and directly uses the HPACK dynamic table in the dynamic table update information to replace the corresponding historical HPACK dynamic table each time. .
  • the table management device may be a dynamic table storage server, which obtains the HPACK dynamic table of the communication link through interaction with the communication network element, and the signaling analysis device needs to collect information on the communication link.
  • the HPACK dynamic table maintained by the local end for the communication link is provided to the signaling analysis device.
  • the table management device can be directly a signaling analysis device. In this way, the signaling analysis device can maintain the current complete HPACK dynamic table of multiple communication links in real time.
  • the signaling collection device collects new After HTTP2 signaling, the corresponding HPACK dynamic table can be directly extracted from the local end to analyze these HTTP2 signaling.
  • the above-mentioned signaling collection device and signaling analysis device may be two devices with separate physical entities, or may be two logical devices integrated on one physical entity device.
  • the HPACK dynamic table acquisition method provided in the embodiments of this application untie the signaling collection process and the HPACK dynamic table acquisition process, and obtains the HPACK dynamic table in a way independent of the signaling collection process, thereby making the signaling collection process more flexible and free. It is ensured that the HTTP2 signaling obtained by the signaling collection device starting the HTTP2 signaling collection at any time can be successfully parsed, thereby providing a basis for network maintenance and network optimization.
  • the method for acquiring the HPACK dynamic table will be described in conjunction with an example. Please refer to the flowchart of a method for acquiring the HPACK dynamic table shown in FIG. 6.
  • the communication network element establishes a TCP link with the peer communication network element.
  • the communication link between the communication network element and the peer communication network element is a TCP link for exemplification, but this embodiment does not limit the communication link to only a TCP link.
  • the communication link can also be a type of link other than the TCP link.
  • the signaling collection device can immediately start signaling collection. For example, the signaling collection device monitors the TCP link. When there is HTTP2 signaling transmission, signaling can be collected. However, because it is not necessary to obtain the HPACK dynamic table of the TCP link through HTTP2 signaling collection in this embodiment, the time when the signaling collection starts in this embodiment can be the time when the TCP link is established, or it can be a subsequent time. Any moment in the process.
  • the communication network element establishes an HTTP2 connection with the peer communication network element.
  • S606 The communication network element and the peer communication network element transmit HTTP2 stream a.
  • the communication network element may be the sender of HTTP2 stream a or the receiver of HTTP2 stream a.
  • the communication network element sends the dynamic table update information including the dynamic mapping relationship between the link identifier and the HTTP2 stream a to the table management device.
  • a dynamic mapping relationship is enabled in HTTP2 stream a. Therefore, after the HTTP2 stream a is transmitted by the communication network element, the dynamic mapping relationship and the corresponding activation of the dynamic mapping relationship can be enabled through dynamic table update information.
  • the flow identifier of the HTTP2 flow is notified to the table management device.
  • the communication network element sends dynamic table update information to the table management device, it only carries the newly added dynamic mapping relationship and flow identifier in the dynamic table update information. For other dynamics that have been previously notified to the table management device The mapping relationship will not be sent repeatedly.
  • the table management device obtains the current HPACK dynamic table of the TCP link according to the dynamic table update information.
  • the table management device can determine which HPACK dynamic table the dynamic table update information is used to maintain according to the link identifier therein. Since HTTP2 stream a is the first HTTP2 stream transmitted between the communication network element and the peer communication network element, before this, the communication network element has not sent dynamic table update information to the table management device, and the table management device also The HPACK dynamic table corresponding to the TCP link is not maintained. Therefore, in this embodiment, the table management device can determine that a HPACK dynamic table needs to be added according to the link identifier. Therefore, the table management device creates a HPACK dynamic table, and records the dynamics in the dynamic table update information in the HPACK dynamic table. The mapping relationship and the flow identifier of the HTTP2 flow enabled corresponding to the dynamic mapping relationship.
  • the communication network element sends dynamic table update information to the table management device indiscriminately after the transmission of each HTTP2 stream, regardless of whether a new dynamic mapping relationship is enabled, this will not only increase the burden on the communication network element itself, but also It will also increase the burden on the table management device side, because after receiving the dynamic table update information, the table management device may need to judge whether the dynamic mapping relationship in it already exists in the historical HPACK dynamic table. At the same time, this scheme of sending dynamic table update information after each HTTP2 stream transmission will also cause a waste of communication resources. In order to circumvent these defects, the communication network element in this embodiment only sends dynamic table update information to the table management device after a new dynamic mapping relationship is enabled between the communication network element and the opposite end communication network element.
  • the HTTP2 stream b transmitted between the communication network element and the peer communication network element does not enable the new dynamic mapping relationship, but uses the dynamic mapping relationship of the HTTP2 stream a, or uses the HPACK static table After the transmission of HTTP2 stream b, the communication network element will not send dynamic table update information to the table management device.
  • the signaling collection device starts to collect HTTP2 signaling for the TCP link between the communication network element and the peer communication network element after the transmission of the HTTP2 stream b.
  • the communication network element sends the dynamic table update information including the dynamic mapping relationship between the link identifier and the HTTP2 stream c to the table management device.
  • the communication network element and the peer communication network element enable another dynamic mapping relationship in HTTP2 stream c
  • the communication network element will also send dynamic table update information to the table management device.
  • the dynamic table update information also carries the link identifier.
  • the difference from the dynamic table update information sent after HTTP2 flow a is that the dynamic mapping relationship carried in the dynamic table update information is the dynamic mapping enabled in HTTP2 flow c Relationship and flow identification of HTTP2 flow c.
  • the table management device obtains the current HPACK dynamic table of the TCP link according to the dynamic table update information.
  • the table management device After the table management device receives the dynamic table update information, it can determine which HPACK dynamic table the dynamic table update information is used to maintain according to the link identifier, and then update the dynamic table information and record it in the HPACK dynamic table The dynamic mapping relationship in the dynamic table update information and the flow identifier of the HTTP2 flow enabled corresponding to the dynamic mapping relationship.
  • S620 The communication network element and the peer communication network element end the HTTP2 connection.
  • the communication network element and the peer communication network element can continue to transmit other HTTP2 streams, and feed back the dynamic table update information to the table management device according to the aforementioned introduction, until the communication network element and the peer communication network element end the HTTP2 connection until.
  • the signaling collection device in this embodiment starts HTTP2 signaling collection after the transmission of HTTP2 stream b, at this time the transmission of HTTP2 stream a and HTTP2 stream b has ended, so the signaling collection device must not be able to collect these two more.
  • the HTTP2 signaling corresponding to the HTTP2 stream but this does not affect the signaling analysis device's analysis of multiple HTTP2 signaling collected by the signaling collection device.
  • the communication network element only sends dynamic table update information to the table management device after the new dynamic mapping relationship is enabled between itself and the peer communication network element for the table management device
  • the HPACK dynamic table corresponding to the TCP link can be maintained according to the dynamic table update information.
  • the communication network element will not send the dynamic table to the table management device Update information. Therefore, this HPACK dynamic table acquisition method not only improves the flexibility of the signaling collection process, but also reduces the processing burden of the communication network element and the table management device, and avoids the waste of communication resources.
  • the communication network element establishes a TCP link with the opposite communication network element.
  • the signaling collection device When the TCP link between the communication network element and the peer communication network element is established, the signaling collection device immediately starts signaling collection.
  • the communication network element establishes an HTTP2 connection with the peer communication network element.
  • S706 The communication network element and the peer communication network element transmit HTTP2 stream a.
  • the communication network element may be the sender of HTTP2 stream a or the receiver of HTTP2 stream a.
  • the communication network element sends to the table management device dynamic table update information that includes the dynamic mapping relationship between the link identifier and all currently transmitted HTTP2 streams.
  • the table management device obtains the current HPACK dynamic table of the TCP link according to the dynamic table update information.
  • the table management device After receiving the dynamic table update information, the table management device can determine which HPACK dynamic table the dynamic table update information is used to maintain according to the link identifier therein. Since HTTP2 stream a is the first HTTP2 stream transmitted between the communication network element and the peer communication network element, before this, the communication network element has not sent dynamic table update information to the table management device, and the table management device also The HPACK dynamic table corresponding to the TCP link is not maintained. Therefore, in this embodiment, the table management device can directly associate and store the HPACK dynamic table carried in the dynamic table update information with the link identifier.
  • the communication network element also sends the dynamic table update information to the table management device only after a new dynamic mapping relationship is enabled with the opposite end communication network element. It is assumed here that the HTTP2 stream b transmitted between the communication network element and the peer communication network element does not enable a new dynamic mapping relationship, but follows the dynamic mapping relationship of HTTP2 stream a, or uses the mapping relationship in the HPACK static table. After the transmission of the HTTP2 stream b, the communication network element does not send dynamic table update information to the table management device.
  • S714 The communication network element and the peer communication network element transmit HTTP2 stream c.
  • the communication network element sends to the table management device dynamic table update information that includes the dynamic mapping relationship between the link identifier and all currently transmitted HTTP2 streams.
  • the communication network element will also send dynamic table update information to the table management device.
  • the dynamic table update information also carries the link identifier and the dynamic mapping relationship of all currently transmitted HTTP2 streams.
  • the communication network element can directly carry the current HPACK dynamic table of the TCP link in the dynamic table update information.
  • the table management device obtains the current HPACK dynamic table of the TCP link according to the dynamic table update information.
  • the table management device After the table management device receives the dynamic table update information, it can determine which HPACK dynamic table the dynamic table update information is used to maintain according to the link identifier, and then update the dynamic table information. After finding it, the table management device directly uses the dynamic table.
  • the HPACK dynamic table carried in the table update information replaces the historical HPACK dynamic table that originally maintained the TCP link.
  • the communication network element and the peer communication network element can continue to transmit other HTTP2 streams, and feed back the dynamic table update information to the table management device according to the aforementioned introduction, until the communication network element and the peer communication network element end the HTTP2 connection until.
  • the signaling collection device in this embodiment starts HTTP2 signaling collection after the TCP link is established, in fact, in other scenarios in this embodiment, the time when the signaling collection device performs signaling collection can also be moved back , This will not affect the signaling analysis process of the signaling analysis equipment.
  • the HPACK dynamic table acquisition method provided in this embodiment "decouples" the acquisition process of the HPACK dynamic table from the signaling collection process, so that the acquisition of the HPACK dynamic table does not need to rely on the signaling collection process of the signaling collection device, which improves
  • the signaling collection process is flexible, and at the same time, the processing burden of the communication network element and the table management device is reduced, and the waste of communication resources is avoided.
  • This embodiment provides a storage medium that can store one or more computer programs that can be read, compiled, and executed by one or more processors.
  • the storage medium can store At least one of the first HPACK dynamic table acquisition program, and the second HPACK dynamic table acquisition program.
  • the first HPACK dynamic table acquisition program can be executed by one or more processors to realize the process of the HPACK dynamic table acquisition method on the communication network element side in any one of the HPACK dynamic table acquisition methods introduced in any of the foregoing embodiments.
  • the second HPACK dynamic table acquisition program can be executed by one or more processors to implement the process of the HPACK dynamic table acquisition method on the table management device side in any one of the HPACK dynamic table acquisition methods introduced in any of the foregoing embodiments.
  • the communication device 8 includes a processor 81, a memory 82, and a communication bus 83 configured to connect the processor 81 and the memory 82.
  • the communication device is a communication network element.
  • the memory 82 of the communication device 8 may be the aforementioned storage medium storing the first HPACK dynamic table acquisition program, and the processor 81 may read the first HPACK.
  • the dynamic table acquisition program is compiled and executed to implement the process of the method for acquiring the HPACK dynamic table on the communication network element side introduced in any of the foregoing embodiments: the processor 81 establishes the communication link established by the communication device 8 and the opposite communication network element After the HTTP2 connection, the communication network element with the opposite end performs HTTP2 stream transmission on the communication link. Subsequently, the processor 81 sends dynamic table update information to the table management device.
  • the dynamic table update information is used by the table management device to obtain the current HPACK dynamic table of the communication link.
  • the dynamic table update information includes the link identifier of the communication link and the communication link has been transmitted.
  • the dynamic mapping relationship of the HTTP2 flow and the flow identifier of the HTTP2 flow that enables the dynamic mapping relationship.
  • the dynamic mapping relationship is the correspondence between the HTTP header information and the index of the HTTP2 flow.
  • the communication link includes a TCP link.
  • the processor 81 Before the processor 81 sends the dynamic table update information to the table management device, it may also determine that the HTTP header information of the most recent HTTP2 stream is different from the HTTP header information of other HTTP2 streams transmitted on the communication link, and that the most recent HTTP2 stream is communicating with the opposite end. An HTTP2 stream recently transmitted between network elements.
  • the dynamic mapping relationship in the dynamic table update information sent by the processor 81 includes: the dynamic mapping relationship of all transmitted HTTP2 streams on the communication link.
  • the dynamic mapping relationship in the dynamic table update information sent by the processor 81 includes: the dynamic mapping relationship of the most recent HTTP2 flow, where the most recent HTTP2 flow is the most recent transmission between the communication network element and the opposite end. Of an HTTP2 stream.
  • the communication device 8 is a table management device.
  • the memory 82 of the communication device 8 may be the aforementioned storage medium storing the second HPACK dynamic table acquisition program, and the processor 81 may read the second HPACK dynamic table acquisition program.
  • the HPACK dynamic table acquisition program is compiled and executed to implement the process of the HPACK dynamic table acquisition method on the table management device side introduced in any of the foregoing embodiments: the processor 81 receives the dynamic table update information sent by the communication network element, and the dynamic table update information
  • the dynamic mapping relationship includes the link identifier, the dynamic mapping relationship, and the flow identifier of the HTTP2 stream that enables the dynamic mapping relationship.
  • the dynamic mapping relationship is the correspondence between the HTTP header information and the index of the transmitted HTTP2 stream on the communication link corresponding to the link identifier. Subsequently, the processor 81 obtains the current HPACK dynamic table of the communication link according to the dynamic mapping relationship.
  • the dynamic mapping relationship sent by the communication network element is the dynamic mapping relationship of the most recent HTTP2 stream, and the most recent HTTP2 stream is an HTTP2 stream recently transmitted by the communication network element; the processor 81 obtains the communication according to the dynamic mapping relationship.
  • the historical HPACK dynamic table of the communication link maintained by the local end can be searched first according to the link identifier, and then the processor 81 adds the dynamic mapping relationship in the dynamic table update information to the historical HPACK dynamic table.
  • the dynamic mapping relationship sent by the communication network element is an HPACK dynamic table containing the dynamic mapping relationship of all currently transmitted HTTP2 streams on the communication link; the processor 81 obtains the current communication link according to the dynamic mapping relationship.
  • HPACK dynamic table When the HPACK dynamic table is used, the historical HPACK dynamic table of the communication link maintained by the local end can be searched according to the link identifier, and then the processor 81 uses the HPACK dynamic table in the dynamic table update information to replace the historical HPACK dynamic table.
  • This embodiment also provides a core network system, as shown in FIG. 9.
  • the core network system 9 includes a signaling collection device 91, a signaling analysis device 92, a table management device 93, and at least two communication network elements 94.
  • the table management device 93 is in communication connection with the signaling analysis device 92 and the communication network element 94, respectively. Make the analysis device 92 communicate with the signaling collection device 91.
  • At least one communication network element 94 is a communication device in which the processor in FIG. 8 executes the first HPACK dynamic table acquisition program.
  • the table management device 93 is a communication device for the processor in FIG. 8 to execute the second HPACK dynamic table acquisition program.
  • the signaling collection device 91 is set to perform HTTP2 signaling collection for the communication link between the communication network element 94 and the opposite communication network element during the transmission of the HTTP2 stream between the communication network element 94 and the opposite communication network element, and collect the collected
  • the HTTP2 signaling is transmitted to the signaling analysis device 92.
  • the signaling collection device 91 When the signaling collection device 91 performs signaling collection, it may be in communication connection with the communication network element 94, or may be in communication connection with the communication network element at the opposite end.
  • the signaling analysis device 92 is configured to obtain the HPACK dynamic table corresponding to the communication link from the table management device 93, and analyze the HTTP2 signaling collected by the signaling collection device 91 according to the dynamic mapping relationship in the HPACK dynamic table.
  • the above-mentioned signaling analysis device 92 and the signaling collection device 91 may be integrated on the same physical entity device, or the signaling analysis device 92 and the signaling collection device 91 may also be provided separately. In addition, the signaling analysis device 92 and the table management device 93 may also be integrated on the same physical entity device, or set separately.
  • the table management device can obtain the HPACK dynamic table required for the signaling analysis process according to the dynamic table update information sent by the communication network element in the communication link, and dynamically change the HPACK dynamic table.
  • the acquisition process of the table is "decoupled" from the signaling collection process, so that the acquisition of the HPACK dynamic table does not need to rely on the signaling collection process of the signaling collection equipment, and the flexibility of the signaling collection equipment for signaling collection is improved.
  • the functional modules/units in the system, and the device can be implemented as software (which can be implemented by computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of multiple The physical components are executed cooperatively.
  • Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
  • Communication media generally contain computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery media. Therefore, this application is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

本文公开一种HPACK动态表获取方法、通信设备、核心网系统及存储介质。HPACK动态表获取方法,包括:通信网元在与对端通信网元建立的通信链接上建立HTTP2连接后,与对端通信网元在通信链接上进行HTTP2流的传输;通信网元向表管理设备发送动态表更新信息,其中,所述动态表更新信息用于所述表管理设备获取所述通信链接当前的HPACK动态表,所述动态表更新信息中包括所述通信链接的链接标识、所述通信链接上已传输HTTP2流的动态映射关系以及启用所述动态映射关系的HTTP2流的流标识,所述动态映射关系为HTTP2流的HTTP头部信息与索引间的对应关系;表管理设备接收通信网元发送的动态表更新信息;表管理设备根据所述动态映射关系获取所述通信链接当前的HPACK动态表。

Description

HPACK动态表获取方法、通信设备、核心网系统及存储介质 技术领域
本申请涉及通信领域,例如涉及一种下一代超文本传输协议头部压缩(Header Compression for Hyper Text Transfer Protocol2,HPACK)动态表获取方法、通信设备、核心网系统及存储介质。
背景技术
核心网中基于服务化的接口(Service Based Interface,SBI)一般采用下一代超文本传输协议(Hyper Text Transfer Protocol2,HTTP2)作为标准协议。在通常工作中,会利用信令采集设备对SBI进行HTTP2信令采集,然后对采集到的HTTP2信令进行解析获取用户的业务数据,从而基于解析结果了解用户的业务习惯、需求等,以便在后续过程中为用户提供更优质的服务。但相关技术中的信令采集解析方案,为了基于信令采集获取到完整的HPACK动态表,就要求信令采集设备必须从通信链接建立后的第一个HTTP2流就开始HTTP2信令采集,若信令采集设备不能从通信链接建立后的第一个HTTP2流就开始HTTP2信令采集,就可能出现信令解析设备无法对采集到的HTTP2信令进行解析的情况,这严格限制了信令采集设备进行信令采集的灵活性。
发明内容
本申请提供一种HPACK动态表获取方法、通信设备、核心网系统及存储介质。
提供一种HPACK动态表获取方法,包括:在与对端通信网元建立的通信链接上建立HTTP2连接后,与对端通信网元在通信链接上进行HTTP2流的传输;向表管理设备发送动态表更新信息,其中,动态表更新信息用于表管理设备获取通信链接当前的HPACK动态表,动态表更新信息中包括通信链接的链接标识、通信链接上已传输HTTP2流的动态映射关系以及启用动态映射关系的HTTP2流的流标识,动态映射关系为HTTP2流的HTTP头部信息与索引间的对应关系。
还提供一种HPACK动态表获取方法,包括:接收通信网元发送的动态表更新信息,其中,动态表更新信息中包括链接标识、动态映射关系以及启用动态映射关系的HTTP2流的流标识,动态映射关系为链接标识对应的通信链接上已传输HTTP2流的HTTP头部信息与索引间的对应关系;根据动态映射关系获取通信链接当前的HPACK动态表。
还提供一种通信设备,通信设备包括处理器、存储器及通信总线;通信总线设置为实现处理器和存储器之间的连接通信;处理器设置为执行存储器中存储的一个或者多个程序,以实现上述第一种HPACK动态表获取方法;或,处理器设置为执行存储器中存储的一个或者多个程序,以实现上述第二种HPACK动态表获取方法。
还提供一种核心网系统,包括信令采集设备、信令解析设备、表管理设备与至少两个通信网元,表管理设备与信令解析设备和通信网元通信连接,信令解析设备与信令采集设备通信连接;至少两个通信网元中的至少一个通信网元为上述处理器执行程序实现第一种HPACK动态表获取方法的通信设备;表管理设备为上述处理器执行程序实现上述第二种HPACK动态表获取方法的通信设备;信令采集设备设置为在通信网元与对端通信网元传输HTTP2流的过程中针对通信网元与对端通信网元间的通信链接进行HTTP2信令采集,并将采集到的HTTP2信令传输给信令解析设备;信令解析设备设置为从表管理设备处获取通信链接对应的HPACK动态表,并根据HPACK动态表中的动态映射关系对信令采集设备所采集到的HTTP2信令进行解析。
还提供一种存储介质,存储介质存储有第一HPACK动态表获取程序与第二HPACK动态表获取程序中的至少一个,第一HPACK动态表获取程序可被一个或者多个处理器执行,以实现上述第一种HPACK动态表获取方法;第二HPACK动态表获取程序可被一个或者多个处理器执行,以实现上述第二种HPACK动态表获取方法。
附图说明
图1为本申请实施例一中示出的一种符合相关技术要求的信令采集方案;
图2为本申请实施例一中示出的一种不符合相关技术要求的信令采集方案;
图3为本申请实施例一中提供的一种HPACK动态表获取方法的流程图;
图4为本申请实施例一中提供的一种表管理设备根据动态表更新信息获取HPACK动态表的流程图;
图5为本申请实施例一中提供的另一种表管理设备根据动态表更新信息获取HPACK动态表的流程图;
图6为本申请实施例二中提供的一种HPACK动态表获取方法的流程图;
图7为本申请实施例三中提供的一种HPACK动态表获取方法的流程图;
图8为本申请实施例四中提供的一种通信设备的硬件结构示意图;
图9为本申请实施例四中提供的一种核心网网络的示意图。
具体实施方式
下面通过具体实施方式结合附图对本申请实施例进行说明。
实施例一:
第五代移动通信系统核心网(the 5th Generation mobile communication system Core network,5GC)网络的SBI所使用的HTTP2是由SpeeDY(SPDY)(Google开发的基于传输控制协议(Transmission Control Protocol,TCP)的会话层协议)协议进化而来,HTTP2同HTTP1.x在请求方法、状态码、统一资源标识符(Uniform Resource Identifier,URI)乃至绝大多数HTTP头部字段等部分保持高度兼容性,即常说的请求行、请求头、请求体、响应行、响应头、响应体这些部分的格式具有一致性。但是,考虑到HTTP信令的头部包含了大量相同的字段,这些字段增加了数据传输负担。所以,HTTP2使用二进制编码,采用HPACK算法对请求行、请求头、响应行、响应头这些HTTP头部信息进行压缩。
在HPACK算法中,可以通过“字典”的方式建立HTTP头部信息同索引之间的映射关系,这样,在通信两端的网元都获知该映射关系后,就可以直接在HTTP2信令的头部携带索引,信令接收到该HTTP2信令之后,根据HTTP2信令头部所携带的索引查阅字典中的映射关系,就可以将索引还原为对应的HTTP头部信息,这样可以减少传输的数据量。
HPACK算法定义了两种表,一种是HPACK静态表(Static Table),一种是HPACK动态表(Dynamic Table)。HPACK静态表参照国际互联网工程任务组(Internet Engineering Task Force,IETF)统一制定的标准确定,其中维护了一些固定的HTTP头部信息与索引间的映射关系,不会发生变化;HPACK动态表也同样用于维护索引与HTTP头部信息间的映射关系,但动态表中的映射关系在不同的TCP链接下不同。
可见HTTP2信令的解码依赖于HPACK静态表和HPACK动态表,而HPACK动态表的获取由尤为关键。考虑到两个通信网元在进行信令传输的过程中,如果一个通信网元向对端通信网元传输的HTTP2信令中使用了一个在该通信网元和对端通信网元间通信链接上从未使用过的HTTP头部信息,则该通信网元会先在一个HTTP2信令中向对端通信网元指示该HTTP头部信息以及对应的索引,也即指示该HTTP头部信息对应的动态映射关系,当对端通信网元接收到该HTTP2信令后,可以存储对应的动态映射关系。至此,这两个通信网元就“启用”了一个之前从未启用过的动态映射关系,在后续通信过程中,如果 这两个通信网元向对端通信网元传输的HTTP2信令的HTTP头部信息可以通过该动态映射关系进行压缩替代,则它们可以将该HTTP2信令的头部信息替代为对应的索引值,然后发送给对端通信网元。所以,为了保证获取到动态映射关系足以对任意一个时刻采集到的HTTP2信令进行解析,在相关技术中,要求信令采集设备从两个通信网元(分别是通信网元A与通信网元B)建立通信链接后的第一个HTTP2就进行信令采集,请参见图1,这样才能够获取到两个通信网元发给对端通信网元的全部HTTP2信令,进而获取到这两个通信网元间通信链接建立后这两个通信网元所启用的全部动态映射关系,保证任意时刻信令解析设备都能够获取到该通信链接所对应的完整HPACK动态表。
图2示出的是如果信令采集设备的HTTP2信令采集过程不是自通信网元A与通信网元B间TCP链接建立之初开始HTTP2信令采集,信令采集设备开始HTTP2信令采集的时刻已经有部分HTTP2流在该TCP链接上传输完成了,例如,在图2当中,信令采集设备进行信令采集的时候,HTTP2流b已经传输完成了,这就会导致信令采集设备获取不到HTTP2流a与HTTP2流b对应的信令。如果在HTTP2流a和HTTP2流b当中,通信网元A与通信网元B有启用动态映射关系,则在后续过程中,相同头部的HTTP2信令将不会再携带HTTP头部信息,而只会携带索引值,这样,信令采集设备所采集到的这部分HTTP2信令就无法被成功解析。
可见,相关技术中,HPACK动态表的获取依赖于信令采集过程,没有完整的信令采集过程可能就无法得到完整的HPACK动态表,所以,为了保证向信令解析设备提供完整的HPACK动态表,限制了信令采集设备只能在两个通信网元间TCP链接建立之初就开始HTTP2信令采集,这严重影响了信令采集的灵活性与信令解析的成功率。为了解决上述问题,本实施例提供了一种HPACK动态表获取方法,该方法需要通信网元与表管理设备相互配合实现,下面结合图3示出的交互流程图对该HPACK动态表获取方法进行阐述。
S302:通信网元在与对端通信网元建立的通信链接上建立HTTP2连接后,与对端通信网元在通信链接上进行HTTP2流的传输。
在本实施例中,通信网元以及与该通信网元进行通信的对端通信网元均可以是核心网中的网元。例如,通信网元以及与该通信网元进行通信的对端通信网元可以是5GC网络中的网元。
通信网元与对端通信网元在开始HTTP2流传输之前,需要先在彼此之前建立起通信链接。在本实施例的一些示例当中,通信网元与对端通信网元之间建立的通信连链接可以为TCP链接,本实施例中并不限定通信链接只能是TCP链接,例如,在其他一些示例当中,也可以是TCP链接以外的其他类型的链接。
建立好通信链接之后,通信网元与对端通信网元再建立HTTP2连接,以便后续可以基于HTTP2协议进行HTTP2流的传输。HTTP2流可以是自本端通信网元传输至对端通信网元,也可以自对端通信网元传输至本端通信网元。在通常情况下,一个通信网元与对端通信网元建立通信链接以及HTTP2连接后,通信链接上的HTTP2流是一部分由本端通信网元传输至对端通信网元,另一部分是由对端通信网元传输至本端通信网元。
S304:通信网元向表管理设备发送动态表更新信息。
本实施例中通信网元除了与对端通信网元间需要建立通信链接进行通信外,还会与表管理设备进行通信,表管理设备可以设置为对通信网元间进行HTTP2通信所使用的HPACK动态表进行管理。在一些示例当中,一个表管理设备可以设置为对多个通信网元间的HPACK动态表进行存储,例如,表管理设备可以是一个动态表存储服务器,其设置为对核心网中多个网元两两间进行HTTP2通信所使用的HPACK动态表进行存储维护,以便向其他需要HPACK动态表的设备提供对应的HPACK动态表,例如,向信令解析设备提供该信令解析设备所需要的HPACK动态表。
通信网元在与对端通信网元进行HTTP2流的传输之后,可以向表管理设备发送动态表更新信息。动态表更新信息是用于让表管理设备获取通信链接对应的HPACK动态表的信息。一个通信链接的HPACK动态表中包括当前在通信链接上启用的多个动态映射关系,即该通信链接上传输的每个HTTP2流的HTTP头部信息与索引间的对应关系。同时,在HPACK动态表中还应该包括指示启用对应动态映射关系的HTTP2流的信息——流标识。因此,通信网元与对端通信网元在进行HTTP2流的传输过程中,如果在HTTP2流a上启用了新的动态映射关系x,这里将该HTTP2流a称为动态映射关系x的启用HTTP2流,通信网元需要将该事项通过动态表更新信息通知表管理设备。所以,在动态表更新信息中通常包括对应通信链接上已传输HTTP2流的动态映射关系以及每个动态映射关系对应的启用HTTP2流的流标识。在动态表更新信息中携带启用HTTP2流是因为:通信网元与对端通信网元在通信的过程中可能会对之前已经启用的动态映射关系进行修改,例如,在HTTP2流h之前,索引“77”对应的HTTP头部信息为“xxxy”,但在HTTP2流h中,索引“77”对应的HTTP头部信息被修改为“xxyy”。对于信令解析过程而言,如果采集的信令是HTTP2流h之前的信令,则应该继续按照之前的动态映射关系进行解析,而HTTP2流h对应的HTTP信令,以及之后的信令则需要按照后一种动态映射关系进行解析。故为了保证信令解析设备能够知晓对于一时刻采集的信令应当按照何种动态映射关系进行解析,就需要在动态表更新信息中携带动态映射关系对应启用HTTP2流的流标识,以便表管理设备在HPACK动态表中进行记录。因为表管理设备通 常需要对不只一个通信链接对应的HPACK动态表进行管理,因此,为了让表管理设备接收到通信网元所发送的动态表更新信息之后能够知晓该信息中携带动态映射关系是对应于哪一个通信链接的,通信网元可以在动态表更新信息中携带可以指示对应通信链接的信息,链接标识。在本实施例的一些示例当中,链接标识可以为网际互连协议(Internet Protocol,IP)地址、端口号、链路标识等几种中的至少一个。
在本实施例的一些示例当中,通信网元可以在每一个HTTP2流的传输结束后都向表管理设备发送动态表更新信息。通信网元与对端通信网元并不会在每一个HTTP2流中都启用新的动态映射关系,在部分HTTP2流中还需沿用之前已经启用的动态映射关系,所以,只有在一些情境下,通信网元与对端通信网元可能通过该HTTP2流启用了新的动态映射关系,在这种情况下,该HTTP2流所对应的HTTP2信令当中就直接包含该动态映射关系。因此通信网元可以直接基于该HTTP2信令中携带的动态映射关系向表管理设备发送动态表更新信息。但在另一些情境下,通信网元与对端通信网元最近传输的一个HTTP2流还是再使用之前启用的动态映射关系,在这种情况下通信网元可以根据该HTTP2流所对应的HTTP2信令中的索引,查询确定出该HTTP2流的动态映射关系,然后基于该动态映射关系向表管理设备发送动态信息。
在本实施例的另一些示例当中,通信网元可以仅在自己与对端通信网元在通信链接上启用了新的动态映射关系后才向表管理设备发送动态表更新信息,换言之,如果当前通信网元与对端通信网元传输的HTTP2流依旧在沿用之前的动态映射关系,则在该HTTP2流传输后,通信网元并不需要向表管理设备发送动态表更新信息。故,在本实施例的一些示例当中,在通信网元向表管理设备发送动态表更新信息之前,会先确定当前最近传输的一个HTTP2流(即最近HTTP2流)中是否启用了新的动态映射关系,只有在确定为当前最近传输的一个HTTP2流中启用了新的动态映射关系的情况下才会向生成动态表更新信息并进行发送。通信网元可以根据最近HTTP2流的HTTP头部信息与该通信链接上其他已传输HTTP2流的HTTP头部信息是否相同来判断,如果最近HTTP2流的HTTP头部信息与该通信链接上其他已传输HTTP2流的HTTP头部信息相同,则说明最近HTTP2流中并未启用新的动态映射关系,如果最近HTTP2流的HTTP头部信息与该通信链接上其他已传输HTTP2流的HTTP头部信息不相同,则说明最近HTTP2流中启用了新的动态映射关系。在本实施例的另一些示例当中,通信网元可以确定最近HTTP2流的头部中是否携带了完整的头部信息和索引,如果最近HTTP2流的头部中携带了完整的头部信息和索引,则说明该最近HTTP2流启用了新的动态映射关系;如果最近HTTP2流的头部仅携带了索引,则可以确定最近HTTP2流并未启用新的动态映射关系。
在上述示例当中,阐述了通信网元向表管理设备发送动态表更新信息的时机,在下面的示例当中将对动态表更新信息中携带的动态映射关系进行说明:
在一些示例当中,通信网元每次向表管理设备发送动态表更新信息的时候,都会在动态表更新信息中携带对应通信链接上所有已传输HTTP2流的动态映射关系。在动态表更新信息中携带通信链接上所有已传输HTTP2流的动态映射关系,并不意味着动态表更新信息中动态映射关系的数目与通信链接上所有已传输HTTP2流的数目相同,因为一个动态映射关系可能会同时对应不只一个HTTP2流。在这种动态表更新信息发送方案中,表管理设备接收到通信网元发送的动态表更新信息并从中提取出动态映射关系后就直接可以得到通信链接当前对应的HPACK动态表,不需要关注通信网元之前发送的动态表更新信息的内容。
在本实施例的另外一些示例当中,通信网元在向表管理设备发送动态表更新信息的时候,可以仅在动态表更新信息中携带最近HTTP2流的动态映射关系,即该通信网元与对端通信网元间最近传输的一个HTTP2流的动态映射关系。在这种情境下,当表管理设备接收到通信网元发送的动态表更新信息后,需要结合该动态表更新信息中的动态映射关系与通信网元之前所发送的动态映射关系才能获取到通信链接当前对应的HPACK动态表。
S306:表管理设备根据动态表更新信息中的动态映射关系获取对应通信链接当前的HPACK动态表。
表管理设备接收到通信网元发送的动态表更新信息后,可以从动态表更新信息中提取出链路标识与动态映射关系。基于提取出的链路标识,表管理设备可以确定动态表更新信息中的动态映射关系是针对哪条通信链接发送的,进而表管理设备可以以通信链接为单位对动态映射关系进行管理,基于接收到的动态映射关系获取到对应通信连接当前的HPACK动态表。
根据本申请实施例提供的动态表获取方法,一个通信网元在与对端通信网元建立通信链接并在该通信链接上建立HTTP2连接后,与对端通信网元在通信链接上进行HTTP2流的传输。开始HTTP2流的传输后,该通信网元可以向表管理设备发送包含链路标识、动态映射关系以及流标识的动态表更新信息,链路标识可以向表管理设备指示对应的通信链接,而动态映射关系可以向表管理设备指示该通信链接上已传输HTTP2流的HTTP头部信息与索引间的对应关系,流标识则可以指示启用对应动态映射关系的HTTP2流,从而使得表管理设备可以获取到链路标识所对应通信链接当前的HPACK动态表。这样,表管理设备可以根据通信链接中通信网元发送的动态表更新信息获取到信令解析过程所需要的HPACK动态表,将HPACK动态表的获取过程与信令采集过程“解耦”,使 得HPACK动态表的获取不必再依赖信令采集设备的信令采集过程。如此,就不必要求信令采集设备从通信链接建立之初就开始进行HTTP2信令采集,HTTP2信令采集的启动可以根据实际需求灵活确定,按照本申请实施例所提供的方法,无论信令采集设备从什么时刻开始对对应通信链接上的HTTP2信令进行采集,都不会影响HTTP2信令的正常解析,故本申请实施例所提供的方法,提升了信令采集设备进行信令采集的灵活性。
如果通信网元向表管理设备发送的动态表更新信息中仅携带对应通信链接上启用的新的动态映射关系,则表管理设备可以参照图4所示的流程图获取对应通信链接的HPACK动态表。
S402:表管理设备根据链接标识查找本端维护的通信链接的历史HPACK动态表。
表管理设备可以根据从动态表更新信息中提取的链接标识在本端维护的多个HPACK动态表中进行查询,找到对应的HPACK动态表,该HPACK动态表就是表管理设备之前针对对应通信链接维护的历史HPACK动态表。表1中示出了表管理设备针对通信链接L1维护的历史HPACK动态表。
表1
Figure PCTCN2021079214-appb-000001
S404:表管理设备将动态表更新信息中的动态映射关系添加到历史HPACK动态表中。
找到对应的历史HPACK动态表后,表管理设备可以将接收到的动态表更新信息中的动态映射关系添加到历史HPACK动态表中,并记录启用该动态映射关系的HTTP2流的流标识。假定动态表更新信息中携带的动态映射关系为“80-yxxy”,则表管理设备查找到本端维护的历史HPACK动态表,即上述表1之后,将会对表1进行修改从而得到新的HPACK动态表,请参见如下表2。
表2
Figure PCTCN2021079214-appb-000002
如果通信网元向表管理设备发送的动态表更新信息中携带的是通信链接上已启用的全部动态映射关系,则通信网元可以直接向表管理设备发送该通信链接当前的HPACK动态表,请参见图5示出的表管理设备获取HPACK动态表的流程图。
S502:表管理设备根据链接标识查找本端维护的通信链接的历史HPACK动态表。
该过程与图4中S402的流程基本一致,这里不再赘述。
S504:表管理设备采用动态表更新信息中的HPACK动态表代替历史HPACK动态表。
找到对应的历史HPACK动态表后,表管理设备可以删除该历史HPACK动态表,同时保存动态表更新信息中携带的HPACK动态表,也即采用动态表更新信息中的HPACK动态表替代、覆盖历史HPACK动态表。
如果通信网元是在每次进行HTTP2流的传输之后,无论是否有启用新的动态映射关系,都向表管理设备发送动态表更新信息,则,在本实施例的一些示例当中,表管理设备接收到通信网元的动态表更新信息后,会先判断动态表更新信息中携带的动态映射关系在本端针对对应通信链接维护的历史HPACK动态表中是否存在,如果动态表更新信息中携带的动态映射关系在本端针对对应通信链接维护的历史HPACK动态表中存在,则不做任何操作,直接可以丢弃该动态表更新信息。如果通信网元是直接向表管理设备发送通信链接当前的HPACK动态表,则表管理设备也可以不进行判断,每次都直接采用动态表更新信息中的HPACK动态表替代对应的历史HPACK动态表。
在本实施例的一些示例当中,表管理设备可以是动态表存储服务器,其通过与通信网元的交互获取到通信链接的HPACK动态表,在信令解析设备需要对 该通信链接上采集到的HTTP2信令进行解析的时候,将本端针对该通信链接维护的HPACK动态表提供给信令解析设备。这样,信令解析设备在信令采集的时候,就可以仅采集那些有解析必要的HTTP2信令,不必再受获取HPACK动态表的限制。在本实施例的另外一些示例当中,表管理设备可以直接是信令解析设备,这样,信令解析设备可以实时维护多个通信链接当前完整的HPACK动态表,当信令采集设备采集到新的HTTP2信令后,可以直接从本端提取出对应的HPACK动态表对这些HTTP2信令进行解析。
上述信令采集设备与信令解析设备可以是两个分别具有单独物理实体的设备,也可以是集成在一个物理实体设备上的两个逻辑设备。
本申请实施例提供的HPACK动态表获取方法,解绑了信令采集过程与HPACK动态表获取过程,采用独立于信令采集过程的途径获取HPACK动态表,从而使得信令采集过程更灵活自由,保证信令采集设备在任何时刻启动HTTP2信令采集得到的HTTP2信令都可以成功被解析,从而为网络维护与网络优化提供基础。
实施例二:
本实施例中将结合示例继续对该HPACK动态表获取方法进行阐述,请参见图6示出的一种HPACK动态表获取方法的流程图。
S602:通信网元与对端通信网元建立TCP链接。
本实施例中以通信网元与对端通信网元间的通信链接为TCP链接进行示例性说明,但本实施例中并不限定通信链接只能是TCP链接,例如,在其他一些示例当中,也可以是TCP链接以外的其他类型的链接。
在一些情景当中,当通信网元与对端通信网元间的TCP链接建立完成之后,信令采集设备可以立即开始进行信令采集,如,信令采集设备对该TCP链接进行监测,当上面有HTTP2信令传输的时候,就可以进行信令采集。不过,因为本实施例中并不需要通过HTTP2信令采集来获取到TCP链接的HPACK动态表,所以,本实施例中开始信令采集的时刻可以是TCP链接建立完成的时刻,也可以是后续过程中的任意一个时刻。
S604:通信网元与对端通信网元建立HTTP2连接。
S606:通信网元与对端通信网元传输HTTP2流a。
通信网元可以是HTTP2流a的发送端也可以是HTTP2流a的接收端。
S608:通信网元向表管理设备发送包含链接标识与HTTP2流a的动态映射 关系的动态表更新信息。
在本实施例中,假定HTTP2流a中启用了一个动态映射关系,因此,通信网元在该HTTP2流a传输之后,可以通过动态表更新信息将该动态映射关系以及该动态映射关系对应的启用HTTP2流的流标识告知给表管理设备。在本实施例中,通信网元向表管理设备发送动态表更新信息的时候,仅在动态表更新信息中携带新增的动态映射关系以及流标识,对于之前已经告知给表管理设备的其他动态映射关系,则不再重复发送。
S610:表管理设备根据动态表更新信息获取TCP链接当前的HPACK动态表。
表管理设备接收到动态表更新信息之后,可以根据其中的链接标识确定该动态表更新信息是用于维护哪一个HPACK动态表的。由于HTTP2流a是通信网元与对端通信网元间传输的第一个HTTP2流,因此,在此之前,通信网元并未向表管理设备发送过动态表更新信息,表管理设备之前也并未维护该TCP链接对应的HPACK动态表。所以,本实施例中,表管理设备根据链接标识可以确定需要新增一个HPACK动态表,故,表管理设备创建一个HPACK动态表,并在该HPACK动态表中记录下动态表更新信息中的动态映射关系以及该动态映射关系对应的启用HTTP2流的流标识。
S612:通信网元与对端通信网元传输HTTP2流b。
考虑到如果通信网元在每个HTTP2流的传输之后,不考虑是否有启用新动态映射关系,都无差别地向表管理设备发送动态表更新信息,这不仅会增加通信网元本身的负担,而且也会增加表管理设备侧的负担,因为表管理设备在接收到动态表更新信息之后,可能需要对其中的动态映射关系是否已经在历史HPACK动态表中存在进行判断。同时,这种每个HTTP2流传输后都发送动态表更新信息的方案也会造成通信资源的浪费。为了规避这些缺陷,本实施例中通信网元仅在与对端通信网元之间启用了新的动态映射关系之后才向表管理设备发送动态表更新信息。
本实施例中,假定通信网元与对端通信网元间传输的HTTP2流b并未启用新的动态映射关系,而是沿用了HTTP2流a的动态映射关系,或者是使用了HPACK静态表中的映射关系,则在HTTP2流b的传输之后,通信网元并不会向表管理设备发送动态表更新信息。
假定信令采集设备在HTTP2流b的传输之后开始针对通信网元与对端通信网元间的TCP链接进行HTTP2信令采集。
S614:通信网元与对端通信网元传输HTTP2流c。
S616:通信网元向表管理设备发送包含链接标识与HTTP2流c的动态映射关系的动态表更新信息。
假定通信网元与对端通信网元在HTTP2流c中启用了另外一个动态映射关系,则在HTTP2流c的传输完成后,通信网元也会向表管理设备发送动态表更新信息,在该动态表更新信息中同样携带有链路标识,和HTTP2流a之后所发送的动态表更新信息不同的是,在该动态表更新信息中携带的动态映射关系是在HTTP2流c中启用的动态映射关系以及HTTP2流c的流标识。
S618:表管理设备根据动态表更新信息获取TCP链接当前的HPACK动态表。
表管理设备接收到动态表更新信息之后,可以根据其中的链接标识确定该动态表更新信息是用于维护哪一个HPACK动态表的,然后将动态表更新信息,并在该HPACK动态表中记录下动态表更新信息中的动态映射关系以及该动态映射关系对应的启用HTTP2流的流标识。
S620:通信网元与对端通信网元结束HTTP2连接。
在HTTP2流c之后,通信网元与对端通信网元还可以继续传输其他HTTP2流,并且按照前述介绍向表管理设备反馈动态表更新信息,直至通信网元与对端通信网元结束HTTP2连接为止。
虽然本实施例中信令采集设备是在HTTP2流b的传输之后才开始HTTP2信令采集,此时HTTP2流a与HTTP2流b已经传输结束,所以信令采集设备必然无法再采集到这两个HTTP2流对应的HTTP2信令,但这并不会影响到信令解析设备对信令采集设备所采集到的多个HTTP2信令的解析。
本实施例中提供的HPACK动态表获取方法,通信网元仅在自己与对端通信网元间启用新的动态映射关系之后,才会向表管理设备发送动态表更新信息,以供表管理设备可以根据动态表更新信息维护对应TCP链接的HPACK动态表,当该通信网元与对端通信网元间没有启用新的动态映射关系的情况下,通信网元不会向表管理设备发送动态表更新信息。所以,这种HPACK动态表获取方法在提升信令采集过程灵活性的同时,还降低了通信网元与表管理设备的处理负担,避免了通信资源的浪费。
实施例三:
请参见图7示出的一种HPACK动态表获取方法的流程图:
S702:通信网元与对端通信网元建立TCP链接。
当通信网元与对端通信网元间的TCP链接建立完成之后,信令采集设备就立即开始进行信令采集。
S704:通信网元与对端通信网元建立HTTP2连接。
S706:通信网元与对端通信网元传输HTTP2流a。
通信网元可以是HTTP2流a的发送端也可以是HTTP2流a的接收端。
S708:通信网元向表管理设备发送包含链接标识与当前所有已传输HTTP2流的动态映射关系的动态表更新信息。
在本实施例中,假定HTTP2流a中启用了一个动态映射关系,因此,通信网元在该HTTP2流a传输之后,可以通过动态表更新信息将该动态映射关系以及该动态映射关系对应的启用HTTP2流的流标识告知给表管理设备。和实施例二中有所不同,在本实施例中,通信网元每次向表管理设备发送动态表更新信息的时候,携带的都是当前所有已传输HTTP2的动态映射关系以及对应的流标识。
S710:表管理设备根据动态表更新信息获取TCP链接当前的HPACK动态表。
表管理设备接收到动态表更新信息之后,可以根据其中的链接标识确定该动态表更新信息是用于维护哪一个HPACK动态表的。由于HTTP2流a是通信网元与对端通信网元间传输的第一个HTTP2流,因此,在此之前,通信网元并未向表管理设备发送过动态表更新信息,表管理设备之前也并未维护该TCP链接对应的HPACK动态表。所以,本实施例中,表管理设备可以直接将动态表更新信息中携带的HPACK动态表与链接标识进行关联存储。
S712:通信网元与对端通信网元传输HTTP2流b。
本实施例中通信网元也仅在与对端通信网元之间启用了新的动态映射关系之后才向表管理设备发送动态表更新信息。这里假定通信网元与对端通信网元间传输的HTTP2流b并未启用新的动态映射关系,而是沿用了HTTP2流a的动态映射关系,或者是使用了HPACK静态表中的映射关系,则在HTTP2流b的传输之后,通信网元并不会向表管理设备发送动态表更新信息。
S714:通信网元与对端通信网元传输HTTP2流c。
S716:通信网元向表管理设备发送包含链接标识与当前所有已传输HTTP2流的动态映射关系的动态表更新信息。
假定通信网元与对端通信网元在HTTP2流c中启用了另外一个动态映射关系,则在HTTP2流c的传输完成后,通信网元也会向表管理设备发送动态表更 新信息,在该动态表更新信息中同样携带有链路标识,以及当前所有已传输HTTP2流的动态映射关系。本实施例中,通信网元直接可以在动态表更新信息中携带TCP链接当前的HPACK动态表。
S718:表管理设备根据动态表更新信息获取TCP链接当前的HPACK动态表。
表管理设备接收到动态表更新信息之后,可以根据其中的链接标识确定该动态表更新信息是用于维护哪一个HPACK动态表的然后将动态表更新信息,查找到之后,表管理设备直接采用动态表更新信息中携带的HPACK动态表替换其原本维护该TCP链接的历史HPACK动态表。
S720:通信网元与对端通信网元结束HTTP2连接。
在HTTP2流c之后,通信网元与对端通信网元还可以继续传输其他HTTP2流,并且按照前述介绍向表管理设备反馈动态表更新信息,直至通信网元与对端通信网元结束HTTP2连接为止。
虽然本实施例中信令采集设备是在TCP链接建立后就开始HTTP2信令采集,但实际上,在本实施例的其他情景中,信令采集设备进行信令采集的时刻也可以往后移,这并不会影响到信令解析设备的信令解析过程。
本实施例中提供的HPACK动态表获取方法,将HPACK动态表的获取过程与信令采集过程“解耦”,使得HPACK动态表的获取不必再依赖信令采集设备的信令采集过程,提升了信令采集过程灵活性,同时,还降低了通信网元与表管理设备的处理负担,避免了通信资源的浪费。
实施例四:
本实施例提供一种存储介质,该存储介质中可以存储有一个或多个可供一个或多个处理器读取、编译并执行的计算机程序,在本实施例中,该存储介质可以存储有第一HPACK动态表获取程序,第二HPACK动态表获取程序中的至少一个。其中,第一HPACK动态表获取程序可供一个或多个处理器执行实现前述任意一个实施例介绍的任意一种HPACK动态表获取方法中通信网元侧的HPACK动态表获取方法流程。而第二HPACK动态表获取程序可供一个或多个处理器执行实现前述任意一个实施例介绍的任意一种HPACK动态表获取方法中表管理设备侧的HPACK动态表获取方法流程。
本实施例中还提供一种通信设备,如图8所示:通信设备8包括处理器81、存储器82以及设置为连接处理器81与存储器82的通信总线83。在一些示例当中,该通信设备为通信网元,在这种情况下,通信设备8的存储器82可以为前 述存储有第一HPACK动态表获取程序的存储介质,处理器81可以读取第一HPACK动态表获取程序,进行编译并执行实现前述任意一个实施例中介绍的通信网元侧的HPACK动态表获取方法的流程:处理器81在通信设备8与对端通信网元建立的通信链接上建立HTTP2连接后,与对端通信网元在通信链接上进行HTTP2流的传输。随后,处理器81向表管理设备发送动态表更新信息,动态表更新信息用于表管理设备获取通信链接当前的HPACK动态表,动态表更新信息中包括通信链接的链接标识、通信链接上已传输HTTP2流的动态映射关系以及启用动态映射关系的HTTP2流的流标识,动态映射关系为HTTP2流的HTTP头部信息与索引间的对应关系。
在本实施例的一些示例当中,通信链接包括TCP链接。
处理器81向表管理设备发送动态表更新信息之前,还可以先确定最近HTTP2流的HTTP头部信息与通信链接上其他已传输HTTP2流的HTTP头部信息不同,最近HTTP2流为与对端通信网元间最近传输的一个HTTP2流。
在本实施例的一种示例当中,处理器81发送的动态表更新信息中的动态映射关系包括:通信链接上所有已传输HTTP2流的动态映射关系。在本实施例的另外一种示例当中,处理器81发送的动态表更新信息中的动态映射关系包括:最近HTTP2流的动态映射关系,其中,最近HTTP2流为与对端通信网元间最近传输的一个HTTP2流。
在一些示例当中,该通信设备8为表管理设备,在这种情况下,通信设备8的存储器82可以为前述存储有第二HPACK动态表获取程序的存储介质,处理器81可以读取第二HPACK动态表获取程序,进行编译并执行实现前述任意一个实施例中介绍的表管理设备侧的HPACK动态表获取方法的流程:处理器81接收通信网元发送的动态表更新信息,动态表更新信息中包括链接标识、动态映射关系以及启用动态映射关系的HTTP2流的流标识,动态映射关系为链接标识对应的通信链接上已传输HTTP2流的HTTP头部信息与索引间的对应关系。随后,处理器81根据动态映射关系获取通信链接当前的HPACK动态表。
在本实施例的一种示例当中,通信网元发送的动态映射关系为最近HTTP2流的动态映射关系,最近HTTP2流为通信网元最近传输的一个HTTP2流;处理器81根据动态映射关系获取通信链接当前的HPACK动态表时,可以先根据链接标识查找本端维护的通信链接的历史HPACK动态表,然后处理器81将动态表更新信息中的动态映射关系添加到历史HPACK动态表中。
在本实施例的一种示例当中,通信网元发送的动态映射关系为包含通信链接上当前所有已传输HTTP2流的动态映射关系的HPACK动态表;处理器81根据动态映射关系获取通信链接当前的HPACK动态表的时候,可以先根据链接 标识查找本端维护的通信链接的历史HPACK动态表,然后处理器81采用动态表更新信息中的HPACK动态表代替历史HPACK动态表。
本实施例中还提供一种核心网系统,请参见图9所示。
核心网系统9包括信令采集设备91、信令解析设备92、表管理设备93与至少两个通信网元94,表管理设备93分别与信令解析设备92、通信网元94通信连接,信令解析设备92与信令采集设备91通信连接。
至少一个通信网元94为图8中处理器执行第一HPACK动态表获取程序的通信设备。
表管理设备93为图8中处理器执行第二HPACK动态表获取程序的通信设备。
信令采集设备91设置为在通信网元94与对端通信网元传输HTTP2流的过程中针对通信网元94与对端通信网元间的通信链接进行HTTP2信令采集,并将采集到的HTTP2信令传输给信令解析设备92。信令采集设备91在进行信令采集的时候,可以与通信网元94通信连接,也可以与对端通信网元通信连接。
信令解析设备92设置为从表管理设备93处获取通信链接对应的HPACK动态表,并根据HPACK动态表中的动态映射关系对信令采集设备91所采集到的HTTP2信令进行解析。
上述信令解析设备92与信令采集设备91可以集成在同一物理实体设备上,或者,信令解析设备92与信令采集设备91也可以分离设置。另外,信令解析设备92与表管理设备93同样可以集成在同一物理实体设备上,或者分离设置。
表管理设备93与通信网元94实现HPACK动态表获取方法的细节,请参见实施例一到实施例三的介绍,这里不再赘述。
根据本实施例中提供的通信设备、核心网系统以及存储介质,表管理设备可以根据通信链接中通信网元发送的动态表更新信息获取到信令解析过程所需要的HPACK动态表,将HPACK动态表的获取过程与信令采集过程“解耦”,使得HPACK动态表的获取不必再依赖信令采集设备的信令采集过程,提升了信令采集设备进行信令采集的灵活性。
上文中所公开方法中的全部或一些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的计算机程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个 功能,或者一个功能或步骤可以由多个物理组件合作执行。一些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。
通信介质通常包含计算机可读指令、数据结构、计算机程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本申请不限制于任何特定的硬件和软件结合。

Claims (10)

  1. 一种下一代超文本传输协议头部压缩HPACK动态表获取方法,包括:
    在与对端通信网元建立的通信链接上建立下一代超文本传输协议HTTP2连接后,与所述对端通信网元在所述通信链接上进行HTTP2流的传输;
    向表管理设备发送动态表更新信息,其中,所述动态表更新信息用于所述表管理设备获取所述通信链接当前的HPACK动态表,所述动态表更新信息中包括所述通信链接的链接标识、所述通信链接上已传输HTTP2流的动态映射关系以及启用所述动态映射关系的HTTP2流的流标识,所述动态映射关系为HTTP2流的HTTP头部信息与索引间的对应关系。
  2. 如权利要求1所述的方法,其中,所述通信链接包括传输控制协议TCP链接。
  3. 如权利要求1或2所述的方法,在所述向表管理设备发送动态表更新信息之前,还包括:
    确定最近HTTP2流的HTTP头部信息与所述通信链接上除所述最近HTTP2流外已传输HTTP2流的HTTP头部信息不同,其中,所述最近HTTP2流为与所述对端通信网元间最近传输的一个HTTP2流。
  4. 如权利要求1或2所述的方法,其中,所述动态表更新信息中的动态映射关系包括:所述通信链接上所有已传输HTTP2流的动态映射关系;或,最近HTTP2流的动态映射关系,所述最近HTTP2流为与所述对端通信网元间最近传输的一个HTTP2流。
  5. 一种下一代超文本传输协议头部压缩HPACK动态表获取方法,包括:
    接收通信网元发送的动态表更新信息,其中,所述动态表更新信息中包括链接标识、动态映射关系以及启用所述动态映射关系的下一代超文本传输协议HTTP2流的流标识,所述动态映射关系为所述链接标识对应的通信链接上已传输HTTP2流的HTTP头部信息与索引间的对应关系;
    根据所述动态映射关系获取所述通信链接当前的HPACK动态表。
  6. 如权利要求5所述的方法,其中,所述通信网元发送的动态映射关系为最近HTTP2流的动态映射关系,所述最近HTTP2流为所述通信网元最近传输的一个HTTP2流;
    所述根据所述动态映射关系获取所述通信链接当前的HPACK动态表,包括:
    根据所述链接标识查找本端维护的所述通信链接的历史HPACK动态表;
    将所述动态表更新信息中的动态映射关系添加到所述历史HPACK动态表中。
  7. 如权利要求5所述的方法,其中,所述通信网元发送的动态映射关系为包含所述通信链接上当前所有已传输HTTP2流的动态映射关系的HPACK动态表;
    所述根据所述动态映射关系获取所述通信链接当前的HPACK动态表包括:
    根据所述链接标识查找本端维护的所述通信链接的历史HPACK动态表;
    采用所述动态表更新信息中的HPACK动态表代替所述历史HPACK动态表。
  8. 一种通信设备,包括处理器、存储器及通信总线;
    所述通信总线设置为实现所述处理器和所述存储器之间的连接通信;
    所述处理器设置为执行所述存储器中存储的至少一个程序,以实现如权利要求1至4中任一项所述的下一代超文本传输协议头部压缩HPACK动态表获取方法;或,所述处理器设置为执行所述存储器中存储的至少一个程序,以实现如权利要求5至7中任一项所述的HPACK动态表获取方法。
  9. 一种核心网系统,包括信令采集设备、信令解析设备、表管理设备与至少两个通信网元,所述表管理设备与所述信令解析设备和通信网元通信连接,所述信令解析设备与所述信令采集设备通信连接;
    所述至少两个通信网元中的至少一个通信网元为权利要求8中处理器执行程序实现权利要求1至4中任一项所述的下一代超文本传输协议头部压缩HPACK动态表获取方法的通信设备;所述表管理设备为权利要求8中处理器执行程序实现权利要求5至7中任一项所述的HPACK动态表获取方法的通信设备;所述信令采集设备设置为在所述通信网元与对端通信网元传输下一代超文本传输协议HTTP2流的过程中针对所述通信网元与所述对端通信网元间的通信链接进行HTTP2信令采集,并将采集到的HTTP2信令传输给所述信令解析设备;所述信令解析设备设置为从所述表管理设备处获取所述通信链接对应的HPACK动态表,并根据所述HPACK动态表中的动态映射关系对所述信令采集设备所采集到的HTTP2信令进行解析。
  10. 一种存储介质,存储有第一下一代超文本传输协议头部压缩HPACK动态表获取程序与第二HPACK动态表获取程序中的至少一个,所述第一HPACK动态表获取程序可被至少一个处理器执行,以实现如权利要求1至4中任一项所述的HPACK动态表获取方法;所述第二HPACK动态表获取程序可被至少一个处理器执行,以实现如权利要求5至7中任一项所述的HPACK动态表获取方法。
PCT/CN2021/079214 2020-05-22 2021-03-05 Hpack动态表获取方法、通信设备、核心网系统及存储介质 WO2021232887A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010441676.XA CN113709087A (zh) 2020-05-22 2020-05-22 动态表获取方法、通信设备、核心网系统及存储介质
CN202010441676.X 2020-05-22

Publications (1)

Publication Number Publication Date
WO2021232887A1 true WO2021232887A1 (zh) 2021-11-25

Family

ID=78646261

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079214 WO2021232887A1 (zh) 2020-05-22 2021-03-05 Hpack动态表获取方法、通信设备、核心网系统及存储介质

Country Status (2)

Country Link
CN (1) CN113709087A (zh)
WO (1) WO2021232887A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970559A (zh) * 2013-02-05 2014-08-06 北京壹人壹本信息科技有限公司 一种基于Android系统的设备加载方法及装置
WO2017054135A1 (zh) * 2015-09-29 2017-04-06 华为技术有限公司 一种帧传输方法、装置和网络系统
CN107071075A (zh) * 2016-11-16 2017-08-18 国家数字交换系统工程技术研究中心 网络地址动态跳变的装置及方法
CN108023804A (zh) * 2016-11-04 2018-05-11 华为技术有限公司 一种传输动态流的方法及路由设备
CN108365967A (zh) * 2018-01-02 2018-08-03 珠海兴业新材料科技有限公司 动态配置通讯参数的方法、系统、终端及计算机可读存储介质
US20180359297A1 (en) * 2015-12-04 2018-12-13 Telefonaktiebolaget Lm Ericsson (Publ) Technique for adaptive streaming of temporally scaling media segment levels
US20200128032A1 (en) * 2018-10-17 2020-04-23 Forcepoint Llc Inspection of network traffic in a security device at object level

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970559A (zh) * 2013-02-05 2014-08-06 北京壹人壹本信息科技有限公司 一种基于Android系统的设备加载方法及装置
WO2017054135A1 (zh) * 2015-09-29 2017-04-06 华为技术有限公司 一种帧传输方法、装置和网络系统
US20180359297A1 (en) * 2015-12-04 2018-12-13 Telefonaktiebolaget Lm Ericsson (Publ) Technique for adaptive streaming of temporally scaling media segment levels
CN108023804A (zh) * 2016-11-04 2018-05-11 华为技术有限公司 一种传输动态流的方法及路由设备
CN107071075A (zh) * 2016-11-16 2017-08-18 国家数字交换系统工程技术研究中心 网络地址动态跳变的装置及方法
CN108365967A (zh) * 2018-01-02 2018-08-03 珠海兴业新材料科技有限公司 动态配置通讯参数的方法、系统、终端及计算机可读存储介质
US20200128032A1 (en) * 2018-10-17 2020-04-23 Forcepoint Llc Inspection of network traffic in a security device at object level

Also Published As

Publication number Publication date
CN113709087A (zh) 2021-11-26

Similar Documents

Publication Publication Date Title
JP5792850B2 (ja) ネットワーク上でのファイルフォルダ送信
US6961754B2 (en) Interactive access, manipulation, sharing and exchange of multimedia data
US6888807B2 (en) Applying session services based on packet flows
CN109525661B (zh) 数据传输方法及装置
US9092319B2 (en) State memory management, wherein state memory is managed by dividing state memory into portions each portion assigned for storing state information associated with a specific message class
WO2014067311A1 (zh) 资源订阅方法及装置
EP1605664A1 (en) Method for synchronizing status information of an IMPS client
US20180278692A1 (en) Communication device, communication system, and communication method
US20110075652A1 (en) Relay device and method for continuing service
US11528303B2 (en) Method and system for responding to video call service
US20150127837A1 (en) Relay apparatus and data transfer method
CN109214855B (zh) 素材接收方法、装置及系统
CN113747373B (zh) 消息处理系统、装置和方法
CN113810349B (zh) 数据传输方法、装置、计算机设备和存储介质
WO2022063058A1 (zh) 基于netconf协议的传输方法、设备及存储介质
CN113986811B (zh) 一种高性能内核态网络数据包加速方法
WO2021232887A1 (zh) Hpack动态表获取方法、通信设备、核心网系统及存储介质
CN110971873B (zh) 一种实时监控方法、监控系统及存储介质
CN112559134B (zh) 一种分布式WebSocket集群构建方法、装置、系统及存储介质
CN109688204B (zh) 基于ndn网络的文件下载方法、节点、终端
US11086822B1 (en) Application-based compression
CN110708319A (zh) 服务请求的处理方法及装置
CN115102944B (zh) 终端升级方法、终端、服务器、电子设备及存储介质
CN114449028B (zh) 连接断开的处理方法及装置
CN116248631B (zh) 一种DoQ优先级设置方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21809380

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.04.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21809380

Country of ref document: EP

Kind code of ref document: A1