Electronic device for managing connectivity between electronic devices and operating method thereof

The electronic device uses P2P and SIP communication with multiple RATs to address communication delays and network changes in VoIP services, ensuring stable connectivity by proactive connection management.

WO2026043161A1PCT designated stage Publication Date: 2026-02-26SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2025/011694
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-10-16
Filing Date
2025-08-05
Publication Date
2026-02-26

AI Technical Summary

Technical Problem

Voice over Internet Protocol (VoIP) services like call and message continuity (CMC) are sensitive to communication delays and network changes, leading to potential packet loss and connection issues due to reliance on general Internet networks without dedicated resources, and existing keep-alive mechanisms are inefficient in responding to delays and network address translation issues.

Method used

The electronic device employs peer-to-peer (P2P) and session initiation protocol (SIP) communication methods, along with multiple radio access technologies (RATs), to manage connections proactively, including detecting changes, releasing and re-establishing connections, and performing registration procedures to maintain communication integrity.

Benefits of technology

This approach enhances the responsiveness to communication delays and network changes, ensuring stable connectivity by dynamically managing connections and maintaining service continuity in VoIP services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2025011694_26022026_PF_FP_ABST
    Figure KR2025011694_26022026_PF_FP_ABST
Patent Text Reader

Abstract

According to one embodiment, an electronic device (101): supports a peer-to-peer (P2P)-based first communication method and a session initiation protocol (SIP)-based second communication method; receives, from an external electronic device (210; 220; 230), a first P2P message including information indicating a time at which a first SIP message according to initiation of an SIP-based service is to be transmitted and a first session identifier corresponding to the first SIP message, on the basis of the first communication method; after receiving the first P2P message, identifies whether the first SIP message is received, on the basis of the second communication method, within a set period from a server (200) providing the SIP-based service; on the basis of the first SIP message not being received within the set period, releases a first connection established between the electronic device and the server; after releasing the first connection, establishes a second connection with the server; and after establishing the second connection, performs a registration procedure with the server; and transmits, to the external electronic device, a second P2P message instructing to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server, on the basis of the first communication method.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device for managing connectivity between electronic devices and method for operating the same

[0001] The present disclosure relates to an electronic device for managing connectivity between electronic devices and a method of operating the same.

[0002] Various mechanisms for periodically monitoring network status have been proposed, and these mechanisms are being applied to various services. A representative example of such mechanisms is voice over internet protocol (VoIP) services (e.g., call and message continuity (CMC) services).

[0003] The CMC service is a type of VoIP service that uses the session initiation protocol (SIP) and / or the real-time transport protocol (RTP), and may include a service that extends the phone function and / or the text message function of an electronic device (e.g., a smart phone) to at least one external electronic device (e.g., a tablet, a personal computer (PC), a virtual reality (VR) device, and / or a smart watch) registered based on the same account as the account (e.g., a user account and / or a service account) of the electronic device. Since the CMC service extends the phone function and / or the text message function based on the universal subscriber identity module (USIM) of the telecommunications carrier to which the electronic device is subscribed, there may be no need for a USIM to be inserted into the external electronic device.

[0004] The telephony features provided by CMC services can utilize SIP for signaling. As a VoIP service, CMC services can be highly sensitive to communication delays (e.g., packet delays). However, because packets are sent and received over a general Internet network, excluding servers (e.g., application servers (AS) or CMC servers), managing communication delays between endpoint electronic devices can be very challenging.

[0005] In addition, since the CMC service does not support dedicated network resources provided through the operator network, a mechanism for periodically checking the network status may be essential to maintain the transmission control protocol (TCP) connection between the electronic device and / or external electronic device and the server. A representative example of various mechanisms for periodically checking the network status may be the keep alive mechanism. The keep alive mechanism may be a mechanism that prevents communication delay on the Internet core network by setting a keep alive period in the electronic device and / or external electronic device. However, since the transmission / reception of messages related to the keep alive operation is in a trade-off relationship with the power consumption of the electronic device and / or external electronic device, the keep alive period may be set to be relatively long. Therefore, if a communication delay occurs in the Internet core network before the relatively long keep alive period is reached, it may be impossible to immediately respond to the communication delay that occurred.

[0006] Additionally, in the CMC service, an external electronic device operating as a secondary device (SD) can use an electronic device operating as a primary device (PD) as an access point (AP) for a hotspot. While the electronic device is operating as an AP for the hotspot, the radio access technology (RAT) used to establish a connection between the electronic device and the server may change. If the RAT changes, the internet protocol (IP) address assigned to the electronic device by the internet service provider (ISP) may change, and in this case, packet transmission or reception between the server and the external electronic device may become impossible due to a network address translation (NAT) issue.

[0007] According to one embodiment of the present disclosure, an electronic device (101) may include a communication circuit (190) configured to support a first communication method based on peer to peer (P2P) and a second communication method based on session initiation protocol (SIP), one or more processors (120) including processing circuitry, and a memory (130) configured to store instructions.

[0008] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to receive, through the communication circuit, from an external electronic device (210; 220; 230), a first P2P message including information indicating a time at which a first SIP message according to initiation of a SIP-based service is to be transmitted and a first session identifier corresponding to the first SIP message based on the first communication method.

[0009] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after receiving the first P2P message, determine, through the communication circuit, whether the first SIP message is received based on the second communication method from the server (200) providing the SIP-based service within a set period of time.

[0010] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to disconnect a first connection established between the server and the electronic device and the server through the communication circuitry based on the first SIP message not being received within the set period of time.

[0011] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to establish a second connection with the server through the communication circuit after releasing the first connection.

[0012] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after establishing the second connection: perform a registration procedure with the server through the communication circuit; and transmit, through the communication circuit, a second P2P message to the external electronic device based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0013] According to one embodiment of the present disclosure, an electronic device (101) may include a communication circuit (190) configured to support a first communication method based on peer to peer (P2P), a second communication method based on session initiation protocol (SIP), and a plurality of radio access technologies (RATs), one or more processors (120) including processing circuitry, and a memory (130) configured to store instructions.

[0014] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to detect an event for changing the connection between the electronic device and the server from the first connection to a connection using a third RAT among the plurality of RATs, the third RAT being different from the first RAT, while maintaining a first connection between the electronic device and a server providing a SIP-based service, established using a first RAT among the plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP).

[0015] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to transmit, through the communication circuitry, a first P2P message to the first external electronic device, based on detection of the event, the first P2P message instructing the server to re-establish a connection between the server and the first external electronic device.

[0016] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after transmitting the first P2P message, release the first connection with the server through the communication circuit.

[0017] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to establish a third connection with the server through the communication circuit using the third RAT.

[0018] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to perform a registration procedure with the server through the communication circuit after establishing the third connection.

[0019] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after performing the registration procedure, receive a first SIP message according to initiation of the SIP-based service from a second external electronic device (700) different from the first external electronic device through the communication circuit.

[0020] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to transmit, through the communication circuit, to the server, a second SIP message targeting the first external electronic device, the second SIP message corresponding to the first SIP message.

[0021] According to one embodiment of the present disclosure, the first RAT may be the same as or different from the second RAT.

[0022] According to one embodiment of the present disclosure, a method of an electronic device (101) may include receiving, from an external electronic device (210; 220; 230), a first peer to peer (P2P) message including information indicating a time at which a first SIP message according to initiation of a session initiation protocol (SIP)-based service is to be transmitted and a first session identifier corresponding to the first SIP message.

[0023] According to one embodiment of the present disclosure, the method may include an operation of, after receiving the first P2P message, checking whether the first SIP message is received from a server (200) providing the SIP-based service within a set period of time.

[0024] According to one embodiment of the present disclosure, the method may include an operation of releasing a first connection established between the server and the electronic device and establishing a second connection based on the first SIP message not being received within the set period of time.

[0025] According to one embodiment of the present disclosure, the method may include, after establishing the second connection: performing a registration procedure with the server, and transmitting a second P2P message to the external electronic device based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0026] According to one embodiment of the present disclosure, a method of an electronic device (101) may include an operation of detecting an event for changing a connection between the electronic device and the server from the first connection to a connection using a third RAT different from the first RAT among the plurality of RATs, while maintaining a first connection between the electronic device and a server providing a session initiation protocol (SIP)-based service, which is established using a first radio access technology (RAT) among a plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP).

[0027] According to one embodiment of the present disclosure, the method may include, based on detection of the event, transmitting a first peer-to-peer (P2P) message to the first external electronic device, the first external electronic device commanding the server to re-establish a connection between the server and the first external electronic device.

[0028] According to one embodiment of the present disclosure, the method may include, after transmitting the first P2P message, an operation of releasing the first connection with the server and establishing a third connection using the third RAT.

[0029] According to one embodiment of the present disclosure, the method may include an operation of performing a registration procedure with the server after establishing the third connection.

[0030] According to one embodiment of the present disclosure, the method may include, after performing the registration procedure, receiving a first SIP message according to initiation of the SIP-based service from a second external electronic device (700) different from the first external electronic device.

[0031] According to one embodiment of the present disclosure, the method may include an operation of transmitting, to the server, a second SIP message targeting the first external electronic device, corresponding to the first SIP message.

[0032] According to one embodiment of the present disclosure, the first RAT may be the same as or different from the second RAT.

[0033] According to one embodiment of the present disclosure, a storage medium storing computer-readable instructions may be provided.

[0034] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by one or more processors (120) including processing circuitry of the electronic device (101), may cause the electronic device to perform at least one operation.

[0035] According to one embodiment of the present disclosure, the at least one operation may include receiving, from an external electronic device (210; 220; 230), a first peer to peer (P2P) message including information indicating a time at which a first SIP message according to initiation of a session initiation protocol (SIP)-based service is to be transmitted and a first session identifier corresponding to the first SIP message.

[0036] According to one embodiment of the present disclosure, the at least one operation may include an operation of checking whether the first SIP message is received from the server (200) providing the SIP-based service within a set period of time after receiving the first P2P message.

[0037] According to one embodiment of the present disclosure, the at least one operation may include an operation of releasing a first connection established between the server and the electronic device and establishing a second connection based on the first SIP message not being received within the set period of time.

[0038] According to one embodiment of the present disclosure, the at least one operation may include, after establishing the second connection: performing a registration procedure with the server, and transmitting a second P2P message to the external electronic device based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0039] According to one embodiment of the present disclosure, a storage medium storing computer-readable instructions may be provided.

[0040] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by one or more processors (120) including processing circuitry of the electronic device (101), may cause the electronic device to perform at least one operation.

[0041] According to one embodiment of the present disclosure, the at least one operation may include an operation of detecting an event for changing the connection between the electronic device and the server from the first connection to a connection using a third RAT different from the first RAT among the plurality of RATs, while maintaining a first connection between the electronic device and a server providing a session initiation protocol (SIP)-based service, which is established using a first radio access technology (RAT) among a plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP).

[0042] According to one embodiment of the present disclosure, the at least one operation may include, based on detection of the event, transmitting a first peer to peer (P2P) message to the first external electronic device, the first external electronic device commanding the server to re-establish a connection between the server and the first external electronic device.

[0043] According to one embodiment of the present disclosure, the at least one operation may include, after transmitting the first P2P message, releasing the first connection with the server and establishing a third connection using the third RAT.

[0044] According to one embodiment of the present disclosure, the at least one operation may include an operation of performing a registration procedure with the server after establishing the third connection.

[0045] According to one embodiment of the present disclosure, the at least one operation may include, after performing the registration procedure, receiving a first SIP message according to initiation of the SIP-based service from a second external electronic device (700) different from the first external electronic device.

[0046] According to one embodiment of the present disclosure, the at least one operation may include transmitting, to the server, a second SIP message targeting the first external electronic device, the second SIP message corresponding to the first SIP message.

[0047] According to one embodiment of the present disclosure, the first RAT may be the same as or different from the second RAT.

[0048] FIG. 1 is a block diagram schematically illustrating an electronic device within a network environment according to one embodiment.

[0049] FIG. 2 is a diagram illustrating a network environment for managing connectivity between electronic devices according to one embodiment.

[0050] Figure 3 is a flowchart illustrating an operation process of an electronic device according to one embodiment.

[0051] FIG. 4 is a signal flow diagram illustrating an operation for managing connectivity between electronic devices according to one embodiment.

[0052] FIG. 5 is a flowchart illustrating an operation process of an electronic device according to one embodiment.

[0053] FIG. 6 is a flowchart illustrating an operation process of a first external electronic device according to one embodiment.

[0054] FIG. 7 is a signal flow diagram illustrating an operation for managing connectivity between electronic devices according to one embodiment.

[0055] Figure 8 is a flowchart illustrating an operation process of an electronic device according to one embodiment.

[0056] FIG. 9 is a flowchart illustrating an operation process of a first external electronic device according to one embodiment.

[0057] FIG. 10 is a signal flow diagram illustrating an operation for managing connectivity between electronic devices according to one embodiment.

[0058] Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the attached drawings. In addition, when describing an embodiment of the present disclosure, if it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the gist of an embodiment of the present disclosure, such detailed description will be omitted. In addition, the terms described below are terms defined in consideration of the functions in an embodiment of the present disclosure, and these may vary depending on the intention or custom of the user or operator. Therefore, the definitions should be made based on the contents throughout this specification.

[0059] It should be noted that the technical terms used in this specification are merely used to describe specific embodiments and are not intended to limit the embodiments of the present disclosure. Alternatively, unless specifically defined otherwise herein, the technical terms used in this specification should be interpreted as having a meaning generally understood by a person skilled in the art to which the present disclosure pertains, and should not be interpreted in an excessively broad or narrow sense. Alternatively, if a technical term used in this specification is an incorrect technical term that does not accurately express the spirit of the present disclosure, it should be replaced with a technical term that can be correctly understood by a person skilled in the art. Alternatively, general terms used in the embodiments of the present disclosure should be interpreted as defined in the dictionary or according to the context, and should not be interpreted in an excessively narrow sense.

[0060] Alternatively, the singular expressions used herein include plural expressions unless the context clearly dictates otherwise. In this application, terms such as "consist of" or "comprises" should not be construed to necessarily include all of the various components or various operations described in the specification, and should be construed to mean that some of the components or some of the operations may not be included, or that additional components or operations may be included.

[0061] Alternatively, terms including ordinal numbers, such as "first," "second," etc., used herein may be used to describe various components, but the components should not be limited by these terms. These terms are used solely to distinguish one component from another. For example, without departing from the scope of the present disclosure, a first component could be referred to as a "second component," and similarly, a second component could also be referred to as a "first component."

[0062] When a component is referred to as being "connected" or "connected" to another component, it may be directly connected or connected to that other component, but there may also be other components intervening. Conversely, when a component is referred to as being "directly connected" or "connected" to another component, it should be understood that there are no other components intervening.

[0063] Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the attached drawings. Regardless of the drawing numbers, identical or similar components will be given the same reference numbers and redundant descriptions thereof will be omitted. Alternatively, when describing an embodiment of the present disclosure, if a detailed description of a related known technology is determined to obscure the gist of the present disclosure, the detailed description thereof will be omitted. Alternatively, it should be noted that the attached drawings are only intended to facilitate easy understanding of the spirit of the present disclosure and should not be construed as limiting the spirit of the present disclosure by the attached drawings. The spirit of the present disclosure should be construed to extend to all modifications, equivalents, and substitutes other than the attached drawings.

[0064] Hereinafter, an embodiment of the present disclosure will be described using an electronic device as an example, but the electronic device may also be referred to as a terminal, a mobile station, mobile equipment (ME), user equipment (UE), user terminal (UT), subscriber station (SS), wireless device, handheld device, or access terminal (AT). Alternatively, in an embodiment of the present disclosure, the electronic device may be a device having a communication function, such as a mobile phone, a personal digital assistant (PDA), a smart phone, a wireless MODEM, or a laptop.

[0065] FIG. 1 is a block diagram schematically illustrating an electronic device (101) within a network environment (100) according to one embodiment.

[0066] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).

[0067] The processor (120) may control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing, for example, software (e.g., a program (140)), and may perform various data processing or calculations. According to one embodiment, as at least a part of the data processing or calculation, the processor (120) may store a command or data received from another component (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the command or data stored in the volatile memory (132), and store the resulting data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or a secondary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together therewith. For example, if the electronic device (101) includes a main processor (121) and a secondary processor (123), the secondary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a specified function. The secondary processor (123) may be implemented separately from the main processor (121) or as a part thereof.

[0068] The auxiliary processor (123) may control at least a part of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. The artificial intelligence model may be generated through machine learning. This learning can be performed, for example, in the electronic device (101) itself where artificial intelligence is performed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.

[0069] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).

[0070] The program (140) may be stored as software in memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).

[0071] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0072] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.

[0073] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. In one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.

[0074] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).

[0075] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0076] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., electronic device (102)) (tablet and / or smartwatch). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0077] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0078] A haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

[0079] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0080] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0081] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0082] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, Wi-Fi (wireless fidelity) direct, or IrDA (infrared data association)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).

[0083] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.

[0084] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). According to one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the selected at least one antenna. According to some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).

[0085] In one embodiment, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.

[0086] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).

[0087] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In one embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0088] Electronic devices according to embodiments disclosed herein may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments disclosed herein are not limited to the aforementioned devices.

[0089] The embodiments of this document and the terminology used herein are not intended to limit the technical features described in this document to a specific embodiment, but should be understood to include various modifications, equivalents, or substitutes of the embodiment. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the item, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.

[0090] The term "module" used in one embodiment of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0091] An embodiment of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.

[0092] According to one embodiment, the method according to one embodiment disclosed in the present document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0093] According to one embodiment, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to one embodiment, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to one embodiment, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

[0094] Various mechanisms have been proposed to periodically monitor network status, and these mechanisms are being applied to a variety of services. A representative example of such mechanisms is voice over internet protocol (VoIP) services (e.g., call and message continuity (CMC) services).

[0095] The CMC service is a type of VoIP service that uses the session initiation protocol (SIP) and / or the real-time transport protocol (RTP), and may be a service that extends the phone function and / or the text message function of an electronic device (e.g., the electronic device (101) of FIG. 1) (e.g., a smart phone) to at least one external electronic device (e.g., the electronic device (102) of FIG. 1) (e.g., a tablet, a personal computer (PC), a virtual reality (VR) device, and / or a smart watch) registered based on the same account as the account (e.g., a user account and / or a service account) of the electronic device. Since the CMC service extends the phone function and / or the text message function based on the universal subscriber identity module (USIM) of the telecommunications carrier to which the electronic device is subscribed, there may be no need for a USIM to be inserted into the external electronic device.

[0096] The telephony features provided by the CMC service utilize SIP for signaling. The telephony features provided by the CMC service, a VoIP service, are highly sensitive to communication delays (e.g., packet delays). However, since packets are transmitted and received over a general Internet network, excluding servers (e.g., application servers (AS) or CMC servers) (e.g., server (108) of FIG. 1), managing communication delays occurring between endpoint electronic devices can be very difficult.

[0097] Furthermore, since CMC services do not support dedicated network resources provided through the operator's network, a mechanism for periodically checking network status may be essential to maintain connections (e.g., Transmission Control Protocol (TCP)) between electronic devices and servers. Among the various mechanisms for periodically checking network status, a representative example is the keep-alive method.

[0098] A keep-alive mechanism may be a mechanism that prevents a TCP connection from being terminated by at least one of routers located between the electronic device and the server by transmitting a configured packet (e.g., a dummy packet) even when there are no packets to be transmitted by the electronic device to the server (e.g., when the connection is idle), in order to maintain a TCP connection between the electronic device and the server. The electronic device and / or the external electronic device may transmit a ping message to the server in the connection idle state, and routers located on the path between the electronic device and / or the external electronic device and the server may recognize that the TCP connection between the electronic device and / or the external electronic device and the server is valid by forwarding the ping message to the server. The server that receives the ping message may transmit a pong message in response to the ping message, and the electronic device and / or the external electronic device may recognize that the TCP connection between the electronic device and / or the external electronic device and the server is valid when it receives the pong message transmitted by the server. At least one of the ping message or the pong message may be a keep-alive message associated with a keep-alive operation.

[0099] In general, if an electronic device and / or an external electronic device frequently transmits ping messages, it may be advantageous in terms of maintaining a TCP connection between the electronic device and / or the external electronic device and the server. However, since the electronic device and / or the external electronic device must wake up frequently to transmit ping messages, it may be disadvantageous in terms of power consumption. Therefore, since the frequency of transmitting ping messages is in a trade-off relationship with power consumption, determining the keep-alive period may be an important issue for the electronic device and / or the external electronic device. Therefore, the keep-alive period may be set relatively long, and therefore, if a communication delay occurs in the Internet core network before the relatively long keep-alive period is reached, it may be impossible to immediately respond to the communication delay that occurred.

[0100] Additionally, in the CMC service, an external electronic device operating as a secondary device (SD) can use an electronic device operating as a primary device (PD) as an access point (AP) for a hotspot. While the electronic device is operating as an AP for the hotspot, the radio access technology (RAT) used to establish a connection between the electronic device and the server may change. If the RAT changes, the Internet protocol (IP) address assigned to the electronic device by the Internet service provider (ISP) may change, and in this case, packet transmission / reception between the server and the external electronic device may become impossible due to a network address translation (NAT) issue.

[0101] Accordingly, the present disclosure proposes an electronic device and an operating method for managing connectivity between electronic devices to solve issues of communication delay in an Internet core network and / or inability to transmit / receive packets due to a change in RAT of a PD operating as an AP for a hotspot.

[0102] One embodiment of the present disclosure may provide an electronic device for managing connectivity between electronic devices and a method of operating the same.

[0103] One embodiment of the present disclosure can provide an electronic device and an operating method thereof for managing connectivity between electronic devices so as to eliminate communication delay in an Internet core network.

[0104] One embodiment of the present disclosure can provide an electronic device and an operating method thereof for managing connectivity between electronic devices to enable seamless packet transmission / reception of SDs according to a change in RAT of a PD operating as an AP for a hotspot.

[0105] FIG. 2 is a diagram illustrating a network environment for managing connectivity between electronic devices according to one embodiment.

[0106] Referring to FIG. 2, an electronic device (101) (e.g., the electronic device (101) of FIG. 1) may be an electronic device that provides a VoIP service (e.g., a CMC service). The electronic device (101) may operate as a PD. In one embodiment, the CMC service may be a SIP-based service. According to one embodiment, the electronic device (101) may manage connections between the electronic device (101) and the server (200), and / or connections between the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) and the server (200) by taking into account not only the aspect of maintaining a TCP connection between the electronic device (101) and the server (200) (e.g., the server (108) of FIG. 1) but also the aspect of alleviating (e.g., preventing, reducing, or minimizing) communication delay (e.g., packet delay).

[0107] In one embodiment, the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) may be connected to the same server (e.g., server (200)) as the server (200) to which the electronic device (101) is connected, and may exist in the same network environment as the electronic device (101) (e.g., may be connected to the same wireless fidelity (Wi-Fi) AP). Each of the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) may operate as a secondary device (SD).

[0108] In one embodiment, the electronic device (101) can operate as an AP for a hotspot. The electronic device (101) can support multiple RATs and can establish a connection with the server (200) using any one of the multiple RATs (e.g., the first RAT). The first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) can access the electronic device (101) and share the IP address of the electronic device (101).

[0109] In one embodiment, when the electronic device (101) determines that a communication delay occurs in the Internet core network, the electronic device (101) may release a currently established connection between the electronic device (101) and the server (200) and establish a new connection with the server (200). In one embodiment, when the electronic device (101) determines that a communication delay occurs in the Internet core network, the electronic device (101) may control to release connections currently established between the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) and the server (200) and establish new connections between the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) and the server (200). In one embodiment, when the electronic device (101) determines that a communication delay occurs in the Internet core network, it may be difficult to accurately determine in real time whether the communication delay on the Internet core network is caused by a connection currently established between the electronic device (101) and the server (200), or by connections currently established between the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) and the server (200). Accordingly, the electronic device (101) can disconnect a connection currently established between the electronic device (101) and the server (200), establish a new connection with the server (200), and control (or command) the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) to disconnect connections currently established between the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) and the server (200), and establish new connections with the server (200).

[0110] In one embodiment, when a first external electronic device (210), a second external electronic device (220), and / or a third external electronic device (230) are connected to the electronic device (101), the electronic device (101) may detect an event for changing the RAT for connection with the server (200) from the first RAT to the second RAT. In this way, based on the detection of the event for changing the RAT, the electronic device (101) may establish a connection with the server (200) using the changed RAT (e.g., the second RAT). The electronic device (101) that has established a connection with the server (200) using the changed RAT may, as the IP address has changed, instruct (or request) the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) connected to the electronic device (101) to establish a connection with the server (200) again. Since the server (200) cannot send SIP messages to the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) using the existing IP address due to the change in the RAT of the electronic device (101), the electronic device (101) may instruct (or request) the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) that is connected to the electronic device (101) to re-establish a connection with the server (200). The first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) may perform a re-connection operation with the electronic device (101) to obtain the IP address of the electronic device (101) and establish connections with the server (200) based on the obtained IP address.

[0111] In one embodiment, the electronic device (101) may transmit various commands (or requests) to the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) based on a direct communication method (e.g., a peer to peer (P2P) method). For example, the electronic device (101) may use a P2P message (e.g., a P2P request message) to instruct (or request) the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) to disconnect connections between the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) and the server (200) and to establish new connections with the server (200). For example, the electronic device (101) may use a P2P message (e.g., a P2P request message) to command (or request) the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) to perform a reconnect operation with the electronic device (101) in response to a change in the RAT of the electronic device (101) to establish a connection with the server (200).

[0112] According to one embodiment of the present disclosure, an electronic device (101) may include a communication circuit (190) configured to support a first communication method based on peer to peer (P2P) and a second communication method based on session initiation protocol (SIP), one or more processors (120) including processing circuitry, and a memory (130) configured to store instructions.

[0113] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to receive, through the communication circuit, from an external electronic device (210; 220; 230), a first peer to peer (P2P) message including information indicating a time when a first SIP message according to initiation of a SIP-based service is to be transmitted and a first session identifier corresponding to the first SIP message based on the first communication method.

[0114] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after receiving the first P2P message, determine, through the communication circuit, whether the first SIP message is received based on the second communication method from the server (200) providing the SIP-based service within a set period of time.

[0115] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, through the communication circuit, release a first connection established between the electronic device and the server and establish a second connection based on the first SIP message not being received within the set period of time.

[0116] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after establishing the second connection: perform a registration procedure with the server through the communication circuit; and transmit, through the communication circuit, a second P2P message to the external electronic device based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0117] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device, after performing the registration procedure, to receive, from the external electronic device through the communication circuit, a third P2P message based on the first communication method, the third P2P message including information indicating a time at which a second SIP message according to initiation of the SIP-based service is to be transmitted and a second session identifier corresponding to the second SIP message.

[0118] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after receiving the third P2P message, determine, through the communication circuit, whether the second SIP message is received from the server based on the second communication method within the set period of time.

[0119] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to determine that a communication delay on an Internet core network is resolved based on the second SIP message being received within the set period of time.

[0120] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to receive, through the communication circuitry, a SIP message from the server after establishing the second connection.

[0121] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to determine whether the received SIP message is the first SIP message.

[0122] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to discard the first SIP message based on the received SIP message being the first SIP message.

[0123] According to one embodiment of the present disclosure, the first P2P message includes a device identifier of the external electronic device, and first information indicating an event associated with a call state or an event associated with a control command, and based on the first information indicating an event associated with the call state, the first P2P message may include information indicating a call state of a first session corresponding to the first session identifier, and / or information indicating a SIP request type corresponding to the first SIP message.

[0124] According to one embodiment of the present disclosure, a difference between a time at which the first SIP message is to be transmitted and a time at which the first P2P message is to be transmitted and a difference between a time at which the second SIP message is to be transmitted and a time at which the second P2P message is to be transmitted may be less than a threshold time.

[0125] According to one embodiment of the present disclosure, the set period may be less than a period during which a keep alive operation is performed for the first connection and the second connection.

[0126] According to one embodiment of the present disclosure, an electronic device (101) may include a communication circuit (190) configured to support a first communication method based on peer to peer (P2P), a second communication method based on session initiation protocol (SIP), and a plurality of radio access technologies (RATs), one or more processors (120) including processing circuitry, and a memory (130) configured to store instructions.

[0127] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to detect an event for changing the connection between the electronic device and the server from the first connection to a connection using a third RAT among the plurality of RATs, the third RAT being different from the first RAT, while maintaining a first connection between the electronic device and a server providing a SIP-based service, established using a first RAT among the plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP).

[0128] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to transmit, through the communication circuitry, a first peer-to-peer (P2P) message to the first external electronic device, based on detection of the event, the first external electronic device, wherein the first external electronic device re-establishes a connection between the server and the first external electronic device.

[0129] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device, after transmitting the first P2P message, to release the first connection with the server through the communication circuit and establish a third connection using the third RAT.

[0130] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to perform a registration procedure with the server through the communication circuit after establishing the third connection.

[0131] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after performing the registration procedure, receive a first SIP message according to initiation of the SIP-based service from a second external electronic device (700) different from the first external electronic device through the communication circuit.

[0132] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to transmit, through the communication circuit, to the server, a second SIP message targeting the first external electronic device, the second SIP message corresponding to the first SIP message.

[0133] According to one embodiment of the present disclosure, the first RAT may be the same as or different from the second RAT.

[0134] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to receive, through the communication circuit, from the second external electronic device, a second P2P message comprising information indicating a time at which a third SIP message according to initiation of the SIP-based service is to be transmitted and a first session identifier corresponding to the third SIP message.

[0135] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to determine, through the communication circuit, whether the third SIP message is received from the server within a set period of time after receiving the second P2P message.

[0136] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, through the communication circuit, release a fourth connection established between the electronic device and the server and establish a fifth connection based on the third SIP message not being received within the set period of time.

[0137] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to perform a registration procedure with the server through the communication circuit after establishing the fifth connection.

[0138] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device, after performing the registration procedure, to receive, from the second external electronic device through the communication circuit, a second P2P message comprising information indicating a time at which a fourth SIP message according to initiation of the SIP-based service is to be transmitted and a second session identifier corresponding to the fourth SIP message.

[0139] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to, after receiving the fourth P2P message, determine whether the fourth SIP message is received from the server within the set period of time through the communication circuit.

[0140] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to determine that a communication delay on an Internet core network is resolved based on the fourth SIP message being received within the set period of time.

[0141] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device, after performing the registration procedure, to transmit, through the communication circuit, a third P2P message to the second external electronic device, the third P2P message instructing the second external electronic device to release a sixth connection established between the second external electronic device and the server and to establish a seventh connection between the second external electronic device and the server.

[0142] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to receive, through the communication circuit, a SIP message from the server after establishing the fifth connection.

[0143] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to determine whether the received SIP message is the third SIP message.

[0144] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by the one or more processors, may cause the electronic device to discard the third SIP message based on the received SIP message being the third SIP message.

[0145] According to one embodiment of the present disclosure, the second P2P message includes a device identifier of the second external electronic device, and first information indicating that the second P2P message is an event associated with a call state or an event associated with a control command, and based on the first information indicating an event associated with the call state, the second P2P message may include information indicating a call state of a first session corresponding to the first session identifier, and / or information indicating a SIP request type corresponding to the third SIP message.

[0146] According to one embodiment of the present disclosure, the difference between the time at which the third SIP message is transmitted and the time at which the third P2P message is transmitted and the difference between the time at which the fourth SIP message is transmitted and the time at which the fourth P2P message is transmitted may be less than a threshold time.

[0147] According to one embodiment of the present disclosure, the set period may be less than a period during which a keep alive operation is performed for the fourth connection and the fifth connection.

[0148] According to one embodiment of the present disclosure, the first P2P message includes a device identifier of the first external electronic device, information indicating a transmission time of the first P2P message, and first information indicating an event associated with a call state or an event associated with a control command, and based on the first information indicating that the event is associated with the control command, the first P2P message may include information indicating the third RAT.

[0149] Figure 3 is a flowchart illustrating an operation process of an electronic device according to one embodiment.

[0150] Referring to FIG. 3, an electronic device (e.g., the electronic device (101) of FIG. 1 or 2) (e.g., one or more processors including processing circuitry) (e.g., the processor (120) of FIG. 1) may, at operation 311, receive, from an external electronic device (e.g., one of the first external electronic device (210), the second external electronic device (220), and / or the third external electronic device (230) of FIG. 2) via a communication circuit (e.g., the communication module (190) of FIG. 1), a first P2P message including information indicating a time at which a first SIP message is to be transmitted according to initiation of a SIP-based service and a first session identifier corresponding to the first SIP message, based on a first communication scheme. In one embodiment, the communication circuit may support a first P2P-based communication scheme and a second SIP-based communication scheme. In one embodiment, the SIP-based service may be a CMC service. In one embodiment, the electronic device may operate as a PD, and the external electronic device may operate as an SD. In one embodiment, the first SIP message may be a SIP INVITE message. In one embodiment, the first P2P message may include a device identifier of the external electronic device, and first information indicating whether the event is associated with a call state or an event associated with a connection reestablishment. If the first information indicates that the event is associated with a call state, the first P2P message may include information indicating a call state of a first session corresponding to the first session identifier, and / or information indicating a SIP request type corresponding to the first SIP message.Information indicating whether an event is associated with a call status or an event associated with connection re-establishment, information indicating a call status, and / or information indicating a SIP request type corresponding to a SIP message will be described in more detail with reference to FIG. 4 below, so a redundant description thereof will be omitted here.

[0151] An electronic device that has received a first P2P message can, in operation 313, determine whether a first SIP message is received based on a second communication method within a set period of time from a server (e.g., server (200) of FIG. 2) providing a SIP-based service via a communication circuit. In one embodiment, the set period of time may be less than a period of time during which a keep-alive operation is performed for a connection established between the electronic device and the server. Since the set period of time is set to be less than the keep-alive period, it may be possible to immediately respond to a communication delay (e.g., packet delay) on an Internet core network even before the keep-alive period is reached.

[0152] As a result of the verification, if the first SIP message is received from the server within the set period based on the second communication method (action 313-Yes), there is no communication delay on the Internet core network, so the electronic device can be terminated without performing any further actions.

[0153] As a result of the verification, if the first SIP message is not received from the server within the set period of time based on the second communication method (operation 313-No), the electronic device may verify that a communication delay occurs on the Internet core network, and in operation 315, may disconnect the first connection currently established between the server and the electronic device and the server through the communication circuit, and may establish a second connection. In one embodiment, if the electronic device verifies that a communication delay occurs on the Internet core network, it may be difficult to accurately determine in real time whether the communication delay on the Internet core network is caused by the currently established connection between the electronic device and the server, or by the currently established connection between the external electronic device and the server. Therefore, the electronic device may disconnect the currently established connection between the electronic device and the server (e.g., the first connection), and establish a new connection (e.g., the second connection) with the server.

[0154] An electronic device that has released a first connection with a server and established a second connection may perform a registration procedure with the server via a communication circuit in operation 317. In one embodiment, the registration procedure may include an operation of transmitting a registration message to the server and an operation of receiving a 200 OK message in response to the registration message.

[0155] The electronic device that has released the first connection with the server and established the second connection may, in operation 317, perform a registration procedure with the server and, based on the first communication method, transmit a second P2P message to the external electronic device via the communication circuit, which commands the external electronic device to release the third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0156] An electronic device that has performed a registration procedure with a server may receive, based on a first communication method, a third P2P message from an external electronic device through a communication circuit, the third P2P message including information indicating a time at which a second SIP message is to be transmitted according to initiation of a SIP-based service and a second session identifier corresponding to the second SIP message. In one embodiment, the third SIP message may be a SIP INVITE message. In one embodiment, the third P2P message may include a device identifier of the external electronic device and first information indicating whether the event is associated with a call state or an event associated with connection re-establishment. If the first information indicates that the event is associated with a call state, the third P2P message may include information indicating a call state of a second session corresponding to the second session identifier and / or information indicating a SIP request type corresponding to the second SIP message. Information indicating whether an event is associated with a call status or an event associated with connection re-establishment, information indicating a call status, and / or information indicating a SIP request type corresponding to a SIP message will be described in more detail with reference to FIG. 4 below, so a redundant description thereof will be omitted here.

[0157] FIG. 4 is a signal flow diagram illustrating an operation for managing connectivity between electronic devices according to one embodiment.

[0158] Referring to FIG. 4, a server (200) (e.g., an application server (AS) or a CMC server) (e.g., the server (200) of FIG. 2) provides a SIP-based service (e.g., a CMC service), an electronic device (101) (e.g., the electronic device (101) of FIG. 1 or 2) operates as a PD, and a first external electronic device (210) may operate as an SD. The first external electronic device (210) may be registered based on the same account as an account of the electronic device (101) (e.g., a user account and / or a service account).

[0159] First, the electronic device (101) may maintain a first connection established between the electronic device (101) and the server (200) in operation 411. In one embodiment, the first connection may be a TCP connection. For example, the first connection of operation 411 may be a TCP connection. The first external electronic device (210) may maintain a second connection established between the first external electronic device (210) and the server (200) in operation 413. In one embodiment, the second connection may be a TCP connection. For example, the second connection of operation 413 may be a TCP connection. In one embodiment, the electronic device (101) and the first external electronic device (210) may be connected based on a P2P method. For example, the P2P method may be a Wi-Fi method.

[0160] In this way, when a first connection is established between the electronic device (101) and the server (200), and a second connection is established between the first external electronic device (210) and the server (200), the first external electronic device (210) may detect a call origination event for originating a call in operation 415. The first external electronic device (210) that has detected the call origination event may need to transmit a SIP INVITE message, which is a SIP message for originating a call, to the server (200). In this case, before transmitting the SIP INVITE message to the server (200), the first external electronic device (210) may transmit information related to the SIP INVITE message of the first external electronic device (210) to the electronic device (101) using a P2P request message in operation 417.

[0161] In one embodiment, the P2P request message of operation 417 may include information indicating the time at which the SIP message (e.g., SIP INVITE message) will be sent (Send Time), a device identifier (Device ID), an event type, and / or additional information.

[0162] In one embodiment, the information indicating the time at which the SIP message is to be sent (Send Time) may indicate the time at which a SIP message following the P2P request message is to be sent. For example, the time at which the SIP message is to be sent may be expressed as "25 / 07 / 2024 05:58:11.033." In one embodiment, the difference between the time at which the P2P request message is sent and the time at which the SIP message is to be sent may be less than a threshold time. For example, the threshold time may be set to a very short time, and the time at which the P2P request message is sent and the time at which the SIP message is to be sent may be approximately the same.

[0163] In one embodiment, the device identifier may be an identifier for identifying an external electronic device operating as an SD. When there are multiple external electronic devices operating as SD, the electronic device (101) operating as a PD may identify the external electronic device operating as an SD based on the device identifier. The device identifier included in the P2P request message of operation 417 may be an identifier of the first external electronic device (210). For example, the device identifier may be as follows: "urn:duid:b5da40dc303a3ee442bcbdc65f7a56be41fa3dcb3a2693e893cfe0814110f5cf".

[0164] In one embodiment, the event type may be information indicating whether the event is associated with a call state or an event associated with a control command. In one embodiment, the events associated with the call state may include a call reception event, a call origination event, a call acceptance event, and / or a call pause event. In one embodiment, a call reception event may indicate an event for receiving a call, a call origination event may indicate an event for originating a call, a call acceptance event may indicate an event for accepting a call, and a call pause event may indicate an event for pausing a call. In one embodiment, the events associated with the control command may include a connection reestablishment command for reestablishing a connection, and / or a session control command for controlling a SIP session. In one embodiment, the event associated with the call state may be EVENT_TYPE_CALL_STATE_NOTI, and its value may be set to, for example, "101". In one embodiment, the event associated with the control command may be EVENT_TYPE_RESET_CONNECTION, and its value may be set to, for example, "102." For example, the session control command may include a command to terminate a call. The event type included in the P2P request message of operation 417 may be information indicating that the event is associated with a call state.

[0165] In one embodiment, the additional information may include a session identifier (Session ID), information indicating a call state, and / or information indicating a method of requesting via a SIP message.

[0166] In one embodiment, the session identifier may be an identifier for identifying a session, and may be an identifier for identifying a session corresponding to a SIP message that transmits relevant information in a P2P request message. For example, multiple SIP sessions may be established between the electronic device (101) and the first external electronic device (210), and the session identifier may be uniquely set for each SIP session. For example, when multiple calls are received and / or calls are made, a SIP session may be established for each call, and thus a session identifier may be set for each SIP session. The session identifier included in the P2P request message of operation 417 may be a session identifier of a session corresponding to a SIP INVITE message. For example, the session identifier may be "91398fb4b46fa5267d0d495277d0e68571f41d4e."

[0167] In one embodiment, the information indicating the call state may indicate the state information of the SIP session corresponding to the call. The state information of the SIP session corresponding to the call may indicate an idle state, an outgoing state, an incoming state, an established state, a held state, an ended state, and / or a rejected state. In one embodiment, the information indicating the outgoing state may be CALL_STATE_OUTGOING, and the value may be set to, for example, "1". In one embodiment, the information indicating the incoming state may be CALL_STATE_INCOMING, and the value may be set to, for example, "2". In one embodiment, the information indicating the established state may be CALL_STATE_ESTABLISHED, and the value may be set to, for example, "3". In one embodiment, the information indicating the paused state may be CALL_STATE_HELD, and the value may be set to, for example, "4". In one embodiment, the information indicating the end state may be CALL_STATE_ENDED, and the value thereof may be set to, for example, "5." In one embodiment, the information indicating the rejection state may be CALL_STATE_REJECTED, and the value thereof may be set to, for example, "6." The information indicating the call state included in the P2P request message of operation 417 may indicate an outgoing state.

[0168] In one embodiment, the information indicating the SIP request type corresponding to the SIP message may indicate a request type (or request method) defined in SIP, such as INVITE, 200 OK, PUBLISH, and / or BYE. The information indicating the SIP request type corresponding to the SIP message included in the P2P request message of operation 417 may indicate INVITE.

[0169] In one embodiment, information indicating the time at which a SIP message is to be transmitted, a device identifier, an event type, a session identifier, information indicating a call status, and information indicating a SIP request type corresponding to the SIP message may be represented as shown in Table 1 below.

[0170] Table 1

[0171]

[0172] In Table 1, the RAT may be included when the event type included in the P2P request message indicates an event associated with a control command. For example, when the event type indicates a connection reestablishment command for reestablishing a connection, it may indicate a changing RAT. In one embodiment, the RAT may be an underlying physical connection method for a wireless communication network. For example, the RAT may include Bluetooth, Wi-Fi, long term evolution (LTE), and / or new radio (NR).

[0173] An electronic device (101) that receives a P2P request message from a first external electronic device (210) can confirm that a SIP INVITE message to be transmitted by the first external electronic device (210) will be received from a server (200) based on the P2P request message. In operation 419, a P2P response message indicating that the P2P request message has been normally received can be transmitted to the first external electronic device (210). In one embodiment, operation 419 may be omitted, and operation 419 may be performed after operation 421.

[0174] The first external electronic device (210) that has received a P2P response message from the electronic device (101) can transmit a SIP INVITE message to the server (200) in operation 421.

[0175] The server (200), which has received a SIP INVITE message from the first external electronic device (210), may transmit the SIP INVITE message to the electronic device (101) in operation 423. However, due to a communication delay on the Internet core network, the SIP INVITE message transmitted from the server (200) may not be received by the electronic device (101) within a set time. The communication delay on the Internet core network may occur due to the first connection, which is a connection between the electronic device (101) and the server (200), or due to the second connection, which is a connection between the first external electronic device (210) and the server (200).

[0176] An electronic device (101) that has received a P2P request message from a first external electronic device (210) has confirmed that a SIP INVITE message to be transmitted by the first external electronic device (210) will be received from a server (200) based on the P2P request message, but in operation 425, it can confirm that the SIP INVITE message is not received within a set time. As the SIP INVITE message is not received within the set time, the electronic device (101) can confirm that a communication delay occurs on the Internet core network.

[0177] Within the set time, the electronic device (101) that confirms that the SIP INVITE message is not received can, in operation 427, release the first connection established between the electronic device (101) and the server (200) and establish a third connection with the server (200). In one embodiment, when the electronic device (101) confirms that a communication delay occurs in the Internet core network, it may be difficult to accurately determine in real time whether the communication delay on the Internet core network is caused by the connection currently established between the electronic device (101) and the server (200) (e.g., the first connection) or by the connection currently established between the first external electronic device (210) and the server (200) (e.g., the second connection). Accordingly, the electronic device (101) can release the connection currently established between the electronic device (101) and the server (200) (e.g., the first connection) and establish a new connection (e.g., the third connection) with the server (200), and the first external electronic device (210) can also be controlled to release the connection currently established between the server (200) and the first external electronic device (210) (e.g., the second connection) and establish a new connection (e.g., the fourth connection) with the server (200).

[0178] The electronic device (101) that has established a third connection with the server (200) may, in operation 429, transmit a registration message to the server (200) to perform a registration procedure with the server (200). The electronic device (101) that has transmitted the registration message to the server (200), in operation 431, may transmit a P2P request message to the first external electronic device (210) to control (e.g., command) the first external electronic device (210) to release the connection (e.g., the second connection) currently established between the first external electronic device (210) and the server (200) and to establish a new connection (e.g., the fourth connection) with the server (200). The P2P request message transmitted in operation 431 may include an event type. The event type included in the P2P request message of operation 431 may indicate a connection re-establishment command for re-establishing the connection. When the event type indicates a connection re-establishment command to re-establish a connection, the P2P request message may include information indicating the type of the current bearer of the PD (e.g., the electronic device (101)) (e.g., an LTE bearer, a Wi-Fi bearer, and / or an NR bearer) and / or a reason why connection re-establishment is required. The reason why connection re-establishment is required may indicate a communication delay (or packet delay) and / or a change in the RAT used by the PD.

[0179] In Fig. 4, an example is shown in which operation 431 is performed after operation 429 is performed, but operation 431 may be performed simultaneously with operation 429. The first external electronic device (210) that receives a P2P request message from the electronic device (101) can confirm that it is necessary to release the connection currently established between the first external electronic device (210) and the server (200) (e.g., the second connection) and establish a new connection (e.g., the fourth connection) with the server (200).

[0180] The server (200) that has received a registration message from the electronic device (101) can, in operation 433, transmit a 200 OK message to the electronic device (101) in response to the registration message.

[0181] The first external electronic device (210) that has received a P2P request message from the electronic device (101) may transmit a P2P response message, which is a response message to the P2P request message, to the electronic device (101) in operation 435. In one embodiment, operation 435 may be omitted, and operation 435 may be performed before operation 433.

[0182] Upon receiving a P2P request message from the electronic device (101), the first external electronic device (210) determines that it is necessary to release the currently established connection (e.g., the second connection) between the first external electronic device (210) and the server (200) and establish a new connection (e.g., the fourth connection) with the server (200), and in operation 437, release the currently established connection (e.g., the second connection) between the server (200), the first external electronic device (210), and the server (200) and establish a new connection (e.g., the fourth connection).

[0183] The first external electronic device (210) that has established a fourth connection with the server (200) may, in operation 439, transmit a registration message to the server (200) to perform a registration procedure with the server (200).

[0184] The server (200) that receives a registration message from the first external electronic device (210) can, in operation 441, transmit a 200 OK message to the first external electronic device (210) in response to the registration message.

[0185] Although not shown separately in FIG. 4, after operation 441, the first external electronic device (210) may detect a call origination event again, and may generate a P2P request message corresponding to a SIP INVITE message to be sent upon detection of the call origination event. The first external electronic device (210) transmits the generated P2P request message to the electronic device (101), and the electronic device (101) that receives the P2P request message from the first external electronic device (210) may confirm that a SIP INVITE message is received based on the P2P request message. Here, the operation of the first external electronic device (210) detecting the call origination event and then generating a P2P request message and transmitting it to the electronic device (101) may be implemented similarly to operations 415 and 417, and therefore, a redundant description thereof will be omitted herein.

[0186] In this way, the first external electronic device (210) that transmitted the P2P request message to the electronic device (101) can transmit a SIP INVITE message to the server (200) in operation 443. The server (200) that received the SIP INVITE message from the first external electronic device (210) can transmit the SIP INVITE message to the electronic device (101) in operation 445. As described in operations 427 to 441, since the communication delay on the Internet core network has been resolved, the electronic device (101) can receive the SIP INVITE message transmitted from the server (200) within a set time, and thus the electronic device (101) can confirm that the communication delay on the Internet core network has been resolved.

[0187] The first external electronic device (210) may transmit a P2P request message to the electronic device (101) whenever it transmits a SIP message to the server (200), or alternatively, when a communication delay occurs on the Internet core network, which may have a relatively large impact on the overall system performance, the first external electronic device (210) may transmit a P2P request message to the electronic device (101) only when transmitting a SIP message related to, for example, SIP session establishment, call acceptance, and / or call termination.

[0188] FIG. 5 is a flowchart illustrating an operation process of an electronic device according to one embodiment.

[0189] Referring to FIG. 5, it should be noted that the operation process of the electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) illustrated in FIG. 5 is the operation process of the electronic device described in FIG. 4. The electronic device provides a SIP-based service (e.g., a CMC service) and can operate as a PD.

[0190] In operation 511, the electronic device may receive a P2P request message from a first external electronic device (e.g., the first external electronic device (210) of FIG. 2) that includes information related to a SIP INVITE message of the first external electronic device. The P2P request message of operation 511 may be similar to or substantially identical to the P2P request message of operation 417 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0191] An electronic device that has received a P2P request message from a first external electronic device may transmit a P2P response message to the first external electronic device in response to the P2P request message in operation 513. In one embodiment, the electronic device that has received the P2P request message from the first external electronic device may confirm that a SIP INVITE message to be transmitted by the first external electronic device will be received from a server (e.g., server (200) of FIG. 2) based on the P2P request message. The electronic device may indicate that it has normally received the P2P request message from the first external electronic device by transmitting the P2P response message, and operation 513 may be omitted.

[0192] The electronic device that transmitted the P2P response message to the first external electronic device can determine, in operation 515, that a communication delay has occurred on the Internet core network. The operation of the electronic device determining whether a communication delay has occurred on the Internet core network may be similar to or substantially identical to operation 425 of FIG. 4, and therefore, a redundant description thereof will be omitted herein.

[0193] An electronic device that determines that a communication delay has occurred on the Internet core network may, in operation 517, disconnect the first connection currently established between the electronic device and the server and establish a third connection with the server. Operation 517, which disconnects the first connection currently established between the electronic device and the server and establishes a third connection with the server, may be similar to or substantially identical to operation 427 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0194] The electronic device, which has released a first connection currently established between the electronic device and the server and established a third connection with the server, may, in operation 519, transmit a P2P request message to the first external electronic device to control (e.g., command) the first external electronic device to release the connection currently established between the first external electronic device and the server (e.g., the second connection) and establish a new connection (e.g., the fourth connection) with the server. The P2P request message of operation 519 may be similar to or substantially identical to the P2P request message of operation 431 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0195] An electronic device that has transmitted a P2P request message to a first external electronic device may perform a registration procedure with a server in operation 521. Operation 521, which performs the registration procedure with the server, may be similar to or substantially identical to operations 429 and 433 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0196] The electronic device that performed the registration procedure with the server may, in operation 523, receive a P2P response message in response to the P2P request message from the first external electronic device.

[0197] Although not illustrated separately in FIG. 5, after operation 523, the first external electronic device may detect a call origination event again, and upon detecting the call origination event, may generate a P2P request message corresponding to a SIP INVITE message to be sent. The first external electronic device may transmit the generated P2P request message to the electronic device, and the electronic device that has received the P2P request message from the first external electronic device may confirm that a SIP INVITE message is received based on the P2P request message. Here, the operation of the first external electronic device generating a P2P request message and transmitting it to the electronic device after detecting the call origination event may be similar to or substantially the same as operations 415 and 417 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0198] Thereafter, in operation 525, the electronic device can receive a SIP INVITE message from the server as the first external electronic device transmits the SIP INVITE message. As described in operations 517 to 523, since the communication delay on the Internet core network has been resolved, the electronic device can receive the SIP INVITE message transmitted by the server within a set time, and thus, the electronic device can confirm that the communication delay on the Internet core network has been resolved.

[0199] FIG. 6 is a flowchart illustrating an operation process of a first external electronic device according to one embodiment.

[0200] Referring to FIG. 6, it should be noted that the operation process of the first external electronic device (e.g., the first external electronic device (210) of FIG. 2) illustrated in FIG. 6 is the operation process of the first external electronic device described in FIG. 4. The first external electronic device provides a SIP-based service (e.g., a CMC service) and can operate as an SD.

[0201] In operation 611, the first external electronic device may transmit information related to the SIP INVITE message of the first external electronic device using a P2P request message to the electronic device upon detecting a call origination event. The P2P request message of operation 611 may be similar to or substantially identical to the P2P request message of operation 417 of FIG. 4 , and thus, a redundant description thereof will be omitted herein.

[0202] The first external electronic device that has sent the P2P request message to the electronic device can, in operation 613, send a SIP INVITE message to a server (e.g., server (200) of FIG. 2).

[0203] The first external electronic device that sent the SIP INVITE message to the server can, in operation 615, receive a P2P response message from the electronic device in response to the P2P request message.

[0204] Thereafter, the electronic device can determine that a communication delay has occurred on the Internet core network, and the electronic device, which determines that a communication delay has occurred on the Internet core network, can transmit a P2P request message to the first external electronic device to control (e.g., command) the first external electronic device to release the connection currently established between the first external electronic device and the server (e.g., the second connection) and establish a new connection (e.g., the fourth connection) with the server. Accordingly, the first external electronic device can receive the P2P request message transmitted from the electronic device in operation 617. The P2P request message of operation 617 may be similar to or substantially identical to the P2P request message of operation 431 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0205] A first external electronic device that receives a P2P request message from an electronic device can, in operation 618, disconnect a connection currently established between the first external electronic device and the server (e.g., a second connection) and establish a new connection (e.g., a fourth connection) with the server.

[0206] The first external electronic device, which has established a fourth connection with the server and has released the second connection currently established between the first external electronic device and the server, may, in operation 619, transmit a P2P response message to the electronic device in response to the P2P request message.

[0207] The first external electronic device that has transmitted the P2P response message to the electronic device may perform a registration procedure with the server in operation 621. Operation 621 of performing the registration procedure with the server may be similar to or substantially identical to operations 439 and 441 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0208] Although not illustrated separately in FIG. 6, after operation 623, the first external electronic device may detect a call origination event again, and upon detecting the call origination event, may generate a P2P request message corresponding to a SIP INVITE message to be sent. The first external electronic device may transmit the generated P2P request message to the electronic device, and the electronic device that has received the P2P request message from the first external electronic device may confirm that a SIP INVITE message is received based on the P2P request message. Here, the operation of the first external electronic device generating a P2P request message and transmitting it to the electronic device after detecting the call origination event may be similar to or substantially the same as operation 415 and operation 417 of FIG. 4, and thus, a redundant description thereof will be omitted herein.

[0209] Thereafter, in operation 623, the first external electronic device can transmit a SIP INVITE message to the server. As described in operations 617 to 623, since the communication delay on the Internet core network has been resolved, the SIP INVITE message transmitted by the first external electronic device can be received by the electronic device within the set time, and thus, the electronic device can confirm that the communication delay on the Internet core network has been resolved.

[0210] FIG. 7 is a signal flow diagram illustrating an operation for managing connectivity between electronic devices according to one embodiment.

[0211] Referring to FIG. 7, a server (200) (e.g., an AS or CMC server) (e.g., server (200) of FIG. 2) provides a SIP-based service (e.g., a CMC service), an electronic device (101) (e.g., the electronic device (101) of FIG. 1 or 2) operates as a PD, and a first external electronic device (210) may operate as an SD. The electronic device (101) may support multiple RATs. The first external electronic device (210) may be registered based on the same account as the account of the electronic device (101) (e.g., a user account and / or a service account). The electronic device (101) may operate as an AP that provides a hotspot (700) for the first external electronic device (210). The fourth external electronic device (700) does not share an account (e.g., a user account and / or a service account) with the electronic device (101) and the first external electronic device (210), and may not provide CMC services. The fourth external electronic device (700) is not associated with the electronic device (101) and the first external electronic device (210), and may not operate as a PD or an SD.

[0212] First, the electronic device (101) may maintain a first connection established between the electronic device (101) and the server (200) in operation 711. In one embodiment, the first connection may be a connection based on a first RAT (e.g., LTE) among a plurality of RATs. The first external electronic device (210) may be connected to the electronic device (101) based on a P2P method in operation 713-1. For example, the P2P method may be a Wi-Fi method. The first external electronic device (210) may be registered with the server (200) through the hotspot (700) of the electronic device (101) in operation 713-2 and then maintain a second connection with the server (200). In this way, in a state where a first connection is established between the electronic device (101) and the server (200) and a second connection is established between the first external electronic device (210) and the server (200), the fourth external electronic device (700) can transmit a SIP INVITE message to the electronic device (101) in operation 715.

[0213] The electronic device (101) that has received a SIP INVITE message from the fourth external electronic device (700) can transmit a SIP INVITE (fork) message to the server (200) in operation 717. The server (200) that has received the SIP INVITE (fork) message from the electronic device (101) can transmit a SIP INVITE message to the electronic device (101) in operation 719. The electronic device (101) that has received the SIP INVITE message from the server (200) can transmit a SIP INVITE message to the first external electronic device (210) in operation 721. As described in operations 717 to 721, a SIP-based service (e.g., CMC service) can be provided when the first external electronic device (210) is registered with the server (200) through the hotspot (700) of the electronic device (101).

[0214] In this way, in a state where the first external electronic device (210) is registered with the server (200) through the hotspot (700) of the electronic device (101), in operation 723, the electronic device (101) can detect an event for changing the RAT used for connection with the server (200) from the first RAT to the second RAT (e.g., Wi-Fi).

[0215] In this way, the electronic device (101) that has detected an event for changing the RAT can confirm that the first connection and the second connection, which are LTE connections, must be released, and can change the RAT from the first RAT to the second RAT in operation 723. In this way, as the RAT changes from the first RAT to the second RAT, the first connection established between the electronic device (101) and the server (200) and the second connection established between the server (200) and the first external electronic device (210) via the electronic device (101) can be released.

[0216] In this way, as the first connection and the second connection are released, the electronic device (101) may transmit a P2P request message to indicate that the first external electronic device (210) is required to establish a new connection with the server (200) and register with the server (200) in operation 725. In one embodiment, the P2P request message of operation 725 may include an event type indicating a connection re-establishment command for re-establishing the connection and information indicating a changed RAT. Since the RAT of the electronic device (101) is changed from the first RAT, LTE, to the second RAT, Wi-Fi, the information indicating the RAT included in the P2P request message of operation 725 may indicate Wi-Fi. The information indicating the event type and the RAT may be similar to or substantially the same as that described in operation 417 of FIG. 4 and Table 1, and thus, a redundant description thereof will be omitted herein.

[0217] The electronic device (101) that has transmitted a P2P request message to the first external electronic device (210) can establish a third connection with the server (200) based on Wi-Fi, which is a second RAT, at operation 727. The electronic device (101) that has established the third connection with the server (200) can transmit a registration message to the server (200) to perform a registration procedure with the server (200) at operation 729.

[0218] The server (200) that receives a registration message from the electronic device (101) can, in operation 731, transmit a 200 OK message to the electronic device (101) in response to the registration message.

[0219] The first external electronic device (210) that receives the P2P request message from the electronic device (101) can determine that it is necessary to disconnect the second connection currently established with the server (200) through the electronic device (101) due to a change in the RAT of the electronic device (101) and to establish a new connection (e.g., a fourth connection) using the changed RAT. Accordingly, the first external electronic device (210) can, at operation 733-1, establish the fourth connection based on Wi-Fi with the server (200) through the hotspot (700) of the electronic device (101) using the Wi-Fi connection maintained with the electronic device (101) at operation 733-2.

[0220] The first external electronic device (210) that has established a fourth connection with the server (200) may, in operation 735, transmit a registration message to the electronic device (101) to perform a registration procedure with the server (200), and the electronic device (101) may, in operation 737, transmit the registration message received from the first external electronic device (210) to the server (200).

[0221] The server (200) that receives the registration message from the electronic device (101) can transmit a 200 OK message to the electronic device (101) in response to the registration message at operation 739, and the electronic device (101) can transmit the 200 OK message received from the server (200) to the first external electronic device (210) at operation 741.

[0222] As described in operations 723 to 741, when the RAT of an electronic device (101) operating as an AP providing a hotspot (700) is changed, the electronic device (101) notifies the first external electronic device (210) in advance that a connection re-establishment and registration procedure needs to be re-performed due to the change in RAT, so that the first external electronic device (210) can establish a new connection with the server (200) based on the changed RAT and re-perform the registration procedure with the server (200).

[0223] In this way, in a state where a third connection is established between the electronic device (101) and the server (200) and a fourth connection is established between the first external electronic device (210) and the server (200), the fourth external electronic device (700) can transmit a SIP INVITE message to the electronic device (101) in operation 743.

[0224] The electronic device (101) that has received the SIP INVITE message from the fourth external electronic device (700) can transmit a SIP INVITE (fork) message to the server (200) in operation 745. The server (200) that has received the SIP INVITE (fork) message from the electronic device (101) can transmit a SIP INVITE message to the electronic device (101) in operation 747. The electronic device (101) that has received the SIP INVITE message from the server (200) can transmit a SIP INVITE message to the first external electronic device (210) in operation 749.

[0225] In this way, when the RAT of an electronic device (101) operating as an AP providing a hotspot (700) is changed, the electronic device (101) notifies the first external electronic device (210) in advance that a connection re-establishment and registration procedure needs to be re-performed due to the change in the RAT, thereby enabling the first external electronic device (210) to establish a new connection with the server (200) based on the changed RAT and re-perform the registration procedure with the server (200), thereby preventing a communication connection failure of the first external electronic device (210) that may occur due to the change in the RAT of the electronic device (101).

[0226] Figure 8 is a flowchart illustrating an operation process of an electronic device according to one embodiment.

[0227] Referring to FIG. 8, it should be noted that the operation process of the electronic device illustrated in FIG. 8 (e.g., the electronic device (101) of FIG. 1 or FIG. 2) is the operation process of the electronic device described in FIG. 7. The electronic device provides a SIP-based service (e.g., a CMC service) and can operate as a PD. The electronic device can support multiple RATs. The electronic device can operate as an AP providing a hotspot. A first external electronic device (e.g., the first external electronic device (200) of FIG. 2) can connect to the electronic device as an AP providing a hotspot and can operate as an SD.

[0228] In operation 811, the electronic device may detect an event for changing the RAT used for connection with the server from the first RAT to a second RAT (e.g., Wi-Fi) while maintaining a first connection based on a first RAT (e.g., LTE) among a plurality of RATs established between the electronic device and a server. In one embodiment, the first external electronic device may be maintaining a second connection based on the first RAT (e.g., LTE) with the server through the electronic device.

[0229] An electronic device that detects an event to change the RAT can change the RAT from the first RAT to the second RAT in operation 812.

[0230] The electronic device that has changed the RAT may, in operation 813, transmit a P2P request message to indicate that the first external electronic device is required to establish a new connection with the server and register with the server as the RAT has been changed from the first RAT to the second RAT. In one embodiment, the P2P request message of operation 813 may be similar to or substantially identical to the P2P request message of operation 725 of FIG. 7, and thus, a redundant description thereof will be omitted herein.

[0231] An electronic device that has transmitted a P2P request message to a first external electronic device may establish a new connection (e.g., a third connection) based on a server and a second RAT (e.g., Wi-Fi) at step 815. In one embodiment, the electronic device may release the first connection and establish the third connection.

[0232] An electronic device that has established a third connection with a server may perform a registration procedure with the server in operation 817. The operation of performing the registration procedure in operation 817 may be similar to or substantially identical to operations 729 and 731 of FIG. 7, and therefore, a redundant description thereof will be omitted herein.

[0233] The electronic device that has performed the registration procedure with the server can then receive a SIP INVITE message from the fourth external electronic device in operation 819. The electronic device that has received the SIP INVITE message from the fourth external electronic device can then transmit a SIP INVITE (fork) message to the server in operation 821.

[0234] In this way, when the RAT of an electronic device operating as an AP providing a hotspot is changed, the electronic device notifies the first external electronic device in advance that a connection re-establishment and registration procedure needs to be re-performed due to the change in RAT, thereby allowing the first external electronic device to establish a new connection with a server based on the changed RAT and re-perform the registration procedure with the server, thereby preventing a communication connection failure of the first external electronic device that may occur due to the change in RAT of the electronic device.

[0235] FIG. 9 is a flowchart illustrating an operation process of a first external electronic device according to one embodiment.

[0236] Referring to FIG. 9, it should be noted that the operation process of the first external electronic device (e.g., the first external electronic device (210) of FIG. 2) illustrated in FIG. 9 is the same as the operation process of the first external electronic device described in FIG. 7. The first external electronic device provides a SIP-based service (e.g., a CMC service) and can operate as an SD. The first external electronic device supports multiple RATs and can connect to an electronic device (e.g., the electronic device (101) of FIG. 1 or 2) that operates as an AP providing a hotspot.

[0237] First, the first external electronic device may maintain a second connection with the server via the electronic device's hotspot. While maintaining this second connection with the server, the electronic device to which the first external electronic device is connected may change the RAT used for the connection between the electronic device and the server from the first RAT (e.g., LTE) to the second RAT (e.g., Wi-Fi). Accordingly, the first external electronic device may receive a P2P request message from the electronic device in operation 911 to indicate that the first external electronic device is required to establish a new connection with the server and register with the server. In one embodiment, the P2P request message of operation 911 may be similar to or substantially identical to the P2P request message of operation 725 of FIG. 7, and thus, a redundant description thereof will be omitted herein.

[0238] The first external electronic device, which has received a P2P request message from the electronic device, may, in operation 913, release the second connection and re-establish a fourth connection with the server. The operation of the first external electronic device establishing the fourth connection may be similar to or substantially identical to operations 733-1 and 733-2 of FIG. 7, and thus, a redundant description thereof will be omitted herein.

[0239] The first external electronic device that has established a fourth connection with the server may perform a registration procedure with the server in operation 915. The operation of performing the registration procedure in operation 915 may be similar to or substantially identical to operations 735, 737, 739, and 741 of FIG. 7, and thus, a redundant description thereof will be omitted herein.

[0240] The first electronic device that has performed the registration procedure with the server can then receive a SIP INVITE message through the electronic device in operation 917.

[0241] In this way, when the RAT of an electronic device operating as an AP providing a hotspot is changed, the electronic device notifies the first external electronic device in advance that a connection re-establishment and registration procedure needs to be re-performed due to the change in RAT, thereby allowing the first external electronic device to establish a new connection with a server based on the changed RAT and re-perform the registration procedure with the server, thereby preventing a communication connection failure of the first external electronic device that may occur due to the change in RAT of the electronic device.

[0242] FIG. 10 is a signal flow diagram illustrating an operation for managing connectivity between electronic devices according to one embodiment.

[0243] Referring to FIG. 10, a server (200) (e.g., an AS or CMC server) (e.g., the server (200) of FIG. 2) provides a SIP-based service (e.g., a CMC service), an electronic device (101) (e.g., the electronic device (101) of FIG. 1 or 2) operates as a PD, and a first external electronic device (210) may operate as an SD. The first external electronic device (210) may be registered based on an account identical to an account of the electronic device (101) (e.g., a user account and / or a service account). Operations 411 to 417 of FIG. 10 may be implemented similarly or substantially identically to operations 411 to 417 of FIG. 4, and thus, a redundant description thereof may be omitted herein.

[0244] An electronic device (101) that receives a P2P request message from a first external electronic device (210) can confirm that a SIP INVITE message to be transmitted by the first external electronic device (210) will be received from a server (200) based on the P2P request message. The electronic device (101) that confirms that a SIP INVITE message to be transmitted by the first external electronic device (210) will be received from the server (200) can start monitoring communication delay in operation 1011. For example, monitoring communication delay can refer to monitoring a communication delay that may occur due to various errors. The electronic device (101) that started monitoring communication delay can transmit a P2P response message indicating that the P2P request message has been normally received to the first external electronic device (210) in operation 419. In one embodiment, operation 419 may be omitted, and operation 419 may be performed after operation 421.

[0245] The first external electronic device (210) that has received a P2P response message from the electronic device (101) can transmit a SIP INVITE message to the server (200) in operation 421.

[0246] The server (200) that receives the SIP INVITE message from the first external electronic device (210) may be unable to process the SIP INVITE message due to various errors, such as errors in parameters included in the SIP INVITE message received from the first external electronic device (210) and / or internal errors of the server (200). The server (200) that determines that it is unable to process the SIP INVITE message received from the first external electronic device (210) may, in operation 1013, transmit a 480 ERROR message to the first external electronic device (210) indicating that an error has occurred in response to the SIP INVITE message. For example, the 480 ERROR message may include an error cause such as 404 NOT FOUND and / or 480 Temporary Unavailable. The first external electronic device (210), which has received a 480 ERROR message from the server (200), may transmit a P2P request message including information indicating that an error has occurred to the electronic device (101) in operation 1015 (e.g., a call state field including 'CALL_STATE_SERVER_ERROR = 7').

[0247] An electronic device (101) that receives a P2P request message including information indicating that an error has occurred can determine that it is impossible to process the SIP INVITE message, and therefore, can disable communication delay monitoring in operation 1017. The electronic device (101) that has disabled communication delay monitoring can, in operation 1019, transmit a P2P response message to the first external electronic device (210) in response to the P2P request message.

[0248] In this disclosure, the CMC service is assumed as an example of a SIP-based service, but the method for managing connectivity between electronic devices presented in this disclosure can be applied not only to the CMC service, but also to services that require multiple electronic devices to be linked within the same service, such as the Internet of Things (IoT) service and / or RCS (rich communication service).

[0249] In the present disclosure, in order to manage connectivity between electronic devices and reduce (or alleviate or prevent) communication delay on an Internet core network, a case in which operations are performed between an electronic device operating as a PD and an external electronic device operating as an SD is described as an example. However, when the operational states (e.g., call pause state and / or call resume state) between the PD and the SD are inconsistent, a message notifying the inconsistency in the operational states may be provided, thereby allowing a user to immediately recognize the inconsistency in the operational states between the PD and the SD, thereby allowing the operational states to be matched more quickly.

[0250] According to one embodiment of the present disclosure, a method of an electronic device (101) may include receiving, from an external electronic device (210; 220; 230), a first peer to peer (P2P) message including information indicating a time at which a first SIP message according to initiation of a session initiation protocol (SIP)-based service is to be transmitted and a first session identifier corresponding to the first SIP message.

[0251] According to one embodiment of the present disclosure, the method may include an operation of, after receiving the first P2P message, checking whether the first SIP message is received from a server (200) providing the SIP-based service within a set period of time.

[0252] According to one embodiment of the present disclosure, the method may include an operation of releasing a first connection established between the server and the electronic device and establishing a second connection based on the first SIP message not being received within the set period of time.

[0253] According to one embodiment of the present disclosure, the method may include, after establishing the second connection: performing a registration procedure with the server, and transmitting a second P2P message to the external electronic device based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0254] According to one embodiment of the present disclosure, the method may include, after performing the registration procedure, receiving, from the external electronic device, a third P2P message including information indicating a time at which a second SIP message according to the initiation of the SIP-based service is to be transmitted and a second session identifier corresponding to the second SIP message.

[0255] According to one embodiment of the present disclosure, the method may include, after receiving the third P2P message, an operation of checking whether the second SIP message is received from the server within the set period based on the second communication method.

[0256] According to one embodiment of the present disclosure, the method may include an operation of confirming that a communication delay on the Internet core network is resolved based on the second SIP message being received within the set period.

[0257] According to one embodiment of the present disclosure, the method may include, after establishing the second connection, receiving a SIP message from the server.

[0258] According to one embodiment of the present disclosure, the method may include an operation of determining whether the received SIP message is the first SIP message.

[0259] According to one embodiment of the present disclosure, the method may include an operation of discarding the first SIP message based on the received SIP message being the first SIP message.

[0260] According to one embodiment of the present disclosure, the first P2P message includes a device identifier of the external electronic device, and first information indicating an event associated with a call state or an event associated with a control command, and based on the first information indicating an event associated with the call state, the first P2P message may include information indicating a call state of a first session corresponding to the first session identifier, and / or information indicating a SIP request type corresponding to the first SIP message.

[0261] According to one embodiment of the present disclosure, a difference between a time at which the first SIP message is to be transmitted and a time at which the first P2P message is to be transmitted and a difference between a time at which the second SIP message is to be transmitted and a time at which the second P2P message is to be transmitted may be less than a threshold time.

[0262] According to one embodiment of the present disclosure, the set period may be less than a period during which a keep alive operation is performed for the first connection and the second connection.

[0263] According to one embodiment of the present disclosure, a method of an electronic device (101) may include an operation of detecting an event for changing a connection between the electronic device and the server from the first connection to a connection using a third RAT different from the first RAT among the plurality of RATs, while maintaining a first connection between the electronic device and a server providing a session initiation protocol (SIP)-based service, which is established using a first radio access technology (RAT) among a plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP).

[0264] According to one embodiment of the present disclosure, the method may include, based on detection of the event, transmitting a first peer-to-peer (P2P) message to the first external electronic device, the first external electronic device commanding the server to re-establish a connection between the server and the first external electronic device.

[0265] According to one embodiment of the present disclosure, the method may include, after transmitting the first P2P message, an operation of releasing the first connection with the server and establishing a third connection using the third RAT.

[0266] According to one embodiment of the present disclosure, the method may include an operation of performing a registration procedure with the server after establishing the third connection.

[0267] According to one embodiment of the present disclosure, the method may include, after performing the registration procedure, receiving a first SIP message according to initiation of the SIP-based service from a second external electronic device (700) different from the first external electronic device.

[0268] According to one embodiment of the present disclosure, the method may include an operation of transmitting, to the server, a second SIP message targeting the first external electronic device, corresponding to the first SIP message.

[0269] According to one embodiment of the present disclosure, the first RAT may be the same as or different from the second RAT.

[0270] According to one embodiment of the present disclosure, a storage medium storing computer-readable instructions may be provided.

[0271] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by one or more processors (120) including processing circuitry of the electronic device (101), may cause the electronic device to perform at least one operation.

[0272] According to one embodiment of the present disclosure, the at least one operation may include receiving, from an external electronic device (210; 220; 230), a first peer to peer (P2P) message including information indicating a time at which a first SIP message according to initiation of a session initiation protocol (SIP)-based service is to be transmitted and a first session identifier corresponding to the first SIP message.

[0273] According to one embodiment of the present disclosure, the at least one operation may include an operation of checking whether the first SIP message is received from the server (200) providing the SIP-based service within a set period of time after receiving the first P2P message.

[0274] According to one embodiment of the present disclosure, the at least one operation may include an operation of releasing a first connection established between the server and the electronic device and establishing a second connection based on the first SIP message not being received within the set period of time.

[0275] According to one embodiment of the present disclosure, the at least one operation may include, after establishing the second connection: performing a registration procedure with the server, and transmitting a second P2P message to the external electronic device based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

[0276] According to one embodiment of the present disclosure, a storage medium storing computer-readable instructions may be provided.

[0277] According to one embodiment of the present disclosure, the instructions, when individually or collectively executed by one or more processors (120) including processing circuitry of the electronic device (101), may cause the electronic device to perform at least one operation.

[0278] According to one embodiment of the present disclosure, the at least one operation may include an operation of detecting an event for changing the connection between the electronic device and the server from the first connection to a connection using a third RAT different from the first RAT among the plurality of RATs, while maintaining a first connection between the electronic device and a server providing a session initiation protocol (SIP)-based service, which is established using a first radio access technology (RAT) among a plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP).

[0279] According to one embodiment of the present disclosure, the at least one operation may include, based on detection of the event, transmitting a first peer to peer (P2P) message to the first external electronic device, the first external electronic device commanding the server to re-establish a connection between the server and the first external electronic device.

[0280] According to one embodiment of the present disclosure, the at least one operation may include, after transmitting the first P2P message, releasing the first connection with the server and establishing a third connection using the third RAT.

[0281] According to one embodiment of the present disclosure, the at least one operation may include an operation of performing a registration procedure with the server after establishing the third connection.

[0282] According to one embodiment of the present disclosure, the at least one operation, after performing the registration procedure,

[0283] It may include an operation of receiving a first SIP message according to the initiation of the SIP-based service from a second external electronic device (700) different from the first external electronic device.

[0284] According to one embodiment of the present disclosure, the at least one operation may include transmitting, to the server, a second SIP message targeting the first external electronic device, the second SIP message corresponding to the first SIP message.

[0285] According to one embodiment of the present disclosure, the first RAT may be the same as or different from the second RAT.

Claims

1. In an electronic device (101), A communication circuit (190) configured to support a first communication method based on peer to peer (P2P) and a second communication method based on session initiation protocol (SIP); One or more processors (120) comprising processing circuitry; A memory (130) configured to store instructions, wherein the instructions, when individually or collectively executed by one or more processors, cause the electronic device to: Through the above communication circuit, a first P2P message including information indicating a time at which a first SIP message is to be transmitted according to the initiation of a SIP-based service and a first session identifier corresponding to the first SIP message is received from an external electronic device (210; 220; 230) based on the first communication method, After receiving the first P2P message, it is checked whether the first SIP message is received based on the second communication method within a set period from the server (200) providing the SIP-based service through the communication circuit, Based on the first SIP message not being received within the above-described set period, the first connection currently established between the server and the electronic device and the server is released through the communication circuit, After releasing the first connection, a second connection is established with the server through the communication circuit, and After establishing the above second connection: An electronic device that performs a registration procedure with the server through the communication circuit, and causes the electronic device to transmit a second P2P message, based on the first communication method, through the communication circuit, to the external electronic device, which commands the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

2. In paragraph 1, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: An electronic device that causes the electronic device to receive, through the communication circuit, a third P2P message including information indicating a time at which a second SIP message according to the initiation of the SIP-based service is to be transmitted and a second session identifier corresponding to the second SIP message, based on the first communication method, from the external electronic device after performing the registration procedure.

3. In paragraph 2, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: After receiving the third P2P message, it is checked whether the second SIP message is received based on the second communication method within the set period from the server through the communication circuit, and An electronic device that causes a communication delay on an Internet core network to be resolved based on the second SIP message being received within the above-described set period.

4. In any one of paragraphs 1 to 3, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: After establishing the second connection, a SIP message is received from the server through the communication circuit, Check whether the received SIP message is the first SIP message, and An electronic device that causes the first SIP message to be discarded based on the fact that the received SIP message is the first SIP message.

5. In any one of paragraphs 1 to 4, The above first P2P message is: A device identifier of the external electronic device, and first information indicating an event associated with a call state or an event associated with a control command, and Based on the above first information indicating an event associated with the call state, the first P2P message: The electronic device including information indicating a call status of a first session corresponding to the first session identifier, and / or information indicating a SIP request type corresponding to the first SIP message.

6. In any one of paragraphs 2 to 5, The electronic device wherein the difference between the time at which the first SIP message is transmitted and the time at which the first P2P message is transmitted and the difference between the time at which the second SIP message is transmitted and the time at which the third P2P message is transmitted are less than a threshold time.

7. In any one of paragraphs 1 to 6, The electronic device wherein the above setting period is less than the period during which the keep alive operation for the first connection and the second connection is performed.

8. In the electronic device (101), A communication circuit (190) configured to support a first communication method based on peer to peer (P2P), a second communication method based on session initiation protocol (SIP), and a plurality of radio access technologies (RATs); One or more processors (120) comprising processing circuitry; A memory (130) configured to store instructions, wherein the instructions, when individually or collectively executed by one or more processors, cause the electronic device to: While maintaining a first connection between the electronic device and a server providing a SIP-based service, which is established using a first RAT among the plurality of RATs, and a second connection established between the electronic device and a first external electronic device (210; 220; 230) using a second RAT among the plurality of RATs with the electronic device as an access point (AP), an event is detected for changing the connection between the electronic device and the server from the first connection to a connection using a third RAT among the plurality of RATs that is different from the first RAT, Based on detection of the above event, transmitting a first P2P message to the first external electronic device through the communication circuit, the first P2P message commanding the re-establishment of a connection between the server and the first external electronic device; After transmitting the first P2P message, the first connection is released from the server through the communication circuit, After releasing the first connection, a third connection is established with the server through the communication circuit using the third RAT, After establishing the third connection, a registration procedure is performed with the server through the communication circuit, After performing the above registration procedure, a first SIP message according to the initiation of the SIP-based service is received from a second external electronic device (700) different from the first external electronic device through the communication circuit, and Causing the server to transmit a second SIP message targeting the first external electronic device, corresponding to the first SIP message, through the communication circuit; The above first RAT is the same as or different from the above second RAT.

9. In paragraph 8, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: Through the communication circuit, from the second external electronic device, a second P2P message is received, including information indicating a time at which a third SIP message is to be transmitted in accordance with the initiation of the SIP-based service and a first session identifier corresponding to the third SIP message; After receiving the second P2P message, it is checked whether the third SIP message is received from the server within a set period of time through the communication circuit, Based on the third SIP message not being received within the above-described set period, the fourth connection currently established between the server and the electronic device and the server is released through the communication circuit, After releasing the fourth connection, a fifth connection is established with the server through the communication circuit, After establishing the fifth connection, a registration procedure is performed with the server through the communication circuit, and An electronic device that, after performing the above registration procedure, causes the electronic device to receive, through the communication circuit, from the second external electronic device, a second P2P message including information indicating a time at which a fourth SIP message according to the initiation of the SIP-based service is to be transmitted and a second session identifier corresponding to the fourth SIP message.

10. In paragraph 9, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: After receiving the fourth P2P message, it is checked whether the fourth SIP message is received from the server within the set period through the communication circuit, and An electronic device that causes a communication delay on an Internet core network to be resolved based on the reception of the fourth SIP message within the above-described set period.

11. In paragraph 9 or 10, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: After performing the above registration procedure, the electronic device causes the second external electronic device to transmit a third P2P message through the communication circuit, the third P2P message commanding the second external electronic device to release the sixth connection established between the second external electronic device and the server and to establish a seventh connection between the second external electronic device and the server.

12. In any one of paragraphs 9 to 11, The above instructions, when individually or collectively executed by the one or more processors, cause the electronic device to: After establishing the fifth connection, a SIP message is received from the server through the communication circuit, Check whether the received SIP message is the third SIP message, and The electronic device causing the third SIP message to be discarded based on the fact that the received SIP message is the third SIP message.

13. In any one of paragraphs 8 to 12, The above first P2P message is: It includes a device identifier of the first external electronic device, information indicating a transmission time of the first P2P message, and first information indicating an event associated with a call state or an event associated with a control command, and The electronic device, wherein the first P2P message includes information indicating the third RAT, based on the first information indicating that the first information is an event associated with the control command.

14. In the method of electronic device (101), An operation of receiving, from an external electronic device (210; 220; 230), a first peer to peer (P2P) message including information indicating a time at which a first SIP message is to be transmitted in accordance with the initiation of a session initiation protocol (SIP)-based service and a first session identifier corresponding to the first SIP message; After receiving the first P2P message, an operation of checking whether the first SIP message is received within a set period from the server (200) providing the SIP-based service; An operation of releasing a first connection established between the server and the electronic device and establishing a second connection based on the first SIP message not being received within the set period; and After establishing the above second connection: The method comprising the steps of performing a registration procedure with the server and transmitting a second P2P message based on the first communication method, the second P2P message commanding the external electronic device to release a third connection currently established between the external electronic device and the server and to establish a fourth connection between the external electronic device and the server.

15. In paragraph 14, After establishing the second connection, an action of receiving a SIP message from the server; An operation for checking whether the received SIP message is the first SIP message; and An operation of discarding the first SIP message based on the fact that the received SIP message is the first SIP message, The above first P2P message is: A device identifier of the external electronic device, and first information indicating an event associated with a call state or an event associated with a control command, and Based on the above first information indicating an event associated with the call state, the first P2P message: The method comprising information indicating a call status of a first session corresponding to the first session identifier, and / or information indicating a SIP request type corresponding to the first SIP message.

Citation Information

Patent Citations

  • Electronic apparatus and IMS service providing method thereof

    KR1020160013702A

  • A drawing work method based on an architectural design method that minimizes the amount of rebar required

    KR1020250144068A

  • Socks for diabetes patients minimalizing calf compression

    KR102588189B1

  • Dialog Establishment Over A Peer-To-Peer Architecture

    US20130166761A1

  • Method of Internet Protocol (IP) to IP handover

    US20140079023A1