CN116668624A - Link detection method, device and equipment - Google Patents
Link detection method, device and equipment Download PDFInfo
- 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
- sip
- information
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 258
- 230000002159 abnormal effect Effects 0.000 claims abstract description 53
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000000977 initiatory effect Effects 0.000 claims abstract description 16
- 230000005856 abnormality Effects 0.000 claims description 77
- 238000012795 verification Methods 0.000 claims description 75
- 238000006243 chemical reaction Methods 0.000 claims description 47
- 238000012545 processing Methods 0.000 claims description 20
- 230000005540 biological transmission Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims 3
- 230000037430 deletion Effects 0.000 claims 3
- 238000013519 translation Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 230000004044 response Effects 0.000 description 7
- 239000012634 fragment Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, 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
Description
技术领域technical field
本申请涉及通讯技术领域,具体地涉及一种链路检测方法、装置及设备。The present application relates to the technical field of communications, and in particular to a link detection method, device and equipment.
背景技术Background technique
随着互联网技术的快速发展,传统的电话网络已经逐渐被取代,用户通常会选择视频会议的方式进行沟通交流。视频会议,是指位于两个或多个地点的人们,通过通信设备和网络,进行面对面交谈的会议。其中,视频会议的常用控制协议为会话初始协议(SessionInitiation Protocol,SIP),SIP协议是互联网工程任务组(Internet Engineering TaskForce,IETF)制定的标准进程的一部分,它的开发目的是用来帮助提供跨越因特网的高级电话业务。SIP协议被用来发起、修改和结束一个或者多个参与者之间的会话,因此在进行通话或者视频会议的过程中发挥了重要作用。目前,SIP协议正日益受到业界的重视,基于SIP的视频会议系统获得越来越广泛的应用。With the rapid development of Internet technology, the traditional telephone network has been gradually replaced, and users usually choose video conferencing to communicate. Video conferencing is a meeting in which people at two or more locations conduct face-to-face conversations through communication devices and networks. Among them, the commonly used control protocol for video conferencing is Session Initiation Protocol (SIP), which is part of the standard process formulated by the Internet Engineering Task Force (IETF). Advanced Telephony Services for the Internet. The SIP protocol is used to initiate, modify and end a session between one or more participants and thus plays an important role in conducting a call or video conference. At present, the SIP protocol is receiving more and more attention from the industry, and the SIP-based video conferencing system is being used more and more widely.
现有技术中,视频会议系统由视频会议终端、视频会议服务器(MultipointControl Unit,MCU)、网络管理系统和传输网络四部分组成。其中,SIP报文是SIP终端和服务器之间通信的基本信息单元。SIP报文包括呼叫(INVITE)、确认(Acknowledgement,ACK)、询问(OPTIONS)、结束会话(BYE)、取消(CANCEL)和注册(REGISTER)类型。例如,当用户作为主叫方使用视频会议时,首先SIP终端会发送关于呼叫请求的SIP报文至服务器,SIP报文中包括报文消息头和报文消息体两部分。其中,报文消息头包含主、被呼叫的地址,呼叫主题和呼叫优先级等信息,报文消息体主要包括由会话描述协议(Session DescriptionProtocol,SDP)描述的媒体控制信息,供SIP终端协商并建立媒体信道,SDP可包括以下媒体信息:媒体类型(音频、视频等)、传送协议(实时传输协议(Real-time TransportProtocol,RTP)、用户数据包协议(User Datagram Protocol,UDP)等)、媒体格式(H.264数字视频压缩格式,高级音频编码(Advanced Audio Coding,AAC)等)、传输地址和端口信息等信息。In the prior art, a video conference system consists of four parts: a video conference terminal, a video conference server (Multipoint Control Unit, MCU), a network management system, and a transmission network. Wherein, the SIP packet is a basic information unit for communication between the SIP terminal and the server. The SIP message includes call (INVITE), confirmation (Acknowledgment, ACK), inquiry (OPTIONS), end session (BYE), cancellation (CANCEL) and registration (REGISTER) types. For example, when a user uses a video conference as a calling party, first the SIP terminal will send a SIP message about the call request to the server. The SIP message includes two parts: a message header and a message body. Wherein, the message header includes information such as the address of the calling party and the called party, the subject of the call, and the priority of the call, and the message body of the message mainly includes media control information described by the Session Description Protocol (Session Description Protocol, SDP), which is used for negotiation and negotiation by the SIP terminal. To establish a media channel, the SDP may 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 (AAC) etc.), transmission address and port information and other information.
由于互联网情况的复杂性和多样性,SIP报文在链路中传输的过程中会出现异常,例如丢包、SIP报文不完整、经过网络地址转换(Network Address Translation,NAT)设备的问题。例如,在SIP终端向服务器发送SIP报文时,如果服务器超时则会导致接收不到SIP报文,即为SIP报文在链路传输过程中可能存在丢包;当SIP报文的数据包比链路最大传输单元大时,会被分解为很多的足够小片段,以便能够在链路进行传输,即为SIP报文存在分片的情况,但是SIP报文的分片在链路传输的过程中可能会出现丢失的情况,那么就会导致服务器接收到的SIP报文不完整;如果终端连接的特定网络中存在网络地址转换(NetworkAddress Translation,NAT)设备,那么当终端发送的SIP报文在特定网络中经过NAT设备进行传输时,NAT设备会改变SIP报文的报文消息体中的端口信息。当SIP报文出现异常时,会影响视频会议的正常发起,因此需要专门的技术来检测SIP报文在SIP终端与服务器之间的链路中传输时是否存在异常。Due to the complexity and diversity of the Internet situation, abnormalities may occur during the transmission of SIP packets in the link, such as packet loss, incomplete SIP packets, and problems with Network Address Translation (NAT) devices. For example, when a SIP terminal sends a SIP message to the server, if the server times out, the SIP message cannot be received, that is, there may be packet loss during the link transmission of the SIP message; when the data packet of the SIP message is larger than When the maximum transmission unit of the link is large, it will be decomposed into many small enough fragments to be able to transmit on the link. There may be a loss in the network, which will cause the SIP message received by the server to be incomplete; if there is a Network Address Translation (Network Address Translation, NAT) device in the specific network connected to the terminal, then when the SIP message sent by the terminal is in the When transmitting through a NAT device in a specific network, the NAT device will change the port information in the message body of the SIP message. When the SIP message is abnormal, it will affect the normal initiation of the video conference. Therefore, special technology is needed to detect whether there is an abnormality when the SIP message is transmitted in the link between the SIP terminal and the server.
发明内容Contents of the invention
有鉴于此,本申请提供一种链路检测方法、装置及设备,以利于解决SIP报文出现异常影响视频会议的正常发起的问题。In view of this, the present application provides a link detection method, device and equipment, so as to solve the problem that the abnormality of the SIP message affects the normal initiation of the video conference.
第一方面,本申请实施例提供了一种链路检测方法,包括:In the first aspect, the embodiment of the present application provides a link detection method, including:
第一电子设备接收所述第二电子设备发送的至少一个会话初始协议SIP报文;The first electronic device receives at least one session initiation protocol SIP message sent by the second electronic device;
获取SIP报文的检测信息;所述SIP报文的检测信息用于指示出所述第二电子设备发送的至少一个SIP报文的相关信息;Obtaining detection information of a SIP message; the detection information of the SIP message is used to indicate relevant information of at least one SIP message sent by the second electronic device;
根据接收的所述至少一个SIP报文及所述SIP报文的检测信息,检测接收的所述至少一个SIP报文是否存在异常,并生成检测结果信息;Detecting whether the at least one received SIP message is abnormal according to the received at least one SIP message and the detection information of the SIP message, and generating detection result information;
向所述第二电子设备发送所述检测结果信息。sending the detection result information to the second electronic device.
优选地,所述SIP报文的检测信息包括SIP报文的发送数量;Preferably, the detection information of the SIP message includes the number of SIP messages sent;
所述根据接收的所述至少一个SIP报文及所述SIP报文的检测信息,检测接收的所述至少一个SIP报文是否存在异常,并生成检测结果信息包括:According to the at least one SIP message received and the detection information of the SIP message, detecting whether the at least one SIP message received is abnormal, and generating detection result information includes:
根据接收的所述至少一个SIP报文的数量及所述SIP报文的发送数量,检测SIP报文是否存在丢包异常;According to the number of the at least one received SIP message and the number of sent SIP messages, detect whether there is abnormal packet loss in the SIP message;
若存在丢包异常,则根据所述接收的所述至少一个SIP报文的数量及所述SIP报文的发送数量,确定SIP报文的丢包率;If there is a packet loss exception, then according to the quantity of the at least one SIP message received and the number of transmissions of the SIP message, determine the packet loss rate of the SIP message;
根据所述SIP报文的丢包率生成第一检测结果信息,其中,所述第一检测结果信息包括所述SIP报文的丢包率。generating first detection result information according to the packet loss rate of the SIP message, where the first detection result information includes the packet loss rate of the SIP message.
优选地,所述SIP报文的检测信息包括SIP报文的发送时间周期;Preferably, the detection information of the SIP message includes the sending time period of the SIP message;
在所述接收所述第二电子设备发送的至少一个SIP报文之前,还包括:Before receiving at least one SIP message sent by the second electronic device, it also includes:
根据所述SIP报文的发送时间周期确定接收SIP报文的预设时间范围;Determine the preset time range for receiving the SIP message according to the sending time period of the SIP message;
所述接收所述第二电子设备发送的至少一个SIP报文包括:The receiving at least one SIP packet sent by the second electronic device includes:
在所述预设时间范围内,接收所述第二电子设备发送的至少一个SIP报文。Within the preset time range, at least one SIP message sent by the second electronic device is received.
优选地,所述SIP报文的检测信息包括:所述至少一个SIP报文中每个SIP报文对应的校验信息;所述校验信息包含有SIP报文的报文消息头;Preferably, the detection information of the SIP message includes: verification information corresponding to each SIP message in the at least one SIP message; the verification information includes a message header of the SIP message;
所述根据接收的所述至少一个SIP报文及所述SIP报文的检测信息,检测接收的所述至少一个SIP报文是否存在异常,并生成检测结果信息包括:According to the at least one SIP message received and the detection information of the SIP message, detecting whether the at least one SIP message received is abnormal, and generating detection result information includes:
针对接收的所述至少一个SIP报文中的每个SIP报文,根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测该SIP报文是否存在缺失异常;For each SIP message in the at least one SIP message received, according to the received SIP message and the message header in the verification information corresponding to the SIP message, detect whether the SIP message has a missing exception ;
若存在缺失异常,则根据所述该SIP报文的缺失异常生成该SIP报文对应的第二检测结果信息,其中,所述第二检测结果信息中携带有该SIP报文对应缺失异常的信息。If there is a missing exception, generate the 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 corresponding to the missing exception of the SIP message .
优选地,根据权利要求4所述的方法,其特征在于,所述根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测该SIP报文是否存在缺失异常包括:Preferably, the method according to claim 4, wherein, according to the received SIP message and the message header in the verification information corresponding to the SIP message, it is detected whether the SIP message has a missing exception include:
根据接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头是否一致;According to the message header of the received SIP message and the message header in the corresponding verification information of the SIP message, detect the received message header of the SIP message and the corresponding verification information of the SIP message Whether the message header of the message is consistent;
若所述接收的该SIP报文的报文消息头及所述该SIP报文对应校验信息中的报文消息头不一致,则确定存在缺失异常,或者If the message header of the received SIP message is inconsistent with the message header in the verification information corresponding to the SIP message, it is determined that there is a missing exception, or
若所述接收的该SIP报文的报文消息头及所述该SIP报文对应校验信息中的报文消息头一致,则根据所述接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息体长度,与所述校验信息中的报文消息头中记录的该SIP报文的报文消息体长度是否一致;If the message header of the received SIP message is consistent with the message header in the corresponding verification information of the SIP message, then according to the received SIP message and the corresponding verification information of the SIP message, check the message header in the verification information, and detect whether the message body length of the SIP message received is consistent with the message body length of the SIP message recorded in the message header in the verification information ;
若所述接收的该SIP报文的报文消息体长度,与所述校验信息中的报文消息头中记录的该SIP报文的报文消息体长度不一致,则确定存在缺失异常。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 recorded in the message header of the verification information, it is determined that there is a missing exception.
优选地,所述校验信息包含有SIP报文的数据信息;Preferably, the verification information includes data information of the SIP message;
所述根据接收的所述至少一个SIP报文及所述SIP报文的检测信息,检测接收的所述至少一个SIP报文是否存在异常,并生成检测结果信息包括:According to the at least one SIP message received and the detection information of the SIP message, detecting whether the at least one SIP message received is abnormal, and generating detection result information includes:
针对接收的所述至少一个SIP报文中的每个SIP报文,获取接收的该SIP报文中的数据信息;Obtaining data information in the received SIP message for each SIP message in the at least one received SIP message;
根据接收的该SIP报文中的数据信息及所述该SIP报文对应的校验信息中的数据信息,检测该SIP报文是否存在转换异常,所述转换异常是指所述第一电子设备接收的SIP报文是经过网络地址转换NAT的转换后的SIP报文;According to the data information in the received SIP message and the data information in the verification information corresponding to the SIP message, detect whether there is a conversion abnormality in the SIP message, and the conversion abnormality refers to the first electronic device The received SIP message is a converted SIP message through NAT;
若存在转换异常,则根据所述该SIP报文的转换异常生成该SIP报文对应的第三检测结果信息,其中,所述第三检测结果信息中携带有该SIP报文对应的转换异常的信息。If there is a conversion abnormality, generate third detection result information corresponding to the SIP message according to the conversion abnormality of the SIP message, wherein the third detection result information carries information about the conversion abnormality corresponding to the SIP message information.
第二方面,本申请实施例提供了一种链路检测方法,包括:In a second aspect, the embodiment of the present application provides a link detection method, including:
第二电子设备接收第三电子设备发送的第一检测请求消息;所述第一检测请求消息中携带有第一电子设备的标识信息;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 device;
向第一电子设备发送至少一个SIP报文及SIP报文的检测信息;sending at least one SIP packet and detection information of the SIP packet to the first electronic device;
接收第一电子设备发送的检测结果信息;receiving the detection result information sent by the first electronic device;
将所述检测结果信息发送至第三电子设备。Send the detection result information to the third electronic device.
第三方面,本申请实施例提供了一种链路检测方法,包括:In a third aspect, the 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 device;
接收第二电子设备发送的检测结果信息。The detection result information sent by the second electronic device is received.
第四方面,本申请实施例提供了一种链路检测装置,包括:In a fourth aspect, the embodiment of the present application provides a link detection device, including:
接收单元,用于第一电子设备接收所述第二电子设备发送的至少一个会话初始协议SIP报文;a receiving unit, configured for the first electronic device to receive at least one session initiation protocol SIP message sent by the second electronic device;
获取单元,用于获取SIP报文的检测信息;所述SIP报文的检测信息用于指示出所述第二电子设备发送的至少一个SIP报文的相关信息;An acquiring unit, configured to acquire detection information of a SIP message; the detection information of the SIP message is used to indicate relevant information of at least one SIP message sent by the second electronic device;
处理单元,用于根据接收的所述至少一个SIP报文及所述SIP报文的检测信息,检测接收的所述至少一个SIP报文是否存在异常,并生成检测结果信息;A processing unit, configured to detect whether the at least one received SIP message is abnormal according to the received at least one SIP message and the detection information of the SIP message, and generate detection result information;
向所述第二电子设备发送所述检测结果信息。sending the detection result information to the second electronic device.
优选地,所述处理单元,具体用于,根据接收的所述至少一个SIP报文的数量及所述SIP报文的发送数量,检测SIP报文是否存在丢包异常;Preferably, the processing unit is specifically configured to, according to the number of the at least one received SIP message and the number of sent SIP messages, detect whether there is abnormal packet loss in the SIP message;
若存在丢包异常,则将根据所述接收的所述至少一个SIP报文的数量及所述SIP报文的发送数量,确定SIP报文的丢包率;If there is a packet loss exception, then the packet loss rate of the SIP message will be determined according to the quantity of the at least one SIP message received and the number of SIP messages sent;
根据所述SIP报文的丢包率生成第一检测结果信息,其中,所述第一检测结果信息包括所述SIP报文的丢包率。generating first detection result information according to the packet loss rate of the SIP message, where the first detection result information includes the packet loss rate of the SIP message.
优选地,所述接收单元,具体用于,根据所述SIP报文的发送时间周期确定接收SIP报文的预设时间范围;Preferably, the receiving unit is specifically configured to determine a preset time range for receiving the SIP message according to the sending time period of the SIP message;
在所述预设时间范围内,接收所述第二电子设备发送的至少一个SIP报文。Within the preset time range, at least one SIP message sent by the second electronic device is received.
优选地,所述处理单元,还用于,针对接收的所述至少一个SIP报文中的每个SIP报文,根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测该SIP报文是否存在缺失异常;Preferably, the processing unit is further configured to, for each SIP message in the at least one received SIP message, according to the received SIP message and the message in the verification information corresponding to the SIP message Message header, detecting whether there is a missing exception in the SIP message;
若存在缺失异常,则根据所述该SIP报文的缺失异常生成该SIP报文对应的第二检测结果信息,其中,所述第二检测结果信息中携带有该SIP报文对应缺失异常的信息。If there is a missing exception, generate the 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 corresponding to the missing exception of the SIP message .
优选地,所述处理单元,还用于,根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头是否一致;Preferably, the processing unit is further configured to detect the message header of the received SIP message and the SIP message header according to the received SIP message and the message header in the verification information corresponding to the SIP message Whether the message headers in the corresponding verification information of the message are consistent;
若接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头不一致,则确定存在缺失异常,或者If the message header of the received SIP message is inconsistent with the message header in the corresponding verification information of the SIP message, it is determined that there is a missing exception, or
若接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头一致,则根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的长度与所述校验信息中的报文消息头中记录的该SIP报文的长度是否一致;If the message header of the received SIP message is consistent with the message header in the corresponding verification information of the SIP message, then according to the received SIP message and the message in the corresponding verification information of the SIP message A message header, detecting whether the length of the SIP message received is consistent with the length of the SIP message recorded in the message header in the verification information;
若接收的该SIP报文的长度与所述校验信息中的报文消息头中记录的该SIP报文的长度不一致,则确定存在缺失异常。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, it is determined that there is a missing exception.
优选地,所述处理单元,还用于,针对接收的所述至少一个SIP报文中的每个SIP报文,获取接收的该SIP报文中的数据信息;Preferably, the processing unit is further configured to, for each SIP message in the at least one received SIP message, acquire data information in the received SIP message;
根据接收的该SIP报文中的数据信息及所述该SIP报文对应的校验信息中的数据信息,检测该SIP报文是否存在转换异常,所述转换异常是指所述第一电子设备接收的SIP报文是经过网络地址转换NAT的转换后的SIP报文;According to the data information in the received SIP message and the data information in the verification information corresponding to the SIP message, detect whether there is a conversion abnormality in the SIP message, and the conversion abnormality refers to the first electronic device The received SIP message is a converted SIP message through NAT;
若存在转换异常,则根据所述该SIP报文的转换异常生成该SIP报文对应的第三检测结果信息,其中,所述第三检测结果信息中携带有该SIP报文对应转换异常的信息。If there is a conversion exception, generate third detection result information corresponding to the SIP message according to the conversion abnormality of the SIP message, wherein the third detection result information carries information corresponding to the conversion exception of the SIP message .
第五方面,本申请实施例提供了一种电子设备,包括:In a fifth aspect, the embodiment of the present application provides an electronic device, including:
处理器和存储器,所述存储器存储有计算机程序,当所述计算机程序被执行时,使得所述电子设备执行上述第一方面或第二方面或第三方面任一项所述的方法。A processor and a memory, the memory stores a computer program, and when the computer program is executed, the electronic device executes the method described in any one of the first aspect, the second aspect, or the third aspect.
采用本申请实施例所提供的方案,在对链路进行检测时,第一电子设备接收第二电子设备发送的至少一个SIP报文,获取SIP报文的检测信息。其中,SIP报文的检测信息用于指示出第二电子设备发送的至少一个SIP报文的相关信息,例如,可以是SIP报文的发送数量、发送时间周期等信息。然后根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息。例如,可以根据接收到的至少一个报文的数量及检测信息中SIP报文的发送数量,检测是否存在丢包异常,当然也可以根据接收的至少一个SIP报文及SIP报文的检测信息检测是否存在其他异常。在生成检测结果信息之后,向第二电子设备发送检测结果信息。这样一来,通过上述方法,可以检测SIP报文在第一电子设备及第二电子设备之间的链路中传输时是否存在异常,以便后续对相关异常问题进行处理,从而避免视频会议不能正常发起。Using the solutions provided in the embodiments of the present application, when detecting a link, the first electronic device receives at least one SIP message sent by the second electronic device, and obtains detection information of the SIP message. Wherein, the detection information of the SIP message is used to indicate the relevant information of at least one SIP message sent by the second electronic device, for example, it may be the number of SIP messages sent, the sending time period and other information. Then, according to the at least one received SIP message and the detection information of the SIP message, detect whether the at least one received SIP message is abnormal, and generate detection result information. For example, it is possible to detect whether there is an abnormal packet loss according to the number of at least one received message and the number of SIP messages sent in the detection information, and of course it can be detected according to at least one received SIP message and the detection information of the SIP message. Are there any other abnormalities. After the detection result information is generated, the detection result information is sent to the second electronic device. In this way, through the above method, it is possible to detect whether there is an abnormality when the SIP message is transmitted in the link between the first electronic device and the second electronic device, so as to deal with related abnormal problems later, thereby preventing the video conference from being abnormal initiated.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative labor.
图1为本申请实施例提供的一种链路检测方法的流程示意图;FIG. 1 is a schematic flow diagram of a link detection method provided in an embodiment of the present application;
图2为本申请实施例提供的另一种链路检测方法的流程示意图;FIG. 2 is a schematic flow chart of another link detection method provided in the embodiment of the present application;
图3为本申请实施例提供的另一种链路检测方法的流程示意图;FIG. 3 is a schematic flow diagram of another link detection method provided in the embodiment of the present application;
图4为本申请实施例提供的另一种链路检测方法的流程示意图;FIG. 4 is a schematic flow diagram of another link detection method provided in the embodiment of the present application;
图5为本申请实施例提供的一种链路检测装置的结构示意图;FIG. 5 is a schematic structural diagram of a link detection device provided in an embodiment of the present application;
图6为本申请实施例提供的另一种链路检测装置的结构示意图;FIG. 6 is a schematic structural diagram of another link detection device provided by an embodiment of the present application;
图7为本申请实施例提供的另一种链路检测装置的结构示意图;FIG. 7 is a schematic structural diagram of another link detection device provided by an embodiment of the present application;
图8为本申请实施例提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。Terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of this application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,甲和/或乙,可以表示:单独存在甲,同时存在甲和乙,单独存在乙这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used herein is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean that A exists alone, and A and B exist simultaneously. B, there are three situations of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
在对本申请实施例进行具体介绍之前,首先对本申请实施例应用或可能应用的术语进行解释。Before the specific introduction of the embodiment of the present application, the terms applied or possibly applied in the embodiment of the present application are firstly explained.
会话初始协议(Session initialization Protocol,SIP):是由因特网工程任务组(Internet Engineering Task Force,IETF)制定的多媒体通信协议。它是一个基于文本的应用层控制协议,用于创建、修改和释放一个或多个参与者的会话。SIP是一种源于互联网的语音会话控制协议,具有灵活、易于实现、便于扩展等特点。Session initialization protocol (Session initialization Protocol, SIP): is a multimedia communication protocol developed 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 with one or more participants. SIP is a voice session control protocol originating from the Internet, which is flexible, easy to implement, and easy to expand.
SIP报文:SIP消息是SIP客户终端和服务器之间通信的的基本信息单元,SIP消息基于文本,因此也称作SIP报文。SIP协议借鉴了HTTP协议(RFC 2068)的设计思想,有很多消息格式与之相同。SIP协议支持UDP传输协议。SIP消息消息分两类:请求消息和响应消息。其中,请求消息是指客户端为了激活特定操作而发给服务器的SIP消息,包括呼叫(INVITE)、确认应答(ACK)、询问被呼叫端(OPTIONS)、终止会话(BYE)、取消当前请求(CANCEL)和注册(REGISTER)消息。SIP报文SIP消息头字段和SIP消息体字段。SIP消息头主要用来指明本消息的发起方和接受方,以及经过多少跳转等基本信息;SIP消息体主要用来描述本次会话具体实现方式,通过会话描述协议(Session Description Protocol,SDP)进行描述。SIP message: SIP message is the basic information unit for communication between SIP client terminal and server. SIP message is based on text, so it is also called SIP message. The SIP protocol draws on the design idea of the HTTP protocol (RFC 2068), and many message formats are the same as it. The SIP protocol supports the UDP transport protocol. There are two types of SIP messages: request messages and response messages. Among them, the request message refers to the SIP message sent by the client to the server in order to activate a specific operation, including call (INVITE), confirmation response (ACK), inquiry of the called end (OPTIONS), termination of the session (BYE), cancellation of the current request ( CANCEL) and registration (REGISTER) messages. SIP packet SIP message header field and SIP message body field. The SIP message header is mainly used to indicate the initiator and receiver of the message, and the basic information such as how many jumps have been passed; the SIP message body is mainly used to describe the specific implementation method of this session, through the Session Description Protocol (Session Description Protocol, SDP) to describe.
网络地址转换(Network Address Translation,NAT):是一种接入广域网(WideArea Network,WAN)技术,是一种将私有地址转化为合法网际互连协议(InternetProtocol,IP)地址的转换技术。Network Address Translation (NAT): It is a wide area network (WideArea Network, WAN) technology, and a conversion technology that converts private addresses into legal Internet Protocol (Internet Protocol, IP) addresses.
丢包(Packet loss):是指一个或多个数据数据包的数据无法透过网上到达目的地。丢包可能造成流媒体技术、在线游戏和视频会议的抖动,并会一定程度上影响到其他的网上应用。Packet loss: It means that the data of one or more data packets cannot reach the destination through the network. Packet loss may cause jitter in streaming media technology, online games and video conferencing, and affect other online applications to a certain extent.
相关技术中,由于互联网情况的复杂性和多样性,会话初始协议(Sessioninitialization Protocol,SIP)报文在链路中传输的过程中会出现异常,例如丢包、SIP报文不完整、经过网络地址转换(Network Address Translation,NAT)设备的问题。例如,在SIP终端向服务器发送SIP报文时,如果服务器超时则会导致接收不到SIP报文,即为SIP报文在链路传输过程中可能存在丢包;当SIP报文的数据包比链路最大传输单元大时,会被分解为很多的足够小片段,以便能够在链路进行传输,即为SIP报文存在分片的情况,但是SIP报文的分片在链路传输的过程中可能会出现丢失的情况,那么就会导致服务器接收到的SIP报文不完整;如果终端连接的特定网络中存在网络地址转换(Network AddressTranslation,NAT)设备,那么当终端发送的SIP报文在特定网络中经过NAT设备进行传输时,NAT设备会改变SIP报文的报文消息体中的端口信息。当SIP报文出现异常时,会影响视频会议的正常发起,因此需要专门的技术来检测SIP报文在SIP终端与服务器之间的链路中传输时是否存在异常。In related technologies, due to the complexity and diversity of the Internet situation, abnormalities may occur during the transmission of Session Initiation Protocol (SIP) messages in the link, such as packet loss, incomplete SIP messages, or passing through network addresses. Conversion (Network Address Translation, NAT) equipment problems. For example, when a SIP terminal sends a SIP message to the server, if the server times out, the SIP message cannot be received, that is, there may be packet loss during the link transmission of the SIP message; when the data packet of the SIP message is larger than When the maximum transmission unit of the link is large, it will be decomposed into many small enough fragments to be able to transmit on the link. There may be a loss in the network, which will cause the SIP message received by the server to be incomplete; if there is a Network Address Translation (Network Address Translation, NAT) device in the specific network connected to the terminal, then when the SIP message sent by the terminal is in the When transmitting through a NAT device in a specific network, the NAT device will change the port information in the message body of the SIP message. When the SIP message is abnormal, it will affect the normal initiation of the video conference. Therefore, special technology is needed to detect whether there is an abnormality when the SIP message is transmitted in the link between the SIP terminal and the server.
针对上述问题,本申请实施例提供了一种链路检测方法。在该方法中,在对链路进行检测时,第一电子设备接收第二电子设备发送的至少一个SIP报文,获取SIP报文的检测信息。其中,SIP报文的检测信息用于指示出第二电子设备发送的至少一个SIP报文的相关信息,例如,可以是SIP报文的发送数量、发送时间周期等信息。然后根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息。例如,可以根据接收到的至少一个报文的数量及检测信息中SIP报文的发送数量,检测是否存在丢包异常,当然也可以根据接收的至少一个SIP报文及SIP报文的检测信息检测是否存在其他异常。在生成检测结果信息之后,向第二电子设备发送检测结果信息。这样一来,通过上述方法,可以检测SIP报文在第一电子设备及第二电子设备之间的链路中传输时是否存在异常,以便后续对相关异常问题进行处理,从而避免视频会议不能正常发起。以下进行详细说明。In view of the above problems, an embodiment of the present application provides a link detection method. In this method, when detecting a link, the first electronic device receives at least one SIP message sent by the second electronic device, and acquires detection information of the SIP message. Wherein, the detection information of the SIP message is used to indicate the relevant information of at least one SIP message sent by the second electronic device, for example, it may be the number of SIP messages sent, the sending time period and other information. Then, according to the at least one received SIP message and the detection information of the SIP message, detect whether the at least one received SIP message is abnormal, and generate detection result information. For example, it is possible to detect whether there is an abnormal packet loss according to the number of at least one received message and the number of SIP messages sent in the detection information, and of course it can be detected according to at least one received SIP message and the detection information of the SIP message. Are there any other abnormalities. After the detection result information is generated, the detection result information is sent to the second electronic device. In this way, through the above method, it is possible to detect whether there is an abnormality when the SIP message is transmitted in the link between the first electronic device and the second electronic device, so as to deal with related abnormal problems later, thereby preventing the video conference from being abnormal initiated. The details will be described below.
图1为本申请实施例提供的一种链路检测方法的流程示意图。参见图1所示,本申请实施例提供的链路检测方法主要包括以下几个步骤:FIG. 1 is a schematic flowchart of a link detection method provided by an embodiment of the present application. Referring to Figure 1, the link detection method provided by the embodiment of the present application mainly includes the following steps:
步骤S101、第一电子设备接收第二电子设备发送的至少一个会话初始协议SIP报文。Step S101, the first electronic device receives at least one session initiation protocol SIP message sent by the second electronic device.
在本申请实施例中,进行链路检测时,第二电子设备向第一电子设备发送至少一个会话初始协议SIP报文,第一电子设备接收第二电子设备发送的至少一个会话初始协议SIP报文。其中,在第一电子设备接收第二电子设备发送的至少一个SIP报文之前,可以先接收第二电子设备发送的第二检测请求消息,并向第二电子设备返回响应消息,以告知第二电子设备可以开始发送SIP报文。其中,第二检测请求消息中携带有第二电子设备发送的至少一个SIP报文的相关信息,例如,可以是SIP报文的发送数量、SIP报文的发送时间周期等信息。然后第二电子设备可以向第一电子设备发送至少一个SIP报文,第一电子设备接收第二电子设备发送的至少一个SIP报文。In this embodiment of the application, when performing link detection, the second electronic device sends at least one session initiation protocol SIP message to the first electronic device, and the first electronic device receives at least one session initiation protocol SIP message sent by the second electronic device. arts. Wherein, before the first electronic device receives at least one SIP packet sent by the second electronic device, it may first receive the second detection request message sent by the second electronic device, and return a response message to the second electronic device to inform the second The electronic device can start sending SIP packets. Wherein, the second detection request message carries information related to at least one SIP message sent by the second electronic device, for example, it may be information such as the number of SIP messages sent, the time period for sending SIP messages, and the like. Then the second electronic device may send at least one SIP packet to the first electronic device, and the first electronic device receives at least one SIP packet sent by the second electronic device.
作为一种可能的实现方式,在接收第二电子设备发送的至少一个SIP报文之前,还包括:As a possible implementation, before receiving at least one SIP message sent by the second electronic device, the method further includes:
根据SIP报文的发送时间周期确定接收SIP报文的预设时间范围。The preset time range for receiving the SIP message is determined according to the sending time period of the SIP message.
具体的,当第一电子设备接收到第二检测请求消息之后,可以解析第二检测请求消息,获取SIP报文的发送数量、SIP报文的发送时间周期,根据SIP报文的发送数量、SIP报文的发送时间周期可以确定接收SIP报文的预设时间范围,即为,确定接收第二电子设备发送的SIP报文所需要的时间。Specifically, after the first electronic device receives the second detection request message, it can parse the second detection request message to obtain the number of SIP messages sent and the time period for sending SIP messages. According to the number of SIP messages sent, the SIP The time period for sending the message may determine the preset time range for receiving the SIP message, that is, determine the time required to receive the SIP message sent by the second electronic device.
进一步地,接收第二电子设备发送的至少一个SIP报文包括:Further, receiving at least one SIP message sent by the second electronic device includes:
在预设时间范围内,接收第二电子设备发送的至少一个SIP报文。Receive at least one SIP packet sent by the second electronic device within a preset time range.
在本申请实施例中,当确定出预设时间范围之后,第一电子设备可以在该预设时间范围内,接收第二电子设备发送的至少一个SIP报文,当时间达到该预设时间范围之后,说明已经接收完成第二电子设备发送的所有的至少一个SIP报文。In this embodiment of the present application, after the preset time range is determined, the first electronic device may receive at least one SIP message sent by the second electronic device within the preset time range, and when the time reaches the preset time range Afterwards, it is indicated that all at least one SIP message sent by the second electronic device has been received.
需要说明的是,至少一个SIP报文中包含的数据信息可以相同也可以不同,本申请对此不作限制。It should be noted that the data information contained in at least one SIP message may be the same or different, and this application does not limit this.
步骤S102、获取SIP报文的检测信息。Step S102, acquiring detection information of the SIP message.
其中,SIP报文的检测信息用于指示出第二电子设备发送的至少一个SIP报文的相关信息。Wherein, 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.
具体的,第一电子设备可以获取SIP报文的检测信息,用以检测接收的第二电子设备发送的至少一个SIP报文。Specifically, the first electronic device may obtain the detection information of the SIP packet, so as to detect at least one received SIP packet sent by the second electronic device.
作为一种可能的实现方式,SIP报文的检测信息包括SIP报文的发送数量、SIP报文的发送时间周期。As a possible implementation manner, the detection information of the SIP message includes the number of SIP messages sent and the time period for sending the SIP message.
其中,第一电子设备可以解析接收的第二电子设备发送的第二检测请求消息,从中获取IP报文的发送数量、SIP报文的发送时间周期作为检测信息,用以检测SIP报文是否存在丢包异常。Wherein, the first electronic device may analyze the received second detection request message sent by the second electronic device, and obtain the number of IP packets sent and the time period of the SIP packet sent as detection information to detect whether the SIP packet exists. Abnormal packet loss.
作为一种可能的实现方式,SIP报文的检测信息包括:至少一个SIP报文中每个SIP报文对应的校验信息。其中,校验信息包含有SIP报文的报文消息头,校验信息中还可以包含有SIP报文的数据信息。As a possible implementation manner, the detection information of the SIP message includes: verification information corresponding to each SIP message in at least one SIP message. Wherein, the verification information includes a message header of the SIP message, and the verification information may also include data information of the SIP message.
具体的,第二电子设备向第一电子设备发送至少一个SIP报文的同时,会将每个SIP报文对应的校验信息也发送至第一电子设备,第一电子设备可以获取接收到的至少一个SIP报文中每个SIP报文对应的校验信息作为检测信息,以便后续第一电子设备对接收的至少一个SIP报文进行检测。由于SIP报文包括报文消息头及报文消息体,其中,报文消息头中包括报文消息体的长度信息;报文消息体中包括该SIP报文的数据信息。因此,校验信息中可以包含有SIP报文的报文消息头,校验信息中还可以包含有SIP报文的数据信息,用以检测接收的SIP报文是否存在缺失异常、转换异常。Specifically, when the second electronic device sends at least one SIP message to the first electronic device, it will also send the verification information corresponding to each SIP message to the first electronic device, and the first electronic device can obtain the received The verification information corresponding to each SIP message in the at least one SIP message is used as detection information, so that the subsequent first electronic device can detect the at least one received SIP message. A SIP message includes a message header and a message body, wherein the message header includes length information of the message body; the message body includes data information of the SIP message. Therefore, the verification information may include the message header of the SIP message, and the verification information may also include the data information of the SIP message, so as to detect whether the received SIP message has missing abnormality or conversion abnormality.
步骤S103、根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息。Step S103 , according to the at least one received SIP message and the detection information of the SIP message, detect whether the at least one received SIP message is abnormal, and generate detection result information.
在本申请实施例中,由于互联网情况的复杂性和多样性,SIP报文在链路中传输时会出现异常,例如丢包异常、缺失异常、转换异常等问题,这些异常问题会影响视频会议的正常发起。因此,当接收到至少一个报文及SIP报文的检测信息之后,第一电子设备可以根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常。In the embodiment of this application, due to the complexity and diversity of the Internet situation, abnormalities will occur when SIP messages are transmitted in the link, such as packet loss exceptions, missing exceptions, conversion exceptions, etc. These abnormal problems will affect the video conference normal initiation. Therefore, after receiving at least one message and the detection information of the SIP message, the first electronic device can detect whether the at least one received SIP message is abnormal according to the received at least one SIP message and the detection information of the SIP message .
作为一种可能的实现方式,根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息包括:As a possible implementation, according to the received at least one SIP message and the detection information of the SIP message, detect whether the at least one SIP message received is abnormal, and generate detection result information including:
根据接收的至少一个SIP报文的数量及SIP报文的发送数量,检测SIP报文是否存在丢包异常;According to the number of received at least one SIP message and the number of sent SIP messages, detect whether there is a packet loss exception in the SIP message;
根据SIP报文的丢包率生成第一检测结果信息,其中,第一检测结果信息包括SIP报文的丢包率。The first detection result information is generated according to the packet loss rate of the SIP message, where the first detection result information includes the packet loss rate of the SIP message.
具体的,由于SIP报文在第一电子设备及第二电子设备之间的链路中传输时,存在第二电子设备超时导致未接收到SIP报文的情况,即为存在丢包异常,如果第一电子设备未接收到SIP报文,那么便不能根据该SIP报文进行处理,那么就会影响视频会议的正常发起,因此第一电子设备需要检测SIP报文是否存在丢包异常。第一电子设备根据接收的至少一个SIP报文的数量及SIP报文的检测信息中SIP报文的发送数量,可以检测SIP报文是否存在丢包异常。若接收的至少一个SIP报文的数量少于SIP报文的检测信息中SIP报文的发送数量,则确定SIP报文存在丢包异常;若接收的至少一个SIP报文的数量等于SIP报文的检测信息中SIP报文的发送数量,则确定SIP报文不存在丢包异常。Specifically, when the SIP message is transmitted in the link between the first electronic device and the second electronic device, there is a situation that the second electronic device does not receive the SIP message due to timeout, that is, there is a packet loss exception, if If the first electronic device does not receive the SIP message, it cannot process it according to the SIP message, which will affect the normal initiation of the video conference. Therefore, the first electronic device needs to detect whether there is abnormal packet loss in the SIP message. According to the quantity of at least one SIP packet received and the number of sent SIP packets in the detection information of the SIP packet, the first electronic device can detect whether there is abnormal packet loss in the SIP packet. If the number of at least one SIP message received is less than the number of SIP messages sent in the detection information of the SIP message, it is determined that the SIP message has a packet loss exception; if the number of at least one SIP message received is equal to the SIP message If the number of sent SIP packets in the detection information is determined, it is determined that there is no packet loss exception in the SIP packets.
若确定SIP报文存在丢包异常,则需要计算SIP报文的丢包率,通过丢包率来反映至少一个SIP报文在链路中传输时的丢失情况。其中,丢包率为丢失的数据包的数量占发送的数据包的数量的比率,在本申请实施例中,一个SIP报文即为一个数据包,SIP报文的丢包率即为SIP报文的丢失数量占SIP报文的发送数量的比率。第一电子设备根据接收的至少一个SIP报文的数量及SIP报文的发送数量,确定SIP报文的丢包率。例如,可以根据接收的至少一个SIP报文的数量及SIP报文的发送数量确定出SIP报文的丢失数量,然后根据SIP报文的丢失数量与SIP报文的发送数量的比值确定出丢包率,当然也可以是其他方式,本申请对此不做限制。然后根据确定出的丢包率生成第一检测结果信息,其中,第一检测结果信息中包括SIP报文的丢包率。If it is determined that there is abnormal packet loss in the SIP message, it is necessary to calculate the packet loss rate of the SIP message, and use the packet loss rate to reflect the loss of at least one SIP message during transmission in the link. Wherein, the packet loss rate is the ratio of the number of lost data packets to the number of data packets sent. In the embodiment of this application, a SIP message is a data packet, and the packet loss rate of a SIP message is the SIP packet loss rate. The ratio of the number of lost packets to the number of sent SIP packets. The first electronic device determines the packet loss rate of the SIP message according to the number of at least one SIP message received and the number of sent SIP messages. For example, the number of lost SIP messages can be determined according to the number of at least one SIP message received and the number of SIP messages sent, and then the packet loss can be determined according to the ratio of the number of lost SIP messages to the number of SIP messages sent rate, of course, it can also be in other ways, which is not limited in this application. Then, the first detection result information is generated according to the determined packet loss rate, where the first detection result information includes the packet loss rate of the SIP packet.
需要说明的是,若不存在丢包异常,可以直接生成第一检测结果信息,此时,第一检测结果信息包括SIP报文的丢包率为零。It should be noted that, if there is no packet loss abnormality, the first detection result information may be directly generated, and at this time, the first detection result information includes a packet loss rate of the SIP packet being zero.
作为一种可能的实现方式,根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息包括:As a possible implementation, according to the received at least one SIP message and the detection information of the SIP message, detect whether the at least one SIP message received is abnormal, and generate detection result information including:
针对接收的至少一个SIP报文中的每个SIP报文,根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测该SIP报文是否存在缺失异常;For each SIP message in at least one SIP message received, according to the message header in the received SIP message and the corresponding check information of the SIP message, detect whether there is a missing exception in the SIP message;
若存在缺失异常,则根据该SIP报文的缺失异常生成该SIP报文对应的第二检测结果信息,其中,第二检测结果信息中携带有该SIP报文对应缺失异常的信息。If there is a missing exception, generate 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 about the missing abnormality corresponding to the SIP message.
具体的,链路最大传输单元是指在传输数据过程中允许报文的最大长度,因此当SIP报文的数据包比链路最大传输单元大时,会被分解为很多的足够小片段,以便其能够在链路进行传输,即为SIP报文在传输过程中被分片。但是,SIP报文的分片在链路传输的过程中可能会出现丢失的情况,就会导致第一电子设备接收到的SIP报文存在缺失异常。由于每一个SIP报文在传输过程中都可能存在缺失异常,因此,针对接收的至少一个SIP报文中的每个SIP报文,都需要进行缺失异常检测。此时,第一电子设备可以根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测该SIP报文是否存在缺失异常。若确定存在缺失异常,则说明需要根据确定出的该SIP报文的缺失异常信息,生成相应的检测结果。此时,可以根据该SIP报文的缺失异常生成该SIP报文对应的第二检测结果信息,其中,第二检测结果信息中携带有该SIP报文对应缺失异常的信息。Specifically, the maximum transmission unit of a link refers to the maximum length of a packet allowed during data transmission. Therefore, when a data packet of a SIP packet is larger than the maximum transmission unit of a link, it will be decomposed into many small enough fragments so that It can be transmitted on the link, that is, the SIP message is fragmented during transmission. However, the fragmentation of the SIP message may be lost during link transmission, which will cause the SIP message received by the first electronic device to be missing and abnormal. Since each SIP message may have a missing exception during transmission, therefore, missing and abnormal detection needs to be performed for each SIP message in at least one received SIP message. At this time, the first electronic device may detect whether the SIP message is missing abnormally according to the received SIP message and the message header in the verification information corresponding to the SIP message. If it is determined that there is a missing exception, it means that a corresponding detection result needs to be generated according to the determined missing abnormal information of the SIP message. At this time, the second detection result information corresponding to the SIP message may be generated according to the absence exception of the SIP message, wherein the second detection result information carries information about the absence exception corresponding to the SIP message.
需要说明的是,若不存在缺失异常,可以直接生成第二检测结果信息,其中,第二检测结果信息中携带有该SIP报文不存在缺失异常的信息。It should be noted that, if there is no missing exception, the second detection result information may be directly generated, wherein the second detection result information carries information that the SIP packet does not have the missing exception.
进一步地,根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,确定该SIP报文是否存在缺失异常包括:Further, according to the message header in the received SIP message and the corresponding verification information of the SIP message, determining whether the SIP message has a missing exception includes:
根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头是否一致;According to the received SIP message and the message header in the corresponding verification information of the SIP message, detect the received message header of the SIP message and the message header in the corresponding verification information of the SIP message Is it consistent;
若接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头不一致,则确定存在缺失异常,或者If the message header of the received SIP message is inconsistent with the message header in the corresponding verification information of the SIP message, it is determined that there is a missing exception, or
若接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头一致,则根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息体长度,与校验信息中的报文消息头中记录的该SIP报文的报文消息体长度是否一致;If the message header of the received SIP message is consistent with the message header in the corresponding verification information of the SIP message, then according to the received SIP message and the message in the corresponding verification information of the SIP message The message header detects whether the message body length of the SIP message received is consistent with the message body length of the SIP message recorded in the message header in the verification information;
若接收的该SIP报文的报文消息体长度,与校验信息中的报文消息头中记录的该SIP报文的报文消息体长度不一致,则确定存在缺失异常。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 recorded in the message header in the verification information, it is determined that there is a missing exception.
具体的,SIP报文包括报文消息头及报文消息体。其中,报文消息头中包括报文消息体的长度信息;报文消息体中包括该SIP报文的数据信息。因此,针对接收的至少一个SIP报文中的每个SIP报文,可以先检测该SIP报文的报文消息头是否存在缺失异常,若报文消息头存在缺失异常,则确定该SIP报文存在缺失异常;若报文消息头不存在缺失异常,再继续检测SIP报文的报文消息头是否存在缺失异常。这样一来,当检测到该SIP报文的报文消息头存在缺失异常时,无需检测该SIP报文的报文消息体是否存在缺失异常,即可确定该SIP报文存在缺失异常,节省了检测时间。基于此,在检测接收的SIP报文是否存在缺失异常时,针对接收的所述至少一个SIP报文中的每个SIP报文,第一电子设备可以根据接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头,检测两者是否一致,例如,可以比较接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头的数据大小是否一致。若确定接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头不一致,则说明该SIP报文的报文消息头存在缺失异常,此时可以确定该SIP报文存在缺失异常。Specifically, the SIP message includes a message header and a message body. Wherein, the message header includes the length information of the message body; the message body includes the data information of the SIP message. Therefore, for each SIP message in at least one SIP message received, it is possible to first detect whether there is a missing exception in the message header of the SIP message, and if there is a missing abnormality in the message header of the message, then determine that the SIP message There is a missing exception; if there is no missing abnormality in the message header of the message, continue to detect whether there is a missing abnormality in the message header of the SIP message. In this way, when it is detected that there is a missing exception in the message header of the SIP message, it is not necessary to detect whether there is a missing abnormality in the message body of the SIP message, and it can be determined that there is a missing abnormality in the SIP message, which saves Detection time. Based on this, when detecting whether the received SIP message has a missing exception, for each SIP message in the at least one received SIP message, the first electronic device may, according to the message message of the received SIP message header and the message header in the verification information corresponding to the SIP message, and check whether the two are consistent. Whether the data size of the message header is consistent. If it is determined that the message header of the received SIP message is inconsistent with the message header in the corresponding verification information of the SIP message, it means that the message header of the SIP message has a missing exception. SIP packets are missing.
若确定接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头一致,则说明该SIP报文的报文消息头不存在缺失异常,此时需要继续检测该SIP报文的报文消息体是否存在缺失异常。由于该SIP报文对应的校验信息中的报文消息头中记录了该SIP报文的报文消息体的长度,因此第一电子设备可以根据接收的该SIP报文的报文消息体的长度,检测接收的该SIP报文的报文消息体的长度与校验信息中该SIP报文的报文消息体的长度是否一致。若接收的该SIP报文的报文消息体的长度与校验信息中该SIP报文的报文消息体的长度不一致,则确定该SIP报文存在缺失异常;若接收的该SIP报文的报文消息体的长度与校验信息中该SIP报文的报文消息体的长度一致,则确定该SIP报文不存在缺失异常。If it is determined that the message header of the received SIP message is consistent with the message header in the corresponding verification information of the SIP message, it means that the message header of the SIP message is not missing abnormally, and you need to continue at this time Detect whether the message body of the SIP message is missing or not. Since the length of the message body of the SIP message is recorded in the message header in the verification information corresponding to the SIP message, the first electronic device can length, detecting 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 verification information. If the length of the message message body of the SIP message received is inconsistent with the length of the message message body of the SIP message in the verification information, it is determined that the SIP message has a missing exception; If the length of the message body of the message is consistent with the length of the message body of the SIP message in the verification information, it is determined that there is no missing exception in the SIP message.
作为一种可能的实现方式,根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息包括:As a possible implementation, according to the received at least one SIP message and the detection information of the SIP message, detect whether the at least one SIP message received is abnormal, and generate detection result information including:
针对接收的至少一个SIP报文中的每个SIP报文,获取接收的该SIP报文中的数据信息;For each SIP message in at least one SIP message received, obtain the data information in the received SIP message;
根据接收的该SIP报文中的数据信息及该SIP报文对应的校验信息中的数据信息,检测该SIP报文是否存在转换异常,转换异常是指第一电子设备接收的SIP报文是经过网络地址转换NAT的转换后的SIP报文;According to the data information in the received SIP message and the data information in the verification information corresponding to the SIP message, detect whether there is a conversion abnormality in the SIP message, and the conversion abnormality means that the SIP message received by the first electronic device is The converted SIP message after the network address translation NAT;
若存在转换异常,则根据该SIP报文的转换异常生成该SIP报文对应的第三检测结果信息,其中,第三检测结果信息中携带有该SIP报文对应的转换异常的信息。If there is a conversion abnormality, generate third detection result information corresponding to the SIP message according to the conversion abnormality of the SIP message, wherein the third detection result information carries information about the conversion abnormality corresponding to the SIP message.
具体的,由于第一电子设备到第二电子设备的网络可能是存在特殊的网络地址转换(Network Address Translation,NAT)设备的特定网络,SIP报文在该特定网络中传输时,SIP报文中的数据信息会发生转换,例如,会改变SIP报文的报文消息体中记录的源端口信息,源端口信息即为第二电子设备使用的端口号信息,包括音频接口、视频接口、耳机接口等端口号信息,进而影响该SIP报文所指示的视频会议的正常发起。因此,第一电子设备在接收到至少一个SIP报文之后,需要检测接收的至少一个SIP报文是否存在转换异常。针对接收的至少一个SIP报文中的每个SIP报文,第一电子设备可以先获取接收的该SIP报文中的数据信息,然后检测接收的该SIP报文中的数据信息与该SIP报文对应的校验信息中的数据信息是否一致。若接收的该SIP报文中的数据信息与该SIP报文对应的校验信息中的数据信息不一致,则确定该SIP报文存在转换异常;若接收的该SIP报文中的数据信息与该SIP报文对应的校验信息中的数据信息一致,则确定该SIP报文不存在转换异常。若确定其存在转换异常,则根据该SIP报文的转换异常生成该SIP报文对应的第三检测结果信息,其中,第三检测结果信息中携带有该SIP报文对应的转换异常的信息。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 SIP message The data information will be converted, for example, the source port information recorded in the message body of the SIP message will be changed, the source port information is the port number information used by the second electronic device, including audio interface, video interface, earphone interface port number information, thereby affecting 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 there is a conversion abnormality in the received at least one SIP message. 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 the difference between the data information in the received SIP message and the SIP message. Whether the data information in the verification information corresponding to the text is consistent. If the data information in the received SIP message is inconsistent with the data information in the verification information corresponding to the SIP message, it is determined that there is a conversion exception in the SIP message; if the data information in the received SIP message is inconsistent with the If the data information in the verification information corresponding to the SIP message is consistent, it is determined that there is no conversion abnormality in the SIP message. If it is determined that there is a conversion abnormality, the 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 about the conversion abnormality corresponding to the SIP message.
另外,若不存在转换异常,可以直接生成该SIP报文对应的第三检测结果信息,其中,第二检测结果信息中携带有该SIP报文不存在转换异常的信息。In addition, if there is no conversion abnormality, the third detection result information corresponding to the SIP message may be directly generated, wherein the second detection result information carries information that the SIP message does not have conversion abnormality.
步骤S104、向第二电子设备发送检测结果信息。Step S104, sending detection result information to the second electronic device.
具体的,当第一电子设备生成检测结果信息之后,需要向第二电子设备发送检测结果信息,以告知第二电子设备检测结果。Specifically, after the first electronic device generates the detection result information, it needs to send the detection result information to the second electronic device, so as to inform the second electronic device of the detection result.
需要说明的是,针对接收的至少一个SIP报文中的每一个SIP报文,都需要执行上述缺失异常、转换异常的检测过程。第一电子设备可以每接收到一个SIP报文就立即对其进行缺失异常、转换异常的检测,也可以在预设时间范围内,接收完成至少一个SIP报文之后再对接收的每一个SIP报文进行检测,本申请对此不作限制。It should be noted that, for each SIP message in at least one received SIP message, it is necessary to perform the detection process of the above missing abnormality and conversion abnormality. The first electronic device can immediately detect the missing abnormality and conversion abnormality every time it receives a SIP message, and can also detect each received SIP message after receiving at least one SIP message within a preset time range. The text is tested, and this application does not limit it.
需要说明的是,由于存在丢包异常时,需要计算SIP报文的丢包率,因此在接收完成第二电子设备发送的至少一个SIP报文之后,才能执行丢包异常的检测过程。也就是说,第一电子设备在预设时间范围内,接收第二电子设备发送的至少一个SIP报文,当达到预设时间范围之后,说明已经接收完成第二电子设备发送的至少一个SIP报文,此时可以执行上述丢包异常的检测过程。It should be noted that since the packet loss rate of the SIP packet needs to be calculated when there is an abnormal packet loss, the detection process of the abnormal packet loss can only be performed after receiving at least one SIP packet sent by the second electronic device. That is to say, the first electronic device receives at least one SIP message sent by the second electronic device within the preset time range, and when the preset time range is reached, it indicates that the at least one SIP message sent by the second electronic device has been received. At this time, the above abnormal packet loss detection process can be performed.
示例性的,假设在检测第二电子设备与第一电子设备之间的链路时,需要检测SIP报文在该链路中传输时是否存在丢包异常、缺失异常及转换异常问题。此时,第一电子设备接收到第二电子设备发送的第二检测请求消息,其中,第二检测请求消息中包括SIP报文的发送数量为100个,SIP报文的发送时间周期为10ms。第一电子设备接收到第二检测请求消息后向第二电子设备返回响应消息。第一电子设备根据SIP报文的发送数量为100个,SIP报文的发送时间周期为10ms,可以确定出接收SIP报文的预设时间范围为1000ms,并在预设时间范围1000ms内,接收第二电子设备发送的第一个SIP报文,同时接收第一个SIP报文对应的校验信息。假设接收的第一个SIP报文的报文消息头为A,报文消息体的长度为B,报文消息体C中包含的端口号信息为D;第一个SIP报文对应的校验信息中包括第一个SIP报文的报文消息头E及SIP报文的数据信息F,其中,第一个SIP报文的报文消息头E中包括报文消息体的长度为G,SIP报文的数据信息F为第一个SIP报文的报文消息体中的端口号信息H。Exemplarily, it is assumed that when detecting the link between the second electronic device and the first electronic device, it is necessary to detect whether there are packet loss abnormalities, missing abnormalities, and conversion abnormalities when SIP packets are transmitted on the link. At this time, the first electronic device receives the second detection request message sent by the second electronic device, wherein the second detection request message includes 100 SIP packets to be sent, and the sending time period of the SIP packets is 10 ms. After receiving the second detection request message, the first electronic device returns a response message to the second electronic device. According to the number of SIP messages sent by the first electronic device is 100, and the sending time period of SIP messages is 10ms, it can be determined that the preset time range for receiving SIP messages is 1000ms, and within the preset time range of 1000ms, the first electronic device receives The first SIP message sent by the second electronic device receives the verification information corresponding to the first SIP message at the same time. Assume that the message header of the first SIP message received is A, the length of the message body is B, and the port number information contained in the message body C is D; the checksum corresponding to the first SIP message The information includes the message header E of the first SIP message and the data information F of the SIP message, wherein, the message header E of the first SIP message includes the length of the message body G, and the SIP The data information F of the message is the port number information H in the message body of the first SIP message.
那么,第一电子设备此时可以获取检测信息,首先获取第一个SIP报文对应的校验信息,用以检测是否存在缺失异常、转换异常,然后可以解析第二检测请求消息以获取SIP报文的发送数量为100个,SIP报文的发送时间周期为10ms,用以检测是否存在丢包异常。因此检测信息中包含第一个SIP报文对应的校验信息、及SIP报文的发送数量、发送时间周期信息。由于针对接收的每一个SIP报文,第一电子设备都要检测该SIP报文是否存在缺失异常及转换异常,因此可以每接收到一个SIP报文,就对其进行缺失异常、转换异常的检测。Then, the first electronic device can obtain the detection information at this time, first obtain the verification information corresponding to the first SIP message, to detect whether there is a missing abnormality or conversion abnormality, and then can parse the second detection request message to obtain the SIP packet The number of sent messages is 100, and the sending time period of SIP messages is 10ms, which is used to detect whether there is abnormal packet loss. Therefore, the detection information includes the verification information corresponding to the first SIP message, the number of SIP messages sent, and the sending time period information. For each SIP message received, the first electronic device must detect whether the SIP message has missing abnormality and conversion abnormality, so it can detect the missing abnormality and conversion abnormality every time a SIP message is received .
此时,针对接收的第一个SIP报文,首先对其进行缺失异常的检测,先将接收的第一个SIP报文的报文消息头A的数据大小与校验信息中的报文消息头E的数据大小进行比较,确定两者是否一致。假设第一个SIP报文的报文消息头A的数据大小与校验信息中的报文消息头E的数据大小一致,说明第一个SIP报文的报文消息头不存在缺失异常。然后继续检测第一个SIP报文消息体是否存在异常,由于接收的第一个SIP报文的报文消息体的长度为B,校验信息中包含的报文消息体的长度为G,因此可以比较报文消息体的长度B与报文消息体的长度G的大小,若报文消息体的长度B小于报文消息体的长度G,则确定第一个SIP报文存在缺失异常。此时,根据第一个SIP报文存在的缺失异常,生成第二检测结果信息,并向第二电子设备发送第二检测结果信息,其中,第二检测结果信息中包括第一个SIP报文的报文消息体存在缺失异常。At this time, for the first SIP message received, it is firstly detected for missing anomalies, and the data size of the message header A of the first SIP message received is first compared with the message message in the verification information Compare the data size of header E 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 verification information, it means that there is no missing abnormality in the message header of the first SIP message. Then continue to detect whether there is abnormality in the first SIP message body, because the length of the message body of the first SIP message received is B, and the length of the message body contained in the verification information is G, so The length B of the message body of the message can be compared with the length G of the message body of the message. If the length B of the message body of the message is smaller than the length G of the message body of the message, it is determined that the first SIP message has a missing exception. At this time, according to the missing exception in the first SIP message, generate the second detection result information, and send the second detection result information to the second electronic device, wherein the second detection result information includes the first SIP message The message body of the message is missing exception.
然后,针对接收的第一个SIP报文,再对其进行转换异常的检测,先获取接收的第一个SIP报文中的数据信息,即为,获取接收的个SIP报文的报文消息体C中包含的端口号信息D。由于SIP报文的数据信息F为第一个SIP报文的报文消息体中的端口号信息H,因此,确定端口号信息D与校验信息中的端口号信息H是否一致,若端口号信息D与校验信息中的端口号信息H不一致,则说明第一个SIP报文存在转换异常,即为,第一电子设备接收的第一个SIP报文是经过网络地址转换NAT的转换后的SIP报文。此时,根据第一个SIP报文的转换异常生成该SIP报文对应的第三检测结果信息,并向第二电子设备发送第三检测结果信息,其中,第三检测结果信息包括第一个SIP报文中的端口号信息由端口号信息H转换为端口号信息D。Then, for the first SIP message received, it is detected for conversion anomaly, and the data information in the first SIP message received is first obtained, that is, the message message of the first SIP message received is obtained Port number information D contained in body C. Since 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 verification information, if the port number If the information D is inconsistent with the port number information H in the verification information, it means that the first SIP packet is abnormally converted, that is, the first SIP packet received by the first electronic device is converted by NAT SIP packets. At this time, the third detection result information corresponding to the 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, wherein the third detection result information includes the first The port number information in the SIP packet is converted from the port number information H to the port number information D.
针对第一电子设备接收的第二电子设备发送的每一个SIP报文,都执行上述缺失异常、转换异常的检测过程,在此不再赘述。当达到预设时间范围之后,说明第二电子设备已经发送完成100个SIP报文,第一电子设备接收完成第二电子设备发送的SIP报文,此时需要检测SIP报文是否存在丢包异常。假设第一电子设备确定出接收的SIP报文的数量为95,由于接收到的SIP报文的数量为95,检测信息中SIP报文的发送数量为100,因此可以确定SIP报文存在丢包异常。然后可以确定出丢失的SIP报文的数量为5,由于SIP报文的发送数量为100,那么根据丢失的SIP报文的数量与SIP报文的发送数量的比值可以确定SIP报文的丢包率为5%。根据SIP报文的丢包率生成第一检测结果信息,并向第二电子设备发送第一检测结果信息,其中,第一检测结果信息包括SIP报文的丢包率为5%。For each SIP packet received by the first electronic device and sent by the second electronic device, the above-mentioned missing and conversion abnormal detection process is performed, and details are not repeated here. When the preset time range is reached, it means that the second electronic device has sent 100 SIP packets, and the first electronic device has received the SIP packets sent by the second electronic device. At this time, it is necessary to detect whether the SIP packets are abnormally lost. . Assuming that the first electronic device determines that the number of received SIP packets is 95, since the number of received SIP packets is 95, and the number of SIP packets sent in the detection information is 100, it can be determined that there is packet loss in the SIP packets abnormal. Then it can be determined that the number of lost SIP messages is 5. Since the number of SIP messages sent is 100, the ratio of the number of lost SIP messages to the number of SIP messages sent can determine the packet loss of the SIP message The rate is 5%. The first detection result information is generated according to the packet loss rate of the SIP message, and the first detection result information is sent to the second electronic device, wherein the first detection result information includes a 5% packet loss rate of the SIP message.
这样一来,根据上述示例所述的过程,可以完成第二电子设备与第一电子设备之间的链路检测,能够检测SIP报文在该链路中传输时是否存在丢包异常、缺失异常及转换异常问题,以便后续对异常问题的处理。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 can be completed, and whether there is a packet loss abnormality or missing abnormality when the SIP message is transmitted on the link can be detected And convert abnormal problems for subsequent processing of abnormal problems.
图2为本申请实施例提供的另一种链路检测方法的流程示意图。如图2所示,所述方法包括以下几个步骤:FIG. 2 is a schematic flowchart of another link detection method provided by the embodiment of the present application. As shown in Figure 2, the method includes the following steps:
步骤S201、第二电子设备接收第三电子设备发送的第一检测请求消息。Step S201, the second electronic device receives the first detection request message sent by the third electronic device.
其中,第一检测请求消息中携带有第一电子设备的标识信息。Wherein, the first detection request message carries identification information of the first electronic device.
具体的,第二电子设备接收到第三电子设备发送第一检测请求消息,可以解析第一检测请求消息以获得第一电子设备的标识信息,此时第二电子设备获知需要对第二电子设备与第一电子设备之间的链路进行检测。Specifically, the second electronic device receives the first detection request message sent by the third electronic device, and can parse the first detection request message to obtain the identification information of the first electronic device. A link with the first electronic device is detected.
步骤S202、向第一电子设备发送至少一个SIP报文及SIP报文的检测信息。Step S202, sending at least one SIP packet and detection information of the SIP packet to the first electronic device.
具体的,在接收到第三电子设备发送的第一检测请求消息之后,第二电子设备可以直接向第一电子设备发送至少一个SIP报文及SIP报文的检测信息。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 packet and detection information of the SIP packet to the first electronic device.
在一个可能的实施例中,当检测信息中包含SIP报文的发送数量、发送时间周期时,由于在向第一电子设备发送至少一个SIP报文之前,第二电子设备可以先向第一电子设备发送第二检测请求消息,可以将SIP报文的发送数量、发送时间周期添加至第二检测请求消息中。第一电子设备接收到第二检测请求消息之后,可以向第二电子设备返回响应消息,以告知第一电子设备可以开始发送至少一个SIP报文。此时,第二电子设备接收第一电子设备发送的响应消息,再开始向第一电子设备发送至少一个SIP报文。第二电子设备也可以在向第一电子设备发送至少一个SIP报文的同时,将SIP报文的发送数量、发送时间周期信息一起发送至第一电子设备。In a possible embodiment, when the detection information includes the number of sent SIP packets and the sending time period, before sending at least one SIP packet to the first electronic device, the second electronic device may first send a message to the first electronic device When the device sends the second detection request message, the number of SIP packets to be sent and the sending time period may be added to the second detection request message. After receiving the second detection request message, the first electronic device may return a response message to the second electronic device, so as to inform the first electronic device that it can start sending at least one SIP packet. 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 also send at least one SIP message to the first electronic device, and at the same time send the number of SIP messages sent and the sending time period information to the first electronic device.
在一个可能的实施例中,检测信息中包含至少一个SIP报文中每个SIP报文对应的校验信息。此时,第二电子设备在向第一电子设备发送至少一个SIP报文时,可以同时发送至少一个SIP报文中的每个SIP报文对应的校验信息,以便第一电子设备能够获取每个SIP报文对应的校验信息。In a 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, it can simultaneously send the verification information corresponding to each SIP message in the at least one SIP message, so that the first electronic device can obtain each Verification information corresponding to a SIP packet.
步骤S203、接收第一电子设备发送的检测结果信息。Step S203, receiving detection result information sent by the first electronic device.
在本申请实施例中,第一电子设备生成检测结果信息之后,会将检测结果信息发送至第二电子设备,第二电子设备接收检测结果信息。In the embodiment of the present application, after the first electronic device generates the detection result information, it will send the detection result information to the second electronic device, and the second electronic device receives the detection result information.
步骤S204、将检测结果信息发送至第三电子设备。Step S204, sending the detection result information to the third electronic device.
具体的,第二电子设备将接收到的检测结果信息发送至第三电子设备,以告知第三电子设备链路检测的结果。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.
图3为本申请实施例提供的另一种链路检测方法的流程示意图。如图3所示,所述方法包括:FIG. 3 is a schematic flowchart of another link detection method provided by the embodiment of the present application. As shown in Figure 3, the method includes:
步骤S301、第三电子设备向第二电子设备发送第一检测请求消息。Step S301, the third electronic device sends a first detection request message to the second electronic device.
其中,第一检测请求消息中携带有第一电子设备的标识信息。Wherein, the first detection request message carries identification information of the first electronic device.
具体的,当需要对第二电子设备及第一电子设备之间的链路进行检测时,第三电子设备向向第二电子设备发送第一检测请求消息,第一检测请求消息中携带有第一电子设备的标识信息,用以触发链路检测过程。Specifically, when it is necessary to detect the link between the second electronic device and the first electronic device, the third electronic device sends a first detection request message to the second electronic device, and the first detection request message carries the first detection request message. The identification information of an electronic device is used to trigger a link detection process.
步骤S302、接收第二电子设备发送的检测结果信息。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.
图4为本申请实施例提供的另一种链路检测方法的流程示意图。如图4所示,所述方法包括:FIG. 4 is a schematic flowchart of another link detection method provided by the embodiment of the present application. As shown in Figure 4, the method includes:
步骤S401、第三电子设备向第二电子设备发送第一检测请求消息,第二电子设备接收第三电子设备发送的第一检测请求消息。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.
具体可参考上述步骤S301,在此不再赘述。For details, reference may be made to the above step S301, which will not be repeated here.
步骤S402、第二电子设备向第一电子设备发送第二检测请求消息,第一电子设备接收第二电子设备发送的第二检测请求消息。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.
其中,第二检测请求消息中携带SIP报文的发送数量、发送时间周期信息。Wherein, the second detection request message carries information about the number of SIP packets to be sent and the sending time period.
具体可参考上述步骤S202,在此不再赘述。For details, reference may be made to the above step S202, which will not be repeated here.
步骤S403、第一电子设备向第二电子设备返回响应消息。Step S403, the first electronic device returns a response message to the second electronic device.
步骤S404、第二电子设备向第一电子设备发送至少一个SIP报文及对应的校验信息,第一电子设备接收第二电子设备发送的至少一个SIP报文及对应的校验信息。Step S404, the second electronic device sends at least one SIP message and corresponding verification information to the first electronic device, and the first electronic device receives at least one SIP message and corresponding verification information sent by the second electronic device.
具体可参考上述步骤S202,在此不再赘述。For details, reference may be made to the above step S202, which will not be repeated here.
步骤S405、第一电子设备根据接收的至少一个SIP报文及SIP报文的检测信息,检测接收的至少一个SIP报文是否存在异常,并生成检测结果信息。Step S405, the first electronic device detects whether the at least one received SIP message is abnormal according to the at least one received SIP message and the detection information of the SIP message, and generates detection result information.
其中,检测信息包括接收的SIP报文的发送数量、发送时间周期信息及至少一个SIP报文中每个SIP报文对应的校验信息。Wherein, the detection information includes the number of sent SIP messages received, sending time period information, and verification information corresponding to each SIP message in at least one SIP message.
具体可参考上述步骤S103,在此不再赘述。For details, reference may be made to the above step S103, which will not be repeated here.
步骤S406、第一电子设备向第二电子设备发送检测结果信息,第二电子设备接收检测结果信息。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.
步骤S407、第二电子设备向第三电子设备发送检测结果信息,第三电子设备接收检测结果信息。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.
这样一来,根据上述实施例所述的链路检测方法,可以检测到SIP报文在链路中传输时的异常问题,用户可以根据链路检测的结果,对检测到的异常问题进行相应的处理,以避免之后在使用视频会议时不能正常发起会话。In this way, according to the link detection method described in the above-mentioned embodiment, it is possible to detect the abnormal problem when the SIP message is transmitted in the link, and the user can correspondingly respond to the detected abnormal problem according to the result of the link detection. To avoid inability to initiate sessions normally when using video conferencing in the future.
与上述实施例相对应,如图5所示,本申请实施例还提供了一种链路检测装置,包括:Corresponding to the above embodiment, as shown in FIG. 5, the embodiment of the present application also provides a link detection device, including:
接收单元501,用于第一电子设备接收第二电子设备发送的至少一个会话初始协议SIP报文。The receiving unit 501 is configured for the first electronic device to receive at least one session initiation protocol SIP message sent by the second electronic device.
获取单元502,用于获取SIP报文的检测信息;所述SIP报文的检测信息用于指示出第二电子设备发送的至少一个SIP报文的相关信息。The acquiring unit 502 is configured to acquire detection information of a SIP packet; the detection information of the SIP packet is used to indicate relevant information of at least one SIP packet sent by the second electronic device.
处理单元503,用于根据接收的至少一个SIP报文及所述SIP报文的检测信息,检测接收的所述至少一个SIP报文是否存在异常;The processing unit 503 is configured to detect whether the at least one received SIP message is abnormal according to the received at least one SIP message and the detection information of the SIP message;
根据所述接收的至少一个SIP报文是否存在异常,生成检测结果信息,并向第二电子设备发送检测结果信息。Generate detection result information according to whether the at least one received SIP message is abnormal, and send the detection result information to the second electronic device.
在一个可能的实施例中,处理单元503,具体用于,根据接收的至少一个SIP报文的数量及所述SIP报文的发送数量,检测SIP报文是否存在丢包异常。In a possible embodiment, the processing unit 503 is specifically configured to, according to the number of at least one SIP message received and the number of sent SIP messages, detect whether there is a packet loss exception in the SIP message.
处理单元503,还用于,若存在丢包异常,则根据接收的至少一个SIP报文的数量及SIP报文的发送数量,确定SIP报文的丢包率;The processing unit 503 is also used to determine the packet loss rate of the SIP message according to the number of received at least one SIP message and the number of SIP messages sent if there is an abnormal packet loss;
根据SIP报文的丢包率生成第一检测结果信息,并向第二电子设备发送第一检测结果信息,其中,第一检测结果信息包括SIP报文的丢包率。Generate first detection result information according to the packet loss rate of the SIP message, and send the first detection result information to the second electronic device, wherein the first detection result information includes the packet loss rate of the SIP message.
在一个可能的实施例中,接收单元501,具体用于,根据SIP报文的发送时间周期确定接收SIP报文的预设时间范围;In a possible embodiment, the receiving unit 501 is specifically configured to determine a preset time range for receiving the SIP message according to the sending time period of the SIP message;
在预设时间范围内,接收第二电子设备发送的至少一个SIP报文。Receive at least one SIP packet sent by the second electronic device within a preset time range.
在一个可能的实施例中,处理单元503,还用于,针对接收的至少一个SIP报文中的每个SIP报文,根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测该SIP报文是否存在缺失异常。In a possible embodiment, the processing unit 503 is further configured to, for each SIP message in at least one received SIP message, according to the received SIP message and the SIP message corresponding check information The message header of the message is used to detect whether there is a missing exception in the SIP message.
处理单元503,还用于,若存在缺失异常,则根据该SIP报文的缺失异常生成该SIP报文对应的第二检测结果信息,向第二电子设备发送第二检测结果信息。其中,第二检测结果信息中携带有该SIP报文对应缺失异常的信息。The processing unit 503 is further configured to, if there is a missing exception, generate second detection result information corresponding to the SIP packet according to the missing exception of the SIP packet, and send the second detection result information to the second electronic device. Wherein, the second detection result information carries information about missing and abnormal information corresponding to the SIP packet.
在一个可能的实施例中,处理单元503,还用于,根据接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头是否一致;In a possible embodiment, the processing unit 503 is further configured to detect the received SIP message according to the message header of the received SIP message and the message header in the verification information corresponding to the SIP message. Whether the message header of the message and the message header in the corresponding verification information of the SIP message are consistent;
若接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头不一致,则确定存在缺失异常,或者If the message header of the received SIP message is inconsistent with the message header in the corresponding verification information of the SIP message, it is determined that there is a missing exception, or
若接收的该SIP报文的报文消息头及该SIP报文对应校验信息中的报文消息头一致,则根据接收的该SIP报文及该SIP报文对应校验信息中的报文消息头,检测接收的该SIP报文的报文消息体长度,与校验信息中的报文消息头中记录的该SIP报文的报文消息体长度是否一致;If the message header of the received SIP message is consistent with the message header in the corresponding verification information of the SIP message, then according to the received SIP message and the message in the corresponding verification information of the SIP message The message header detects whether the message body length of the SIP message received is consistent with the message body length of the SIP message recorded in the message header in the verification information;
若接收的该SIP报文的报文消息体长度,与校验信息中的报文消息头中记录的该SIP报文的报文消息体长度不一致,则确定存在缺失异常。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 recorded in the message header in the verification information, it is determined that there is a missing exception.
在一个可能的实施例中,处理单元503,还用于,针对接收的至少一个SIP报文中的每个SIP报文,获取接收的该SIP报文中的数据信息;In a possible embodiment, the processing unit 503 is further configured to, for each SIP message in the at least one received SIP message, acquire the data information in the received SIP message;
根据接收的该SIP报文中的数据信息及该SIP报文对应的校验信息中的数据信息,检测该SIP报文是否存在转换异常,其中,转换异常是指第一电子设备接收的SIP报文是经过网络地址转换NAT的转换后的SIP报文。According to the data information in the received SIP message and the data information in the verification information corresponding to the SIP message, detect whether there is a conversion abnormality in the SIP message, wherein the conversion abnormality refers to the SIP message received by the first electronic device The text is the converted SIP message after the network address translation NAT.
处理单元503,还用于,若存在转换异常,则根据该SIP报文的转换异常生成该SIP报文对应的第三检测结果信息,向第二电子设备发送第三检测结果信息,其中,第三检测结果信息中携带有该SIP报文对应的转换异常的信息。The processing unit 503 is further configured to, if there is a conversion abnormality, generate third detection result information corresponding to the SIP message according to the conversion abnormality of the SIP message, and send the third detection result information to the second electronic device, wherein the first Thirdly, the detection result information carries the abnormal conversion information corresponding to the SIP message.
与上述实施例相对应,如图6所示,本申请实施例还提供了另一种链路检测装置,包括:Corresponding to the above embodiment, as shown in FIG. 6, the embodiment of the present application also provides another link detection device, including:
接收单元601,用于第二电子设备接收第三电子设备发送的第一检测请求消息;所述第一检测请求消息中携带有第一电子设备的标识信息;The receiving unit 601 is used for the second electronic device to receive the first detection request message sent by the third electronic device; the first detection request message carries the identification information of the first electronic device;
处理单元602,用于向第一电子设备发送至少一个SIP报文及SIP报文的检测信息;A processing unit 602, configured to send at least one SIP message and detection information of the SIP message to the first electronic device;
接收单元601,还用于,接收第一电子设备发送的检测结果信息;The receiving unit 601 is further configured to receive detection result information sent by the first electronic device;
处理单元602,还用于,将所述检测结果信息发送至第三电子设备。The processing unit 602 is further configured to send the detection result information to the third electronic device.
与上述实施例相对应,如图7所示,本申请实施例还提供了另一种链路检测装置,包括:Corresponding to the above embodiment, as shown in FIG. 7, the embodiment of the present application also provides another link detection device, including:
处理单元701,用于第三电子设备向第二电子设备发送第一检测请求消息;所述第一检测请求消息中携带有第一电子设备的标识信息;The processing unit 701 is configured for the third electronic device to send a first detection request message to the second electronic device; the first detection request message carries identification information of the first electronic device;
接收单元702,用于接收第二电子设备发送的检测结果信息。The receiving unit 702 is configured to receive the detection result information sent by the second electronic device.
与上述实施例相对应,本申请还提供了一种电子设备。图8为本发明实施例提供的一种电子设备的结构示意图,所述电子设备800可以包括:处理器801、存储器802及通信单元803。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明实施例的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Corresponding to the foregoing embodiments, the present application further provides an electronic device. FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 800 may include: a processor 801 , a memory 802 and a communication unit 803 . These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation to the embodiment of the present invention. It can be a bus structure or a star structure , may also include more or fewer components than shown, or combine certain components, or have different component arrangements.
其中,所述通信单元803,用于建立通信信道,从而使所述电子设备可以与其它设备进行通信。接收其他设备发送的用户数据或者向其他设备发送用户数据。Wherein, the communication unit 803 is configured to establish a communication channel, so that the electronic device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.
所述处理器801,为电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器802内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器可以由集成电路(integrated circuit,IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器801可以仅包括中央处理器(centralprocessing unit,CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 801 is the control center of the electronic equipment. It uses various interfaces and lines to connect various parts of the entire electronic equipment, and runs or executes the software programs and/or modules stored in the memory 802, and calls the software programs stored in the memory. data to perform various functions of electronic devices and/or process data. The processor may be composed of an integrated circuit (integrated circuit, IC), for example, may be composed of a single packaged IC, or may be composed of multiple packaged ICs connected with the same function or different functions. For example, the processor 801 may only include a central processing unit (central processing unit, CPU). In the embodiments of the present invention, the CPU may be a single computing core, or may include multiple computing cores.
所述存储器802,用于存储处理器801的执行指令,存储器802可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 802 is used to store the execution instructions of the processor 801. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a 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.
当存储器802中的执行指令由处理器801执行时,使得电子设备800能够执行图4所示实施例中的部分或全部步骤。When the execution instructions in the memory 802 are executed by the processor 801 , the electronic device 800 can execute some or all of the steps in the embodiment shown in FIG. 4 .
具体实现中,本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的链路检测方法的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(read-only memory,ROM)或随机存储记忆体(random access memory,RAM)等。In a specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and 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 (read-only memory, ROM) or a random access memory (random access memory, RAM), etc.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technologies in the embodiments of the present invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the essence of the technical solutions in the embodiments of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM , magnetic disk, optical disk, etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于装置实施例和终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。For the same and similar parts among the various embodiments in this specification, refer to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to the description in the method embodiment.
Claims (10)
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) |
-
2022
- 2022-02-21 CN CN202210157393.1A patent/CN116668624A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9014369B2 (en) | Voice-over internet protocol (VoIP) scrambling mechanism | |
CN103188300B (en) | The methods, devices and systems of VOIP phone are realized in cloud computing environment | |
US20040095938A1 (en) | Method for processing session information of session initiation protocol system and recorded medium thereof | |
US20080013447A1 (en) | Method and Apparatus for Survivable Failover in Communication System | |
US20180255182A1 (en) | Web Real-Time Client Communication Over a Stimulus Based Network | |
CN101656715B (en) | Method, system and device for media bypass | |
US10142476B1 (en) | Call reconnection | |
US9906568B2 (en) | Hybrid cloud media architecture for media communications | |
US8831018B2 (en) | Media conversion device for interconnecting communication terminal devices with media converted and a method therefor | |
US10931720B2 (en) | IP tolerance and signaling interworking | |
US7751385B2 (en) | Systems and methods for collecting and disbursing participant identifying data | |
CN116668624A (en) | Link detection method, device and equipment | |
US8667149B2 (en) | Communication device, communication method, and computer-readable storage medium storing communication program | |
US20090103519A1 (en) | Method and Computer Product for Switching Subsequent Messages With Higher Priority Than Invite Messages in a Softswitch | |
CN111447395B (en) | Data communication method, device, terminal equipment and storage medium | |
JP6183881B2 (en) | Codec conversion gateway, codec conversion method, and codec conversion program | |
KR100957432B1 (en) | Media transfer method | |
Hasanzadeh et al. | Plaintext transmission over session initiation protocol | |
Singh et al. | A study on methodology on VoIP-based communication investigation through network packet analysis | |
JP4381190B2 (en) | Registration of terminal identification from external network to server on intranet via DMZ | |
TW201322725A (en) | Website telephone and file sharing system and method | |
CN116319693A (en) | Method for quickly establishing session of Session Initiation Protocol (SIP) | |
CN119420740A (en) | SIP media stream and signaling consistency forwarding method, electronic device, readable medium, and program product | |
CN119966960A (en) | Method and device for accessing terminal to video conference, electronic equipment and storage medium | |
CN119420737A (en) | SIP-based call method, device and storage medium |
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 |