CN116668624A - Link detection method, device and equipment - Google Patents

Link detection method, device and equipment Download PDF

Info

Publication number
CN116668624A
CN116668624A CN202210157393.1A CN202210157393A CN116668624A CN 116668624 A CN116668624 A CN 116668624A CN 202210157393 A CN202210157393 A CN 202210157393A CN 116668624 A CN116668624 A CN 116668624A
Authority
CN
China
Prior art keywords
sip message
message
information
sip
received
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.)
Pending
Application number
CN202210157393.1A
Other languages
Chinese (zh)
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.)
Government And Enterprises Customer Branch Office Of China Mobile Communications Co ltd
China Mobile Communications Group Co Ltd
Original Assignee
Government And Enterprises Customer Branch Office Of China Mobile Communications Co ltd
China Mobile Communications Group 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 Government And Enterprises Customer Branch Office Of China Mobile Communications Co ltd, China Mobile Communications Group Co Ltd filed Critical Government And Enterprises Customer Branch Office Of China Mobile Communications Co ltd
Priority to CN202210157393.1A priority Critical patent/CN116668624A/en
Publication of CN116668624A publication Critical patent/CN116668624A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephonic Communication Services (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application provides a link detection method, a device and equipment, wherein the method comprises the following steps: the method comprises the steps that a first electronic device receives at least one Session Initiation Protocol (SIP) message sent by a second electronic device; obtaining detection information of an SIP message; detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information; and sending the detection result information to the second electronic equipment. Therefore, by the method, whether the SIP message is abnormal or not when being transmitted in the link between the first electronic equipment and the second electronic equipment can be detected, so that the related abnormal problems can be processed later, and the problem that the video conference cannot be initiated normally is avoided.

Description

Link detection method, device and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for detecting a link.
Background
With the rapid development of internet technology, traditional telephone networks have been gradually replaced, and users typically select a video conference mode to communicate. Video conferencing refers to a conference in which people located at two or more sites are talking face-to-face through a communication device and a network. Among these, the usual control protocol for video conferencing is the session initiation protocol (Session Initiation Protocol, SIP), which is part of the standard procedure established by the internet engineering task force (Internet Engineering Task Force, IETF) and developed to help provide advanced telephony services across the internet. The SIP protocol is used to initiate, modify and terminate sessions between one or more participants and thus plays an important role in conducting calls or video conferences. Currently, the SIP protocol is increasingly receiving attention from the industry, and SIP-based video conference systems are becoming more and more widely used.
In the prior art, the video conference system consists of four parts, namely a video conference terminal, a video conference server (Multipoint Control Unit, MCU), a network management system and a transmission network. The SIP message is a basic information unit for communication between the SIP terminal and the server. The SIP message includes call (INVITE), acknowledgement (ACK), inquiry (OPTIONS), end session (BYE), CANCEL (CANCEL), and REGISTER (REGISTER) types. For example, when a user uses a video conference as a calling party, firstly, the SIP terminal sends a SIP message related to a call request to a server, where the SIP message includes a message header and a message body. The message header contains the address of the main and called, the calling theme and the calling priority, the message body mainly includes the media control information described by the session description protocol (Session Description Protocol, SDP), the SIP terminal negotiates and establishes the media channel, the SDP can include the following media information: media type (audio, video, etc.), transport protocol (Real-time transport protocol (Real-time Transport Protocol, RTP), user datagram protocol (User Datagram Protocol, UDP), etc.), media format (h.264 digital video compression format, advanced audio coding (Advanced Audio Coding, AAC), etc.), transport address and port information, etc.
Due to the complexity and diversity of the internet, the SIP messages may be abnormal during the transmission process in the link, such as packet loss, incomplete SIP messages, and problems of devices through network address translation (Network Address Translation, NAT). For example, when the SIP terminal sends a SIP message to the server, if the server times out, the SIP message cannot be received, that is, the SIP message may have packet loss in the link transmission process; when the data packet of the SIP message is larger than the maximum transmission unit of the link, the data packet is decomposed into a plurality of small fragments so as to be transmitted on the link, namely the situation that the SIP message is fragmented exists, but the fragments of the SIP message can be lost in the link transmission process, so that the SIP message received by the server is incomplete; if there is a network address translation (Network Address Translation, NAT) device in the particular network to which the terminal is connected, the NAT device changes the port information in the message body of the SIP message when the SIP message sent by the terminal is transmitted through the NAT device in the particular network. When the SIP message is abnormal, normal initiation of the video conference is affected, so that a special technology is required to detect whether the SIP message is abnormal when transmitted in a link between the SIP terminal and the server.
Disclosure of Invention
In view of the above, the present application provides a method, an apparatus, and a device for detecting a link, so as to solve the problem that the normal initiation of a video conference is affected by the occurrence of an abnormality in a SIP message.
In a first aspect, an embodiment of the present application provides a link detection method, including:
the first electronic equipment receives at least one Session Initiation Protocol (SIP) message sent by the second electronic equipment;
obtaining detection information of an SIP message; the detection information of the SIP message is used for indicating the related information of at least one SIP message sent by the second electronic equipment;
detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information;
and sending the detection result information to the second electronic equipment.
Preferably, the detection information of the SIP message includes a sending number of the SIP message;
the detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information includes:
detecting whether the SIP message has abnormal packet loss according to the number of the received at least one SIP message and the sending number of the SIP message;
If the packet loss abnormality exists, determining the packet loss rate of the SIP messages according to the number of the received at least one SIP message and the sending number of the SIP messages;
and generating first detection result information according to the packet loss rate of the SIP message, wherein the first detection result information comprises the packet loss rate of the SIP message.
Preferably, the detection information of the SIP message includes a sending time period of the SIP message;
before receiving at least one SIP message sent by the second electronic device, the method further includes:
determining a preset time range for receiving the SIP message according to the sending time period of the SIP message;
the receiving at least one SIP message sent by the second electronic device includes:
and receiving at least one SIP message sent by the second electronic equipment within the preset time range.
Preferably, the detection information of the SIP message includes: checking information corresponding to each SIP message in the at least one SIP message; the check information comprises a message header of an SIP message;
the detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information includes:
For each received SIP message in the at least one SIP message, detecting whether the SIP message has a missing exception according to the received SIP message and a message header in the corresponding check information of the SIP message;
if the deletion abnormality exists, generating second detection result information corresponding to the SIP message according to the deletion abnormality of the SIP message, wherein the second detection result information carries information of the deletion abnormality corresponding to the SIP message.
Preferably, the method according to claim 4, wherein detecting whether the SIP message has a missing exception according to the received SIP message and a message header in the SIP message correspondence check information includes:
detecting whether the message header of the received SIP message is consistent with the message header of the SIP message corresponding to the verification information according to the message header of the received SIP message and the message header of the SIP message corresponding to the verification information;
if the message header of the received SIP message is inconsistent with the message header in the corresponding check information of the SIP message, determining that a missing abnormality exists, or
If the message header of the received SIP message is consistent with the message header in the corresponding check information of the SIP message, detecting whether the message body length of the received SIP message is consistent with the message body length of the SIP message recorded in the message header in the check information or not according to the received SIP message and the message header in the corresponding check information of the SIP message;
If the message body length of the received SIP message is inconsistent with the message body length of the SIP message recorded in the message header in the verification information, determining that the missing exception exists.
Preferably, the check information includes data information of a SIP message;
the detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information includes:
for each received SIP message in the at least one SIP message, acquiring data information in the received SIP message;
detecting whether the SIP message has conversion abnormality according to the received data information in the SIP message and the data information in the check information corresponding to the SIP message, wherein the conversion abnormality refers to that the SIP message received by the first electronic equipment is the converted SIP message after network address conversion NAT;
if the conversion abnormality exists, third detection result information corresponding to the SIP message is generated according to the conversion abnormality of the SIP message, wherein the third detection result information carries information of the conversion abnormality corresponding to the SIP message.
In a second aspect, an embodiment of the present application provides a link detection method, including:
the second electronic equipment receives a first detection request message sent by the third electronic equipment; the first detection request message carries identification information of the first electronic equipment;
sending at least one SIP message and detection information of the SIP message to the first electronic equipment;
receiving detection result information sent by first electronic equipment;
and sending the detection result information to third electronic equipment.
In a third aspect, an embodiment of the present application provides a link detection method, including:
the third electronic device sends a first detection request message to the second electronic device; the first detection request message carries identification information of the first electronic equipment;
and receiving detection result information sent by the second electronic equipment.
In a fourth aspect, an embodiment of the present application provides a link detection apparatus, including:
a receiving unit, configured to receive, by using a first electronic device, at least one session initiation protocol SIP packet sent by the second electronic device;
the acquisition unit is used for acquiring detection information of the SIP message; the detection information of the SIP message is used for indicating the related information of at least one SIP message sent by the second electronic equipment;
The processing unit is used for detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information;
and sending the detection result information to the second electronic equipment.
Preferably, the processing unit is specifically configured to detect whether a packet loss abnormality exists in the SIP packet according to the number of the at least one received SIP packet and the number of the SIP packets sent;
if the packet loss is abnormal, determining the packet loss rate of the SIP messages according to the number of the received at least one SIP message and the sending number of the SIP messages;
and generating first detection result information according to the packet loss rate of the SIP message, wherein the first detection result information comprises the packet loss rate of the SIP message.
Preferably, the receiving unit is specifically configured to determine a preset time range for receiving the SIP message according to a sending time period of the SIP message;
and receiving at least one SIP message sent by the second electronic equipment within the preset time range.
Preferably, the processing unit is further configured to detect, for each SIP message in the at least one received SIP message, whether the SIP message has a missing exception according to the received SIP message and a message header in the corresponding check information of the SIP message;
If the deletion abnormality exists, generating second detection result information corresponding to the SIP message according to the deletion abnormality of the SIP message, wherein the second detection result information carries information of the deletion abnormality corresponding to the SIP message.
Preferably, the processing unit is further configured to detect whether the received message header of the SIP message and the message header of the SIP message corresponding to the check information are consistent according to the received SIP message and the message header of the SIP message corresponding to the check information;
if the message header of the received SIP message is inconsistent with the message header in the corresponding check information of the SIP message, determining that the missing exception exists, or
If the message header of the received SIP message is consistent with the message header in the message header corresponding to the verification information of the SIP message, detecting whether the length of the received SIP message is consistent with the length of the SIP message recorded in the message header in the verification information according to the received SIP message and the message header in the message header corresponding to the verification information of the SIP message;
if the length of the received SIP message is inconsistent with the length of the SIP message recorded in the message header in the verification information, determining that the missing abnormality exists.
Preferably, the processing unit is further configured to obtain, for each SIP message in the received at least one SIP message, data information in the received SIP message;
detecting whether the SIP message has conversion abnormality according to the received data information in the SIP message and the data information in the check information corresponding to the SIP message, wherein the conversion abnormality refers to that the SIP message received by the first electronic equipment is the converted SIP message after network address conversion NAT;
if the conversion abnormality exists, third detection result information corresponding to the SIP message is generated according to the conversion abnormality of the SIP message, wherein the third detection result information carries information of the conversion abnormality corresponding to the SIP message.
In a fifth aspect, an embodiment of the present application provides an electronic device, including:
a processor and a memory storing a computer program which, when executed, causes the electronic device to perform the method of any of the first, second or third aspects above.
By adopting the scheme provided by the embodiment of the application, when the link is detected, the first electronic equipment receives at least one SIP message sent by the second electronic equipment, and the detection information of the SIP message is obtained. The detection information of the SIP message is used to indicate the related information of at least one SIP message sent by the second electronic device, for example, the information may be the sending number, the sending time period, and the like of the SIP message. And then detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information. For example, whether there is a packet loss abnormality may be detected according to the number of at least one received packet and the number of sent SIP packets in the detection information, or of course, whether there is another abnormality may be detected according to the received at least one SIP packet and the detection information of the SIP packet. After the detection result information is generated, the detection result information is sent to the second electronic device. Therefore, by the method, whether the SIP message is abnormal or not when being transmitted in the link between the first electronic equipment and the second electronic equipment can be detected, so that the related abnormal problems can be processed later, and the problem that the video conference cannot be initiated normally is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a link detection method according to an embodiment of the present application;
fig. 2 is a flow chart of another link detection method according to an embodiment of the present application;
fig. 3 is a flow chart of another link detection method according to an embodiment of the present application;
fig. 4 is a flow chart of another link detection method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a link detection device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another link detection device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another link detection device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For a better understanding of the technical solution of the present application, the following detailed description of the embodiments of the present application refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one way of describing an association of associated objects, meaning that there may be three relationships, e.g., a and/or b, which may represent: the first and second cases exist separately, and the first and second cases exist separately. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Before describing embodiments of the present application in detail, terms applied or likely to be applied to the embodiments of the present application will be explained first.
Session initiation protocol (Session initialization Protocol, SIP): is a multimedia communication protocol formulated by the internet engineering task force (Internet Engineering Task Force, IETF). It is a text-based application layer control protocol for creating, modifying and releasing sessions of one or more participants. SIP is a voice session control protocol derived from the internet, and has the characteristics of flexibility, easy implementation, convenient expansion, and the like.
SIP message: SIP messages are the basic information units of communication between a SIP client terminal and a server, and are text-based and therefore also referred to as SIP messages. The SIP protocol uses the design concept of the HTTP protocol (RFC 2068) to reference, and many message formats are the same. The SIP protocol supports the UDP transport protocol. SIP message messages fall into two categories: request messages and response messages. The request message refers to a SIP message that the client sends to the server in order to activate a specific operation, and includes a call (INVITE), an Acknowledgement (ACK), an enquiry called terminal (OPTIONS), a terminating session (BYE), a CANCEL current request (CANCEL), and a registration (REGISTER) message. A SIP message header field and a SIP message body field. The SIP message header is mainly used for indicating the basic information of the initiator and the receiver of the message, the number of hops and the like; the SIP message body is mainly used to describe the specific implementation of the session, and is described by session description protocol (Session Description Protocol, SDP).
Network address translation (Network Address Translation, NAT): is an access wide area network (Wide Area Network, WAN) technology, a conversion technology that converts private addresses into legitimate internetworking protocol (Internet Protocol, IP) addresses.
Packet loss (Packet loss): meaning that the data of one or more data packets cannot reach the destination over the network. Packet loss can cause jitter in streaming media technology, online gaming, and video conferencing, and can affect other online applications to some extent.
In the related art, due to complexity and diversity of the internet, an abnormality such as packet loss, incomplete SIP message, and a problem of going through a network address translation (Network Address Translation, NAT) device may occur in a process of transmitting a session initiation protocol (Session initialization Protocol, SIP) message in a link. For example, when the SIP terminal sends a SIP message to the server, if the server times out, the SIP message cannot be received, that is, the SIP message may have packet loss in the link transmission process; when the data packet of the SIP message is larger than the maximum transmission unit of the link, the data packet is decomposed into a plurality of small fragments so as to be transmitted on the link, namely the situation that the SIP message is fragmented exists, but the fragments of the SIP message can be lost in the link transmission process, so that the SIP message received by the server is incomplete; if there is a network address translation (Network Address Translation, NAT) device in the particular network to which the terminal is connected, the NAT device changes the port information in the message body of the SIP message when the SIP message sent by the terminal is transmitted through the NAT device in the particular network. When the SIP message is abnormal, normal initiation of the video conference is affected, so that a special technology is required to detect whether the SIP message is abnormal when transmitted in a link between the SIP terminal and the server.
In view of the above problems, the embodiment of the application provides a link detection method. In the method, when a link is detected, a first electronic device receives at least one SIP message sent by a second electronic device, and detection information of the SIP message is obtained. The detection information of the SIP message is used to indicate the related information of at least one SIP message sent by the second electronic device, for example, the information may be the sending number, the sending time period, and the like of the SIP message. And then detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information. For example, whether there is a packet loss abnormality may be detected according to the number of at least one received packet and the number of sent SIP packets in the detection information, or of course, whether there is another abnormality may be detected according to the received at least one SIP packet and the detection information of the SIP packet. After the detection result information is generated, the detection result information is sent to the second electronic device. Therefore, by the method, whether the SIP message is abnormal or not when being transmitted in the link between the first electronic equipment and the second electronic equipment can be detected, so that the related abnormal problems can be processed later, and the problem that the video conference cannot be initiated normally is avoided. The following is a detailed description.
Fig. 1 is a flow chart of a link detection method according to an embodiment of the present application. Referring to fig. 1, the link detection method provided by the embodiment of the application mainly includes the following steps:
step S101, the first electronic device receives at least one session initiation protocol SIP message sent by the second electronic device.
In the embodiment of the application, when the link detection is performed, the second electronic device sends at least one Session Initiation Protocol (SIP) message to the first electronic device, and the first electronic device receives the at least one SIP message sent by the second electronic device. Before the first electronic device receives at least one SIP message sent by the second electronic device, the first electronic device may first receive a second detection request message sent by the second electronic device, and return a response message to the second electronic device, so as to inform the second electronic device that the second electronic device may start sending the SIP message. The second detection request message carries related information of at least one SIP message sent by the second electronic device, for example, the information may be the sending number of the SIP message, the sending time period of the SIP message, and the like. The second electronic device may then send at least one SIP message to the first electronic device, where the first electronic device receives the at least one SIP message sent by the second electronic device.
As a possible implementation manner, before receiving at least one SIP message sent by the second electronic device, the method further includes:
and determining a preset time range for receiving the SIP message according to the sending time period of the SIP message.
Specifically, after the first electronic device receives the second detection request message, the second detection request message may be parsed, the number of sent SIP messages and the sending time period of the SIP messages may be obtained, and the preset time range for receiving the SIP messages may be determined according to the number of sent SIP messages and the sending time period of the SIP messages, that is, the time required for receiving the SIP messages sent by the second electronic device is determined.
Further, receiving at least one SIP message sent by the second electronic device includes:
and receiving at least one SIP message sent by the second electronic equipment within a preset time range.
In the embodiment of the application, after determining the preset time range, the first electronic device may receive at least one SIP message sent by the second electronic device within the preset time range, and after the time reaches the preset time range, it is indicated that all at least one SIP message sent by the second electronic device has been received.
It should be noted that, the data information included in at least one SIP message may be the same or different, which is not limited by the present application.
Step S102, obtaining detection information of the SIP message.
The detection information of the SIP message is used to indicate related information of at least one SIP message sent by the second electronic device.
Specifically, the first electronic device may acquire detection information of the SIP message, so as to detect at least one SIP message sent by the second electronic device.
As a possible implementation manner, the detection information of the SIP message includes a transmission number of the SIP message and a transmission time period of the SIP message.
The first electronic device may analyze the second detection request message sent by the second electronic device, and obtain the number of sending IP packets and the sending time period of the SIP packets from the second detection request message as detection information, so as to detect whether the SIP packets have packet loss abnormality.
As a possible implementation manner, the detection information of the SIP message includes: and checking information corresponding to each SIP message in at least one SIP message. The check information comprises a message header of the SIP message, and the check information can also comprise data information of the SIP message.
Specifically, the second electronic device sends at least one SIP message to the first electronic device, and simultaneously sends the verification information corresponding to each SIP message to the first electronic device, so that the first electronic device can obtain the verification information corresponding to each SIP message in the received at least one SIP message as the detection information, so that the subsequent first electronic device can detect the received at least one SIP message. Because the SIP message comprises a message head and a message body, wherein the message head comprises the length information of the message body; the message body includes the data information of the SIP message. Therefore, the check information can include a message header of the SIP message, and the check information can also include data information of the SIP message, so as to detect whether the received SIP message has missing abnormality and conversion abnormality.
Step S103, detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information.
In the embodiment of the application, due to the complexity and diversity of the internet condition, the problems of abnormal transmission, such as packet loss, deletion, conversion and the like, of the SIP message in the link can occur, and the abnormal problems can influence the normal initiation of the video conference. Therefore, after receiving the at least one message and the detection information of the SIP message, the first electronic device may detect whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message.
As one possible implementation manner, detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and detection information of the SIP message, and generating detection result information includes:
detecting whether the SIP message has abnormal packet loss according to the number of at least one received SIP message and the sending number of the SIP message;
and generating first detection result information according to the packet loss rate of the SIP message, wherein the first detection result information comprises the packet loss rate of the SIP message.
Specifically, when the SIP message is transmitted in the link between the first electronic device and the second electronic device, there is a case that the second electronic device does not receive the SIP message due to timeout, that is, there is a packet loss abnormality, if the first electronic device does not receive the SIP message, it cannot process according to the SIP message, and then normal initiation of the video conference is affected, so the first electronic device needs to detect whether the SIP message has the packet loss abnormality. The first electronic device can detect whether the SIP message has abnormal packet loss according to the number of the received at least one SIP message and the sending number of the SIP message in the detection information of the SIP message. If the number of the received at least one SIP message is less than the sending number of the SIP messages in the detection information of the SIP messages, determining that the SIP messages have abnormal packet loss; if the number of the received at least one SIP message is equal to the sending number of the SIP messages in the detection information of the SIP messages, determining that the SIP messages have no packet loss abnormality.
If the packet loss abnormality exists in the SIP message, the packet loss rate of the SIP message needs to be calculated, and the lost condition of at least one SIP message in the transmission of the link is reflected through the packet loss rate. The packet loss rate is the ratio of the number of lost data packets to the number of transmitted data packets, and in the embodiment of the application, one SIP message is a data packet, and the packet loss rate of the SIP message is the ratio of the number of lost SIP messages to the number of transmitted SIP messages. The first electronic equipment determines the packet loss rate of the SIP messages according to the number of the received at least one SIP message and the sending number of the SIP messages. For example, the number of lost SIP messages may be determined according to the number of at least one received SIP message and the number of sent SIP messages, and then the packet loss rate may be determined according to the ratio of the number of lost SIP messages to the number of sent SIP messages, which may be other manners, and the application is not limited in this respect. And then generating first detection result information according to the determined packet loss rate, wherein the first detection result information comprises the packet loss rate of the SIP message.
It should be noted that, if there is no packet loss abnormality, the first detection result information may be directly generated, where the first detection result information includes that the packet loss rate of the SIP packet is zero.
As one possible implementation manner, detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and detection information of the SIP message, and generating detection result information includes:
for each SIP message in at least one received SIP message, detecting whether the SIP message has a missing exception or not according to the received SIP message and a message header in the corresponding check information of the SIP message;
if the missing abnormality exists, generating second detection result information corresponding to the SIP message according to the missing abnormality of the SIP message, wherein the second detection result information carries information of the missing abnormality corresponding to the SIP message.
Specifically, the maximum transmission unit of the link refers to the maximum length of the message allowed in the process of transmitting data, so when the data packet of the SIP message is larger than the maximum transmission unit of the link, the data packet of the SIP message is decomposed into a plurality of small enough fragments so that the SIP message can be transmitted on the link, that is, the SIP message is fragmented in the transmission process. However, the fragments of the SIP message may be lost in the link transmission process, which may cause the SIP message received by the first electronic device to have a deletion exception. Since each SIP message may have a missing exception in the transmission process, for each SIP message in the received at least one SIP message, missing exception detection is required. At this time, the first electronic device may detect whether the SIP message has a missing exception according to the received SIP message and a message header in the corresponding check information of the SIP message. If the deletion abnormality exists, the corresponding detection result is generated according to the determined deletion abnormality information of the SIP message. At this time, second detection result information corresponding to the SIP message may be generated according to the missing exception of the SIP message, where the second detection result information carries information of the missing exception corresponding to the SIP message.
If the SIP message does not have the missing anomaly, the second detection result information may be directly generated, where the second detection result information carries the information that the SIP message does not have the missing anomaly.
Further, determining whether the SIP message has a missing exception according to the received SIP message and a message header in the corresponding check information of the SIP message includes:
detecting whether the message header of the received SIP message is consistent with the message header of the SIP message corresponding to the check information according to the received SIP message and the message header of the SIP message corresponding to the check information;
if the message header of the received SIP message is inconsistent with the message header in the corresponding check information of the SIP message, determining that the missing exception exists, or
If the message header of the received SIP message is consistent with the message header in the corresponding check information of the SIP message, detecting whether the message body length of the received SIP message is consistent with the message body length of the SIP message recorded in the message header in the check information according to the received SIP message and the message header in the corresponding check information of the SIP message;
If the message body length of the received SIP message is inconsistent with the message body length of the SIP message recorded in the message header of the verification information, determining that the missing exception exists.
Specifically, the SIP message includes a message header and a message body. The message header comprises length information of a message body; the message body includes the data information of the SIP message. Therefore, for each SIP message in the received at least one SIP message, whether the message header of the SIP message has a missing exception or not can be detected first, and if the message header has a missing exception, it is determined that the SIP message has a missing exception; if the message head does not have the missing exception, then continuously detecting whether the message head of the SIP message has the missing exception. Therefore, when the deletion abnormality exists in the message header of the SIP message, whether the deletion abnormality exists in the message body of the SIP message or not can be determined without detecting the deletion abnormality, and the detection time is saved. Based on this, when detecting whether the received SIP message has the missing exception, for each SIP message in the received at least one SIP message, the first electronic device may detect whether the received SIP message and the received SIP message corresponding to the message header in the check information are consistent according to the received message header of the SIP message and the received SIP message corresponding to the check information, for example, whether the received SIP message header of the SIP message and the received SIP message corresponding to the check information are consistent in data size. If the message header of the received SIP message is inconsistent with the message header in the corresponding check information of the SIP message, the defect abnormality exists in the message header of the SIP message, and the defect abnormality can be determined in the SIP message.
If it is determined that the message header of the received SIP message is consistent with the message header in the corresponding check information of the SIP message, it is indicated that the message header of the SIP message has no missing exception, and at this time, it is required to continuously detect whether the message body of the SIP message has the missing exception. Because the message header of the check information corresponding to the SIP message records the length of the message body of the SIP message, the first electronic device can detect whether the length of the message body of the received SIP message is consistent with the length of the message body of the SIP message in the check information according to the length of the message body of the received SIP message. If the length of the message body of the received SIP message is inconsistent with the length of the message body of the SIP message in the check information, determining that the SIP message has a missing abnormality; if the length of the message body of the received SIP message is consistent with the length of the message body of the SIP message in the check information, determining that the SIP message has no missing exception.
As one possible implementation manner, detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and detection information of the SIP message, and generating detection result information includes:
For each SIP message in at least one received SIP message, acquiring data information in the received SIP message;
detecting whether the SIP message has conversion abnormality according to the received data information in the SIP message and the data information in the check information corresponding to the SIP message, wherein the conversion abnormality refers to that the SIP message received by the first electronic equipment is the converted SIP message subjected to network address conversion NAT;
if the conversion abnormality exists, third detection result information corresponding to the SIP message is generated according to the conversion abnormality of the SIP message, wherein the third detection result information carries information of the conversion abnormality corresponding to the SIP message.
Specifically, since the network from the first electronic device to the second electronic device may be a specific network with a special network address translation (Network Address Translation, NAT) device, when the SIP message is transmitted in the specific network, the data information in the SIP message may be translated, for example, the source port information recorded in the message body of the SIP message may be changed, where the source port information is the port number information used by the second electronic device, including the port number information of the audio interface, the video interface, the earphone interface, and so on, so as to affect the normal initiation of the video conference indicated by the SIP message. Therefore, after receiving at least one SIP message, the first electronic device needs to detect whether the received at least one SIP message has a conversion abnormality. For each SIP message in the received at least one SIP message, the first electronic device may first obtain the data information in the received SIP message, and then detect whether the data information in the received SIP message is consistent with the data information in the check information corresponding to the SIP message. If the received data information in the SIP message is inconsistent with the data information in the check information corresponding to the SIP message, determining that the SIP message has abnormal conversion; if the received data information in the SIP message is consistent with the data information in the check information corresponding to the SIP message, determining that the SIP message has no conversion abnormality. If the conversion abnormality exists, third detection result information corresponding to the SIP message is generated according to the conversion abnormality of the SIP message, wherein the third detection result information carries information of the conversion abnormality corresponding to the SIP message.
In addition, if no conversion abnormality exists, third detection result information corresponding to the SIP message may be directly generated, where the second detection result information carries information that no conversion abnormality exists in the SIP message.
Step S104, sending detection result information to the second electronic equipment.
Specifically, after the first electronic device generates the detection result information, the detection result information needs to be sent to the second electronic device to inform the second electronic device of the detection result.
It should be noted that, for each SIP message in the received at least one SIP message, the foregoing missing exception and conversion exception detection process needs to be executed. The first electronic device may detect the missing exception and the conversion exception immediately after receiving each SIP message, or may detect each received SIP message after receiving at least one SIP message within a preset time range, which is not limited in the present application.
It should be noted that, when there is a packet loss abnormality, it is necessary to calculate a packet loss rate of the SIP packet, so after receiving at least one SIP packet sent by the second electronic device, a packet loss abnormality detection process can be performed. That is, the first electronic device receives at least one SIP message sent by the second electronic device within a preset time range, and after the preset time range is reached, it indicates that at least one SIP message sent by the second electronic device has been received, and at this time, the above-mentioned detection process of the packet loss anomaly may be executed.
For example, it is assumed that when detecting a link between the second electronic device and the first electronic device, it is required to detect whether there are packet loss anomalies, deletion anomalies, and transition anomalies in the SIP message when transmitting in the link. At this time, the first electronic device receives a second detection request message sent by the second electronic device, where the second detection request message includes 100 sending numbers of SIP messages, and a sending time period of the SIP messages is 10ms. And the first electronic equipment returns a response message to the second electronic equipment after receiving the second detection request message. The first electronic device can determine that the preset time range for receiving the SIP messages is 1000ms according to the number of the sent SIP messages being 100, the sending time period of the SIP messages is 10ms, and the first SIP message sent by the second electronic device is received within the preset time range of 1000ms, and meanwhile check information corresponding to the first SIP message is received. Assuming that the message header of the received first SIP message is A, the length of the message body is B, and the port number information contained in the message body C is D; the verification information corresponding to the first SIP message comprises a message header E of the first SIP message and data information F of the SIP message, wherein the message header E of the first SIP message comprises a message body with a length G, and the data information F of the SIP message is port number information H in the message body of the first SIP message.
Then, the first electronic device may acquire the detection information at this time, first acquire the check information corresponding to the first SIP packet, to detect whether there is a missing abnormality or a conversion abnormality, and then may analyze the second detection request message to acquire the number of transmission of the SIP packets as 100, where the transmission time period of the SIP packets is 10ms, to detect whether there is a packet loss abnormality. Therefore, the detection information comprises the verification information corresponding to the first SIP message, the sending number of the SIP messages and the sending time period information. Because the first electronic device detects whether the SIP message has the missing exception and the conversion exception for each received SIP message, the first electronic device can detect the missing exception and the conversion exception for each received SIP message.
At this time, for the received first SIP message, first, the missing exception is detected, and the data size of the message header a of the received first SIP message is compared with the data size of the message header E in the check information, so as to determine whether the two are consistent. Assuming that the data size of the message header A of the first SIP message is consistent with the data size of the message header E in the check information, the defect abnormality of the message header of the first SIP message is not existed. And then continuously detecting whether the first SIP message body is abnormal or not, wherein the length of the message body of the received first SIP message is B, and the length of the message body contained in the verification information is G, so that the length B of the message body and the length G of the message body can be compared, and if the length B of the message body is smaller than the length G of the message body, the first SIP message is determined to have the missing abnormality. At this time, generating second detection result information according to the missing exception existing in the first SIP message, and sending the second detection result information to the second electronic device, where the second detection result information includes the missing exception existing in the message body of the first SIP message.
Then, for the received first SIP message, detecting the conversion abnormality of the first SIP message, firstly obtaining the data information in the received first SIP message, that is, obtaining the port number information D contained in the message body C of the received individual SIP message. Because the data information F of the SIP message is the port number information H in the message body of the first SIP message, it is determined whether the port number information D is consistent with the port number information H in the check information, if the port number information D is inconsistent with the port number information H in the check information, it is indicated that the first SIP message has a conversion abnormality, that is, the first SIP message received by the first electronic device is a SIP message after the conversion of the network address conversion NAT. At this time, third detection result information corresponding to the first SIP message is generated according to the conversion abnormality of the first SIP message, and the third detection result information is sent to the second electronic device, where the third detection result information includes that port number information in the first SIP message is converted from port number information H to port number information D.
The detection process of the missing abnormality and the conversion abnormality is executed for each SIP message sent by the second electronic device and received by the first electronic device, which is not described herein. After reaching the preset time range, the second electronic device is indicated to have sent 100 SIP messages, the first electronic device receives the SIP messages sent by the second electronic device, and whether the SIP messages have abnormal packet loss needs to be detected. Assuming that the first electronic device determines that the number of the received SIP messages is 95, since the number of the received SIP messages is 95 and the number of the sent SIP messages in the detection information is 100, it can be determined that the SIP messages have packet loss abnormality. Then, the number of the lost SIP messages can be determined to be 5, and because the sending number of the SIP messages is 100, the packet loss rate of the SIP messages can be determined to be 5% according to the ratio of the number of the lost SIP messages to the sending number of the SIP messages. And generating first detection result information according to the packet loss rate of the SIP message, and sending the first detection result information to the second electronic equipment, wherein the first detection result information comprises that the packet loss rate of the SIP message is 5%.
In this way, according to the process described in the above example, the link detection between the second electronic device and the first electronic device may be completed, so that it may be possible to detect whether there are packet loss anomalies, and transition anomalies when the SIP message is transmitted in the link, so as to facilitate the subsequent processing of the anomalies.
Fig. 2 is a flow chart of another link detection method according to an embodiment of the present application. As shown in fig. 2, the method comprises the following steps:
step S201, the second electronic device receives the first detection request message sent by the third electronic device.
The first detection request message carries identification information of the first electronic equipment.
Specifically, the second electronic device receives the first detection request message sent by the third electronic device, and can analyze the first detection request message to obtain the identification information of the first electronic device, and at this time, the second electronic device knows that the link between the second electronic device and the first electronic device needs to be detected.
Step S202, at least one SIP message and detection information of the SIP message are sent to the first electronic equipment.
Specifically, after receiving the first detection request message sent by the third electronic device, the second electronic device may directly send at least one SIP message and detection information of the SIP message to the first electronic device.
In one possible embodiment, when the detection information includes the transmission number and the transmission time period of the SIP messages, the second electronic device may send the second detection request message to the first electronic device before sending at least one SIP message to the first electronic device, and the transmission number and the transmission time period of the SIP messages may be added to the second detection request message. After the first electronic device receives the second detection request message, a response message may be returned to the second electronic device to inform the first electronic device that at least one SIP message may start to be sent. At this time, the second electronic device receives the response message sent by the first electronic device, and then starts to send at least one SIP message to the first electronic device. The second electronic device may send at least one SIP message to the first electronic device, and simultaneously send the number of sent SIP messages and the sending time period information to the first electronic device.
In one possible embodiment, the detection information includes verification information corresponding to each SIP message in at least one SIP message. At this time, when the second electronic device sends at least one SIP message to the first electronic device, the second electronic device may send the check information corresponding to each SIP message in the at least one SIP message at the same time, so that the first electronic device may obtain the check information corresponding to each SIP message.
Step S203, receiving detection result information sent by the first electronic device.
In the embodiment of the application, after the first electronic device generates the detection result information, the detection result information is sent to the second electronic device, and the second electronic device receives the detection result information.
Step S204, the detection result information is sent to the third electronic equipment.
Specifically, the second electronic device sends the received detection result information to the third electronic device, so as to inform the third electronic device of the link detection result.
Fig. 3 is a flow chart of another link detection method according to an embodiment of the present application. As shown in fig. 3, the method includes:
step S301, the third electronic device sends a first detection request message to the second electronic device.
The first detection request message carries identification information of the first electronic equipment.
Specifically, when the link between the second electronic device and the first electronic device needs to be detected, the third electronic device sends a first detection request message to the second electronic device, where the first detection request message carries identification information of the first electronic device, so as to trigger a link detection process.
Step S302, receiving detection result information sent by the second electronic device.
Specifically, the second electronic device sends the received detection result information to the third electronic device, and the third electronic device receives the detection result information to complete the link detection.
Fig. 4 is a flow chart of another link detection method according to an embodiment of the present application. As shown in fig. 4, the method includes:
in step S401, the third electronic device sends a first detection request message to the second electronic device, and the second electronic device receives the first detection request message sent by the third electronic device.
Reference may be made to the above step S301, and details thereof are not described herein.
Step S402, the second electronic device sends a second detection request message to the first electronic device, and the first electronic device receives the second detection request message sent by the second electronic device.
The second detection request message carries the sending number and sending time period information of the SIP message.
Reference may be made to the above step S202, and details are not repeated here.
Step S403, the first electronic device returns a response message to the second electronic device.
Step S404, the second electronic device sends at least one SIP message and corresponding check information to the first electronic device, and the first electronic device receives the at least one SIP message and corresponding check information sent by the second electronic device.
Reference may be made to the above step S202, and details are not repeated here.
Step S405, the first electronic device detects whether the received at least one SIP message has an abnormality according to the received at least one SIP message and detection information of the SIP message, and generates detection result information.
The detection information comprises the sending number of the received SIP messages, sending time period information and verification information corresponding to each SIP message in at least one SIP message.
Reference may be made to the above step S103, and details are not repeated here.
In step S406, the first electronic device sends the detection result information to the second electronic device, and the second electronic device receives the detection result information.
Step S407, the second electronic device sends the detection result information to the third electronic device, and the third electronic device receives the detection result information.
In this way, according to the link detection method described in the above embodiment, an abnormal problem when the SIP message is transmitted in the link may be detected, and the user may perform corresponding processing on the detected abnormal problem according to the result of the link detection, so as to avoid that the session cannot be initiated normally when the video conference is used later.
Corresponding to the above embodiment, as shown in fig. 5, an embodiment of the present application further provides a link detection device, including:
The receiving unit 501 is configured to receive, by using the first electronic device, at least one session initiation protocol SIP packet sent by the second electronic device.
An obtaining unit 502, configured to obtain detection information of a SIP packet; the detection information of the SIP message is used for indicating related information of at least one SIP message sent by the second electronic device.
A processing unit 503, configured to detect whether the received at least one SIP message has an abnormality according to the received at least one SIP message and detection information of the SIP message;
generating detection result information according to whether the received at least one SIP message is abnormal or not, and sending the detection result information to the second electronic equipment.
In a possible embodiment, the processing unit 503 is specifically configured to detect whether the SIP packet has a packet loss abnormality according to the number of the received at least one SIP packet and the number of the sent SIP packets.
The processing unit 503 is further configured to determine, if there is a packet loss abnormality, a packet loss rate of the SIP message according to the number of the received at least one SIP message and the number of the SIP messages sent;
and generating first detection result information according to the packet loss rate of the SIP message, and sending the first detection result information to the second electronic equipment, wherein the first detection result information comprises the packet loss rate of the SIP message.
In a possible embodiment, the receiving unit 501 is specifically configured to determine a preset time range for receiving the SIP message according to a sending time period of the SIP message;
and receiving at least one SIP message sent by the second electronic equipment within a preset time range.
In a possible embodiment, the processing unit 503 is further configured to detect, for each SIP message in the received at least one SIP message, whether the SIP message has a missing exception according to the received SIP message and a message header in the SIP message corresponding check information.
The processing unit 503 is further configured to generate second detection result information corresponding to the SIP packet according to the missing exception of the SIP packet if the missing exception exists, and send the second detection result information to the second electronic device. The second detection result information carries information of abnormality corresponding to the SIP message.
In a possible embodiment, the processing unit 503 is further configured to detect, according to the received message header of the SIP message and the message header in the SIP message corresponding check information, whether the received message header of the SIP message and the message header in the SIP message corresponding check information are consistent;
If the message header of the received SIP message is inconsistent with the message header in the corresponding check information of the SIP message, determining that the missing exception exists, or
If the message header of the received SIP message is consistent with the message header in the corresponding check information of the SIP message, detecting whether the message body length of the received SIP message is consistent with the message body length of the SIP message recorded in the message header in the check information according to the received SIP message and the message header in the corresponding check information of the SIP message;
if the message body length of the received SIP message is inconsistent with the message body length of the SIP message recorded in the message header of the verification information, determining that the missing exception exists.
In a possible embodiment, the processing unit 503 is further configured to obtain, for each SIP packet in the received at least one SIP packet, data information in the received SIP packet;
detecting whether the SIP message has conversion abnormality according to the received data information in the SIP message and the data information in the check information corresponding to the SIP message, wherein the conversion abnormality refers to the SIP message received by the first electronic device after the conversion of the network address conversion NAT.
The processing unit 503 is further configured to generate third detection result information corresponding to the SIP message according to the conversion abnormality of the SIP message if the conversion abnormality exists, and send the third detection result information to the second electronic device, where the third detection result information carries information of the conversion abnormality corresponding to the SIP message.
Corresponding to the above embodiment, as shown in fig. 6, another link detection apparatus is provided in the embodiment of the present application, including:
a receiving unit 601, configured to receive, by using a second electronic device, a first detection request message sent by a third electronic device; the first detection request message carries identification information of the first electronic equipment;
a processing unit 602, configured to send at least one SIP message and detection information of the SIP message to a first electronic device;
the receiving unit 601 is further configured to receive detection result information sent by the first electronic device;
the processing unit 602 is further configured to send the detection result information to a third electronic device.
Corresponding to the above embodiment, as shown in fig. 7, another link detection apparatus is provided in the embodiment of the present application, including:
a processing unit 701, configured to send a first detection request message to a second electronic device by using a third electronic device; the first detection request message carries identification information of the first electronic equipment;
And the receiving unit 702 is configured to receive the detection result information sent by the second electronic device.
Corresponding to the embodiment, the application also provides electronic equipment. Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 800 may include: a processor 801, a memory 802, and a communication unit 803. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the embodiments of the application, and that it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
Wherein the communication unit 803 is configured to establish a communication channel, so that the electronic device may communicate with other devices. Receiving user data sent by other devices or sending user data to other devices.
The processor 801, which is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and/or processes data by running or executing software programs and/or modules stored in the memory 802, and invoking data stored in the memory. The processor may be comprised of integrated circuits (integrated circuit, ICs), such as a single packaged IC, or may be comprised of packaged ICs that connect multiple identical or different functions. For example, the processor 801 may include only a central processing unit (central processing unit, CPU). In the embodiment of the application, the CPU can be a single operation core or can comprise multiple operation cores.
The memory 802, for storing instructions for execution by the processor 801, the memory 802 may be implemented by any type of volatile or non-volatile memory device, or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
The execution of the instructions in memory 802, when executed by processor 801, enables electronic device 800 to perform some or all of the steps in the embodiment shown in fig. 4.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, where the program may include some or all of the steps in each embodiment of the link detection method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.

Claims (10)

1. A method of link detection, comprising:
the first electronic equipment receives at least one Session Initiation Protocol (SIP) message sent by the second electronic equipment;
obtaining detection information of an SIP message; the detection information of the SIP message is used for indicating the related information of at least one SIP message sent by the second electronic equipment;
detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information;
and sending the detection result information to the second electronic equipment.
2. The method according to claim 1, wherein the detection information of the SIP message includes a transmission number of the SIP message;
the detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information includes:
Detecting whether the SIP message has abnormal packet loss according to the number of the received at least one SIP message and the sending number of the SIP message;
if the packet loss abnormality exists, determining the packet loss rate of the SIP messages according to the number of the received at least one SIP message and the sending number of the SIP messages;
and generating first detection result information according to the packet loss rate of the SIP message, wherein the first detection result information comprises the packet loss rate of the SIP message.
3. The method according to claim 2, wherein the detection information of the SIP message includes a transmission time period of the SIP message;
before receiving at least one SIP message sent by the second electronic device, the method further includes:
determining a preset time range for receiving the SIP message according to the sending time period of the SIP message;
the receiving at least one SIP message sent by the second electronic device includes:
and receiving at least one SIP message sent by the second electronic equipment within the preset time range.
4. The method according to claim 1, wherein the detection information of the SIP message includes: checking information corresponding to each SIP message in the at least one SIP message; the check information comprises a message header of an SIP message;
The detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information includes:
for each received SIP message in the at least one SIP message, detecting whether the SIP message has a missing exception according to the received SIP message and a message header in the corresponding check information of the SIP message;
if the deletion abnormality exists, generating second detection result information corresponding to the SIP message according to the deletion abnormality of the SIP message, wherein the second detection result information carries information of the deletion abnormality corresponding to the SIP message.
5. The method of claim 4, wherein detecting whether the SIP message has a missing exception according to the received SIP message and a message header in the SIP message correspondence check information comprises:
detecting whether the message header of the received SIP message is consistent with the message header of the SIP message corresponding to the verification information according to the message header of the received SIP message and the message header of the SIP message corresponding to the verification information;
if the message header of the received SIP message is inconsistent with the message header in the corresponding check information of the SIP message, determining that a missing abnormality exists, or
If the message header of the received SIP message is consistent with the message header in the corresponding check information of the SIP message, detecting whether the message body length of the received SIP message is consistent with the message body length of the SIP message recorded in the message header in the check information or not according to the received SIP message and the message header in the corresponding check information of the SIP message;
if the message body length of the received SIP message is inconsistent with the message body length of the SIP message recorded in the message header in the verification information, determining that the missing exception exists.
6. The method of claim 4, wherein the check information comprises data information of a SIP message;
the detecting whether the received at least one SIP message has an abnormality according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information includes:
for each received SIP message in the at least one SIP message, acquiring data information in the received SIP message;
detecting whether the SIP message has conversion abnormality according to the received data information in the SIP message and the data information in the check information corresponding to the SIP message, wherein the conversion abnormality refers to that the SIP message received by the first electronic equipment is the converted SIP message after network address conversion NAT;
If the conversion abnormality exists, third detection result information corresponding to the SIP message is generated according to the conversion abnormality of the SIP message, wherein the third detection result information carries information of the conversion abnormality corresponding to the SIP message.
7. A method of link detection, comprising:
the second electronic equipment receives a first detection request message sent by the third electronic equipment; the first detection request message carries identification information of the first electronic equipment;
sending at least one SIP message and detection information of the SIP message to the first electronic equipment;
receiving detection result information sent by first electronic equipment;
and sending the detection result information to third electronic equipment.
8. A method of link detection, comprising:
the third electronic device sends a first detection request message to the second electronic device; the first detection request message carries identification information of the first electronic equipment;
and receiving detection result information sent by the second electronic equipment.
9. A link detection apparatus, comprising:
the receiving unit is used for receiving at least one SIP message sent by the second electronic equipment by the first electronic equipment;
The acquisition unit is used for acquiring detection information of the SIP message; the detection information of the SIP message is used for indicating the related information of at least one SIP message sent by the second electronic equipment;
the processing unit is used for detecting whether the received at least one SIP message is abnormal or not according to the received at least one SIP message and the detection information of the SIP message;
generating detection result information according to whether the received at least one SIP message is abnormal or not, and sending the detection result information to the second electronic equipment.
10. An electronic device, comprising: a processor and a memory storing a computer program which, when executed, causes the electronic device to perform the method of any one of claims 1-6 or 7 or 8.
CN202210157393.1A 2022-02-21 2022-02-21 Link detection method, device and equipment Pending CN116668624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210157393.1A CN116668624A (en) 2022-02-21 2022-02-21 Link detection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210157393.1A CN116668624A (en) 2022-02-21 2022-02-21 Link detection method, device and equipment

Publications (1)

Publication Number Publication Date
CN116668624A true CN116668624A (en) 2023-08-29

Family

ID=87717655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210157393.1A Pending CN116668624A (en) 2022-02-21 2022-02-21 Link detection method, device and equipment

Country Status (1)

Country Link
CN (1) CN116668624A (en)

Similar Documents

Publication Publication Date Title
RU2483452C2 (en) Active speaker identification
US7463634B1 (en) Quality correlation testing
US7412529B2 (en) Method for processing session information of session initiation protocol system and recorded medium thereof
US8861510B1 (en) Dynamic assignment of media proxy
US7940654B2 (en) Protecting a network from unauthorized access
US9014369B2 (en) Voice-over internet protocol (VoIP) scrambling mechanism
US20080320148A1 (en) Session initiation protocol adaptor
CN101860536B (en) Private network access system based on SIP soft phone and method thereof
US8296447B2 (en) Method for copying session information, call control server for executing the same, and computer product
US20080013447A1 (en) Method and Apparatus for Survivable Failover in Communication System
KR100603562B1 (en) Apparatus and method for voice processing of voice over internet protocol
WO2001069883A2 (en) Text-based communications over a data network
JP4695457B2 (en) System and method for collecting and distributing party identification data
US10601880B2 (en) Conference reconstruction in SIP networks
US8218529B2 (en) Device for and method of terminating a VoIP call
US10931720B2 (en) IP tolerance and signaling interworking
US20120300786A1 (en) Media conversion device for interconnecting communication terminal devices with media converted and a method therefor
US9019869B2 (en) System and method to suppress voice prompts in SIP calls
US20040160985A1 (en) System and method for network address translation and session management
US8868759B2 (en) Communication system and server
CN116668624A (en) Link detection method, device and equipment
CN102137090B (en) Method for logging in VOIP (Voice Over Internet Protocol) network and authentication server
CN109067659B (en) Session establishing method, router and session system
US20070263073A1 (en) System and method for identifying the reachability status of ip and sip based videoconferencing systems
JP2006211001A (en) Television telephone

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