WO2020060124A1 - 패킷을 필터링하는 전자 장치 및 그 작동 방법 - Google Patents

패킷을 필터링하는 전자 장치 및 그 작동 방법 Download PDF

Info

Publication number
WO2020060124A1
WO2020060124A1 PCT/KR2019/011931 KR2019011931W WO2020060124A1 WO 2020060124 A1 WO2020060124 A1 WO 2020060124A1 KR 2019011931 W KR2019011931 W KR 2019011931W WO 2020060124 A1 WO2020060124 A1 WO 2020060124A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
electronic device
packet
network connection
allowed
Prior art date
Application number
PCT/KR2019/011931
Other languages
English (en)
French (fr)
Inventor
카란드흐마크
에산 하쉬미데니쉬
산카르린가파로히트
팔라니압판라마나단
찬드라 부팔라라메쉬
권용수
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to US17/274,495 priority Critical patent/US11595902B2/en
Publication of WO2020060124A1 publication Critical patent/WO2020060124A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/028Capturing of monitoring data by filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • Various embodiments relate to an electronic device for filtering packets using a communication processor in a power saving state and a method of operating the same.
  • the electronic device may evaluate or analyze packets transmitted and received during the data communication using a packet filter program while performing data communication with other electronic devices.
  • the electronic device may allow or block the flow of various types of Internet Protocol (IP) packets through packet filtering.
  • IP Internet Protocol
  • Packet filtering can be applied to incoming and outgoing IP flow traffic. Packet filtering can define to allow certain inbound IP traffic to be received over one or more interfaces or to allow certain IP traffic to be transmitted.
  • a 5-tuple source IP address, destination IP address, protocol identifier, source port number, destination port number
  • the application processor may be unnecessarily switched to a wake-up state to perform packet filtering.
  • the electronic device When the electronic device performs packet filtering using only the source address or destination address of a packet, it may not be easy to perform packet filtering by classifying each application.
  • Various embodiments generate a packet filter program including a condition for filtering packets based on a user identifier corresponding to an allowed application in a power saving state, and use an application other than the allowed application using the packet filter program.
  • An electronic device capable of filtering related packets and a method of operating the same can be provided.
  • the electronic device includes a communication processor, an application processor operatively connected to the communication processor, and at least one memory, wherein the at least one memory, when executed, is the When the device enters the power saving state, at least one for identifying a user identifier (UID, User Identifier) corresponding to at least one application allowed or at least one application not allowed, and filtering the packet based on the user identifier
  • UID User Identifier
  • a first packet filter program including one condition is generated
  • the communication processor checks the first packet filter program generated from the application processor, and while the electronic device is in the power saving state, the first packet filter program is generated.
  • Packet filter program Using a program, instructions to store at least one packet associated with an application other than the allowed at least one application or at least one packet associated with the at least one unauthorized application may be stored. .
  • an operation method of an electronic device for filtering a packet may include, in an application processor, when an electronic device enters a power saving state, a user identifier corresponding to at least one allowed application or at least one unacceptable application ( UID, User Identifier), in the application processor, based on the user identifier, generating a first packet filter program including at least one condition for filtering packets, in a communication processor, in the application Checking the first packet filter program generated from a processor, and in the communication processor, while the electronic device is in the power saving state, using the first packet filter program, other than the allowed at least one application app Associated with at least one application associated with the indications that at least one packet or not the accepted may include at least an operation of filtering a packet.
  • a computer-readable recording medium having a program for executing a method of operating an electronic device including a communication processor, an application processor operatively coupled to the communication processor, and a memory
  • the application In a processor, when the electronic device enters a power saving state, an operation of checking a user identifier (UID) corresponding to at least one application allowed or at least one application not allowed, in the application processor, the user identifier Based on, generating a first packet filter program including at least one condition for filtering packets, the first packet filter program generated from the application processor in the communication processor Checking, and in the communication processor, while the electronic device is in the power saving state, by using the first packet filter program, at least one packet or the permission associated with an application other than the allowed at least one application
  • a program for executing a method including filtering at least one packet associated with at least one application that has not been recorded may be recorded.
  • power consumption of an application processor may be minimized by filtering a packet in which an electronic device in a power saving state is inbound by a communication processor.
  • packet filtering may be performed for each application by using a user identifier that identifies the application.
  • FIG. 1 is a block diagram of an electronic device in a network environment, according to various embodiments.
  • FIG. 2 is a flowchart illustrating a method for an electronic device to filter packets according to various embodiments of the present disclosure.
  • FIG. 3 is a diagram for describing an embodiment in which an electronic device filters packets using a packet filter program according to various embodiments of the present disclosure.
  • FIG. 4 is a flowchart illustrating a method for an electronic device to generate a filter program according to various embodiments of the present disclosure.
  • FIG. 5 is a diagram illustrating an embodiment in which an electronic device generates a packet filter program according to various embodiments of the present disclosure.
  • FIG. 6 is a flowchart illustrating a method for an electronic device to generate a packet filter program according to various embodiments of the present disclosure.
  • FIG. 7 is a view for explaining an embodiment in which the electronic device generates a packet filter program according to various embodiments.
  • FIG. 8 is a diagram illustrating an embodiment in which an electronic device generates and executes a packet filter program according to various embodiments.
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments.
  • the electronic device 101 communicates with the electronic device 102 through the first network 198 (eg, a short-range wireless communication network), or the second network 199 It may communicate with the electronic device 104 or the server 108 through (eg, a remote wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108.
  • the first network 198 eg, a short-range wireless communication network
  • the second network 199 It may communicate with the electronic device 104 or the server 108 through (eg, a remote wireless communication network).
  • the electronic device 101 may communicate with the electronic device 104 through the server 108.
  • the electronic device 101 includes a processor 120, a memory 130, an input device 150, an audio output device 155, a display device 160, an audio module 170, a sensor module ( 176), interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication circuit 190, subscriber identification module 196, or antenna module 197 ).
  • the components for example, the display device 160 or the camera module 180
  • the sensor module 176 eg, a fingerprint sensor, an iris sensor, or an illuminance sensor
  • the display device 160 eg., a display
  • the sensor module 176 eg, a fingerprint sensor, an iris sensor, or an illuminance sensor
  • the processor 120 executes software (eg, the program 140) to execute at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and can perform various data processing or operations. According to one embodiment, as at least part of data processing or computation, the processor 120 may receive instructions or data received from other components (eg, sensor module 176 or communication circuit 190) in volatile memory 132. Loaded into, process instructions or data stored in volatile memory 132, and store result data in non-volatile memory 134.
  • software eg, the program 140
  • the processor 120 may receive instructions or data received from other components (eg, sensor module 176 or communication circuit 190) in volatile memory 132. Loaded into, process instructions or data stored in volatile memory 132, and store result data in non-volatile memory 134.
  • the processor 120 may include an application processor 121 (eg, a central processing unit), and an auxiliary processor 123 (eg, a graphics processing unit, an image signal processor, and a sensor hub) that may be operated independently or together.
  • an application processor 121 eg, a central processing unit
  • an auxiliary processor 123 eg, a graphics processing unit, an image signal processor, and a sensor hub
  • the coprocessor 123 may be set to use less power than the application processor 121, or to be specialized for a specified function.
  • the coprocessor 123 may be implemented separately from the application processor 121 or as a part thereof.
  • the coprocessor 123 is, for example, on behalf of the application processor 121 while the application processor 121 is in an inactive (eg, sleep) state, or the application processor 121 is active (eg, executing an application) ) With the application processor 121 while in the state, at least one of the components of the electronic device 101 (for example, the display device 160, the sensor module 176, or the communication circuit 190) It can control at least some of the functions or states associated with.
  • the coprocessor 123 eg, image signal processor or communication processor
  • may be implemented as part of other functionally relevant components eg, camera module 180 or communication circuit 190). have.
  • the memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176).
  • the data may include, for example, software (eg, the program 140) and input data or output data for commands related thereto.
  • the memory 130 may include a volatile memory 132 or a non-volatile memory 134.
  • the memory 130 may include a program storage area to be driven in the application processor 121 and a storage area to store a program to be driven in the communication processor (eg, the auxiliary processor 123 or the communication processor 191).
  • the program 140 may be stored as software in the memory 130, and may include, for example, an operating system 142, middleware 144, or an application 146.
  • the program 140 may be composed of a program to be run in the application processor 121 and a program to be run in a communication processor (eg, an auxiliary processor 123 or a communication processor 191).
  • the input device 150 may receive commands or data to be used for components (eg, the processor 120) of the electronic device 101 from outside (eg, a user) of the electronic device 101.
  • the input device 150 may include, for example, a microphone, mouse, or keyboard.
  • the audio output device 155 may output an audio signal to the outside of the electronic device 101.
  • the audio output device 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive an incoming call.
  • the receiver may be implemented separately from, or as part of, a speaker.
  • the display device 160 may visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display device 160 may include a touch circuitry configured to sense a touch, or a sensor circuit (eg, a pressure sensor) configured to measure the strength of the force generated by the touch. have.
  • the audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 acquires sound through the input device 150, or an external electronic device (eg, directly or wirelessly connected to the sound output device 155 or the electronic device 101) Sound may be output through the electronic device 102 (eg, speakers or headphones).
  • an external electronic device eg, directly or wirelessly connected to the sound output device 155 or the electronic device 101
  • Sound may be output through the electronic device 102 (eg, speakers or headphones).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state can do.
  • the sensor module 176 includes, 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 infrared (IR) sensor, a biological sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more designated protocols that can be used for the electronic device 101 to be directly or wirelessly connected to an external electronic device (eg, the electronic device 102).
  • 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.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card interface
  • audio interface audio interface
  • connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or movement) or electrical stimuli that the user can perceive through tactile or motor sensations.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may 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.
  • the power management module 188 may manage power supplied to the electronic device 101.
  • the power management module 388 may be implemented, for example, as at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101.
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication circuit 190 may be a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishing and performing communication through the established communication channel.
  • the communication circuit 190 operates independently of the processor 120 (eg, an application processor) and may include one or more communication processors 191 supporting direct (eg, wired) communication or wireless communication.
  • the communication circuit 190 may include a wireless communication circuit 192 (eg, a cellular communication circuit, a short-range wireless communication circuit, or a global navigation satellite system (GNSS) communication circuit) or a wired communication circuit 194 (eg : Local area network (LAN) communication circuit, or power line communication circuit.
  • the corresponding communication circuit among these communication circuits includes a first network 198 (eg, a short-range communication network such as Bluetooth, WiFi direct, or infrared data association (IrDA)) or a second network 199 (eg, a cellular network, the Internet, or It may communicate with external electronic devices through a computer network (eg, a telecommunication network such as a LAN or WAN).
  • a wireless communication circuit 192 eg, a cellular communication circuit, a short-range wireless communication circuit, or a global navigation satellite system (GNSS) communication circuit
  • GNSS global navigation satellite system
  • LAN Local area network
  • the corresponding communication circuit among these communication circuits includes a first
  • the wireless communication circuit 192 uses a subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199.
  • IMSI International Mobile Subscriber Identifier
  • the antenna module 197 may transmit a signal or power to the outside (eg, an external electronic device) or receive it from the outside.
  • the antenna module 197 may include one or more antennas, from which at least one antenna suitable for a communication scheme used in a communication network, such as a first network 198 or a second network 199, For example, it may be selected by the communication circuit 190.
  • the signal or power may be transmitted or received between the communication circuit 190 and an external electronic device through the at least one selected antenna.
  • peripheral devices for example, a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199.
  • Each of the electronic devices 102 and 104 may be the same or a different type of device from the electronic device 101.
  • all or some of the operations performed on the electronic device 101 may be performed on one or more external devices of the external electronic devices 102, 104, or 108.
  • the electronic device 101 when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead executes the function or service itself.
  • one or more external electronic devices may be requested to perform at least a portion of the function or the service.
  • the one or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and deliver the result of the execution to the electronic device 101.
  • the electronic device 101 may process the result, as it is or additionally, and provide it as at least part of a response to the request.
  • cloud computing distributed computing, or client-server computing technology This can be used.
  • FIG. 2 is a flowchart illustrating a method of filtering a packet by the electronic device 101 according to various embodiments of the present disclosure.
  • FIG. 3 is a diagram for describing an embodiment in which the electronic device 101 filters packets using a packet filter program according to various embodiments.
  • the electronic device 101 may enter a power saving state.
  • the electronic device 101 may enter a doze state corresponding to a power saving state.
  • the doze state is a state in which a series of restrictions are applied to an application in order to save the battery.
  • access to the application processor 121 may be partially restricted to applications.
  • the electronic device 101 may not perform a designated operation.
  • the electronic device 101 scans Wi-Fi, runs a Sync Adapter, runs a Scheduler, processes a Scheduler, And outputting a screen to the display.
  • the power saving state may be referred to as a doze state, but the term is not limited.
  • the electronic device 101 may enter a doze state when a specified condition is satisfied.
  • the electronic device 101 is a specified condition, a state that is not in a state of being charged, a state in which a screen is turned off by a user's power key manipulation, a state in which the screen is off for a predetermined time, and the electronic device for a predetermined time ( If the movement of 101) corresponds to at least one of the unconfirmed states, it may enter the doze state.
  • the above-described example in which the electronic device 101 enters the doze state is only an embodiment, but is not limited thereto, and may include an example in which the electronic device 101 known by a person skilled in the art enters the doze state.
  • the electronic device 101 enters the electronic device 101 into a power saving state (eg, a doze state).
  • a power saving state eg, a doze state
  • a user identifier (UID) 311 corresponding to at least one allowed application 310 (or an application included in a white list) may be identified.
  • the application processor 121 of the electronic device 101 when the electronic device 101 enters a power saving state, the application processor 121 of the electronic device 101, the user identifier 311 corresponding to the allowed application 310 ).
  • Each application may have a user identifier corresponding to the application to distinguish the application.
  • the allowed application 310 may include an application that is previously designated to perform data communication in a power saving state.
  • the electronic device 101 may be operated by a system such as a push application (for example, an application used in Google's push server, an application using Google Cloud Message (GCM), or an application used in samsung's push server).
  • the pre-designated application may be determined as the allowed application 310, or the pre-designated application by the user may be determined as the allowed application 310.
  • the allowed application 310 may include an application performing data communication in a power saving state. For example, when the electronic device 101 executing the music application enters a power saving state, the electronic device 101 may determine the music application as an allowed application 310.
  • the electronic device 101 when the electronic device 101 enters a power saving state, the electronic device 101 (eg, the application processor 121 of FIG. 1) may include at least one unacceptable application (or blacklist ( black list).
  • Unacceptable applications may include applications designated in advance so as not to perform data communication in a power saving state.
  • the electronic device 101 may determine an application pre-specified by the system as an unauthorized application, or may determine an application pre-specified by the user as the disallowed application 310.
  • the application that is not allowed may include an application that does not perform data communication when entering the power saving state.
  • the electronic device 101 when the electronic device 101 enters a power saving state, if the web browser application is not performing data communication, the electronic device 101 may determine that the web browser application is not allowed.
  • the electronic device 101 may be configured to filter packets 340 and 341 based on the user identifier 311.
  • a first packet filter program 330 including the conditions of may be generated.
  • the application processor 121 may connect the network associated with the user identifier 311 from the socket 320 corresponding to at least one application 310 allowed to generate the first packet filter program 330. Connection information 321 may be checked.
  • the application processor 121 may be associated with a user identifier corresponding to the disallowed application, from a socket corresponding to at least one disallowed application to generate the first packet filter program 330. You can check the network connection information.
  • the network connection information 321 may include at least one of an IP version, an IP source address, an IP destination address, a protocol, a network connection status, a TCP source port, a TCP destination port, and a hash value identifying a network connection.
  • the application processor 121 may generate the first packet filter program 330 using the network connection information 321.
  • the packets 340 and 341 inbound to the coprocessor 123 or the communication processor 191 include at least one designated information among network connection information
  • the first packet filter program 330 may be
  • the inbound packets 340 and 341 may include a condition of passing or passing through the inbound packets 340 and 341 to be delivered to the application processor 121. For example, as shown in FIG.
  • the electronic device 101 may have a value of the user identifier 311 corresponding to the application 310.
  • the electronic device 101 may identify source IP address information (for example, xxxx), which is designated information among network connection information associated with the user identifier 311, and destination IP address information (for example, designated information).
  • source IP address information for example, xxxx
  • destination IP address information for example, designated information.
  • yyyy the first packet filter program 330 including a condition for passing the packet 340 may be generated.
  • the electronic device 101 may check the value of a user identifier corresponding to the unacceptable application, and the electronic device 101 may A first packet filter program 330 may be generated that includes a condition for not passing a packet including source IP address information that is designated information and destination IP address information that is designated information among network connection information associated with the user identifier.
  • the electronic device 101 (eg, the application processor 121 of FIG. 1) according to various embodiments of the present disclosure includes a first condition including a condition for passing the packet or the data when the packet or data includes the specified user identifier information.
  • You can create a packet filter program.
  • the electronic device 101 may include a condition that does not pass the packet or the data when the packet or data includes the specified user identifier information. 1
  • a packet filter program can be created.
  • the packet filter program may include a Berkeley packet filter (BPF).
  • BPF Berkeley packet filter
  • the packet filter program may be composed of a load instruction, an add instruction, a multiply instruction, a jump instruction, and a divide instruction.
  • BPF Berkeley packet filter
  • the packet filter program may be composed of a load instruction, an add instruction, a multiply instruction, a jump instruction, and a divide instruction.
  • the example of the packet filter program described above is only an example, and is not limited thereto, and may include instructions constituting a packet filter program used by those skilled in the art
  • the electronic device 101 may convert the generated first packet filter program 330 into bytecode.
  • the electronic device 101 eg, the coprocessor 123 of FIG. 1 or the communication processor 191 is the first packet filter program 330 generated from the application processor 121. can confirm.
  • the coprocessor 123 or the communication processor 191 may check the first packet filter program 330 converted to bytecode.
  • the operations 205 and 207 may include, for example, a first packet filter program stored in an address region corresponding to the application processor 121 among the address regions of the memory 130 by the application processor 121 of FIG. 1 (
  • the operation 330 may be copied to an address area corresponding to the coprocessor 123 or the communication processor 191 among the address areas of the memory 130.
  • the coprocessor 123 or the communication processor 191 may perform a packet filter operation using the first packet filter program 330 stored in its address area.
  • the electronic device 101 may receive a first packet filter while the electronic device 101 is in a power saving state.
  • packets 341 associated with applications other than the allowed applications 310 may be filtered.
  • the coprocessor 123 or the communication processor 191 may include a packet 341 that does not satisfy the condition 331 included in the first packet filter program 330 among the inbound packets 340 and 341. ). For example, as shown in FIG.
  • the coprocessor 123 or the communication processor 191 may drop the packet 341.
  • the coprocessor 123 or the communication processor 191 is based on the first packet filter program 330 including a condition for passing the packet 340 including the specified user identifier 311, When the packet 340 includes the designated user identifier 311, the packet 340 may be passed to be delivered to the application processor 121.
  • the electronic device 101 eg, the coprocessor 123 of FIG. 1 or the communication processor 191 is the first packet filter program 330 while the electronic device 101 is in a power saving state.
  • the communication processor 123 or 191 may drop a packet 341 satisfying the condition included in the first packet filter program 330 among the inbound packets 340 and 341.
  • the packet 341 among the inbound packets 340 and 341 includes source IP address information and destination IP address information
  • the condition that the packet 341 is included in the first packet filter program 330 (For example, the condition corresponding to the black list) is satisfied, so the communication processor 123 or 191 may drop the packet 341.
  • the communication processor 123 or 191 based on the first packet filter program 330 including a condition for not passing the packet 341 including the designated user identifier, the packet 341 is designated. When the user identifier is included, the packet 341 may be prevented from being transmitted to the application processor 121.
  • the electronic device 101 may end the power saving state when the specified condition is satisfied.
  • the electronic device 101 is a specified condition, when the screen is turned on by a user's key input or touch input, when the movement of the electronic device 101 is confirmed through the sensor module 176, wireless charging or
  • the power saving state may be terminated.
  • the above-described example in which the electronic device 101 terminates the power saving state is only one embodiment, and is not limited thereto, and may include an example in which the electronic device 101 known by a person skilled in the art ends the power saving state.
  • the electronic device 101 may generate a null filter when the power saving state of the electronic device 101 is terminated,
  • the coprocessor 123 or the communication processor 191 that checks the null filter may pass all inbound packets to the application processor 121.
  • the electronic device 101 eg, the application processor 121 of FIG. 1 is not allowed or a user identifier corresponding to an allowed application. Packets may be filtered by the application processor 121, not the coprocessor 123 or the communication processor 191, based on a user identifier corresponding to the application.
  • the electronic device 101 (for example, the application processor 121 of FIG. 1) according to various embodiments of the present invention displays a user identifier (from the socket 320 corresponding to at least one allowed application 310 when the power saving state is terminated)
  • the network connection information 321 associated with 311) may be checked, and a packet may be filtered using the network connection information 321.
  • 4 is a flowchart illustrating a method for the electronic device 101 to generate a packet filter program 530 according to various embodiments.
  • 5 is a diagram for explaining an embodiment in which the electronic device 101 generates a packet filter program 530.
  • the electronic device 101 packets from the power saving state to the first packet filter program 330 While performing filtering, it is possible to check a change in the network connection status of at least one application 310 allowed. For example, the electronic device 101 determines whether the TCP connection status of the application 310 changes to one of CLOSED, LISTEN, SYN-RECEIVED, ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, CLOSING, and TIME-WAIT. Can be confirmed.
  • the network connection state is not limited to the TCP connection state, and may include network connection states of various protocols.
  • the electronic device 101 determines whether the changed network connection state is a designated state for adding a condition of a packet filter program or a packet filter program. It is possible to check whether the condition is designated to delete the condition. For example, the electronic device 101 can confirm that the current TCP connection state is in the 'CLOSED' state, and in the 'CLOSED' state in the TCP connection state, the 'LISTEN' state for adding a condition of a packet filter program You can see that it changes to.
  • the electronic device 101 may confirm that the current TCP connection state is in the 'CLOSING' state, and in the TCP connection state in the 'CLOSING' state, 'TIME- for deleting the condition of the packet filter program. You can see that it changes to the WAIT 'state.
  • a designated state for adding a condition of a packet filter program or a designated state for deleting a condition is not limited to the above example, and may be variously determined by a designer.
  • the electronic device 101 may have a socket corresponding to the application 310 in the designated state when the changed network connection state is the designated state ( 320, it is possible to check network connection information 321 associated with the user identifier 311 corresponding to the application 310 in a designated state. For example, as shown in FIG. 5, when the network connection state of the application 310 changes from a first state 510 to a second state 520 and the second state 520 is a designated state, the electronic device ( 101) may identify the network connection information 321 associated with the user identifier 311 from the socket 320.
  • the electronic device 101 if the changed network connection state is not a designated state, the electronic device 101 does not newly generate the second packet filter program 530, and instead uses the first packet filter program 330 in use. By using, it is possible to filter inbound packets. In this case, the electronic device 101 may return to operation 401 and confirm a change in the network connection state of at least one allowed application 310.
  • the electronic device 101 (eg, the application processor 121 of FIG. 1) is associated with a network associated with the user identifier 311 corresponding to the application 310 in which a network connection state is designated.
  • the second packet filter program 530 may be generated using the connection information 321.
  • the electronic device 101 when the network connection state of the application 310 reaches a specified state for adding a condition of a packet filter program, a user identifier 311 corresponding to the application 310 in a specified state ), The second packet filter program 530 may be generated by adding a condition including the network connection information 321 associated with) to the first packet filter program 330.
  • the second packet filter The program 530 may be generated.
  • the electronic device 101 when the network connection state of the application 310 reaches a specified state for deleting the condition of the packet filter program, the user identifier 311 corresponding to the application 310 in the specified state ), The second packet filter program 530 may be generated by deleting the condition including the network connection information 321 associated with) from the first packet filter program 330.
  • the electronic device 101 transmits to the first packet program 330 a condition for passing a packet including an IP source address and an IP destination address among the network connection information 321 associated with the user identifier 311.
  • the second packet filter program 530 can be generated.
  • the electronic device 101 may check the second packet filter program 530 converted to bytecode.
  • the electronic device 101 uses the second packet filter program 530 while the electronic device 101 is in a power saving state. Accordingly, at least one packet associated with an application other than the allowed at least one application or at least one packet associated with at least one disallowed application may be filtered.
  • the electronic device 101 may use an operation of filtering a packet disclosed in operation 209 of FIG. 2.
  • FIG. 6 is a flowchart illustrating a method in which the electronic device 101 generates a packet filter program 530 according to various embodiments.
  • 7 is a diagram for explaining an embodiment in which the electronic device 101 generates a packet filter program 530.
  • the electronic device 101 may send packets to the first packet filter program 330 in a power saving state. While performing filtering, when a network connection of the allowed first application 710 is requested, the first user identifier 711 of the allowed first application 710 may be checked. For example, as shown in FIG. 7, when a first application 710 pre-designated to perform data communication in a power saving state requests a connection to a network in order to perform the data communication, the electronic device 101 may The first user identifier 711 of the first application 710 may be identified. According to various embodiments of the present disclosure, while the electronic device 101 (eg, the application processor 121 of FIG.
  • the second user identifier 731 corresponding to the allowed second application 730 may be checked. For example, as shown in FIG. 7, when the second application 730 performing data communication in the power saving state terminates the data communication in order to terminate the data communication, the electronic device 101 is disconnected from the network. The second user identifier 731 of the second application 730 may be identified.
  • the electronic device 101 (eg, the application processor 121 of FIG. 1) is associated with the first user identifier 711 from a socket corresponding to the allowed first application 710.
  • the first network connection information 721 may be checked. For example, as illustrated in FIG. 7, when a network connection of the first application 710 is requested, the first socket 720 corresponding to the first application may be opened.
  • the electronic device 101 may check the first network connection information 721 associated with the first user identifier 711 from the first socket 721 corresponding to the first application 710 to which the network connection is requested.
  • the electronic device 101 may check the second network connection information 741 associated with the second user identifier 731 from the socket corresponding to the allowed second application 730.
  • the second socket 740 corresponding to the second application may be closed.
  • the electronic device 101 may check the second network connection information 741 associated with the second user identifier 731 from the second socket 740 corresponding to the second application 730 from which the network connection is released.
  • the first network connection information 721 or the second network connection information 741 is an IP version, an IP source address, an IP destination address, a protocol, a network connection status, a TCP source port, a TCP destination port, and a hash value identifying a network connection It may include at least one of.
  • the electronic device 101 may use the first network connection information 721 or the second network connection information 741 to generate the Two packet filter programs 530 may be generated.
  • the electronic device 101 may include a condition including the first network connection information 721 associated with the first user identifier 711 corresponding to the first application 710 for which a network connection is requested.
  • a second packet filter program 530 can be generated. For example, by adding a condition for passing a packet including an IP source address and an IP destination address among the first network connection information 721 associated with the first user identifier 711 to the first packet program 330, The second packet filter program 530 may be generated.
  • the electronic device 101 may include a condition including the second network connection information 741 associated with the second user identifier 731 corresponding to the second application 730 from which the network connection is released.
  • the second packet filter program 530 can be generated. For example, by deleting the first packet program 330 from the condition of passing a packet including an IP source address and an IP destination address among the network connection information 741 associated with the second user identifier 731, the second The packet filter program 530 may be generated.
  • the electronic device 101 may check the second packet filter program 530 converted to bytecode.
  • the electronic device 101 uses the second packet filter program 530 while the electronic device 101 is in a power saving state. Accordingly, at least one packet associated with an application other than the allowed at least one application or at least one packet associated with at least one disallowed application may be filtered.
  • the electronic device 101 may use an operation of filtering a packet disclosed in operation 209 of FIG. 2.
  • FIG. 8 is a diagram for explaining an embodiment in which the electronic device 101 generates and executes a packet filter program according to various embodiments.
  • the application processor 121 includes a Packet Filtering Offload Manager module 810, a Network Manager Service module 820, a Netlink Connetcion Tracking Client module 830, a Netfilter Connection Tracking module 840, and a TCP / IP Stack
  • the module 850 and the Filter Program Utility module 860 may be included, and the coprocessor 123 or the communication processor 191 may include the Filter Program Interpreter module 870.
  • the Packet Filtering Offload Manager module 810 when the electronic device 101 enters a power saving state, receives at least one user identifier corresponding to at least one allowed application from the Network Manager Service module 820. It may receive a list including.
  • the allowed applications may include applications that are previously designated to perform data communication in a power saving state, or may include applications that are performing data communication in a power saving state.
  • the Packet Filtering Offload Manager module 810 may check at least one user identifier in the received list.
  • the Packet Filtering Offload Manager module 810 may request network connection information associated with a user identifier from the Netlink Connetcion Tracking Client module 830, and receive the requested network connection information from the Netlink Connetcion Tracking Client module 830.
  • the Packet Filtering Offload Manager module 810 may register Connection Tracking Events to receive a notification regarding network status when it enters a power saving state, and when a specific event occurs, the Netlink Connetcion Tracking Client module 830 above You can receive notifications about specific events. For example, the Packet Filtering Offload Manager module 810, from the Netlink Connetcion Tracking Client module 830, notifies the network state change when an event in which the network state of the allowed application is changed to a predetermined state occurs.
  • the Packet Filtering Offload Manager module 810 may check the user identifier corresponding to the application associated with the notification, and then request network connection information associated with the user identifier.
  • the notification regarding the network status may include a notification regarding the network status and network connection information on the network status.
  • the Packet Filtering Offload Manager module 810 may transmit network connection information associated with a user identifier to the Filter Program Utility module 860 to generate a packet filter program, and filter the packet filter program converted to bytecode. It can be received from the Program Utility module 860.
  • the Netlink Connetcion Tracking Client module 830 may operate at a framework level, and may request network connection information associated with a user identifier to the Netfilter Connection Tracking module 840 operating at a kernel level, and request The network connection information may be received from the Netfilter Connection Tracking module 840.
  • the Netlink Connetcion Tracking Client module 830 relates to a corresponding network state from the Netfilter Connection Tracking module 840 when a network state of an allowed application is changed to a predetermined state, a new network connection is requested, or a network connection is released.
  • a notification may be received, and the notification may be delivered to the Packet Filtering Offload Manager module 810.
  • the notification regarding the network status may include network connection information on the network status.
  • the Netfilter Connection Tracking module 840 can check network connection information associated with the user identifier corresponding to the allowed application from the socket corresponding to the allowed application existing in the TCP / IP Stack module 850, and confirm the network connection. Information may be transmitted to the Netlink Connetcion Tracking Client module 830. The Netfilter Connection Tracking module 840 may send a notification to the Netlink Connetcion Tracking Client module 830 when the network status of the allowed application is changed, a new network connection is requested, or the network connection is released. The Netfilter Connection Tracking module 840 can check network connection information from sockets existing in the TCP / IP Stack module 850, and the network connection information includes IP version, IP source address, IP destination address, protocol, and network connection. It may include at least one of a state, a TCP source port, a TCP destination port, and a hash value identifying a network connection.
  • the filter program utility module 860 may generate a packet filter program using the network connection information. For example, a condition of passing a packet including source IP address information (for example, xxxx), which is a specified information and destination IP address information (for example, yyyy), which is a specified information among network connection information associated with a user identifier, is passed. An included packet filter program can be generated. The Filter Program Utility module 860 may convert the generated packet filter program to byte code, and transmit the packet filter program converted to byte code to the Packet Filtering Offload Manager module 810.
  • source IP address information for example, xxxx
  • destination IP address information for example, yyyy
  • the Filter Program Interpreter module 870 may generate a packet filter program generated from the Packet Filtering Offload Manager module 810 and converted into a byte code.
  • the Filter Program Interpreter module 870 may use a packet filter program to filter packets associated with applications other than allowed applications. For example, the Filter Program Interpreter module 870 may drop the inbound packet when the inbound packet does not satisfy the conditions included in the packet filter program.
  • the Filter Program Interpreter module 870 may check the null filter generated from the Packet Filtering Offload Manager module 810 when the power saving state of the electronic device 101 is terminated, and is inbound based on the null filter. All packets can be passed to the application processor 121.
  • Each module described in FIG. 8 shows an embodiment of a module that can be used in the kernel and the framework, and is not limited to the above example.
  • the electronic device may be various types of devices.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a wearable device e.g., a smart bracelet
  • a home appliance device e.g., a home appliance
  • any (eg, first) component is referred to as a "coupled” or “connected” to another (eg, second) component, with or without the term “functionally” or “communicatively”
  • any of the above components can be connected directly to the other components (eg, by wire), wirelessly, or through a third component.
  • module may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, components, or circuits.
  • the module may be an integrally configured component or a minimum unit of the component or a part thereof performing one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document may include one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, program 140) including instructions (or instructions).
  • a processor eg, processor 120 of a device (eg, electronic device 101) ) May invoke and execute at least one of the one or more instructions stored from the storage medium, which enables the device to operate to perform at least one function according to the at least one instruction invoked.
  • the one or more instructions may include code generated by a compiler or code that can be executed by an interpreter.
  • a storage medium that can be read by a device is non-transitory.
  • 'non-transitory' means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic waves), and the term data It does not distinguish between the case where is stored semi-permanently on the storage medium and the case where it is temporarily stored.
  • a method according to various embodiments disclosed in this document may be provided as being included in a computer program product.
  • Computer program products are commodities that can be traded between sellers and buyers.
  • the computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store TM ) or two user devices ( It can be distributed (eg, downloaded or uploaded) directly or online between smartphones).
  • a portion of the computer program product may be temporarily stored at least temporarily in a storage medium readable by a device such as a memory of a manufacturer's server, an application store's server, or a relay server, or temporarily generated.
  • each component (eg, module or program) of the above-described components may include a singular or a plurality of entities.
  • one or more components or operations of the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, modules or programs
  • the integrated component may perform one or more functions of each component of the plurality of components the same or similar to that performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component may be executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order, or omitted Or, one or more other actions can be added.
  • the electronic device 101 includes a communication processor 123 or 191, an application processor 121 operatively connected to the communication processor 123 or 191, and at least one memory 130 ,
  • the application processor enters the power saving state when the electronic device 101 enters a power saving state, a user corresponding to at least one application allowed or at least one application not allowed Identify a user identifier (UID), and generate a first packet filter program including at least one condition for filtering a packet based on the user identifier, and the communication processor 123 or 191, Checking the first packet filter program generated from the application processor 121, the previous While the child device 101 is in the power saving state, by using the first packet filter program, at least one packet associated with an application other than the allowed at least one application or at least one associated with the at least one unauthorized application You can store instructions that filter one packet.
  • the instructions may cause the application processor 121 to check network connection information associated with the user identifier from a socket corresponding to the allowed at least one application or the at least one unauthorized application. , May be configured to generate the first packet filter program using the network connection information.
  • the first packet filter program passes the packet.
  • the conditions may be included.
  • the network connection information may include at least one of an IP version, an IP source address, an IP destination address, a protocol, a network connection status, a TCP source port, a TCP destination port, and a hash value identifying a network connection. You can.
  • the allowed at least one application may include at least one of an application pre-designated to perform data communication in the power saving state and an application performing data communication in the power saving state.
  • the instructions may include: the application processor converting the first packet filter program into bytecode, and the communication processor confirming the first packet filter program converted into bytecode You can do it.
  • the instructions when the application processor 121, in the power saving state, confirms a change in the network connection state of the at least one allowed application, and when the changed network connection state is a designated state
  • the network connection information associated with the user identifier corresponding to the application in the specified state may be checked from a socket corresponding to the application in the specified state, and a second packet filter program may be generated using the network connection information.
  • the communication processor 123 or 191 identifies the second packet filter program generated from the application processor 121, and while the electronic device is in the power saving state, the The second packet filter program may be used to filter at least one packet associated with an application other than the allowed at least one application or at least one packet associated with the at least one unauthorized application.
  • the application processor 121 when the application processor 121, in the power saving state, requests a network connection of the allowed first application in the power saving state, the first user identifier corresponding to the allowed first application is generated.
  • the instructions may cause the application processor 121 to generate a null filter when the power saving state of the electronic device is terminated.
  • an operation method of the electronic device 101 for filtering packets may include, when the electronic device 101 enters a power saving state in the application processor 121, at least one application that is allowed or at least one that is not allowed. Checking a user identifier (UID, User Identifier) corresponding to one application, the application processor 121, based on the user identifier, the first packet filter including at least one condition for filtering the packet In the operation of generating a program, in the communication processor 123 or 191, checking the first packet filter program generated from the application processor 121, and in the communication processor 123 or 191, the electronic device While in the power saving state, using the first packet filter program, the allowed And filtering at least one packet associated with an application other than the at least one application or at least one packet associated with the at least one unauthorized application.
  • UID User Identifier
  • the operation of generating the first packet filter program may identify network connection information associated with the user identifier from a socket corresponding to the allowed at least one application or the at least one unauthorized application. And generating the first packet filter program using the network connection information.
  • an operation method of the electronic device 101 for filtering packets includes, in the application processor 121, converting the first packet filter program into bytecode, and the communication processor ( In step 123 or 191), the operation of checking the first packet filter program converted to the byte code may be further included.
  • an operation method of the electronic device 101 for filtering packets may include, in the power saving state, an operation of checking a change in a network connection state of the at least one application, and the changed network connection state is designated.
  • an operation of checking network connection information associated with a user identifier corresponding to the specified state application from a socket corresponding to the specified state application, and generating a second packet filter program using the network connection information It may further include an operation.
  • an operation method of the electronic device 101 for filtering packets includes: checking the second packet filter program generated by the application processor 121, and the electronic device 101 is configured to save power. While in the state, using the second packet filter program, filtering at least one packet associated with the application other than the allowed at least one application or at least one packet associated with the at least one unauthorized application It may further include.
  • an operation method of the electronic device 101 for filtering packets may include a first user corresponding to the allowed first application when a network connection of the allowed first application is requested in the power saving state.
  • a method of operating an electronic device 101 including a communication processor 123 or 191, an application processor 121 operatively connected to the communication processor 123 or 191, and a memory 130
  • the electronic device enters a power saving state in the application processor 121, it corresponds to at least one allowed application or at least one application not allowed.
  • the application processor 121 Checking the user identifier (UID, User Identifier), the application processor 121, based on the user identifier, generating a first packet filter program including at least one condition for filtering packets , In the communication processor (123 or 191), the application Checking the first packet filter program generated from the Sean processor 121, and in the communication processor (123 or 191), while the electronic device 101 is in the power saving state, the first packet filter program
  • a program for executing a method including filtering an at least one packet associated with an application other than the allowed at least one application or at least one packet associated with the at least one unauthorized application is recorded. You can.

Abstract

다양한 실시예에 따라서, 전자 장치는 커뮤니케이션 프로세서, 상기 커뮤니케이션 프로세서와 작동적으로 연결된 어플리케이션 프로세서, 및 메모리를 포함하고, 상기 적어도 하나의 메모리는, 실행 시에, 상기 어플리케이션 프로세서가, 상기 전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하고, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하도록 하고, 상기 커뮤니케이션 프로세서가, 상기 어플리케이션 프로세서로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하고, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하도록 하는 인스트럭션들(instructions)을 저정할 수 있다. 그 밖의 다양한 실시예가 가능하다.

Description

패킷을 필터링하는 전자 장치 및 그 작동 방법
다양한 실시예는, 절전 상태에서 커뮤니케이션 프로세서를 이용하여 패킷을 필터링하는 전자 장치 및 그 작동 방법에 관한 것이다.
전자 장치는 다른 전자 장치와 데이터 통신을 수행하는 동안 패킷 필터 프로그램을 이용하여 상기 데이터 통신 중에 송수신되는 패킷을 평가 또는 분석할 수 있다. 전자 장치는 패킷 필터링을 통해 다양한 유형의 IP(Internet Protocol) 패킷의 흐름을 허용할 수 있거나 차단할 수 있다. 착신 및 발신 IP 흐름 트래픽에 패킷 필터링이 적용될 수 있다. 패킷 필터링은 하나 이상의 인터페이스를 통해 특정 인바운드 IP 트래픽이 수신되는 것을 허용하거나 특정 IP 트래픽이 송신되는 것을 허용하는 것을 정의할 수 있다. 패킷 필터링에는 IP 패킷의 5-튜플(tuple) (소스 IP 주소, 목적지 IP 주소, 프로토콜 식별자, 소스 포트 번호, 목적지 포트 번호)가 사용될 수 있다.
어플리케이션 프로세서에서 패킷 필터링이 수행되고, 절전 상태에서 원하지 않은 패킷이 수신되는 경우, 패킷 필터링을 수행하기 위해 어플리케이션 프로세서가 불필요하게 웨이크 업 상태로 전환될 수 있다.
전자 장치가 패킷의 소스 주소 또는 목적지 주소만을 이용하여 패킷 필터링을 수행하는 경우, 각 어플리케이션 별로 구분하여 패킷 필터링을 수행하는 것이 용이하지 않을 수 있다.
다양한 실시예는, 절전 상태에서, 허용된 어플리케이션에 대응하는 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 조건을 포함하는 패킷 필터 프로그램을 생성하고, 패킷 필터 프로그램을 이용하여 허용된 어플리케이션 이외의 어플리케이션과 관련된 패킷을 필터링할 수 있는 전자 장치 및 그 작동 방법을 제공할 수 있다.
다양한 실시예에 따라서, 전자 장치는 커뮤니케이션 프로세서, 및 상기 커뮤니케이션 프로세서와 작동적으로 연결된 어플리케이션 프로세서, 및 적어도 하나의 메모리를 포함하고, 상기 적어도 하나의 메모리는, 실행시에, 상기 어플리케이션 프로세서가, 전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하고, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하도록 하고, 상기 커뮤니케이션 프로세서가, 상기 어플리케이션 프로세서로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하고, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하도록 하는 인스트럭션들(instructions)을 저장할 수 있다.
다양한 실시예에 따라서, 패킷을 필터링하는 전자 장치의 동작 방법은, 어플리케이션 프로세서에서, 전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하는 동작, 상기 어플리케이션 프로세서에서, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하는 동작, 커뮤니케이션 프로세서에서, 상기 어플리케이션 프로세서로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하는 동작, 및 상기 커뮤니케이션 프로세서에서, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하는 동작을 포함할 수 있다.
다양한 실시예에 따라서, 커뮤니케이션 프로세서, 상기 커뮤니케이션 프로세서와 작동적으로 연결된 어플리케이션 프로세서, 및 메모리를 포함하는 전자 장치를 동작하는 방법을 실행하기 위한 프로그램이 기록된 컴퓨터에서 판독 가능한 기록 매체에 있어서,상기 어플리케이션 프로세서에서, 전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하는 동작, 상기 어플리케이션 프로세서에서, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하는 동작, 상기 커뮤니케이션 프로세서에서, 상기 어플리케이션 프로세서로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하는 동작, 및 상기 커뮤니케이션 프로세서에서, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하는 동작을 포함하는 방법을 실행하기 위한 프로그램이 기록될 수 있다.
다양한 실시예에 따라서, 절전 상태에 있는 전자 장치가 인바운드되는 패킷을 커뮤니케이션 프로세서에서 필터링함으로써, 어플리케이션 프로세서의 전력 소모를 최소화할 수 있다.
다양한 실시예에 따라서, 어플리케이션을 구분하는 사용자 식별자를 이용함으로써, 어플리케이션 별로 패킷 필터링을 수행할 수 있다.
도 1은 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는 다양한 실시예에 따른, 전자 장치가 패킷을 필터링하는 방법을 설명하기 위한 흐름도를 도시한다.
도 3은 다양한 실시예에 따른, 전자 장치가 패킷 필터 프로그램을 이용하여 패킷을 필터링하는 실시예를 설명하기 위한 도면을 도시한다.
도 4는 다양한 실시예에 따른, 전자 장치가 필터 프로그램을 생성하는 방법을 설명하기 위한 흐름도를 도시한다.
도 5는 다양한 실시예에 따른, 전자 장치가 패킷 필터 프로그램을 생성하는 실시예를 설명하기 위한 도면을 도시한다.
도 6은 다양한 실시예에 따른, 전자 장치가 패킷 필터 프로그램을 생성하는 방법을 설명하기 위한 흐름도를 도시한다.
도 7은 다양한 실시예에 따른, 전자 장치가 패킷 필터 프로그램을 생성하는 실시예를 설명하기 위한 도면이다.
도 8은 다양한 실시예에 따른, 전자 장치가 패킷 필터 프로그램을 생성하고, 실행하는 실시예를 설명하기 위한 도면이다.
이하, 본 발명의 다양한 실시 예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 실시 예의 다양한 변경(modification), 균등물(equivalent), 및/또는 대체물(alternative)을 포함하는 것으로 이해되어야 한다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다.
도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 회로(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 회로(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 어플리케이션 프로세서(121)(예: 중앙 처리 장치), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)은 어플리케이션 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 어플리케이션 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 어플리케이션 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 어플리케이션 프로세서(121)를 대신하여, 또는 어플리케이션 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 어플리케이션 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 회로(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 회로(190))의 일부로서 구현될 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. 메모리(130)는 어플리케이션 프로세서(121)에서 구동될 프로그램 저장 영역과 커뮤니케이션 프로세서(예: 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))에서 구동될 프로그램을 저장 영역을 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. 프로그램(140)은 어플리케이션 프로세서(121)에서 구동될 프로그램 및 커뮤니케이션 프로세서(예: 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))에서 구동될 프로그램으로 구성될 수 있다.
입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)은, 예를 들면, 마이크, 마우스, 또는 키보드를 포함할 수 있다.
음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150) 를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)이 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 회로(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 회로(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서(191)를 포함할 수 있다. 일실시예에 따르면, 통신 회로(190)은 무선 통신 회로(192)(예: 셀룰러 통신 회로, 근거리 무선 통신 회로, 또는 GNSS(global navigation satellite system) 통신 회로) 또는 유선 통신 회로(194)(예: LAN(local area network) 통신 회로, 또는 전력선 통신 회로)을 포함할 수 있다. 이들 통신 회로 중 해당하는 통신 회로는 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 회로들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 회로(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 하나 이상의 안테나들을 포함할 수 있고, 이로부터, 제 1 네트워크 198 또는 제 2 네트워크 199와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 회로(190)에 의하여 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 회로(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, or 108) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다.. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.
도 2는 다양한 실시예에 따른, 전자 장치(101)가 패킷을 필터링하는 방법을 설명하기 위한 흐름도를 도시한다.
도 3은 다양한 실시예에 따른, 전자 장치(101)가 패킷 필터 프로그램을 이용하여 패킷을 필터링하는 실시예를 설명하기 위한 도면을 도시한다.
도 2 및 도 3을 참조하면, 201 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 절전 상태로 진입할 수 있다. 다양한 실시예에 따라서, 전자 장치(101)는 절전 상태에 해당하는 도즈 상태에 진입할 수 있다. 도즈 상태는 배터리를 절약하기 위해 어플리케이션에 일련의 제한을 적용하는 상태로서, 상기 도즈 상태에서 어플리케이션들은 어플리케이션 프로세서(121)로의 접근이 일부 제한될 수 있다. 다양한 실시예에 따른, 전자 장치(101)가 도즈 상태로 진입한 경우, 전자 장치(101)는 지정된 동작을 수행하지 않을 수 있다. 예를 들어, 전자 장치(101)가 도즈 상태로 진입한 경우, 전자 장치(101)는 Wi-Fi를 스캔하는 동작, Sync Adapter를 실행하는 동작, Scheduler를 실행하는 동작, Scheduler를 처리하는 동작, 및 디스플레이에 화면을 출력하는 동작 중 적어도 하나를 수행하지 않을 수 있다. 이하 설명의 편의를 위해 절전 상태를 도즈 상태로 명명할 수 있으나 용어에 한정을 두는 것은 아니다.
다양한 실시예에 따라서, 전자 장치(101)는 지정된 조건을 만족하면 도즈 상태로 진입할 수 있다. 전자 장치(101)는 지정된 조건으로서, 충전 중인 상태가 아닌 상태, 사용자의 파워 키 조작에 의해 스크린 오프로 진입한 상태, 기설정된 시간동안 스크린 오프 상태인 상태, 및 기설정된 시간동안 상기 전자 장치(101)의 움직임이 확인되지 않은 상태 중 적어도 하나에 해당하는 경우, 도즈 상태로 진입할 수 있다. 상술한 전자 장치(101)가 도즈 상태에 진입하는 예는 일 실시예일 뿐, 이에 한정되는 것은 아니고, 당업자에 의하여 공지된 전자 장치(101)가 도즈 상태로 진입하는 예를 포함할 수 있다.
203 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 상기 전자 장치(101)가 절전 상태(예를 들어,도즈 상태(doze state))로 진입하면, 허용된 적어도 하나의 어플리케이션(310)(또는, 화이트리스트(white list)에 포함된 어플리케이션)에 대응하는 사용자 식별자(UID, user identifier)(311)를 확인할 수 있다. 예를 들어, 도 3에서와 같이, 전자 장치(101)의 어플리케이션 프로세서(121)는, 상기 전자 장치가(101)가 절전 상태에 진입하면, 허용된 어플리케이션(310)에 대응하는 사용자 식별자(311)를 확인할 수 있다. 각각의 어플리케이션은 어플리케이션을 구별할 수 있도록 어플리케이션에 대응하는 사용자 식별자를 가질 수 있다.
다양한 실시예에 따라서, 허용된 어플리케이션(310)은 절전 상태에서 데이터 통신을 수행하도록 미리 지정된 어플리케이션을 포함할 수 있다. 예를 들어, 전자 장치(101)는 푸쉬 어플리케이션(예: google의 푸쉬 서버에서 이용되는 어플리케이션, 구글 클라우드 메시지(GCM)를 사용하는 어플리케이션, 또는 samsung의 푸쉬 서버에서 이용되는 어플리케이션)과 같이 시스템에 의하여 미리 지정된 어플리케이션을 허용된 어플리케이션(310)으로 결정할 수 있고, 또는 사용자에 의하여 미리 지정된 어플리케이션을 허용된 어플리케이션(310)으로 결정할 수 있다. 또 다른 예를 들어, 허용된 어플리케이션(310)은 절전 상태에서 데이터 통신을 수행 중인 어플리케이션을 포함할 수 있다. 예를 들어, 뮤직 어플리케이션을 실행 중인 전자 장치(101)가 절전 상태로 진입한 경우, 전자 장치(101)는 뮤직 어플리케이션을 허용된 어플리케이션(310)으로 결정할 수 있다.
다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 상기 전자 장치(101)가 절전 상태로 진입하면, 허용되지 않은 적어도 하나의 어플리케이션(또는, 블랙리스트(black list)에 포함된 어플리케이션)에 대응하는 사용자 식별자를 확인할 수 있다. 다양한 실시예에 따른 허용되지 않은 어플리케이션은 절전 상태에서 데이터 통신을 수행하지 못하도록 미리 지정된 어플리케이션을 포함할 수 있다. 예를 들어, 전자 장치(101)는 시스템에 의하여 미리 지정된 어플리케이션을 허용되지 않은 어플리케이션으로 결정할 수 있고, 또는 사용자에 의하여 미리 지정된 어플리케이션을 허용되지 않은 어플리케이션(310)으로 결정할 수 있다. 또 다른 예를 들어, 허용되지 않은 어플리케이션은 절전 상태로 진입할 당시 데이터 통신을 수행하지 않은 어플리케이션을 포함할 수 있다. 예를 들어, 전자 장치(101)가 절전 상태로 진입할 때, 웹 브라우저 어플리케이션이 데이터 통신을 수행 중이 아닌 경우, 전자 장치(101)는 웹 브라우저 어플리케이션을 허용되지 않은 어플리케이션으로 결정할 수 있다.
205 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 사용자 식별자(311)에 기반하여, 패킷들(340, 341)을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램(330)을 생성할 수 있다. 다양한 실시예에 따른, 어플리케이션 프로세서(121)는 제 1 패킷 필터 프로그램(330)을 생성하기 위하여, 허용된 적어도 하나의 어플리케이션(310)에 대응하는 소켓(320)으로부터 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 확인할 수 있다. 다양한 실시예에 따른, 어플리케이션 프로세서(121)는 제 1 패킷 필터 프로그램(330)을 생성하기 위하여, 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 소켓으로부터, 상기 허용되지 않은 어플리케이션에 대응하는 사용자 식별자와 연관된 네트워크 연결 정보를 확인할 수 있다. 네트워크 연결 정보(321)는 IP 버전, IP 소스 주소, IP 목적지 주소, 프로토콜, 네트워크 연결 상태, TCP 소스 포트, TCP 목적지 포트, 네트워크 연결을 식별하는 해쉬 값 중 적어도 하나를 포함할 수 있다. 다양한 실시예에 따른, 어플리케이션 프로세서(121)는 네트워크 연결 정보(321)를 이용하여 제 1 패킷 필터 프로그램(330)을 생성할 수 있다. 상기 제 1 패킷 필터 프로그램(330)은 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)에 인바운드(inbound)되는 패킷들(340, 341)이 네트워크 연결 정보 중 적어도 하나의 지정된 정보를 포함하는 경우, 상기 인바운드되는 패킷들(340, 341)을 어플리케이션 프로세서(121)로 전달되도록 인바운드되는 패킷들(340, 341)을 통과(pass)시키는 조건 또는 불통과(drop)시키는 조건을 포함할 수 있다. 예를 들어, 도 3에서와 같이, 어플리케이션(310)이 절전 상태에서 허용된 어플리케이션(310)으로 결정되는 경우, 전자 장치(101)는 상기 어플리케이션(310)에 대응하는 사용자 식별자(311)의 값을 확인할 수 있고, 전자 장치(101)는 상기 사용자 식별자(311)와 연관된 네트워크 연결 정보 중 지정된 정보인 소스 IP 주소 정보(예를 들어, x.x.x.x) 및 지정된 정보인 목적지 IP 주소 정보(예를 들어, y.y.y.y)를 포함하는 패킷(340)을 통과시키는 조건을 포함하는 제 1 패킷 필터 프로그램(330)을 생성할 수 있다. 또 다른 예를 들어, 어플리케이션이 절전 상태에서 허용되지 않은 어플리케이션으로 결정되는 경우, 전자 장치(101)는 상기 허용되지 않은 어플리케이션에 대응하는 사용자 식별자의 값을 확인할 수 있고, 전자 장치(101)는 상기 사용자 식별자와 연관된 네트워크 연결 정보 중 지정된 정보인 소스 IP 주소 정보 및 지정된 정보인 목적지 IP 주소 정보를 포함하는 패킷을 불통과시키는 조건을 포함하는 제 1 패킷 필터 프로그램(330)을 생성할 수 있다.
다양한 실시예에 따른 전자 장치(101) (예: 도 1의 어플리케이션 프로세서(121))는 패킷 또는 데이터가 지정된 사용자 식별자 정보를 포함하는 경우, 상기 패킷 또는 상기 데이터를 통과시키는 조건을 포함하는 제 1 패킷 필터 프로그램을 생성할 수 있다. 다양한 실시예에 따른 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 패킷 또는 데이터가 지정된 사용자 식별자 정보를 포함하는 경우, 상기 패킷 또는 상기 데이터를 통과시키지 않은 조건을 포함하는 제 1 패킷 필터 프로그램을 생성할 수 있다. 다양한 실시예에 따른 패킷 필터 프로그램은, 버클리 패킷 필터(BPF)를 포함할 수 있다. 예를 들어, 패킷 필터 프로그램은 load 명령어, add 명령어, multiply 명령어, jump명령어, divide 명령어로 구성될 수 있다. 상술한 패킷 필터 프로그램의 예는 일실시예일 뿐, 이에 한정되는 것은 아니고, 당업자에 의하여 이용되는 패킷 필터 프로그램을 구성하는 명령어들을 포함할 수 있다.
다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 생성된 제 1 패킷 필터 프로그램(330)을 바이트코드(bytecode)로 변환할 수 있다.
207동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 어플리케이션 프로세서(121)로부터 생성된 제 1 패킷 필터 프로그램(330)을 확인할 수 있다. 예를 들어, 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는 바이트코드로 변환된 제 1 패킷 필터 프로그램(330)을 확인할 수 있다.
상기 205 및 207 동작은, 예를 들어, 도 1의 어플리케이션 프로세서(121)가 메모리(130)의 주소 영역 중 어플리케이션 프로세서(121)에 대응하는 주소 영역(address region)에 저장된 제 1 패킷 필터 프로그램(330)을 메모리(130)의 주소 영역 중 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)에 대응하는 주소 영역으로 복사하는 작업을 포함할 수 있다. 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는 자신의 주소 영역에 저장된 제 1 패킷 필터 프로그램(330)을 사용하여 패킷 필터 동작을 수행할 수 있다.
209 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 상기 전자 장치(101)가 절전 상태인 동안, 제 1 패킷 필터 프로그램(330)을 이용하여, 허용된 어플리케이션(310) 이외의 어플리케이션과 연관된 패킷(341)을 필터링할 수 있다. 다양한 실시예에 따른 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는, 인바운드되는 패킷들(340, 341) 중 제 1 패킷 필터 프로그램(330)에 포함된 조건(331)을 만족하지 못하는 패킷(341)을 드롭할 수 있다. 예를 들어, 도 3에서와 같이, 인바운드되는 패킷들(340, 341)이 소스 IP 주소 정보(예를 들어, a.a.a.a) 및 목적지 IP 주소 정보(예를 들어, b.b.b.b)를 포함하는 경우, 패킷(341)이 제 1 패킷 필터 프로그램(330)에 포함된 조건(331)을 만족하지 못하므로, 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는 패킷(341)을 드롭할 수 있다. 다양한 실시예에 따른 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는, 지정된 사용자 식별자(311)를 포함하는 패킷(340)을 통과시키는 조건을 포함하는 제 1 패킷 필터 프로그램(330)에 기반하여, 패킷(340)이 지정된 사용자 식별자(311)를 포함하는 경우, 상기 패킷(340)을 어플리케이션 프로세서(121)에 전달되도록 통과시킬 수 있다.
다양한 실시예에 따라서, 전자 장치(101)(예: 도 1 의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 상기 전자 장치(101)가 절전 상태인 동안, 제 1 패킷 필터 프로그램(330)을 이용하여, 허용되지 않은 어플리케이션과 연관된 패킷을 필터링할 수 있다. 다양한 실시예에 따른 커뮤니케이션 프로세서(123 또는 191)는, 인바운드되는 패킷들(340, 341) 중 제 1 패킷 필터 프로그램(330)에 포함된 조건을 만족하는 패킷(341)을 드롭할 수 있다. 예를 들어, 인바운드되는 패킷들(340, 341) 중 패킷(341)이 소스 IP 주소 정보 및 목적지 IP 주소 정보를 포함하는 경우, 패킷(341)이 제 1 패킷 필터 프로그램(330)에 포함된 조건(예를 들어, 블랙 리스트에 대응하는 조건)을 만족하므로, 커뮤니케이션 프로세서(123 또는 191)는 패킷(341)을 드롭할 수 있다. 다양한 실시예에 따른 커뮤니케이션 프로세서(123 또는 191)는, 지정된 사용자 식별자를 포함하는 패킷(341)을 불통과시키는 조건을 포함하는 제 1 패킷 필터 프로그램(330)에 기반하여, 패킷(341)이 지정된 사용자 식별자를 포함하는 경우, 상기 패킷(341)을 어플리케이션 프로세서(121)에 전달되지 못하도록 불통과시킬 수 있다.
211 동작에서, 상기 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 지정된 조건을 만족하면, 절전 상태를 종료할 수 있다. 전자 장치(101)는 지정된 조건으로서, 사용자의 키 입력 또는 터치 입력에 의하여 스크린 온(on)이 된 경우, 센서 모듈(176)을 통하여 전자 장치(101)의 움직임이 확인된 경우, 무선 충전 또는 유선 충전에 의하여 전자 장치(101)가 충전 상태로 진입하는 경우 중 적어도 하나에 해당하는 경우, 절전 상태를 종료할 수 있다. 상술한 전자 장치(101)가 절전 상태를 종료하는 예는 일 실시예일 뿐, 이에 한정되는 것은 아니고, 당업자에 의하여 공지된 전자 장치(101)가 절전 상태를 종료하는 예를 포함할 수 있다.
다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 상기 전자 장치(101)의 절전 상태가 종료되는 경우, 널 필터(null filter)를 생성할 수 있고, 상기 널 필터를 확인한 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는 인바운드되는 모든 패킷을 어플리케이션 프로세서(121)로 통과시킬 수 있다. 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 상기 전자 장치(101)의 절전 상태가 종료되는 경우, 허용된 어플리케이션에 대응하는 사용자 식별자 또는 허용되지 않은 어플리케이션에 대응하는 사용자 식별자에 기반하여 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)가 아닌, 어플리케이션 프로세서(121)에서 패킷을 필터링할 수 있다. 다양한 실시예에 따른 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 절전 상태가 종료되는 경우, 허용된 적어도 하나의 어플리케이션(310)에 대응하는 소켓(320)으로부터 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 확인할 수 있고, 상기 네트워크 연결 정보(321)를 이용하여 패킷을 필터링할 수 있다.
도 4는 다양한 실시예에 따른, 전자 장치(101)가 패킷 필터 프로그램(530)을 생성하는 방법을 설명하기 위한 흐름도를 도시한다. 도 5는 전자 장치(101)가 패킷 필터 프로그램(530)을 생성하는 실시예를 설명하기 위한 도면을 도시한다.
도 4 및 도 5를 참조하면, 401 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 절전 상태에서 제 1 패킷 필터 프로그램(330)으로 패킷 필터링을 수행하는 동안, 허용된 적어도 하나의 어플리케이션(310)의 네트워크 연결 상태의 변화를 확인할 수 있다. 예를 들어, 전자 장치(101)는 어플리케이션(310)의 TCP 연결 상태가 CLOSED, LISTEN, SYN-RECEIVED, ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, CLOSING, TIME-WAIT 중 하나로 변하는지 확인할 수 있다. 다양한 실시예에 따라, 상기 네트워크 연결 상태는 상기 TCP 연결 상태에 한정되는 것이 아니고, 다양한 프로토콜의 네트워크 연결 상태를 포함할 수 있다.
403 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 변화된 네트워크 연결 상태가 패킷 필터 프로그램의 조건을 추가하기 위한 지정된 상태인지 또는 패킷 필터 프로그램의 조건을 삭제하기 위한 지정된 상태인지를 확인할 수 있다. 예를 들어, 전자 장치(101)는 현재의 TCP 연결 상태가 'CLOSED' 상태인 것을 확인할 수 있고, TCP 연결 상태가 상기 'CLOSED' 상태에서, 패킷 필터 프로그램의 조건을 추가하기 위한 'LISTEN' 상태로 변하는 것을 확인할 수 있다. 또 다른 예를 들어, 전자 장치(101)는 현재의 TCP 연결 상태가 'CLOSING' 상태인 것을 확인할 수 있고, TCP 연결 상태가 'CLOSING' 상태에서, 패킷 필터 프로그램의 조건을 삭제하기 위한 'TIME-WAIT' 상태로 변하는 것을 확인할 수 있다. 다양한 실시예에 따라, 패킷 필터 프로그램의 조건을 추가하기 위한 지정된 상태, 또는 조건을 삭제하기 위한 지정된 상태는 상기 예에 한정되는 것이 아니고, 설계자에 의하여 다양하게 결정될 수 있다.
405 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 변화된 네트워크 연결 상태가 지정된 상태인 경우, 지정된 상태인 어플리케이션(310)에 대응하는 소켓(320)으로부터 지정된 상태인 어플리케이션(310)에 대응하는 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 확인할 수 있다. 예를 들어, 도 5에서와 같이, 어플리케이션(310)의 네트워크 연결 상태가 제 1 상태(510)에서 제 2 상태(520)로 변하고 상기 제 2 상태(520)가 지정된 상태인 경우, 전자 장치(101)는 소켓(320)으로부터 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 확인할 수 있다. 다양한 실시예에 따라서, 전자 장치(101)는 변화된 네트워크 연결 상태가 지정된 상태가 아닌 경우, 제 2 패킷 필터 프로그램(530)을 새로이 생성하지 않고, 기존에 사용 중인 제 1 패킷 필터 프로그램(330)을 이용하여, 인바운드되는 패킷을 필터링할 수 있다. 이 경우, 전자 장치(101)는 401 동작으로 되돌아가, 허용된 적어도 하나의 어플리케이션(310)의 네트워크 연결 상태의 변화를 확인할 수 있다.
407 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 네트워크 연결 상태가 지정된 상태인 어플리케이션(310)에 대응하는 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 이용하여 제 2 패킷 필터 프로그램(530)을 생성할 수 있다. 다양한 실시예에 따른 전자 장치(101)는 어플리케이션(310)의 네트워크 연결 상태가 패킷 필터 프로그램의 조건을 추가하기 위한 지정된 상태에 도달한 경우, 지정된 상태인 어플리케이션(310)에 대응하는 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 포함하는 조건을 제 1 패킷 필터 프로그램(330)에 추가함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다. 예를 들어, 사용자 식별자(311)와 연관된 네트워크 연결 정보(321) 중 IP 소스 주소, 및 IP 목적지 주소를 포함하는 패킷을 통과시키는 조건을 제 1 패킷 프로그램(330)에 추가함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다. 다양한 실시예에 따른 전자 장치(101)는 어플리케이션(310)의 네트워크 연결 상태가 패킷 필터 프로그램의 조건을 삭제하기 위한 지정된 상태에 도달한 경우, 지정된 상태인 어플리케이션(310)에 대응하는 사용자 식별자(311)와 연관된 네트워크 연결 정보(321)를 포함하는 조건을 제 1 패킷 필터 프로그램(330)에서 삭제함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다. 예를 들어, 전자 장치(101)는, 사용자 식별자(311)와 연관된 네트워크 연결 정보(321) 중 IP 소스 주소, 및 IP 목적지 주소를 포함하는 패킷을 통과시키는 조건을 제 1 패킷 프로그램(330)에 삭제함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다.
다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 바이트코드로 변환된 제 2 패킷 필터 프로그램(530)을 확인할 수 있다. 다양한 실시예에 따른 전자 장치(101)(예: 도 1의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 전자 장치(101)가 절전 상태인 동안, 제 2 패킷 필터 프로그램(530)을 이용하여, 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링할 수 있다. 다양한 실시예에 따른 전자 장치(101)는 도 2의 209 동작에 개시된 패킷을 필터링하는 동작을 이용할 수 있다.
도 6은 다양한 실시예에 따른, 전자 장치(101)가 패킷 필터 프로그램(530)을 생성하는 방법을 설명하기 위한 흐름도를 도시한다. 도 7은 전자 장치(101)가 패킷 필터 프로그램(530)을 생성하는 실시예를 설명하기 위한 도면이다.
도 6 및 도 7을 참조하면, 601 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 절전 상태에서 제 1 패킷 필터 프로그램(330)으로 패킷 필터링을 수행하는 동안, 허용된 제 1 어플리케이션(710)의 네트워크 연결이 요청되는 경우, 허용된 제 1 어플리케이션(710)의 제 1 사용자 식별자(711)를 확인할 수 있다. 예를 들어, 도 7에서와 같이, 절전 상태에서 데이터 통신을 수행하도록 미리 지정된 제 1 어플리케이션(710)이 상기 데이터 통신을 수행하기 위하여, 네트워크에 연결을 요청하는 경우, 전자 장치(101)는 상기 미리 지정된 제 1 어플리케이션(710)의 제 1 사용자 식별자(711)를 확인할 수 있다. 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 절전 상태에서 제 1 패킷 필터 프로그램(330)으로 패킷 필터링을 수행하는 동안, 허용된 제 2 어플리케이션(730)의 네트워크 연결이 해제되는 경우, 허용된 제 2 어플리케이션(730)에 대응하는 제 2 사용자 식별자(731)를 확인할 수 있다. 예를 들어, 도 7에서와 같이, 절전 상태에서 데이터 통신을 수행중인 제 2 어플리케이션(730)이 데이터 통신을 종료하기 위하여, 네트워크 연결을 해제하는 경우, 전자 장치(101)는 네트워크 연결이 해제되는 상기 제 2 어플리케이션(730)의 제 2 사용자 식별자(731)를 확인할 수 있다.
603 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 허용된 제 1 어플리케이션(710)에 대응하는 소켓으로부터 제 1 사용자 식별자(711)와 연관된 제 1 네트워크 연결 정보(721)를 확인할 수 있다. 예를 들어, 도 7에서와 같이, 제 1 어플리케이션(710)의 네트워크 연결이 요청되면 제 1 어플리케이션에 대응하는 제 1 소켓(720)이 열릴 수 있다. 전자 장치(101)는 네트워크 연결이 요청된 제 1 어플리케이션(710)에 대응하는 제 1 소켓(721)으로부터 제 1 사용자 식별자(711)와 연관된 제 1 네트워크 연결 정보(721)를 확인할 수 있다. 다양한 실시예에 따라서, 전자 장치(101)는 허용된 제 2 어플리케이션(730)에 대응하는 소켓으로부터 제 2 사용자 식별자(731)와 연관된 제 2 네트워크 연결 정보(741)를 확인할 수 있다. 예를 들어, 도 7에서와 같이, 제 2 어플리케이션(730)의 네트워크 연결이 해제되면 제 2 어플리케이션에 대응하는 제 2 소켓(740)이 닫힐 수 있다. 전자 장치(101)는 네트워크 연결이 해제된 제 2 어플리케이션(730)에 대응하는 제 2 소켓(740)으로부터 제 2 사용자 식별자(731)와 연관된 제 2 네트워크 연결 정보(741)를 확인할 수 있다. 제 1 네트워크 연결 정보(721) 또는 제 2 네트워크 연결 정보(741)은 IP 버전, IP 소스 주소, IP 목적지 주소, 프로토콜, 네트워크 연결 상태, TCP 소스 포트, TCP 목적지 포트, 네트워크 연결을 식별하는 해쉬 값 중 적어도 하나를 포함할 수 있다.
605 동작에서, 다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 어플리케이션 프로세서(121))는 제 1 네트워크 연결 정보(721) 또는 제 2 네트워크 연결 정보(741)를 이용하여, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다.
다양한 실시예에 따른 전자 장치(101)는 네트워크 연결이 요청된 제 1 어플리케이션(710)에 대응하는 제 1 사용자 식별자(711)와 연관된 제 1 네트워크 연결 정보(721)를 포함하는 조건을 제 1 패킷 필터 프로그램(330)에 추가함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다. 예를 들어, 제 1 사용자 식별자(711)와 연관된 제 1 네트워크 연결 정보(721) 중 IP 소스 주소, 및 IP 목적지 주소를 포함하는 패킷을 통과시키는 조건을 제 1 패킷 프로그램(330)에 추가함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다.
다양한 실시예에 따른 전자장치(101)는 네트워크 연결이 해제된 제 2 어플리케이션(730)에 대응하는 제 2 사용자 식별자(731)와 연관된 제 2 네트워크 연결 정보(741)를 포함하는 조건을 제 1 패킷 필터 프로그램(330)에서 삭제함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다. 예를 들어, 제 2 사용자 식별자(731)와 연관된 네트워크 연결 정보(741) 중 IP 소스 주소, 및 IP 목적지 주소를 포함하는 패킷을 통과시키는 조건을 제 1 패킷 프로그램(330)에 삭제함으로써, 제 2 패킷 필터 프로그램(530)을 생성할 수 있다.
다양한 실시예에 따라서, 전자 장치(101)(예: 도 1의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 바이트코드로 변환된 제 2 패킷 필터 프로그램(530)을 확인할 수 있다. 다양한 실시예에 따른 전자 장치(101)(예: 도 1의 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191))는 전자 장치(101)가 절전 상태인 동안, 제 2 패킷 필터 프로그램(530)을 이용하여, 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링할 수 있다. 다양한 실시예에 따른 전자 장치(101)는 도 2의 209 동작에 개시된 패킷을 필터링하는 동작을 이용할 수 있다.
도 8은 다양한 실시예에 따른, 전자 장치(101)가 패킷 필터 프로그램을 생성하고, 실행하는 실시예를 설명하기 위한 도면이다.
다양한 실시예에 따라서, 어플리케이션 프로세서(121)는 Packet Filtering Offload Manager 모듈(810), Network Manager Service 모듈(820), Netlink Connetcion Tracking Client 모듈(830), Netfilter Connection Tracking 모듈(840), TCP/IP Stack 모듈(850), Filter Program Utility 모듈(860)을 포함할 수 있고, 보조 프로세서(123) 또는 커뮤니케이션 프로세서(191)는 Filter Program Interpreter 모듈(870)을 포함할 수 있다.
다양한 실시예에 따라서, Packet Filtering Offload Manager 모듈(810)은 전자 장치(101)가 절전 상태로 진입하면, Network Manager Service 모듈(820)로부터, 적어도 하나의 허용된 어플리케이션에 대응하는 적어도 하나의 사용자 식별자를 포함하는 리스트를 수신할 수 있다. 허용된 어플리케이션은 절전 상태에서 데이터 통신을 수행하도록 미리 지정된 어플리케이션을 포함할 수 있고, 또는 절전 상태에서 데이터 통신을 수행 중인 어플리케이션을 포함할 수 있다. Packet Filtering Offload Manager 모듈(810)은 수신된 리스트에서 적어도 하나의 사용자 식별자를 확인할 수 있다. Packet Filtering Offload Manager 모듈(810)은 Netlink Connetcion Tracking Client 모듈(830)로 사용자 식별자와 연관된 네트워크 연결 정보를 요청할 수 있고, 요청된 네트워크 연결 정보를 Netlink Connetcion Tracking Client 모듈(830)로부터 수신할 수 있다. Packet Filtering Offload Manager 모듈(810)은 절전 상태에 진입한 경우, 네트워크 상태에 관한 통지를 수신하기 위해 Connection Tracking Events를 등록할 수 있고, 특정 이벤트가 발생한 경우, Netlink Connetcion Tracking Client 모듈(830)로부터 상기 특정 이벤트에 관한 통지를 수신할 수 있다. 예를 들어, Packet Filtering Offload Manager 모듈(810)은, Netlink Connetcion Tracking Client 모듈(830)로부터, 허용된 어플리케이션의 네트워크 상태가 미리 지정된 상태로 변경되는 이벤트가 발생된 경우, 네트워크 상태 변경에 관한 통지를 수신할 수 있고, 또는 새로운 네트워크 연결이 요청되는 이벤트가 발생된 경우, 네트워크 연결 요청에 관한 통지를 수신할 수 있고, 네트워크 연결이 해제되는 이벤트가 발생되는 경우, 네트워크 연결 해제에 관한 통지를 수신할 수 있다. Packet Filtering Offload Manager 모듈(810)은 해당 통지와 연관된 어플리케이션에 대응하는 사용자 식별자를 확인한 후, 상기 사용자 식별자와 연관된 네트워크 연결 정보를 요청할 수 있다. 다양한 실시예에 따라서, 네트워크 상태에 관한 통지는 네트워크 상태에 관한 알림 및 네트워크 상태에 대한 네트워크 연결 정보를 포함할 수 있다.
Packet Filtering Offload Manager 모듈(810)은 패킷 필터 프로그램을 생성하기 위하여, 사용자 식별자와 연관된 네트워크 연결 정보를 Filter Program Utility 모듈(860)로 전송할 수 있고, 바이트코드(bytecode)로 변환된 패킷 필터 프로그램을 Filter Program Utility 모듈(860)로부터 수신할 수 있다.
다양한 실시예에 따라서, Netlink Connetcion Tracking Client 모듈(830)은 프레임워크 레벨에서 동작할 수 있고, 커널 레벨에서 동작하는 Netfilter Connection Tracking 모듈(840)로 사용자 식별자와 연관된 네트워크 연결 정보를 요청할 수 있고, 요청된 네트워크 연결 정보를 Netfilter Connection Tracking 모듈(840)로부터 수신할 수 있다. Netlink Connetcion Tracking Client 모듈(830)은 허용된 어플리케이션의 네트워크 상태가 미리 지정된 상태로 변경되거나, 새로운 네트워크 연결이 요청되거나, 네트워크 연결이 해제되는 경우, Netfilter Connection Tracking 모듈(840)로부터 해당 네트워크 상태에 관한 통지(notification)을 수신할 수 있고, 상기 통지를 Packet Filtering Offload Manager 모듈(810)로 전달할 수 있다. 다양한 실시예에 따라서, 네트워크 상태에 관한 통지는 네트워크 상태에 대한 네트워크 연결 정보를 포함할 수 있다.
Netfilter Connection Tracking 모듈(840)은 TCP/IP Stack 모듈(850)에 존재하는 허용된 어플리케이션에 대응하는 소켓으로부터 상기 허용된 어플리케이션에 대응하는 사용자 식별자와 연관된 네트워크 연결 정보를 확인할 수 있고, 확인된 네트워크 연결 정보를 Netlink Connetcion Tracking Client 모듈(830)로 전송할 수 있다. Netfilter Connection Tracking 모듈(840)은 허용된 어플리케이션의 네트워크 상태가 변경되거나, 새로운 네트워크 연결이 요청되거나, 네트워크 연결이 해제되는 경우, Netlink Connetcion Tracking Client 모듈(830)로 통지를 전송할 수 있다. Netfilter Connection Tracking 모듈(840)은 TCP/IP Stack 모듈(850)에 존재하는 소켓으로부터 네트워크 연결 정보를 확인할 수 있고, 상기 네트워크 연결 정보는, IP 버전, IP 소스 주소, IP 목적지 주소, 프로토콜, 네트워크 연결 상태, TCP 소스 포트, TCP 목적지 포트, 네트워크 연결을 식별하는 해쉬 값 중 적어도 하나를 포함할 수 있다.
Filter Program Utility 모듈(860)은 Packet Filtering Offload Manager 모듈(810)로부터 사용자 식별자와 연관된 네트워크 연결 정보를 수신한 경우, 상기 네트워크 연결 정보를 이용하여 패킷 필터 프로그램을 생성할 수 있다. 예를 들어, 사용자 식별자와 연관된 네트워크 연결 정보 중 지정된 정보인 소스 IP 주소 정보(예를 들어, x.x.x.x) 및 지정된 정보인 목적지 IP 주소 정보(예를 들어, y.y.y.y)를 포함하는 패킷을 통과시키는 조건을 포함하는 패킷 필터 프로그램을 생성할 수 있다. Filter Program Utility 모듈(860)은 생성된 패킷 필터 프로그램을 바이트코드로 변환할 수 있고, 바이트코드로 변환된 패킷 필터 프로그램을 Packet Filtering Offload Manager 모듈(810)로 전송할 수 있다.
Filter Program Interpreter 모듈(870)은 Packet Filtering Offload Manager 모듈(810)로부터 생성되고, 바이트코드로 변환된 패킷 필터 프로그램을 확인할 수 있다. Filter Program Interpreter 모듈(870)은 패킷 필터 프로그램을 이용하여, 허용된 어플리케이션 이외의 어플리케이션과 연관된 패킷을 필터링할 수 있다. 예를 들어, Filter Program Interpreter 모듈(870)은 인바운드되는 패킷이 패킷 필터 프로그램에 포함된 조건을 만족하지 못하는 경우, 상기 인바운드되는 패킷을 드롭할 수 있다. Filter Program Interpreter 모듈(870)은 전자 장치(101)의 절전 상태가 종료되는 경우, Packet Filtering Offload Manager 모듈(810)로부터 생성된 널 필터(null filter)를 확인할 수 있고, 널 필터에 기반하여 인바운드되는 모든 패킷을 어플리케이션 프로세서(121)로 통과시킬 수 있다.
도 8에서 설명되는 각 모듈은 커널 및 프레임워크에서 사용될 수 있는 모듈의 일 실시예를 나타낸 것이고, 상기 예에 한정되는 것은 아니다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들(또는, 인스트럭션들(instructinons)을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.
다양한 실시예에 따라서, 전자 장치(101)는 커뮤니케이션 프로세서(123 또는 191), 상기 커뮤니케이션 프로세서(123 또는 191)와 작동적으로 연결된 어플리케이션 프로세서(121), 및 적어도 하나의 메모리(130)를 포함하고, 상기 적어도 하나의 메모리(130)는, 실행 시에, 상기 어플리케이션 프로세서가, 전자 장치(101)가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하고, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하도록 하고, 상기 커뮤니케이션 프로세서(123 또는 191)가, 상기 어플리케이션 프로세서(121)로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하고, 상기 전자 장치(101)가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하도록 하는 인스트럭션들(instructions)을 저장할 수 있다.
다양한 실시예에 따라서, 상기 인스트럭션들은, 상기 어플리케이션 프로세서(121)가, 상기 허용된 적어도 하나의 어플리케이션 또는 상기 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 소켓으로부터 상기 사용자 식별자와 연관된 네트워크 연결 정보를 확인하고, 상기 네트워크 연결 정보를 이용하여 상기 제 1 패킷 필터 프로그램을 생성하도록 설정될 수 있다.
다양한 실시예에 따라서, 상기 제 1 패킷 필터 프로그램은, 상기 커뮤니케이션 프로세서(123 또는 191)에서 확인된 상기 패킷이 상기 네트워크 연결 정보 중 적어도 하나의 지정된 정보를 포함하는 경우, 상기 패킷을 통과(pass)시키는 조건을 포함할 수 있다.
다양한 실시예에 따라서, 상기 네트워크 연결 정보는, IP 버전, IP 소스 주소, IP 목적지 주소, 프로토콜, 네트워크 연결 상태, TCP 소스 포트, TCP 목적지 포트, 네트워크 연결을 식별하는 해쉬 값 중 적어도 하나를 포함할 수 있다.
다양한 실시예에 따라서, 상기 허용된 적어도 하나의 어플리케이션은, 상기 절전 상태에서 데이터 통신을 수행하도록 미리 지정된 어플리케이션 및 상기 절전 상태에서 데이터 통신을 수행 중인 어플리케이션 중 적어도 하나를 포함할 수 있다.
다양한 실시예에 따라서, 상기 인스트럭션들은, 상기 어플리케이션 프로세서가, 상기 제 1 패킷 필터 프로그램을 바이트코드(bytecode)로 변환하고, 상기 커뮤니케이션 프로세서가, 상기 바이트코드로 변환된 상기 제 1 패킷 필터 프로그램을 확인하도록 할 수 있다.
다양한 실시예에 따라서, 상기 인스트럭션들은, 상기 어플리케이션 프로세서(121)가, 상기 절전 상태에서, 상기 허용된 적어도 하나의 어플리케이션의 네트워크 연결 상태의 변화를 확인하고, 상기 변화된 네트워크 연결 상태가 지정된 상태인 경우, 상기 지정된 상태인 어플리케이션에 대응하는 소켓으로부터 상기 지정된 상태인 어플리케이션에 대응하는 사용자 식별자와 연관된 네트워크 연결 정보를 확인하고, 상기 네트워크 연결 정보를 이용하여 제 2 패킷 필터 프로그램을 생성하도록 할 수 있다.
다양한 실시예에 따라서, 상기 인스트럭션들은, 상기 커뮤니케이션 프로세서(123 또는 191)가, 상기 어플리케이션 프로세서(121)로부터 생성된 상기 제 2 패킷 필터 프로그램을 확인하고, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 2 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하도록 할 수 있다.
다양한 실시예에 따라서, 상기 인스트럭션들은, 상기 어플리케이션 프로세서(121)가, 상기 절전 상태에서, 허용된 제 1 어플리케이션의 네트워크 연결이 요청되는 경우, 상기 허용된 제 1 어플리케이션에 대응하는 제 1 사용자 식별자를 확인하거나, 또는 상기 절전 상태에서, 허용된 제 2 어플리케이션의 네트워크 연결이 해제되는 경우, 상기 허용된 제 2 어플리케이션에 대응하는 제 2 사용자 식별자를 확인하고, 상기 허용된 제 1 어플리케이션에 대응하는 소켓으로부터 상기 제 1 사용자 식별자와 연관된 제 1 네트워크 연결 정보를 확인하거나, 또는 상기 허용된 제 2 어플리케이션에 대응하는 소켓으로부터 상기 제 2 사용자 식별자와 연관된 제 2 네트워크 연결 정보를 확인하고, 상기 제 1 네트워크 연결 정보 또는 상기 제 2 네트워크 연결 정보를 이용하여, 제 2 패킷 필터 프로그램을 생성하도록 할 수 있다.
다양한 실시예에 따라서, 인스트럭션들은, 상기 어플리케이션 프로세서(121)가, 상기 전자 장치의 상기 절전 상태가 종료되는 경우, 널 필터(null filter)를 생성하도록 할 수 있다.
다양한 실시예에 따라서, 패킷을 필터링하는 전자 장치(101)의 동작 방법은, 어플리케이션 프로세서(121)에서, 전자 장치(101)가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하는 동작, 상기 어플리케이션 프로세서(121)에서, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하는 동작, 커뮤니케이션 프로세서(123 또는 191)에서, 상기 어플리케이션 프로세서(121)로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하는 동작, 및 상기 커뮤니케이션 프로세서(123 또는 191)에서, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하는 동작을 포함할 수 있다.
다양한 실시예에 따라서, 상기 제 1 패킷 필터 프로그램을 생성하는 동작은, 상기 허용된 적어도 하나의 어플리케이션 또는 상기 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 소켓으로부터 상기 사용자 식별자와 연관된 네트워크 연결 정보를 확인하는 동작, 및 상기 네트워크 연결 정보를 이용하여 상기 제 1 패킷 필터 프로그램을 생성하는 동작을 포함할 수 있다.
다양한 실시예에 따라서, 패킷을 필터링하는 전자 장치(101)의 동작 방법은, 상기 어플리케이션 프로세서(121)에서, 상기 제 1 패킷 필터 프로그램을 바이트코드(bytecode)로 변환하는 동작, 및 상기 커뮤니케이션 프로세서(123 또는 191)에서, 상기 바이트코드로 변환된 상기 제 1 패킷 필터 프로그램을 확인하는 동작을 더 포함할 수 있다.
다양한 실시예에 따라서, 패킷을 필터링하는 전자 장치(101)의 동작 방법은, 상기 절전 상태에서, 상기 허용된 적어도 하나의 어플리케이션의 네트워크 연결 상태의 변화를 확인하는 동작, 상기 변화된 네트워크 연결 상태가 지정된 상태인 경우, 상기 지정된 상태인 어플리케이션에 대응하는 소켓으로부터 상기 지정된 상태인 어플리케이션에 대응하는 사용자 식별자와 연관된 네트워크 연결 정보를 확인하는 동작, 및 상기 네트워크 연결 정보를 이용하여 제 2 패킷 필터 프로그램을 생성하는 동작을 더 포함할 수 있다.
다양한 실시예에 따라서, 패킷을 필터링하는 전자 장치(101)의 동작 방법은, 상기 어플리케이션 프로세서(121)로부터 생성된 상기 제 2 패킷 필터 프로그램을 확인하는 동작, 및 상기 전자 장치(101)가 상기 절전 상태인 동안, 상기 제 2 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하는 동작을 더 포함할 수 있다.
다양한 실시예에 따라서, 패킷을 필터링하는 전자 장치(101)의 동작 방법은, 상기 절전 상태에서, 허용된 제 1 어플리케이션의 네트워크 연결이 요청되는 경우, 상기 허용된 제 1 어플리케이션에 대응하는 제 1 사용자 식별자를 확인하거나, 또는 상기 절전 상태에서, 허용된 제 2 어플리케이션의 네트워크 연결이 해제되는 경우, 상기 허용된 제 2 어플리케이션에 대응하는 제 2 사용자 식별자를 확인하는 동작, 상기 허용된 제 1 어플리케이션에 대응하는 소켓으로부터 상기 제 1 사용자 식별자와 연관된 제 1 네트워크 연결 정보를 확인하거나, 또는 상기 허용된 제 2 어플리케이션에 대응하는 소켓으로부터 상기 제 2 사용자 식별자와 연관된 제 2 네트워크 연결 정보를 확인하는 동작, 및 상기 제 1 네트워크 연결 정보 또는 상기 제 2 네트워크 연결 정보를 이용하여, 제 2 패킷 필터 프로그램을 생성하는 동작을 더 포함할 수 있다.
다양한 실시예에 따라서, 커뮤니케이션 프로세서(123 또는 191), 상기 커뮤니케이션 프로세서(123 또는 191)와 작동적으로 연결된 어플리케이션 프로세서(121), 및 메모리(130)를 포함하는 전자 장치(101)를 동작하는 방법을 실행하기 위한 프로그램이 기록된 컴퓨터에서 판독 가능한 기록 매체에 있어서, 상기 어플리케이션 프로세서(121)에서, 전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하는 동작, 상기 어플리케이션 프로세서(121)에서, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하는 동작, 상기 커뮤니케이션 프로세서(123 또는 191)에서, 상기 어플리케이션 프로세서(121)로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하는 동작, 및 상기 커뮤니케이션 프로세서(123 또는 191)에서, 상기 전자 장치(101)가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하는 동작을 포함하는 방법을 실행하기 위한 프로그램이 기록될 수 있다.

Claims (15)

  1. 커뮤니케이션 프로세서; 및
    상기 커뮤니케이션 프로세서와 작동적으로 연결된 어플리케이션 프로세서; 및
    적어도 하나의 메모리를 포함하고, 상기 적어도 하나의 메모리는, 실행 시에, 상기 어플리케이션 프로세서가,
    전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하고,
    상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하도록 하고,
    상기 커뮤니케이션 프로세서가,
    상기 어플리케이션 프로세서로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하고,
    상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하도록 하는 인스트럭션들(instructions)을 저장하는 전자 장치.
  2. 제 1 항에 있어서,
    상기 인스트럭션들은, 상기 어플리케이션 프로세서가,
    상기 허용된 적어도 하나의 어플리케이션 또는 상기 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 소켓으로부터 상기 사용자 식별자와 연관된 네트워크 연결 정보를 확인하고,
    상기 네트워크 연결 정보를 이용하여 상기 제 1 패킷 필터 프로그램을 생성하도록 하는 전자 장치.
  3. 제 2 항에 있어서,
    상기 제 1 패킷 필터 프로그램은, 상기 커뮤니케이션 프로세서에서 확인된 패킷이 상기 네트워크 연결 정보 중 적어도 하나의 지정된 정보를 포함하는 경우, 상기 패킷을 통과(pass)시키는 조건을 포함하는 전자 장치.
  4. 제 3 항에 있어서,
    상기 네트워크 연결 정보는, IP 버전, IP 소스 주소, IP 목적지 주소, 프로토콜, 네트워크 연결 상태, TCP 소스 포트, TCP 목적지 포트, 네트워크 연결을 식별하는 해쉬 값 중 적어도 하나를 포함하는 전자 장치.
  5. 제 1 항에 있어서,
    상기 허용된 적어도 하나의 어플리케이션은,
    상기 절전 상태에서 데이터 통신을 수행하도록 미리 지정된 어플리케이션 및 상기 절전 상태에서 데이터 통신을 수행 중인 어플리케이션 중 적어도 하나를 포함하는 전자 장치.
  6. 제 1 항에 있어서,
    상기 인스트럭션들은,
    상기 어플리케이션 프로세서가, 상기 제 1 패킷 필터 프로그램을 바이트코드(bytecode)로 변환하고,
    상기 커뮤니케이션 프로세서가, 상기 바이트코드로 변환된 상기 제 1 패킷 필터 프로그램을 확인하도록 하는 전자 장치.
  7. 제 1 항에 있어서,
    상기 인스트럭션들은, 상기 어플리케이션 프로세서가,
    상기 절전 상태에서, 상기 허용된 적어도 하나의 어플리케이션의 네트워크 연결 상태의 변화를 확인하고,
    상기 변화된 네트워크 연결 상태가 지정된 상태인 경우, 상기 지정된 상태인 어플리케이션에 대응하는 소켓으로부터 상기 지정된 상태인 어플리케이션에 대응하는 사용자 식별자와 연관된 네트워크 연결 정보를 확인하고,
    상기 네트워크 연결 정보를 이용하여 제 2 패킷 필터 프로그램을 생성하도록 하는 전자 장치.
  8. 제 7 항에 있어서,
    상기 인스트럭션들은, 상기 커뮤니케이션 프로세서가,
    상기 어플리케이션 프로세서로부터 생성된 상기 제 2 패킷 필터 프로그램을 확인하고,
    상기 전자 장치가 상기 절전 상태인 동안, 상기 제 2 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하도록 하는 전자 장치.
  9. 제 1 항에 있어서,
    상기 인스트럭션들은, 상기 어플리케이션 프로세서가,
    상기 절전 상태에서, 허용된 제 1 어플리케이션의 네트워크 연결이 요청되는 경우, 상기 허용된 제 1 어플리케이션에 대응하는 제 1 사용자 식별자를 확인하거나, 또는 상기 절전 상태에서, 허용된 제 2 어플리케이션의 네트워크 연결이 해제되는 경우, 상기 허용된 제 2 어플리케이션에 대응하는 제 2 사용자 식별자를 확인하고,
    상기 허용된 제 1 어플리케이션에 대응하는 소켓으로부터 상기 제 1 사용자 식별자와 연관된 제 1 네트워크 연결 정보를 확인하거나, 또는 상기 허용된 제 2 어플리케이션에 대응하는 소켓으로부터 상기 제 2 사용자 식별자와 연관된 제 2 네트워크 연결 정보를 확인하고,
    상기 제 1 네트워크 연결 정보 또는 상기 제 2 네트워크 연결 정보를 이용하여, 제 2 패킷 필터 프로그램을 생성하도록 하는 전자 장치.
  10. 제 1 항에 있어서,
    상기 인스트럭션들은, 상기 어플리케이션 프로세서가,
    상기 전자 장치의 상기 절전 상태가 종료되는 경우, 널 필터(null filter)를 생성하도록 하는 전자 장치.
  11. 패킷을 필터링하는 전자 장치의 동작 방법에 있어서,
    어플리케이션 프로세서에서, 전자 장치가 절전 상태로 진입하면, 허용된 적어도 하나의 어플리케이션 또는 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 사용자 식별자(UID, User Identifier)를 확인하는 동작,
    상기 어플리케이션 프로세서에서, 상기 사용자 식별자에 기반하여, 패킷을 필터링하기 위한 적어도 하나의 조건을 포함하는 제 1 패킷 필터 프로그램을 생성하는 동작,
    커뮤니케이션 프로세서에서, 상기 어플리케이션 프로세서로부터 생성된 상기 제 1 패킷 필터 프로그램을 확인하는 동작, 및
    상기 커뮤니케이션 프로세서에서, 상기 전자 장치가 상기 절전 상태인 동안, 상기 제 1 패킷 필터 프로그램을 이용하여, 상기 허용된 적어도 하나의 어플리케이션 이외의 어플리케이션과 연관된 적어도 하나의 패킷 또는 상기 허용되지 않은 적어도 하나의 어플리케이션과 연관된 적어도 하나의 패킷을 필터링하는 동작을 포함하는 전자 장치의 동작 방법.
  12. 제 11 항에 있어서,
    상기 제 1 패킷 필터 프로그램을 생성하는 동작은,
    상기 허용된 적어도 하나의 어플리케이션 또는 상기 허용되지 않은 적어도 하나의 어플리케이션에 대응하는 소켓으로부터 상기 사용자 식별자와 연관된 네트워크 연결 정보를 확인하는 동작, 및
    상기 네트워크 연결 정보를 이용하여 상기 제 1 패킷 필터 프로그램을 생성하는 동작을 포함하는 전자 장치의 동작 방법.
  13. 제 12 항에 있어서,
    상기 제 1 패킷 필터 프로그램은, 상기 커뮤니케이션 프로세서에서 확인된 패킷이 상기 네트워크 연결 정보 중 적어도 하나의 지정된 정보를 포함하는 경우, 상기 패킷을 통과(pass)시키는 조건을 포함하는 전자 장치의 동작 방법.
  14. 제 13 항에 있어서,
    상기 네트워크 연결 정보는, IP 버전, IP 소스 주소, IP 목적지 주소, 프로토콜, 네트워크 연결 상태, TCP 소스 포트, TCP 목적지 포트, 네트워크 연결을 식별하는 해쉬 값 중 적어도 하나를 포함하는 전자 장치의 동작 방법.
  15. 제 11 항에 있어서,
    상기 허용된 적어도 하나의 어플리케이션은,
    상기 절전 상태에서 데이터 통신을 수행하도록 미리 지정된 어플리케이션 및 상기 절전 상태에서 데이터 통신을 수행 중인 어플리케이션 중 적어도 하나를 포함하는 전자 장치의 동작 방법.
PCT/KR2019/011931 2018-09-19 2019-09-16 패킷을 필터링하는 전자 장치 및 그 작동 방법 WO2020060124A1 (ko)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/274,495 US11595902B2 (en) 2018-09-19 2019-09-16 Electronic device for filtering packet and method for operating same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2018-0112463 2018-09-19
KR1020180112463A KR20200033048A (ko) 2018-09-19 2018-09-19 패킷을 필터링하는 전자 장치 및 그 작동 방법

Publications (1)

Publication Number Publication Date
WO2020060124A1 true WO2020060124A1 (ko) 2020-03-26

Family

ID=69887598

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/011931 WO2020060124A1 (ko) 2018-09-19 2019-09-16 패킷을 필터링하는 전자 장치 및 그 작동 방법

Country Status (3)

Country Link
US (1) US11595902B2 (ko)
KR (1) KR20200033048A (ko)
WO (1) WO2020060124A1 (ko)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102333553B1 (ko) * 2021-05-07 2021-12-01 프라이빗테크놀로지 주식회사 컨트롤러 기반의 네트워크 접속을 제어하기 위한 시스템 및 그에 관한 방법
KR102358595B1 (ko) * 2021-05-07 2022-02-08 프라이빗테크놀로지 주식회사 컨트롤러 기반의 네트워크 접속을 제어하기 위한 시스템 및 그에 관한 방법

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205247A1 (en) * 2003-02-21 2004-10-14 Hong-Jin Ahn Apparatus and method for performing traffic flow template packet filtering according to internet protocol versions in a mobile communication system
US20080049679A1 (en) * 2006-08-22 2008-02-28 Samsung Electronics Co., Ltd. Apparatus and method for filtering packet in a network system using mobile ip
US7913294B1 (en) * 2003-06-24 2011-03-22 Nvidia Corporation Network protocol processing for filtering packets
KR20120090934A (ko) * 2009-07-15 2012-08-17 노오텔 네트웍스 리미티드 디바이스 프로그램가능 네트워크 기반 패킷 필터
KR101661161B1 (ko) * 2010-04-07 2016-10-10 삼성전자주식회사 이동통신 단말기에서 인터넷프로토콜 패킷 필터링 장치 및 방법

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6792600B1 (en) * 1998-05-14 2004-09-14 International Business Machines Corporation Method and apparatus for just in time compilation of instructions
EP1592189A4 (en) 2003-02-05 2012-05-23 Nippon Telegraph & Telephone FIREWALL DEVICE
US7559082B2 (en) * 2003-06-25 2009-07-07 Microsoft Corporation Method of assisting an application to traverse a firewall
US20070067445A1 (en) * 2005-09-16 2007-03-22 Smart Link Ltd. Remote computer wake-up for network applications
US8832286B2 (en) * 2007-11-12 2014-09-09 International Business Machines Corporation Method and system for controlling client access to a server application
KR101627162B1 (ko) 2010-02-08 2016-06-03 삼성전자주식회사 휴대용 단말기에서 패킷 필터링을 통해 전력 소모를 줄이기 위한 장치 및 방법
CN101873640B (zh) 2010-05-27 2013-04-24 华为终端有限公司 流量处理方法、装置和移动终端
US9648564B1 (en) * 2014-03-26 2017-05-09 Amazon Technologies, Inc. Wake-up management for mobile devices
US9622176B2 (en) * 2014-06-23 2017-04-11 Qualcomm Incorporated Packet filtering for saving power at a user equipment
US9565218B2 (en) * 2015-01-23 2017-02-07 Oracle International Corporation Resource management for WebRTC
US20170019858A1 (en) * 2015-07-15 2017-01-19 Qualcomm Incorporated Techniques for dynamically enabling or disabling a user equipment power saving feature based on application performance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205247A1 (en) * 2003-02-21 2004-10-14 Hong-Jin Ahn Apparatus and method for performing traffic flow template packet filtering according to internet protocol versions in a mobile communication system
US7913294B1 (en) * 2003-06-24 2011-03-22 Nvidia Corporation Network protocol processing for filtering packets
US20080049679A1 (en) * 2006-08-22 2008-02-28 Samsung Electronics Co., Ltd. Apparatus and method for filtering packet in a network system using mobile ip
KR20120090934A (ko) * 2009-07-15 2012-08-17 노오텔 네트웍스 리미티드 디바이스 프로그램가능 네트워크 기반 패킷 필터
KR101661161B1 (ko) * 2010-04-07 2016-10-10 삼성전자주식회사 이동통신 단말기에서 인터넷프로토콜 패킷 필터링 장치 및 방법

Also Published As

Publication number Publication date
US11595902B2 (en) 2023-02-28
US20220053425A1 (en) 2022-02-17
KR20200033048A (ko) 2020-03-27

Similar Documents

Publication Publication Date Title
WO2019221451A1 (en) Method and an electronic device connecting plurality of electronic devices to server through hub
WO2019143185A1 (en) Electronic device and method of detecting status of battery thereof
WO2019245328A1 (ko) 유선 또는 무선으로 수신되는 디지털 오디오 신호를 아날로그 오디오 신호로 변환하는 전자 장치, 방법 및 시스템
WO2020032483A1 (ko) 수분 감지에 따라 인터페이스에 포함된 적어도 하나의 핀을 개방 상태로 제어하는 방법 및 이를 수행하는 전자 장치
WO2020166894A1 (en) Electronic device and method for recommending word in same
WO2020197275A1 (en) Method for installing subscriber profile and electronic device therefor
WO2021033965A1 (ko) 전력 관리를 위한 위한 전자 장치 및 그의 동작 방법
WO2020060124A1 (ko) 패킷을 필터링하는 전자 장치 및 그 작동 방법
WO2020096262A1 (ko) 전자 장치, 그의 개인 정보 제공 방법 및 이를 기록한 컴퓨터 판독 가능 기록매체
WO2020101147A1 (ko) Ieee 802.11 표준에 정의된 tdls 세션을 이용하여 외부 전자 장치와 무선 통신 채널을 통해 연결되는 전자 장치
WO2022086207A1 (ko) 고속 충전 방법 및 전자 장치
WO2019135551A1 (ko) 외부 전자 장치를 통해 데이터를 송수신하는 전자 장치 및 그 데이터 송수신 방법
WO2019208908A1 (ko) 복수의 주파수 대역에서 신호를 전송하기 위한 장치 및 방법
WO2021071222A1 (ko) 복수의 외부 전자 장치들로 오디오 데이터를 전송하는 전자 장치 및 그 제어 방법
WO2021101014A1 (ko) 패킷 전달을 제어하는 전자 장치 및 그의 동작 방법
WO2020138909A1 (ko) 콘텐트 공유 방법 및 그 전자 장치
WO2020111488A1 (ko) 아이오티 장치를 등록하는 전자 장치, 서버 및 그 작동 방법
WO2020106091A1 (en) Electronic device changing identification information based on state information and another electronic device identifying identification information
WO2020050581A1 (ko) 입출력 단자 및 이를 포함하는 전자장치
WO2020040454A1 (ko) 분할된 화면을 제어하기 위한 전자 장치
WO2019151619A1 (ko) 심 카드를 적재하는 트레이가 삽입되는 전자 장치 및 그의 제어 방법
WO2019160323A1 (ko) 어플리케이션과 관련된 데이터를 관리하기 위한 방법 및 그 전자 장치
WO2021162439A1 (en) Electronic device performing restoration on basis of comparison of constant value and control method thereof
WO2021101173A1 (ko) 전자 장치 및 이를 이용한 근거리 통신 장치의 사용자 식별 정보 획득 방법
WO2020204401A1 (ko) 전자 장치 및 전자 장치에서의 스트리밍 어플리케이션 처리 방법

Legal Events

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

Ref document number: 19862865

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19862865

Country of ref document: EP

Kind code of ref document: A1