Local area network visual call method based on Internet control message protocol

Through the Internet Control Message Protocol (ICMP), the network IP address and the device IP address are sniffed, which solves the problem of cumbersome network connection and routing configuration in the LAN visual call system, and reduces the system construction cost.

CN119865488APending Publication Date: 2025-04-22INGENIC SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311370338.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The existing LAN visual call system is cumbersome in network connection and routing configuration, which increases the cost of system construction.

Method used

Automatically sniff whether there is a communication IP address in the network through the Internet Control Message Protocol (ICMP), and configure the IP address of the device based on the static network table and the sniffing results to establish LAN network communication.

Benefits of technology

It realizes automatic configuration of device IP addresses in the LAN visual call system, simplifies the network connection and routing configuration process, and reduces the cost of system construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865488A_ABST
    Figure CN119865488A_ABST
Patent Text Reader

Abstract

The invention provides a local area network visual call method based on an Internet control message protocol. The method comprises the following steps: S1, configuring a network environment; S1.1, carrying out network sniffing according to a static network list; determining the presence or absence of sniffing IP addresses If yes, the step S1.2 is carried out; if not, the step S1.3 is carried out; s1.2, recording the current IP as an equipment IP; the step S1.4 is carried out; s1.3, configuring the current equipment IP as the current address; s1.4, constructing a local area network routing table; s2, establishing a video call; S2.1, initiating a call to send a session request SIP INVITE by the master device of the video call system; s2.2, the slave device of the video call system responds to the call sending session response SIP 200OK; s2.3, interactively negotiating conversation agreement information resolution and coding and decoding types among the devices; s2.4, transmitting the multimedia data in real time; and S2.5, ending the session initiated by any device. And the IP address of the device is automatically configured according to the sniffing result of the Internet control message protocol, so that the two ends of the video call device can establish local area network video call connection according to the static network list.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of multimedia communication, and in particular relates to a local area network video calling method based on an Internet control message protocol. Background Art

[0002] As the capabilities of embedded computer devices continue to increase, the demand for building intercom systems through video calling technology in the LAN network within the community is increasingly valued by various software and hardware manufacturers. Video calling technology can be traced back to the 1980s. Today, with the continuous development of chip technology, network technology, and audio and video encoding and decoding technology, embedded devices can also use cameras to capture original images and microphones to capture original audio. The digital signal is compressed and encapsulated through encoding technology and transmitted on the LAN network according to the constraints of the protocol. Finally, it is decoded and played through the display and speakers. Video calling technology is an important real-time communication method that can realize real-time transmission of voice and video. With the development of technology, it can be used in scenarios such as building intercoms and home calls, becoming an indispensable part of daily communication life.

[0003] In the prior art, video calls are implemented through the Linphone video call framework. Linphone is a cross-platform video phone client software that supports audio and video call functions.

[0004] However, the existing LAN video calling system is often complicated in terms of network connection and network routing configuration, which increases the cost of setting up the video calling system.

[0005] In addition, technical terms commonly used in this field include:

[0006] LAN: Local Area Network refers to a computer network consisting of several computer devices, including embedded computer devices, interconnected within a relatively small geographical area. Usually, the coverage of a LAN is a room, a building or a community. Devices in a LAN are usually organized into the same subnet and belong to the same subnet segment. Internal devices can directly access each other through the subnet IP address, and the data transmission speed is fast and the network delay is low.

[0007] Video call: a remote communication method achieved through image transmission technology and voice transmission technology. After the two parties establish a call connection, the video signal is captured by the camera and compressed, transmitted to the other end, decoded and restored to an image, and then displayed on the other party's screen; the voice signal is captured by the microphone, compressed, transmitted to the other end of the device, decoded into voice, and then played through the other party's speaker device. The whole process relies on network transmission technology and requires a faster data transmission rate and lower network latency to provide real-time, good audio and video call quality.

[0008] Internet Control Message Protocol: Internet Control Message Protocol, a network layer-based protocol that transmits data packets through a certain IP address. It is mainly used to transmit information between network devices, such as network management control information, network diagnostic information, etc.

[0009] Session Initiation Protocol: Session Initiation Protocol, referred to as SIP, is an IP telephone signaling protocol used to initiate sessions. It can control the establishment and termination of multiple participants in multimedia sessions and dynamically adjust session communication properties, such as bandwidth, codec type, resolution, etc.

[0010] Real-time Transport Protocol: Real-time Transport Protocol, a network transmission protocol, specifies the standard data packet format for multimedia audio and video network transmission. It was originally designed as a multicast protocol, but is generally used in unicast scenarios to provide end-to-end transmission services with real-time characteristics for data. Summary of the invention

[0011] In order to solve the above problems, the purpose of this application is to provide a method for automatically sniffing whether a communication IP address already exists in the network through the Internet Control Message Protocol in a LAN video call system, and configuring the IP address of the device according to the static network table and the sniffing result, so that both ends of the video call device can determine the IP address of the other party according to the static network table, thereby establishing LAN network communication.

[0012] Specifically, the present invention provides a local area network video call method based on the Internet Control Message Protocol, in which a master device in the video call system can be connected to multiple slave devices, there is no connection relationship between the slave devices, and the master device can only call one slave device at a time. The method includes the following steps:

[0013] S1, network environment configuration:

[0014] S1.1, perform network sniffing according to the static network table; determine whether the sniffed IP address exists? If it does, proceed to step S1.2; if it does not exist, proceed to step S1.3;

[0015] S1.2, record the current IP as the device IP; proceed to step S1.4;

[0016] S1.3, configure the current device IP to the current address;

[0017] S1.4, build a LAN routing table;

[0018] S2, establish a video call:

[0019] S2.1, the main device of the video call system initiates a call and sends a session request SIP INVITE;

[0020] S2.2, the video call system sends a session response SIP 200OK from the device in response to the call;

[0021] S2.3, interactive negotiation between devices on call resolution and codec type;

[0022] S2.4, real-time transmission of multimedia data;

[0023] S2.5: Any device initiates the session termination.

[0024] The method for performing network sniffing using the static network table includes:

[0025] The sender constructs an ICMP message according to the ICMP protocol. The message contains an echo request and the format is strictly in accordance with the format specified by the ICMP protocol.

[0026] The sender encapsulates the ICMP message into an IP data packet and sends it through the network; the header of the IP data packet contains the source IP address, destination IP address and other necessary control information;

[0027] The receiver will decapsulate the ICMP message from the IP datagram, and when parsing the echo request, the receiver will generate an echo reply and send it to the source host;

[0028] When the sender receives an echo reply, the network sniffing is judged to be successful; when the sender receives an ICMP message and the reception times out, or receives an unreplyable message, the network sniffing is judged to have failed.

[0029] The step S1 further comprises:

[0030] S1.1, before the video call system establishes a call connection, it is necessary to first build a network connection route based on the ICMP Internet Control Message Protocol sniffing mechanism, and sniff the LAN subnet IP address configured in the static network table once: that is, perform network sniffing according to the static network table: Class A, Class B, and Class C addresses of the ipv4 rule can all be used; assuming 192.168.1.102; 192.168.1.103;

[0033] S1.2, when the IP address is detected, the current IP address is recorded as a communicable address;

[0034] S1.3, when the sniffed IP address does not exist, use the ifconfig command to input the network card name and IP address to configure the current video call system device IP address as the current address. After the IP address configuration is completed, the sniffing ends; that is,

[0035] Determine whether the sniffed 192.168.1.102 exists? If it does, configure the device IP to 192.168.1.103; if it does not exist, configure the device IP to 192.168.1.102;

[0036] S1.4, according to the execution result of step S1.2 or S1.3, construct a local area network routing table in the system, that is, complete the environment configuration of the network address; step S1.4 ends.

[0037] The step S2 further comprises:

[0038] S2. After the network address environment configuration is completed, the LAN video call system can normally establish end-to-end communication between session protocols. The system includes a master device that initiates a call and a slave device that responds to the call. The master device and the slave device are connected via a network cable. The operation logic is as follows:

[0039] S2.1, the main device of the video call system uses the IP address of the other party to construct a session request by calling the SIP protocol INVITE instruction, requesting the slave device to establish a video call; the session request contains the media type, encoding format, and port information of both video call devices;

[0040] S2.2, when the video call system receives a session request from the device, the video call slave device plays music to notify the user that the session request is currently received. The user presses a key to confirm. If the user is willing to establish the call, the slave device sends a session response message SIP 200OK to the Ethernet interface of the master device through the Ethernet interface to indicate that the session request is passed and the session is successfully established; if the user is not willing to establish the call, the slave device can send a hang-up message or do nothing;

[0041] S2.3, assuming that the slave device is willing to establish a call, the two video call devices send the SIPOPTIONS command through the Ethernet interface to start negotiating the parameter information used for the video call, including audio sampling rate, video resolution, and codec format; the master device can parse these parameters from the response information of the slave device, and send its own session parameter information to the slave device after receiving the response; S2.4, after the two video call system devices complete the session parameter agreement, they start to process data based on the RTP protocol. The data packet contains the data packet sequence number, timestamp, load type, source IP address and port number information in the format specified by the RTP protocol, and transmits multimedia data in real time through the Ethernet interface using the TCP or UDP protocol;

[0042] S2.5, after the call is completed, any device in the video call system can end the call. The device sends a SIP BYE command through the Ethernet interface to inform the other party of the end of the session. After receiving the end request, the other party replies with a 200OK response through a SIPACK command. Finally, both parties call the system function interface free function to release the system multimedia resources and end the video call.

[0043] In the video call system, one master device can be connected to multiple slave devices, and there is no connection relationship between the slave devices. The master device can only call one slave device at a time.

[0044] Therefore, the advantage of the present application is that by applying the technical solution of the present application, the device IP address can be automatically configured in the video call system of the local area network according to the sniffing results of the Internet control message protocol, so that both ends of the video call device can establish a local area network video call connection according to the static network table. The user only needs to manage the static network table to control the video call routing of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.

[0046] Figure 1 is a schematic diagram of the process of this method.

[0047] Figure 2 It is a schematic flow chart of step S1 of the method.

[0048] Figure 3 It is a schematic flow chart of step S2 of the method. DETAILED DESCRIPTION

[0049] In order to more clearly understand the technical content and advantages of the present invention, the present invention is now further described in detail in conjunction with the accompanying drawings.

[0050] The present application provides a LAN video call method based on the Internet Control Message Protocol, that is, a method for automatically sniffing whether a communication IP address already exists in the network through the Internet Control Message Protocol in a LAN video call system, and configuring the IP address of the device according to a static network table and the sniffing result, so that both ends of the video call device can determine the IP address of the other party according to the static network table, thereby establishing LAN network communication.

[0051] like Figure 1 As shown, the video call system can connect a master device to multiple slave devices, there is no connection relationship between the slave devices, and the master device can only call one slave device at a time, including the following steps:

[0052] S1, network environment configuration:

[0053] S1.1, perform network sniffing according to the static network table; determine whether the sniffed IP address exists? If it does, proceed to step S1.2; if it does not exist, proceed to step S1.3;

[0054] S1.2, record the current IP as the device IP; proceed to step S1.4;

[0055] S1.3, configure the current device IP to the current address;

[0056] S1.4, build a LAN routing table;

[0057] S2, establish a video call:

[0058] S2.1, the main device of the video call system initiates a call and sends a session request SIP INVITE;

[0059] S2.2, the video call system sends a session response SIP 200OK from the device in response to the call;

[0060] S2.3, interactive negotiation between devices on call resolution and codec type;

[0061] S2.4, real-time transmission of multimedia data;

[0062] S2.5: The session is terminated when any device initiates the session.

[0063] The core logic reference of step S1 of this application Figure 2 As shown, the description is as follows:

[0064] S1.1, before establishing a call connection in the video call system, it is necessary to first build a network connection route based on the ICMP Internet Control Message Protocol sniffing mechanism, refer to Figure 2 Step S1 in the above sniffs the LAN subnet IP address configured in the static network table once:

[0065] Perform network sniffing based on the static network table: Class A, Class B, and Class C addresses of the ipv4 rule can all be used; for example, assuming 192.168.1.102 192.168.1.103;

[0068] The sender constructs an ICMP message according to the ICMP protocol. The message contains an echo request and the format is strictly in accordance with the format specified by the ICMP protocol.

[0069] The sender encapsulates the ICMP message into an IP data packet and sends it over the network. The header of the IP data packet contains the source IP address, the destination IP address, and other necessary control information.

[0070] The receiver will decapsulate the ICMP message from the IP datagram, and when it parses the echo request, it will generate an echo reply and send it to the source host.

[0071] When the sender receives an echo reply, the network sniffing is considered successful. When the sender times out after sending an ICMP message, or receives an unreplyable message, the network sniffing is considered unsuccessful.

[0072] S1.2, when the IP address is detected, the current IP address is recorded as a communicable address;

[0073] S1.3, when the detected IP address does not exist, the current video call system device IP address is configured as the current address, and after the IP address configuration is completed, step S2 ends; that is,

[0074] Check whether the sniffed 192.168.1.102 exists. If it does, configure the device IP to 192.168.1.103; if it does not exist, configure the device IP to 192.168.1.102.

[0075] S1.4, according to the execution result of step S1.2 or S1.3, a local area network routing table is constructed in the system, and step S1.4 ends.

[0076] Step S2, after completing the environment configuration of the network address, the LAN video call system can normally establish end-to-end communication between the session protocols. The system includes a master device that initiates a call and a slave device that responds to the call. The master device and the slave device are connected via a network cable. A master device can be connected to multiple slave devices, and there is no connection relationship between the slave devices. The master device can only call one slave device at a time.

[0077] In the following, the device initiating the call in the video call system is called the master device, and the device responding to the call is called the slave device. Figure 3 As shown, the description is as follows:

[0078] In step S2.1, the video call system master device uses the other party's IP address to construct a session request by calling the SIP protocol INVITE instruction, requesting the slave device to establish a video call. The session request contains the media type, encoding format, and port information of both video call devices.

[0079] When the video call system receives the session request from the device, it enters step S2.2. The video call slave device plays music to notify the user that the session request has been received. The user presses a key to confirm. If the user is willing to establish the call, the slave device sends a session response message SIP 200OK to the Ethernet interface of the master device through the Ethernet interface to indicate that the session request is passed and the session is successfully established. If the user does not want to establish the call, he can send a hang-up message or do nothing.

[0080] Here, it is assumed that the slave device is willing to establish a call, and in step S2.3, both video call devices send a SIP OPTIONS command through the Ethernet interface to start negotiating the parameter information used for the video call, including audio sampling rate, video resolution, codec format, etc. The master device can parse these parameters from the response information of the slave device, and send its own session parameter information to the slave device after receiving the response.

[0081] After both parties of the video call system equipment complete the session parameter agreement, they enter step S2.4 and start processing data based on the RTP protocol. The data packet includes the data packet sequence number, timestamp, load type, source IP address and port number information in the format specified by the RTP protocol, and transmits multimedia data in real time through the Ethernet interface using the TCP or UDP protocol.

[0082] After the call is completed, any device in the video call system can end the call. The device sends a SIP BYE command through the Ethernet interface to inform the other party of the end of the session. After receiving the end request, the other party replies with a 200OK response through a SIP ACK command. Finally, both parties call the system function interface free function to release the system multimedia resources, ending the video call, and step S2.5 ends.

[0083] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A local area network video call method based on Internet control message protocol, characterized in that: In the video call system, one master device can be connected to multiple slave devices, there is no connection relationship between the slave devices, and the master device can only call one slave device at a time, including the following steps: S1, network environment configuration: S1.1, perform network sniffing according to the static network table; determine whether the sniffed IP address exists? If it does, proceed to step S1.2; if it does not exist, proceed to step S1.3; S1.2, record the current IP as the device IP; proceed to step S1.4; S1.3, configure the current device IP to the current address; S1.4, build a LAN routing table; S2, establish a video call: S2.1, the main device of the video call system initiates a call and sends a session request SIP INVITE; S2.2, the video call system sends a session response SIP 200OK from the device in response to the call; S2.3, interactive negotiation between devices on call resolution and codec type; S2.4, real-time transmission of multimedia data; S2.5: Any device initiates the session termination.

2. A local area network video call method based on Internet control message protocol according to claim 1, characterized in that: The method for performing network sniffing using a static network table includes: a sender constructs an ICMP message according to the ICMP protocol, the message includes an echo request, and the format is strictly in accordance with the format specified by the ICMP protocol; The sender encapsulates the ICMP message into an IP datagram and sends it over the network; the header of the IP datagram contains the source IP address, the destination IP address, and other necessary control information; the receiver decapsulates the ICMP message from the IP datagram, and when parsing it into an echo request, the receiver generates an echo reply and sends it to the source host; When the sender receives an echo reply, the network sniffing is judged to be successful; when the sender receives an ICMP message and the reception times out, or receives an unreplyable message, the network sniffing is judged to have failed.

3. The method for local area network video calling based on Internet control message protocol according to claim 1, characterized in that: The step S1 further comprises: S1.1, before the video call system establishes a call connection, it is necessary to first build a network connection route based on the ICMP Internet Control Message Protocol sniffing mechanism, and sniff the LAN subnet IP address configured in the static network table once: that is, perform network sniffing according to the static network table: Class A, Class B, and Class C addresses of the ipv4 rule can all be used; assuming 192.168.1.102; 192.168.1.103; S1.2, when the IP address is detected, the current IP address is recorded as a communicable address; S1.3, when the sniffed IP address does not exist, use the ifconfig command to input the network card name and IP address to configure the current video call system device IP address as the current address. After the IP address configuration is completed, the sniffing ends; that is, Determine whether the sniffed 192.168.1.102 exists? If it does, configure the device IP to 192.168.1.103; if it does not exist, configure the device IP to 192.168.1.102; S1.4, according to the execution result of step S1.2 or S1.3, construct a local area network routing table in the system, that is, complete the environment configuration of the network address; step S1.4 ends.

4. The method for local area network video calling based on Internet control message protocol according to claim 3, characterized in that: The step S2 further comprises: S2. After the network address environment configuration is completed, the LAN video call system can normally establish end-to-end communication between session protocols. The system includes a master device that initiates a call and a slave device that responds to the call. The master device and the slave device are connected via a network cable. The operation logic is as follows: S2.1, the main device of the video call system uses the IP address of the other party to construct a session request by calling the SIP protocol INVITE instruction, requesting the slave device to establish a video call; the session request contains the media type, encoding format, and port information of both video call devices; S2.2, when the video call system receives a session request from the device, the video call slave device plays music to notify the user that the session request is currently received. The user presses a key to confirm. If the user is willing to establish the call, the slave device sends a session response message SIP 200OK to the Ethernet interface of the master device through the Ethernet interface to indicate that the session request is passed and the session is successfully established; if the user is not willing to establish the call, the slave device can send a hang-up message or do nothing; S2.3, assuming that the slave device is willing to establish a call, the two video call devices send SIP OPTIONS instructions through the Ethernet interface to start negotiating and agreeing on the parameter information used for the video call, including audio sampling rate, video resolution, and codec format; the master device can parse these parameters from the response information of the slave device, and send its own session parameter information to the slave device after receiving the response; S2.4, after the two video call system devices complete the session parameter agreement, they start to process data based on the RTP protocol. The data packet contains the data packet sequence number, timestamp, load type, source IP address and port number information in the format specified by the RTP protocol, and transmits multimedia data in real time through the Ethernet interface using the TCP or UDP protocol; S2.5, after the call is completed, any device in the video call system can end the call. The device sends a SIP BYE command through the Ethernet interface to inform the other party of the end of the session. After receiving the end request, the other party replies with a 200OK response through a SIP ACK command. Finally, both parties call the system function interface free function to release the system multimedia resources and end the video call.

5. The method for local area network video calling based on Internet control message protocol according to claim 1, characterized in that: In the video call system, one master device can be connected to multiple slave devices, and there is no connection relationship between the slave devices. The master device can only call one slave device at a time.