JP6532851B2 - Communication apparatus, DNS processing method, and program - Google Patents

Communication apparatus, DNS processing method, and program Download PDF

Info

Publication number
JP6532851B2
JP6532851B2 JP2016204384A JP2016204384A JP6532851B2 JP 6532851 B2 JP6532851 B2 JP 6532851B2 JP 2016204384 A JP2016204384 A JP 2016204384A JP 2016204384 A JP2016204384 A JP 2016204384A JP 6532851 B2 JP6532851 B2 JP 6532851B2
Authority
JP
Japan
Prior art keywords
communication
dns
application
uid
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016204384A
Other languages
Japanese (ja)
Other versions
JP2017139731A (en
Inventor
周治 石川
周治 石川
恭弘 伊東
恭弘 伊東
智哉 上條
智哉 上條
英孝 林
英孝 林
晃平 道上
晃平 道上
一生 大西
一生 大西
和也 千藤
和也 千藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2016204384A priority Critical patent/JP6532851B2/en
Publication of JP2017139731A publication Critical patent/JP2017139731A/en
Application granted granted Critical
Publication of JP6532851B2 publication Critical patent/JP6532851B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信装置、DNS処理方法、およびプログラムに関する。   The present invention relates to a communication apparatus, a DNS processing method, and a program.

従来、データ通信可能な携帯端末などの通信装置が知られている(例えば、特許文献1参照)。通信装置においては、通信装置上で稼働するアプリケーションによるデータ通信がデフォルトで許可される一方で、ユーザによって選択されたアプリケーションによるデータ通信のみが禁止されるという構成が採用されることがある。この場合、ユーザは、自らが把握できる範囲で、アプリケーションによるデータ通信を抑制できる。   BACKGROUND Conventionally, communication devices such as portable terminals capable of data communication are known (see, for example, Patent Document 1). In the communication device, a configuration may be adopted in which data communication by an application operating on the communication device is permitted by default, while only data communication by an application selected by the user is prohibited. In this case, the user can suppress the data communication by the application as long as the user can understand.

特開2015−162701号公報JP, 2015-162701, A

しかし、ユーザは、通信装置においてどのようなアプリケーションが稼働しているか完全に把握できるとは限らない。特に、通信装置のシステムのバックグラウンドで稼働するアプリケーションは、ユーザによって把握されない可能性が高い。よって、ユーザによって動作が把握されればデータ通信の禁止が選択されるような場合でも、ユーザによって動作が把握されないことによって、アプリケーションのデータ通信の禁止が選択されない場合がある。また、通信装置のシステムが行うデータ通信については、そもそも通信装置のシステム仕様として、ユーザが選択できないようになっている場合もある。これらの場合、ユーザの意図しないデータ通信が行われて、通信されるデータ量が意図せず増加することがある。   However, the user can not always completely understand what application is operating in the communication device. In particular, applications running in the background of the communication device system are likely not to be grasped by the user. Therefore, even if the user selects the prohibition of data communication if the user recognizes the operation, the user may not select the prohibition of data communication of the application because the user does not grasp the operation. In addition, with regard to data communication performed by the system of the communication apparatus, there are cases where the user can not select it as the system specification of the communication apparatus. In these cases, data communication unintended by the user may be performed, and the amount of data communicated may increase unintentionally.

本発明は、ユーザが意図しない通信の発生を低減できる通信装置、DNS処理方法、およびプログラムを提供することを目的とする。   An object of the present invention is to provide a communication device, a DNS processing method, and a program capable of reducing the occurrence of communication unintended by a user.

本発明の一実施形態に係る通信装置は、
データ通信可能な通信装置であって、
アプリケーションからネットワークへの接続要求を取得すると、前記接続要求元の前記アプリケーションのIDが、データ通信が許可された特定IDであるか否かを判定し、
前記アプリケーションのIDが特定IDではないと判定された場合に、前記接続要求に基づくDNSデータ通信を抑制する。
A communication device according to an embodiment of the present invention is
A communication device capable of data communication,
When acquiring a connection request to the network from the application, it is determined whether the ID of the application of the connection request source is a specific ID for which data communication is permitted,
If the ID of the application is determined not to be a particular ID, the suppress DNS data communication based on the connection request.

また、本発明の一実施形態に係るDNS処理方法は、
データ通信可能な通信装置が実行するDNS処理方法であって、
アプリケーションからネットワークへの接続要求を取得するステップと、
前記接続要求元の前記アプリケーションのIDが、データ通信が許可された特定IDであるか否かを判定するステップと、
前記アプリケーションのIDが特定IDではないと判定された場合に、前記接続要求に基づくDNSデータ通信を抑制するステップと、を含む。
In addition, a DNS processing method according to an embodiment of the present invention is
A DNS processing method executed by a communication device capable of data communication,
Obtaining a connection request from the application to the network;
Determining whether the ID of the application of the connection request source is a specific ID for which data communication is permitted;
If the ID of the application is determined not to be a particular ID, including the steps of suppressing the DNS data communication based on the connection request.

また、本発明の一実施形態に係るプログラムは、
データ通信可能な通信装置に、
アプリケーションからネットワークへの接続要求を取得するステップと、
前記接続要求元の前記アプリケーションのIDが、データ通信が許可された特定IDであるか否かを判定するステップと、
前記アプリケーションのIDが特定IDではないと判定された場合に、前記接続要求に基づくDNSデータ通信を抑制するステップと、を実行させる。
In addition, a program according to an embodiment of the present invention is
In the communication device capable of data communication,
Obtaining a connection request from the application to the network;
Determining whether the ID of the application of the connection request source is a specific ID for which data communication is permitted;
If the ID of the application is determined not to be a particular ID, to execute the steps of suppressing the DNS data communication based on the connection request.

本発明の一実施形態に係る通信装置、DNS処理方法、およびプログラムによれば、ユーザが意図しない通信の発生を低減できる。   According to the communication device, the DNS processing method, and the program according to the embodiment of the present invention, it is possible to reduce the occurrence of communication that is not intended by the user.

第1実施形態に係る通信装置の概略構成例を示す機能ブロック図である。It is a functional block diagram showing an example of outline composition of a communication apparatus concerning a 1st embodiment. 第1実施形態に係る通信装置の一例の外観を示す図である。It is a figure which shows the external appearance of an example of the communication apparatus which concerns on 1st Embodiment. 第1実施形態に係るデータの流れの一例を示すブロック図である。It is a block diagram showing an example of the flow of data concerning a 1st embodiment. 第1実施形態に係るフィルタリング処理のシーケンスを説明する図である。It is a figure explaining the sequence of the filtering process concerning 1st Embodiment. アプリケーションからデータを送信するシーケンスの一例を説明する図である。It is a figure explaining an example of the sequence which transmits data from application. 第1実施形態の比較例に係るフィルタリング処理のシーケンスを説明する図である。It is a figure explaining the sequence of the filtering process concerning the comparative example of 1st Embodiment. 第2実施形態に係るDNS処理のシーケンスを説明する図である。It is a figure explaining the sequence of the DNS process which concerns on 2nd Embodiment. 第2実施形態の比較例に係るDNS処理のシーケンスを説明する図である。It is a figure explaining the sequence of the DNS process which concerns on the comparative example of 2nd Embodiment. 第3実施形態に係るDNS処理のシーケンスを説明する図である。It is a figure explaining the sequence of the DNS process which concerns on 3rd Embodiment.

(第1実施形態)
以下、一実施形態に係る通信装置について、図面を参照しながら詳細に説明する。本実施形態に係る通信装置は、携帯電話、またはスマートフォンなどの携帯機器とすることができる。しかしながら、本実施形態に係る通信装置は、携帯機器に限定されるものではなく、デスクトップPC、ノートPC、タブレット型PC、家電製品、産業用機器(FA機器)、専用端末など、データ通信を行う種々の電子機器とすることができる。
First Embodiment
Hereinafter, a communication apparatus according to an embodiment will be described in detail with reference to the drawings. The communication device according to the present embodiment can be a mobile device such as a mobile phone or a smartphone. However, the communication device according to the present embodiment is not limited to the portable device, and performs data communication such as desktop PC, notebook PC, tablet PC, home appliance, industrial device (FA device), dedicated terminal, etc. Various electronic devices can be used.

[装置構成]
図1は、本実施形態に係る通信装置1の概略構成例を示す機能ブロック図である。図1に示されるように、通信装置1は、制御部10と、通信部11と、記憶部12と、表示部13と、操作部14とを備える。制御部10は、通信部11と、記憶部12と、表示部13と、操作部14とに接続され、これらを制御する。
[Device configuration]
FIG. 1 is a functional block diagram showing a schematic configuration example of the communication device 1 according to the present embodiment. As shown in FIG. 1, the communication device 1 includes a control unit 10, a communication unit 11, a storage unit 12, a display unit 13, and an operation unit 14. The control unit 10 is connected to the communication unit 11, the storage unit 12, the display unit 13, and the operation unit 14 and controls them.

制御部10は、オペレーティングシステム(以下、OSともいう)、および、アプリケーションソフトウェア(以下、アプリケーションともいう)を実行可能なプロセッサまたはマイコンなどによって構成されうる。OSは、例えばAndroid(登録商標)である。アプリケーションについては後述する。   The control unit 10 can be configured by an operating system (hereinafter, also referred to as an OS) and a processor or microcomputer capable of executing application software (hereinafter, also referred to as an application). The OS is, for example, Android (registered trademark). The application will be described later.

通信部11は、セルラ通信、または無線LAN通信などを行う通信インタフェースとして、I/F(インタフェース)デバイス111を備える。I/Fデバイス111は、モデム112と無線LANデバイス113とを含む。通信部11は、I/Fデバイス111を用いてインターネットなどのネットワーク側に接続され、ネットワーク側との間でデータ通信を行う。これによって、通信装置1はネットワーク側との間でデータ通信可能となる。通信部11は、制御部10に接続され、ネットワーク側へ出力するデータを制御部10から取得する。制御部10は、通信部11に対して出力するデータをフィルタリング処理によって選択する。フィルタリング処理については後述する。また制御部10は、ネットワーク側から受信したデータを通信部11から取得する。   The communication unit 11 includes an I / F (interface) device 111 as a communication interface for performing cellular communication or wireless LAN communication. The I / F device 111 includes a modem 112 and a wireless LAN device 113. The communication unit 11 is connected to a network side such as the Internet using the I / F device 111, and performs data communication with the network side. Thus, the communication device 1 can perform data communication with the network side. The communication unit 11 is connected to the control unit 10, and acquires data to be output to the network side from the control unit 10. The control unit 10 selects data to be output to the communication unit 11 by filtering processing. The filtering process will be described later. The control unit 10 also acquires data received from the network side from the communication unit 11.

セルラ通信方式によってネットワーク側と接続される場合、一般的に、通信されるデータ(パケット)の量の増大に応じて通信料金が増大する従量課金制の料金体系が採用される。一方で、無線LAN通信などの方式によってネットワーク側と接続される場合、一般的に、そのような料金体系ではない。   When the cellular communication system is connected to the network side, a pay-as-you-go system is generally adopted in which the communication charge increases with the increase in the amount of data (packets) to be communicated. On the other hand, when connected to the network side by a method such as wireless LAN communication, it is generally not such a charge system.

記憶部12は、例えば半導体メモリなどによって構成されうる。記憶部12には、各種情報およびデータ、ならびに、制御部10が実行するOSおよびアプリケーションなどのプログラムが格納される。制御部10は、記憶部12に格納されたプログラムを実行する。制御部10は、プログラムの実行によって生成されるデータを記憶部12に格納する。また記憶部12は、ワークメモリとしても機能しうる。   The storage unit 12 can be configured by, for example, a semiconductor memory. The storage unit 12 stores various information and data, and programs such as an OS and an application executed by the control unit 10. The control unit 10 executes a program stored in the storage unit 12. The control unit 10 stores data generated by the execution of the program in the storage unit 12. The storage unit 12 can also function as a work memory.

表示部13は、制御部10から取得した情報に基づき、文字、画像、操作用オブジェクト、ポインタなどを表示する。表示部13は、例えば、液晶ディスプレイ、有機ELディスプレイ、無機ELディスプレイなどの表示デバイスであるが、これらに限られるものではない。   The display unit 13 displays characters, images, operation objects, pointers, and the like based on the information acquired from the control unit 10. Although the display part 13 is display devices, such as a liquid crystal display, an organic electroluminescent display, an inorganic electroluminescent display, for example, it is not restricted to these.

操作部14は、テンキーなどの物理キー、タッチパッド、またはタッチパネルなどによって構成される。制御部10は、操作部14から取得した入力内容に応じて、表示部13に表示されるポインタなどを移動させたり、操作用オブジェクトを選択したりする。   The operation unit 14 is configured by physical keys such as ten keys, a touch pad, or a touch panel. The control unit 10 moves a pointer or the like displayed on the display unit 13 or selects an operation object according to the input content acquired from the operation unit 14.

図2は、本実施形態に係る通信装置1の一例の外観を示す図である。図2に示す通り、本実施形態に係る通信装置1は、いわゆる折りたたみ式(フリップ型またはクラムシェル型など)のフィーチャーフォンである。通信装置1は、上部筐体2と下部筐体3とが、ヒンジ部4によって回動可能に接続される。上部筐体2は表示部13を備え、下部筐体3は操作部14を備える。操作部14は、テンキーなどの物理キーの他、物理キーが設けられていない部位にタッチパッド141を備える。通信装置1は、例えば物理キーによって操作用のオブジェクトの選択操作を受け付け、またタッチパッド141によってポインタなどの移動操作を受け付ける。   FIG. 2 is a view showing an appearance of an example of the communication device 1 according to the present embodiment. As shown in FIG. 2, the communication device 1 according to the present embodiment is a so-called foldable (flip or clamshell or the like) feature phone. In the communication device 1, the upper case 2 and the lower case 3 are rotatably connected by the hinge unit 4. The upper housing 2 includes the display unit 13, and the lower housing 3 includes the operation unit 14. The operation unit 14 includes a touch pad 141 at a portion where no physical key is provided, in addition to a physical key such as a ten key. The communication device 1 receives, for example, a selection operation of an operation object by a physical key, and receives a movement operation such as a pointer by the touch pad 141.

[アプリケーション]
アプリケーションは、制御部10で実行可能となるように通信装置1にインストールされ、記憶部12に格納される。アプリケーションが通信装置1にインストールされる際、各アプリケーションに固有のユーザ識別子(以下、UIDともいう)が割り当てられる。アプリケーションは、制御部10によって、OS上においてUIDに対応づけられるプロセスとして実行される。
[application]
The application is installed in the communication device 1 so as to be executable by the control unit 10 and stored in the storage unit 12. When an application is installed in the communication device 1, a unique user identifier (hereinafter also referred to as a UID) is assigned to each application. The application is executed by the control unit 10 as a process associated with the UID on the OS.

アプリケーションは、制御部10で実行される際に、ファイルシステムなどのリソースに対してアクセスする。各アプリケーションが無制限にリソースにアクセスすると、各アプリケーションによるリソースの使用領域が重複することがあり、この場合アプリケーションが正常に実行されなくなることがある。そこで、OS上で実行されるプロセスに対応づけられるUIDによってリソースに対するアクセスを制限し、アプリケーションによるリソース使用が互いに影響を及ぼさないようにする。つまり、各プロセスからアクセス可能なリソースは、同一のUIDに対応づけられるプロセスのリソースに制限される。   When executed by the control unit 10, the application accesses resources such as a file system. When each application accesses a resource without restriction, the use area of the resource by each application may overlap, and in this case, the application may not be executed normally. Therefore, the access to the resource is restricted by the UID associated with the process executed on the OS, so that the resource use by the applications does not affect each other. That is, the resources accessible from each process are limited to the resources of the process associated with the same UID.

各アプリケーションには、グループ識別子(以下、GIDまたはグループのIDともいう)がさらに割り当てられてもよい。GIDは、各アプリケーションに割り当てられる固有のUIDが属するグループを特定するものである。一つのグループに一個のUIDだけが属してもよいし、一つのグループに複数のUIDが属してもよい。アプリケーションがUIDに対応づけられるプロセスとして実行される際、このプロセスはGIDにも対応づけられるようにしてもよい。また、各プロセスからアクセス可能なリソースは、同一のUIDだけでなく同一のGIDに対応づけられるプロセスのリソースにまで対象を広げて制限されるようにしてもよい。   Each application may be further assigned a group identifier (hereinafter, also referred to as a GID or a group ID). The GID identifies a group to which a unique UID assigned to each application belongs. Only one UID may belong to one group, or multiple UIDs may belong to one group. When an application is executed as a process associated with UID, this process may be associated with GID. Also, resources accessible from each process may be extended and limited to resources of processes associated with the same GID as well as the same UID.

アプリケーションは、フォアグラウンド(以下、FGともいう)、または、バックグラウンド(以下、BGともいう)で実行される。アプリケーションがFGで実行されている状態は、例えば、ユーザが確認可能なように実行状況が表示部13に表示される、または、ユーザが操作部14を用いて操作可能な状態である。アプリケーションがBGで実行されている状態は、例えば、実行状況が表示部13に表示されず、ユーザが操作可能ではない状態、または、ユーザが意図せずに動作している状態である。   The application is executed in the foreground (hereinafter also referred to as FG) or in the background (hereinafter also referred to as BG). The state in which the application is being executed by the FG is, for example, a state in which the execution status is displayed on the display unit 13 so that the user can check, or a user can operate using the operation unit 14. The state in which the application is being executed in BG is, for example, a state in which the execution status is not displayed on the display unit 13 and is not operable by the user, or a state in which the user operates unintentionally.

[データ通信の制御]
制御部10によって実行されるアプリケーションは、通信部11を用いて、インターネットなどのネットワーク側とのデータ通信を行う。上述の通り、アプリケーションはOS上においてUIDに対応づけられるプロセスとして実行される。そして、アプリケーションから送信されるデータにはUIDが対応づけられる。制御部10は、データに対応づけられたUIDに基づいてデータの送信を許可するか禁止(制限)するか決定することによって、各アプリケーションから送信されるデータに係るデータ通信を許可するか禁止するか制御できる。以下、本実施形態に係る説明においては、データ通信は、原則的に通信部11がネットワーク側との間で行うデータ通信のことを指すものとする。
[Control of data communication]
The application executed by the control unit 10 performs data communication with a network side such as the Internet using the communication unit 11. As described above, the application is executed as a process that is mapped to the UID on the OS. Then, UID is associated with data transmitted from the application. The control unit 10 permits or prohibits data communication relating to data transmitted from each application by determining whether to permit or prohibit (restrict) transmission of data based on the UID associated with the data. Can control. Hereinafter, in the description according to the present embodiment, the data communication basically refers to data communication performed by the communication unit 11 with the network side.

図3は、本実施形態に係るデータの流れの一例を示すブロック図である。図3において、制御部10と通信部11とが端末側に設けられる。そして、通信部11がネットワーク側と接続され、ネットワーク側との間でデータ通信を行う。   FIG. 3 is a block diagram showing an example of the flow of data according to the present embodiment. In FIG. 3, the control unit 10 and the communication unit 11 are provided on the terminal side. Then, the communication unit 11 is connected to the network side, and performs data communication with the network side.

図3において、制御部10は、アプリケーションA16aとアプリケーションB16bとをOS上におけるプロセスとして実行する。制御部10によって実行されるアプリケーションは、必要に応じてネットワーク側とのデータ通信を要求する。例えば、アプリケーションA16aは、ネットワーク側へ向けてデータの送信を要求する。この場合、アプリケーションA16aからネットワーク側へ向けて送信するデータは、制御部10で稼働するパケットフィルタ15に入力される。また、アプリケーションB16bからも同様に、アプリケーションB16bからネットワーク側へ向けて送信するデータがパケットフィルタ15に入力される。   In FIG. 3, the control unit 10 executes the application A 16a and the application B 16b as processes on the OS. The application executed by the control unit 10 requests data communication with the network side as needed. For example, the application A 16a requests transmission of data toward the network side. In this case, data transmitted from the application A 16 a to the network side is input to the packet filter 15 operated by the control unit 10. Similarly, data to be transmitted from the application B 16 b to the network side is also input to the packet filter 15 from the application B 16 b.

パケットフィルタ15は、制御部10からネットワーク側へ向かうデータのフィルタリング処理を行う。フィルタリング処理は、設定されたフィルタリング条件に基づいて、アプリケーションから要求されたデータの送信を許可するか禁止するか決定する処理である。フィルタリング条件は、例えば、ip_ruleまたはip_routeなどを含む。これらのフィルタリング条件は、記憶部12に格納されており、パケットフィルタ15によって参照される。以下、フィルタリング条件を設定する動作は、フィルタリング条件を記憶部12に格納する動作を含むものとする。なお、フィルタリング条件は、記憶部12に格納されずに制御部10に保持されていてもよい。   The packet filter 15 performs filtering processing of data from the control unit 10 toward the network side. The filtering process is a process of determining whether transmission of data requested by the application is permitted or prohibited based on the set filtering condition. The filtering conditions include, for example, ip_rule or ip_route. These filtering conditions are stored in the storage unit 12 and referred to by the packet filter 15. Hereinafter, the operation of setting the filtering condition includes an operation of storing the filtering condition in the storage unit 12. The filtering conditions may be stored in the control unit 10 without being stored in the storage unit 12.

ip_ruleは、例えば、送信元がXであるデータをネットワーク側へ送信してよいか決定するための条件を含む。ip_routeは、例えば、送信先としてYが指定されたデータをネットワーク側へ送信するルート(中継ルータなど)を決定するための条件を含む。   ip_rule includes, for example, a condition for determining whether data whose transmission source is X may be transmitted to the network side. The ip_route includes, for example, a condition for determining a route (such as a relay router) for transmitting data for which Y is designated as a transmission destination to the network side.

図3において、アプリケーションA16aから送信されるデータの流れが実線の矢印で示され、アプリケーションB16bから送信されるデータの流れが破線の矢印で示される。このうち、アプリケーションA16aから送信されるデータは、パケットフィルタ15におけるフィルタリング処理によって送信が禁止されず、通信部11に送られる。一方、アプリケーションB16bから送信されるデータは、パケットフィルタ15におけるフィルタリング処理によって送信が禁止され、通信部11に送られない。この動作は、図3において破線の矢印がrejectという記載に向けられることで示される。   In FIG. 3, the flow of data transmitted from the application A 16 a is indicated by a solid arrow, and the flow of data transmitted from the application B 16 b is indicated by a dashed arrow. Among these, the data transmitted from the application A 16 a is sent to the communication unit 11 without being prohibited from being transmitted by the filtering process in the packet filter 15. On the other hand, the data transmitted from the application B 16 b is prohibited from being transmitted by the filtering process in the packet filter 15 and is not sent to the communication unit 11. This operation is shown in FIG. 3 by the dashed arrow pointing to the description of reject.

パケットフィルタ15を通過したデータ(図3の場合、実線の矢印で示されるアプリケーションA16aから送信されるデータ)は、通信部11に入力される。通信部11は、I/Fデバイス111を用いて、ネットワーク側へデータを送信する。通信部11は、ネットワーク側へデータを送信するに際して、モデム112によるセルラ通信を用いるか、無線LANデバイス113による無線LAN通信を用いるか、または、他の通信方式を用いるか適宜決定しうる。   The data that has passed through the packet filter 15 (data transmitted from the application A 16 a indicated by a solid arrow in the case of FIG. 3) is input to the communication unit 11. The communication unit 11 transmits data to the network side using the I / F device 111. When transmitting data to the network side, the communication unit 11 can appropriately determine whether to use cellular communication with the modem 112, use wireless LAN communication with the wireless LAN device 113, or use another communication method.

[フィルタリング処理]
アプリケーションから送信されるデータについてのデータ通信を許可するか禁止するかは、データ送信元のアプリケーションに割り当てられるUIDに基づいて決定される。以下、UIDとしてXが割り当てられるアプリケーション(以下、UIDがXのアプリケーションともいう)から送信されるデータのことを、UIDがXのデータともいう。また、UIDがXのデータのフィルタリング処理を行うために用いられるフィルタリング条件を、UIDがXのデータのフィルタリング条件ともいう。
[Filtering process]
Whether to permit or prohibit data communication of data transmitted from an application is determined based on the UID assigned to the application of the data transmission source. Hereinafter, data transmitted from an application to which X is assigned as a UID (hereinafter, also referred to as an application with a UID of X) is also referred to as data with a UID of X. Further, the filtering condition used to perform the filtering process of the data of UID X is also referred to as the filtering condition of data of UID X.

パケットフィルタ15は、例えば、UIDが1のアプリケーションから送信されるデータに係るデータ通信のみ許可するというフィルタリング条件を有する。また、フィルタリング条件は、複数の条件をあわせたものであってもよい。   The packet filter 15 has, for example, a filtering condition that only data communication related to data transmitted from an application having a UID of 1 is permitted. The filtering condition may be a combination of a plurality of conditions.

ここで、本実施形態に係るフィルタリング処理が行われる場合のデータ通信のシーケンスを説明する。本実施形態に係るフィルタリング処理は、BG動作しているアプリケーションが送信するデータに係るデータ通信の許可または禁止を決定することを前提とする。以下の本実施形態に係るフィルタリング処理の説明は上記前提に基づく。   Here, a sequence of data communication in the case where the filtering process according to the present embodiment is performed will be described. The filtering process according to the present embodiment is premised on determining permission or prohibition of data communication related to data to be transmitted by an application operating in BG. The following description of the filtering process according to the present embodiment is based on the above premise.

本実施形態に係るフィルタリング処理は、デフォルトでデータ通信を禁止するというフィルタリング条件(以下、デフォルト通信禁止条件ともいう)が設定されている。デフォルト通信禁止条件が設定されていることによって、他のフィルタリング条件がさらに設定されない限り、全てのデータ通信が禁止される。デフォルト通信禁止条件は、通信装置1の出荷時に設定されたり、通信装置1の初期化時に設定されたりする。すなわち、本実施形態において、「デフォルト」とは、所定のタイミング(例えば、通信装置1の出荷時、または通信装置1の初期化時など)で、標準の動作として予め設定されていることを意味するものとする。   In the filtering process according to the present embodiment, a filtering condition (hereinafter, also referred to as a default communication prohibition condition) that prohibits data communication by default is set. By setting the default communication prohibition condition, all data communication is prohibited unless another filtering condition is further set. The default communication prohibition condition is set when the communication device 1 is shipped, or set when the communication device 1 is initialized. That is, in the present embodiment, “default” means that it is preset as a standard operation at a predetermined timing (for example, at the time of shipment of the communication device 1 or at the time of initialization of the communication device 1). It shall be.

本実施形態においては、必要なデータ通信を実行するために、デフォルト通信禁止条件に加えて、データ通信を許可するための条件(以下、通信許可条件ともいう)が設定されたフィルタリング条件が用いられる。この場合、通信許可条件は、デフォルト通信禁止条件に優先する。   In this embodiment, in order to execute necessary data communication, filtering conditions in which conditions for permitting data communication (hereinafter also referred to as communication permission conditions) are set in addition to the default communication prohibition conditions are used. . In this case, the communication permission condition takes precedence over the default communication prohibition condition.

図4は、本実施形態に係るフィルタリング処理のシーケンスを説明する図である。図4には、アプリケーションA16a、アプリケーションB16b、フレームワーク、通信制御部、カーネル、およびモデム112のシーケンスが示されている。   FIG. 4 is a diagram for explaining the sequence of the filtering process according to the present embodiment. FIG. 4 shows the sequence of the application A 16a, the application B 16b, the framework, the communication control unit, the kernel, and the modem 112.

モデム112は、上述の通り、セルラ通信を行う通信インタフェースとして機能するハードウェアである。図4においては、モデム112を用いたセルラ通信によるデータ通信について説明しているが、モデム112ではなく、無線LANデバイス113などの他のI/Fデバイス111に置き換えて、他の通信方式によるデータ通信を行ってもよい。   The modem 112 is hardware that functions as a communication interface for performing cellular communication, as described above. Although FIG. 4 describes data communication by cellular communication using the modem 112, data is replaced by another I / F device 111 such as the wireless LAN device 113 instead of the modem 112, and data by another communication method is used. Communication may be performed.

カーネル、通信制御部、およびフレームワークはソフトウェアであり、制御部10で実行される。図4において、通信制御部にはUIDとして0が割り当てられる。   The kernel, the communication control unit, and the framework are software and are executed by the control unit 10. In FIG. 4, 0 is assigned to the communication control unit as a UID.

フレームワークは、OS上においてアプリケーションを動作させるための機能群を含むソフトウェアである。一般的に、フレームワークで準備された機能群を組み合わせることによって、各アプリケーションの機能が実現される。   The framework is software including a group of functions for operating an application on the OS. Generally, the functions of each application are realized by combining the functions prepared by the framework.

カーネルは、OSの中核をなすソフトウェアであり、アプリケーションなどのソフトウェアによる処理に基づき、通信部11などのハードウェアにおける処理を管理して、ハードウェアの機能を利用できるようにする。   The kernel is software that is the core of the OS, and manages processing in hardware such as the communication unit 11 based on processing by software such as an application so that hardware functions can be used.

通信制御部は、ネットワーク関連の処理を行うデーモンプログラムであり、フレームワークとカーネルとの間をつなぐ処理をする。通信制御部は、特に、カーネルが通信部11の機能を利用できるようにするためのデータを処理する。本実施形態において、通信制御部は、カーネルが通信部11へのデータ出力を許可するか禁止するか決定するための条件をカーネルに出力する。   The communication control unit is a daemon program that performs network related processing, and performs processing to connect the framework and the kernel. The communication control unit particularly processes data for enabling the kernel to use the function of the communication unit 11. In the present embodiment, the communication control unit outputs, to the kernel, a condition for determining whether the kernel permits or prohibits data output to the communication unit 11.

本実施形態において、フィルタリング処理はパケットフィルタ15によって行われるものとして説明する。ここで、パケットフィルタ15は仮想的な処理ユニットであり、実際のフィルタリング処理は、通信制御部とカーネルとによって行われる。   In the present embodiment, the filtering process will be described as being performed by the packet filter 15. Here, the packet filter 15 is a virtual processing unit, and the actual filtering process is performed by the communication control unit and the kernel.

アプリケーションA16aおよびアプリケーションB16bは、OS上において動作するプロセスである。図4において、アプリケーションA16aにはUIDとして1が割り当てられ、アプリケーションB16bにはUIDとして2が割り当てられる。   The application A 16 a and the application B 16 b are processes that operate on the OS. In FIG. 4, 1 is assigned to the application A 16 a as UID, and 2 is assigned to the application B 16 b as UID.

以下、図4に示されるシーケンスを説明する。BG動作するアプリケーションがデータを送信する場合、デフォルトでセルラ通信によるデータ通信が禁止されている(ステップS1)。つまり、フィルタリング条件として、BG動作するアプリケーションから送信されるデータに係るデフォルト通信禁止条件が設定されている。図4において、デフォルト通信禁止条件が設定されていることは、カーネル、通信制御部、およびフレームワークによって認識されている。特に、カーネルは、デフォルト通信禁止条件が設定されていることを認識している場合、モデム112に対するデータの送信を行わない。   Hereinafter, the sequence shown in FIG. 4 will be described. When an application operating in BG transmits data, data communication by cellular communication is inhibited by default (step S1). That is, as the filtering condition, the default communication prohibition condition relating to the data transmitted from the application operating in BG is set. In FIG. 4, the kernel, the communication control unit, and the framework recognize that the default communication prohibition condition is set. In particular, the kernel does not transmit data to the modem 112 if it recognizes that the default communication prohibition condition is set.

続いて、アプリケーションがBGで動作する場合のUIDが1のデータに係るデータ通信の許可要求(以下、UIDが1のデータの通信許可要求ともいう)を、フレームワークが取得する(ステップS2)。続いて、フレームワークは、UIDが1のデータの通信許可要求を通信制御部に出力する(ステップS3)。   Subsequently, the framework acquires a permission request for data communication (hereinafter, also referred to as a communication permission request for data with a UID of 1) related to data with a UID of 1 when the application operates with BG (step S2). Subsequently, the framework outputs a communication permission request for data having a UID of 1 to the communication control unit (step S3).

通信制御部は、UIDが1のデータの通信許可要求を取得する(ステップS4)。続いて通信制御部は、UIDが1のデータの通信許可要求をカーネルに出力する(ステップS5)。   The communication control unit acquires a communication permission request for data having a UID of 1 (step S4). Subsequently, the communication control unit outputs a communication permission request for data having a UID of 1 to the kernel (step S5).

カーネルは、UIDが1のデータの通信許可要求を取得する(ステップS6)。以上のステップS3〜S6の動作によって、カーネルにUIDが1のデータの通信許可要求が伝達される。つまり、フィルタリング条件として、UIDが1のデータに係る通信許可条件が設定される。   The kernel acquires a communication permission request for data whose UID is 1 (step S6). A communication permission request for data with a UID of 1 is transmitted to the kernel by the operations of steps S3 to S6 described above. That is, as the filtering condition, the communication permission condition related to the data whose UID is 1 is set.

続いて、アプリケーションA16aがBG動作においてデータ通信を要求する場合(ステップS7)、カーネルは、UIDが1のデータに係る通信許可条件が設定されていることを認識しているので、データ通信を許可する(ステップS8)。そして、モデム112は、UIDが1のデータをネットワーク側へ送信するデータ通信を行う(ステップS9)。   Subsequently, when the application A 16 a requests data communication in the BG operation (step S 7), the kernel recognizes that the communication permission condition related to the data with UID 1 is set, and thus the data communication is permitted. (Step S8). Then, the modem 112 performs data communication to transmit data having a UID of 1 to the network side (step S9).

一方、UIDとして2が割り当てられるアプリケーションB16bがBG動作においてデータ通信を要求する場合(ステップS10)、カーネルは、UIDが2のデータに係る通信許可条件が設定されていないことを認識している。よって、カーネルは、デフォルト通信禁止条件に基づいて、データ通信を禁止する(ステップS11)。   On the other hand, when the application B 16b to which 2 is allocated as UID requests data communication in the BG operation (step S10), the kernel recognizes that the communication permission condition related to the data of UID 2 is not set. Therefore, the kernel prohibits data communication based on the default communication prohibition condition (step S11).

<アプリケーションからのデータ送信シーケンス>
図4のステップS7〜S9において、アプリケーションがデータ通信を要求してモデム112がデータ通信を行うことを説明した。以下、図5を用いて、これらのシーケンスをより具体的に説明する。図5には、アプリケーションA16a、フレームワーク、カーネル、およびモデム112のシーケンスが示されている。アプリケーションA16a、フレームワーク、カーネル、およびモデム112については、図4と同様であるため説明を省略する。
<Data transmission sequence from application>
In steps S7 to S9 in FIG. 4, it has been described that the application requests data communication and the modem 112 performs data communication. Hereinafter, these sequences will be more specifically described with reference to FIG. FIG. 5 shows the sequence of the application A 16a, the framework, the kernel, and the modem 112. The application A 16a, the framework, the kernel, and the modem 112 are the same as those in FIG.

アプリケーションA16aは、FGまたはBGのいずれで動作する場合であっても、アプリケーションA16aから送信されるデータ(UIDが1のデータ)に係るデータ通信の要求(以下、UIDが1のデータ通信要求ともいう)をアプリケーションA16aが動作しているOS上のフレームワークに対して出力する(ステップS101)。   The application A16a is also referred to as a data communication request (hereinafter, referred to as a data communication request with a UID of 1) related to data (data with a UID of 1) transmitted from the application A16a, regardless of whether it is operated by FG or BG ) Is output to the framework on the OS where the application A 16a is operating (step S101).

フレームワークは、UIDが1のデータ通信要求を取得する(ステップS102)。続いてフレームワークは、UIDが1のデータ通信要求をカーネルに出力する(ステップS103)。   The framework acquires a data communication request with a UID of 1 (step S102). Subsequently, the framework outputs a data communication request with a UID of 1 to the kernel (step S103).

カーネルは、UIDが1のデータ通信要求を取得する(ステップS104)。続いてカーネルは、モデム112に対してUIDが1のデータ通信要求に基づいてデータを出力する(ステップS105)。そしてモデム112は、UIDが1のデータをネットワーク側へ送信するデータ通信を行う(ステップS106)。   The kernel acquires a data communication request with a UID of 1 (step S104). Subsequently, the kernel outputs data to the modem 112 based on the data communication request with a UID of 1 (step S105). Then, the modem 112 performs data communication to transmit data having a UID of 1 to the network side (step S106).

以上説明してきた図5に示されるシーケンスの動作によって、アプリケーションから送信するデータが通信部11に出力され、ネットワーク側へ送信される。   By the operation of the sequence shown in FIG. 5 described above, data transmitted from the application is output to the communication unit 11 and transmitted to the network side.

<比較例>
ここまで説明してきた本実施形態に係るフィルタリング処理によれば、デフォルト通信禁止条件に加えて、通信許可条件がユーザによって明示的に追加されるので、ユーザの意図しないデータ通信を禁止できる可能性が高くなる。以下、本実施形態の比較例に係るフィルタリング処理について説明する。比較例に係るフィルタリング処理で用いられるフィルタリング条件には、デフォルトで全てのデータに係るデータ通信を許可するという条件(以下、デフォルト通信許可条件ともいう)が設定される。このように全てのデータに係るデータ通信が許可された上で、ユーザによって指定されたUIDのデータに係るデータ通信を禁止するという条件(以下、通信禁止条件ともいう)がさらに設定される。
Comparative Example
According to the filtering process according to the present embodiment described above, in addition to the default communication prohibition condition, the communication permission condition is explicitly added by the user, so that data communication unintended by the user may be prohibited. Get higher. Hereinafter, the filtering process according to the comparative example of the present embodiment will be described. As the filtering condition used in the filtering process according to the comparative example, a condition (hereinafter also referred to as a default communication permission condition) of permitting data communication related to all data by default is set. As described above, after the data communication relating to all the data is permitted, a condition (hereinafter also referred to as a communication prohibition condition) for prohibiting the data communication relating to the data of the UID designated by the user is further set.

図6は、比較例に係るフィルタリング処理のシーケンスを説明する図である。アプリケーションA16a、アプリケーションB16b、フレームワーク、通信制御部、カーネル、およびモデム112については、図4および図5と同様であるため説明を省略する。   FIG. 6 is a diagram for explaining the sequence of the filtering process according to the comparative example. The application A 16a, the application B 16b, the framework, the communication control unit, the kernel, and the modem 112 are the same as in FIG. 4 and FIG.

図6において、BG動作するアプリケーションがデータを送信する場合であっても、デフォルトでセルラ通信によるデータ通信が許可されている(ステップS201)。つまり、フィルタリング条件として、BG動作するアプリケーションから送信されるデータに係るデフォルト通信許可条件が設定されている。   In FIG. 6, even when the application operating in BG transmits data, data communication by cellular communication is permitted by default (step S201). That is, as the filtering condition, the default communication permission condition relating to the data transmitted from the application performing BG operation is set.

続いて、アプリケーションA16aがBG動作する場合におけるUIDが1のデータに係るデータ通信の禁止要求(以下、UIDが1のデータの通信禁止要求ともいう)を、フレームワークが取得する(ステップS202)。この時点においては、アプリケーションA16aがBG動作していないため、UIDが1のデータに係る通信禁止条件は設定されない。   Subsequently, the framework acquires a data communication prohibition request (hereinafter also referred to as a communication prohibition request for data with a UID of 1) related to data with a UID of 1 when the application A 16a performs a BG operation (step S202). At this time, since the application A 16a is not performing BG operation, the communication prohibition condition related to the data of UID 1 is not set.

続いて、アプリケーションA16aがBG動作に移行した通知(以下、BG移行通知ともいう)をフレームワークが取得する(ステップS203)。通知を受けたフレームワークは、UIDが1のデータの通信禁止要求を通信制御部に出力する(ステップS204)。   Subsequently, the framework acquires a notification that the application A 16a has shifted to the BG operation (hereinafter, also referred to as a BG transition notification) (step S203). The framework that has received the notification outputs a communication prohibition request for data with a UID of 1 to the communication control unit (step S204).

通信制御部は、UIDが1のデータの通信禁止要求を取得する(ステップS205)。続いて通信制御部は、UIDが1のデータの通信禁止要求をカーネルに出力する(ステップS206)。   The communication control unit acquires a communication prohibition request for data whose UID is 1 (step S205). Subsequently, the communication control unit outputs a communication prohibition request for data whose UID is 1 to the kernel (step S206).

カーネルは、UIDが1のデータの通信禁止要求を取得する(ステップS207)。以上のステップS202〜S207の動作によって、カーネルにUIDが1のデータの通信禁止要求が伝達される。つまり、フィルタリング条件として、UIDが1のデータに係る通信禁止条件が設定される。   The kernel acquires a communication prohibition request for data with a UID of 1 (step S207). Through the above-described operations of steps S202 to S207, the kernel is notified of a request to prohibit communication with data having a UID of 1. That is, as the filtering condition, the communication prohibition condition related to the data of UID 1 is set.

続いて、アプリケーションA16aがBG動作においてデータ通信を要求する場合(ステップS208)、カーネルは、UIDが1のデータに係る通信禁止条件が設定されていることを認識しているので、データ通信を禁止する(ステップS209)。   Subsequently, when the application A 16 a requests data communication in the BG operation (step S 208), the kernel recognizes that the communication prohibition condition related to the data of UID 1 is set, and thus the data communication is prohibited. (Step S209).

一方、UIDとして2が割り当てられるアプリケーションB16bがBG動作においてデータ通信を要求する場合(ステップS210)、カーネルは、UIDが2のデータに係る通信禁止条件が設定されていないことを認識している。よって、カーネルは、デフォルト通信許可条件に基づいて、データ通信を許可する(ステップS211)。そして、モデム112は、UIDが2のデータをネットワーク側へ送信するデータ通信を行う(ステップS212)。   On the other hand, when the application B 16b to which 2 is allocated as UID requests data communication in the BG operation (step S210), the kernel recognizes that the communication prohibition condition related to the data of UID 2 is not set. Therefore, the kernel permits data communication based on the default communication permission condition (step S211). Then, the modem 112 performs data communication to transmit data of UID 2 to the network side (step S212).

以上、比較例に係るフィルタリング処理について説明してきた。比較例では、デフォルト通信許可条件が設定されているため、ユーザによって明示的に追加のフィルタリング条件が設定されていないアプリケーションB16bのBG動作におけるデータ通信は許可される。よって、ユーザがアプリケーションB16bの動作を認識しない場合、ユーザが意図しないデータ通信が行われることがある。   The filtering process according to the comparative example has been described above. In the comparative example, since the default communication permission condition is set, the data communication in the BG operation of the application B 16b in which the additional filtering condition is not explicitly set by the user is permitted. Therefore, when the user does not recognize the operation of the application B 16 b, data communication that the user does not intend may be performed.

一方、本実施形態においては、フィルタリング条件として、デフォルト通信禁止条件が設定される。その上で、ユーザが指定したUIDのデータに係る通信許可条件がさらに設定される。この場合、デフォルトで全てのデータについてデータ通信が禁止されていることによって、ユーザが意図しないデータ通信を禁止できる可能性が高くなる。   On the other hand, in the present embodiment, a default communication prohibition condition is set as the filtering condition. Then, the communication permission condition related to the data of the UID designated by the user is further set. In this case, by prohibiting data communication for all data by default, there is a high possibility that data communication not intended by the user can be prohibited.

以上、本実施形態およびその比較例に係るフィルタリング処理について説明してきた。本実施形態に係るフィルタリング処理においては、比較例に係るフィルタリング処理と異なり、デフォルトで全てのデータについてデータ通信が禁止されている。そして、ユーザによって明示的に、フィルタリング条件としてユーザが指定したUIDのデータに係る通信許可条件が設定されることによって、ユーザが意図するデータ通信を可能としている。   The filtering process according to the present embodiment and the comparative example has been described above. In the filtering process according to the present embodiment, unlike the filtering process according to the comparative example, data communication is prohibited for all data by default. Then, the communication permission condition related to the data of the UID specified by the user as the filtering condition is explicitly set by the user, thereby enabling the data communication intended by the user.

以上のような構成をとる本実施形態に係るフィルタリング処理によれば、ユーザによって明示的にフィルタリング条件が設定されていないアプリケーションB16bから送信されるデータに係るデータ通信を禁止できる。つまり、ユーザの意図しないデータ通信は禁止される可能性が高くなる。   According to the filtering process according to the present embodiment having the above-described configuration, it is possible to prohibit data communication related to data transmitted from the application B 16 b whose filtering condition is not explicitly set by the user. That is, data communication unintended by the user is likely to be prohibited.

本実施形態において、I/Fデバイス111としてモデム112を用いるセルラ通信方式によるデータ通信を禁止する方法について主に説明してきた。しかし、I/Fデバイス111はモデム112に限られず、無線LANデバイス113などであってもよい。つまり、本実施形態に係る通信装置1のデータ通信の制御方法は、セルラ通信方式によるデータ通信に限られず、無線LAN通信方式などの他の通信方式によるデータ通信においても適用されうる。   In the present embodiment, the method for prohibiting data communication by the cellular communication system using the modem 112 as the I / F device 111 has been mainly described. However, the I / F device 111 is not limited to the modem 112, and may be the wireless LAN device 113 or the like. That is, the control method of data communication of the communication apparatus 1 according to the present embodiment is not limited to data communication by the cellular communication method, and may be applied to data communication by other communication method such as wireless LAN communication method.

また本実施形態において、データ通信が許可されたデータを送信するために必要となる機能については、デフォルトでデータ通信を許可するようにしてもよい。デフォルトでデータ通信を許可される機能は、例えば、VPN(Vertual Private Network)のトンネリング機能、DNS(Domain Name System)の名前解決機能、またはテザリング機能などである。これらの機能に係るデータ通信は、ユーザが意図した場合に動作するものに限り、許可されてもよい。これらの機能に係るデータ通信を許可する条件は、デフォルト通信禁止条件に優先するフィルタリング条件として設定されてもよい。   Further, in the present embodiment, data communication may be permitted by default for a function required to transmit data for which data communication is permitted. The functions that are permitted to perform data communication by default are, for example, a tunneling function of a VPN (Vertual Private Network), a name resolution function of a DNS (Domain Name System), or a tethering function. Data communication relating to these functions may be permitted only as long as it operates when the user intends. The conditions for permitting data communication according to these functions may be set as filtering conditions prior to the default communication prohibition conditions.

また、本実施形態に係るフィルタリング処理は、BG動作しているアプリケーションのデータ通信について行われたが、これには限られず、FG動作しているアプリケーションのデータ通信について行われてもよい。つまり、本実施形態に係るフィルタリング処理は、FG動作しているアプリケーションが送信するデータに係るデータ通信の許可または禁止を決定してもよい。   In addition, although the filtering process according to the present embodiment is performed for data communication of the application performing BG operation, the present invention is not limited thereto, and the data communication of the application performing FG operation may be performed. That is, in the filtering process according to the present embodiment, permission or prohibition of data communication related to data transmitted by an application operating in FG may be determined.

(第2実施形態)
次に、本発明の第2実施形態に係る通信装置について説明する。上記の第1実施形態においては、アプリケーションのIDおよびフィルタリング条件に基づいてデータ通信を制御する構成について説明した。一方、第2実施形態に係る通信装置は、アプリケーションのIDおよびフィルタリング条件に基づいてDNS(Domain Name System)処理を制御する点で、第1実施形態と相違する。
Second Embodiment
Next, a communication apparatus according to a second embodiment of the present invention will be described. In the above first embodiment, the configuration for controlling data communication based on the application ID and the filtering condition has been described. On the other hand, the communication apparatus according to the second embodiment is different from the first embodiment in that it controls DNS (Domain Name System) processing based on the application ID and the filtering condition.

第2実施形態に係る通信装置1は、第1実施形態と同様に、制御部10と、通信部11と、記憶部12と、表示部13と、操作部14とを備える(図1参照)。以下の説明において、第1実施形態と同一の構成については、同一の符号を付し、説明は省略する。   The communication apparatus 1 according to the second embodiment includes the control unit 10, the communication unit 11, the storage unit 12, the display unit 13, and the operation unit 14 as in the first embodiment (see FIG. 1). . In the following description, the same components as those of the first embodiment are denoted by the same reference numerals, and the description thereof is omitted.

まず、一般的なDNS処理(名前解決処理)の概略について説明する。例えばOSの提供者が提供するOS(標準OS)がインストールされたスマートフォンなどの通信機器は、アプリケーションからネットワークへの接続要求(例えば、データ通信の要求)に応じてデータ通信を行うに際し、まずは当該接続要求に基づくDNS処理を実行する。具体的には、通信機器は、アプリケーションからネットワークへの接続要求を取得すると、DNS処理を行うためのデータ、具体的にはアプリケーションからの要求に係るドメインを含むパケット(DNS要求パケット)を、例えば外部のDNSサーバへ送信する。続いて通信機器は、DNSサーバから応答データ、具体的にはアプリケーションからの要求に係るドメインに対応するIPアドレスを含むパケット(DNS応答パケット)を取得する。このようにしてDNS処理が完了すると、通信機器は、取得されたIPアドレスに基づいてデータ通信を行う。以下、DNS処理において通信機器とDNSサーバとの間で行われる通信をDNSデータ通信といい、DNS処理の実行後に通信機器とネットワークとの間で行われるデータ通信と区別する。   First, an outline of a general DNS process (name resolution process) will be described. For example, a communication device such as a smartphone having an OS (standard OS) installed by an OS provider installed first performs data communication in response to a request for connection from an application to a network (for example, a request for data communication). Perform DNS processing based on connection request. Specifically, when the communication device acquires a connection request from the application to the network, the communication device performs data processing for DNS processing, specifically, a packet (DNS request packet) including a domain related to the request from the application, for example. Send to an external DNS server. Subsequently, the communication device acquires, from the DNS server, response data, specifically, a packet (DNS response packet) including an IP address corresponding to the domain related to the request from the application. Thus, when the DNS process is completed, the communication device performs data communication based on the acquired IP address. Hereinafter, communication performed between the communication device and the DNS server in the DNS processing is called DNS data communication, and is distinguished from data communication performed between the communication device and the network after execution of the DNS processing.

<第2実施形態に係るDNS処理>
次に、図7を参照して、本実施形態に係る通信装置1において実行されるDNS処理について、具体的に説明する。ここで、本実施形態に係る通信装置1にインストールされたOS(変更OS)は、上述した第1実施形態に係るOSに含まれる通信制御部およびカーネルそれぞれに、DNS処理を制御するための特定のコード(特定コード)が追加されたOSである。あるいは、変更OSは、第1実施形態に係るOSに含まれる通信制御部の一部のコードおよびカーネルの一部のコードそれぞれが、特定コードに修正されたOSであってもよい。あるいは、変更OSは、標準OSに対して、上述した特定コードの追加または修正が行われたOSであってもよい。
<DNS Processing According to Second Embodiment>
Next, with reference to FIG. 7, the DNS process executed in the communication device 1 according to the present embodiment will be specifically described. Here, the OS (modified OS) installed in the communication apparatus 1 according to the present embodiment is a specification for controlling DNS processing in each of the communication control unit and the kernel included in the OS according to the first embodiment described above. The OS's code (specific code) is added. Alternatively, the change OS may be an OS in which a part of the code of the communication control unit included in the OS according to the first embodiment and a part of the code of the kernel are each modified to a specific code. Alternatively, the change OS may be an OS in which the above-described specific code is added or modified with respect to the standard OS.

また、以下の説明おいて、アプリケーションがFGで動作するかBGで動作するかにかかわらずデフォルトで全てのアプリケーション(全てのUIDおよびGID)のセルラ通信によるデータ通信が禁止されており、例外としてデータ通信を許可するID(特定ID)が個別に追加設定される構成について例示する。例えば、特定IDとして、通信制御部のUID(UID=0)を含むDNS処理に必要な全てのUIDが予め設定されているが、特定IDとして他のUIDが追加で設定されてもよい。例えば、第1実施形態と同様に、通信装置1に対するユーザ入力に基づいて識別されたアプリケーションのUIDが、特定IDとして追加で設定されてもよい。   Also, in the following description, data communication by cellular communication of all applications (all UIDs and GIDs) is prohibited by default regardless of whether the application operates with FG or BG, and the exception is data An example of a configuration in which an ID (specific ID) for permitting communication is added and set individually is illustrated. For example, although all UIDs necessary for DNS processing including the UID (UID = 0) of the communication control unit are set in advance as the specific ID, another UID may be additionally set as the specific ID. For example, as in the first embodiment, the UID of the application identified based on the user input to the communication device 1 may be additionally set as the specific ID.

はじめに、アプリケーションA(UID=1)は、ネットワークへの接続要求をフレームワークへ出力する(ステップS300)。当該接続要求には、例えばアプリケーションAのUID(UID=1)およびデータ通信先のドメインが含まれる。   First, the application A (UID = 1) outputs a connection request to the network to the framework (step S300). The connection request includes, for example, the UID of application A (UID = 1) and the domain of the data communication destination.

次に、フレームワークは、ステップS300でアプリケーションAから出力された接続要求を取得すると(ステップS301)、DNS処理要求を通信制御部へ出力する(ステップS302)。フレームワークから通信制御部へ出力される当該DNS処理要求のUIDは、アプリケーションAのUID(UID=)と同一である。
Next, when the framework acquires the connection request output from the application A in step S300 (step S301), the framework outputs a DNS processing request to the communication control unit (step S302). The UID of the DNS processing request output from the framework to the communication control unit is the same as the UID of application A (UID = 1 ).

次に、通信制御部は、ステップS302でフレームワークから出力されたDNS処理要求(UID=1)を取得する(ステップS303)。DNS処理要求が取得されると、通信制御部は、カーネルへ出力するためのDNS処理要求のUIDを、通信制御部のUID(UID=0)に定める。その後、上述のように通信制御部に追加された特定コード(第1特定コード)が実行される。   Next, the communication control unit acquires the DNS processing request (UID = 1) output from the framework in step S302 (step S303). When the DNS process request is acquired, the communication control unit determines the UID of the DNS process request to be output to the kernel as the UID (UID = 0) of the communication control unit. After that, the specific code (first specific code) added to the communication control unit as described above is executed.

第1特定コードの実行によって、通信制御部は、カーネルへ出力するためのDNS処理要求のUIDを、通信制御部のUID(UID=0)から、アプリケーションのUID(UID=1)に変更する(ステップS304)。すなわち、通信制御部に追加された第1特定コードの実行によって、カーネルへ出力するためのDNS処理要求のUIDが、通信制御部のUID(UID=0)ではなく、アプリケーションAのUID(UID=1)に定められる。そして、通信制御部は、第1特定コードの実行によってUIDが変更(決定)されたDNS処理要求(UID=1)を、カーネルへ出力する(ステップS305)。   By executing the first specific code, the communication control unit changes the UID of the DNS processing request for output to the kernel from the UID of the communication control unit (UID = 0) to the UID of the application (UID = 1) ( Step S304). That is, by executing the first specific code added to the communication control unit, the UID of the DNS processing request for output to the kernel is not the UID of the communication control unit (UID = 0) but the UID of application A (UID = It is defined in 1). Then, the communication control unit outputs, to the kernel, the DNS processing request (UID = 1) whose UID has been changed (determined) by the execution of the first specific code (step S305).

次に、カーネルは、ステップS305で通信制御部から出力されたDNS処理要求(UID=1)を取得する(ステップS306)。その後、上述のようにカーネルに追加された特定コード(第2特定コード)が実行される。   Next, the kernel acquires the DNS processing request (UID = 1) output from the communication control unit in step S305 (step S306). Thereafter, the specific code (second specific code) added to the kernel as described above is executed.

第2特定コードの実行によって、カーネルは、以下の動作を行う。はじめにカーネルは、通信制御部から取得されたDNS処理要求のUID(UID=1)が特定IDであるか否かを判定する(ステップS307)。UIDが特定IDではないと判定された場合(ステップS307−No)、カーネルは、DNS処理を抑制(終了)して(ステップS308)、例えばエラーを返す。一方、UIDが特定IDであると判定された場合(ステップS307−Yes)、カーネルは、DNS処理要求をモデム112へ出力する(ステップS309)。   Execution of the second specific code causes the kernel to perform the following operations. First, the kernel determines whether the UID (UID = 1) of the DNS processing request acquired from the communication control unit is a specific ID (step S307). If it is determined that the UID is not the specific ID (step S307-No), the kernel suppresses (ends) the DNS process (step S308) and returns, for example, an error. On the other hand, when it is determined that the UID is the specific ID (Yes in step S307), the kernel outputs a DNS processing request to the modem 112 (step S309).

そして、モデム112は、ステップS309でカーネルから出力されたDNS処理要求を取得すると(ステップS310)、DNSデータ通信を行う(ステップS311)。具体的には、モデム112は、DNS要求パケットをDNSサーバへ出力し、DNSサーバからDNS応答パケットを取得する。このようにしてDNS処理(名前解決)が完了すると、通信装置1は、アプリケーションからの要求に応じたデータ通信を開始する。   When the modem 112 acquires the DNS processing request output from the kernel in step S309 (step S310), the modem 112 performs DNS data communication (step S311). Specifically, the modem 112 outputs the DNS request packet to the DNS server, and acquires the DNS response packet from the DNS server. Thus, when the DNS process (name resolution) is completed, the communication device 1 starts data communication according to the request from the application.

このように、第2実施形態に係る通信装置1によれば、特定IDと一致するアプリケーションに対しては、DNSデータ通信(およびデータ通信)が許可される。一方、特定IDと一致しないアプリケーションに対しては、DNS処理が抑制される。DNS処理が抑制されることによって、DNSデータ通信(およびデータ通信)が発生しないため、例えば上述した第1実施形態と比較して、DNSデータ通信が発生しない分、ユーザが意図しない通信の発生がさらに低減可能である。また、特定IDと一致しないアプリケーションに対しては、カーネルからモデム112へDNS処理要求が出力されない。このため、例えばモデム112がドーマント状態である場合に、モデム112を起動させるための電力が消費されることが抑制可能である。   As described above, according to the communication device 1 according to the second embodiment, DNS data communication (and data communication) is permitted for the application matching the specific ID. On the other hand, DNS processing is suppressed for applications that do not match the specific ID. Since the DNS data communication (and data communication) does not occur by suppressing the DNS processing, for example, as compared with the first embodiment described above, the occurrence of the communication not intended by the user because the DNS data communication does not occur. It can be further reduced. In addition, the DNS processing request is not output from the kernel to the modem 112 for the application that does not match the specific ID. Therefore, for example, when the modem 112 is in the dormant state, it can be suppressed that the power for activating the modem 112 is consumed.

<比較例に係るDNS処理>
次に、図8を参照して、第2実施形態の比較例に係るDNS処理について説明する。比較例に係る通信装置1が行うDNS処理においては、上述した変更OSのうち、第1特定コードの実行が抑制される。
<DNS process according to comparative example>
Next, with reference to FIG. 8, DNS processing according to a comparative example of the second embodiment will be described. In the DNS process performed by the communication device 1 according to the comparative example, the execution of the first specific code of the above-described change OS is suppressed.

はじめに、アプリケーションA(UID=1)は、ネットワークへの接続要求をフレームワークへ出力する(ステップS400)。当該接続要求には、例えばアプリケーションAのUID(UID=1)およびデータ通信先のドメインが含まれる。   First, the application A (UID = 1) outputs a connection request to the network to the framework (step S400). The connection request includes, for example, the UID of application A (UID = 1) and the domain of the data communication destination.

次に、フレームワークは、ステップS400でアプリケーションAから出力された接続要求を取得すると(ステップS401)、DNS処理要求を通信制御部へ出力する(ステップS402)。フレームワークから通信制御部へ出力される当該DNS処理要求のUIDは、アプリケーションAのUID(UID=0)と同一である。   Next, when the framework acquires the connection request output from the application A in step S400 (step S401), the framework outputs a DNS processing request to the communication control unit (step S402). The UID of the DNS processing request output from the framework to the communication control unit is the same as the UID (UID = 0) of the application A.

次に、通信制御部は、ステップS402でフレームワークから出力されたDNS処理要求(UID=1)を取得する(ステップS403)。DNS処理要求が取得されると、通信制御部は、カーネルへ出力するためのDNS処理要求のUIDを、通信制御部のUID(UID=0)に定める。   Next, the communication control unit acquires the DNS processing request (UID = 1) output from the framework in step S402 (step S403). When the DNS process request is acquired, the communication control unit determines the UID of the DNS process request to be output to the kernel as the UID (UID = 0) of the communication control unit.

上述したステップS400−ステップS403は、第2実施形態に係るDNS処理におけるステップS300−ステップS303とそれぞれ同一である。   Steps S400 to S403 described above are respectively the same as steps S300 to S303 in the DNS process according to the second embodiment.

続いて、第1特定コードが実行されることなく、すなわちカーネルへ出力するためのDNS処理要求のUIDが変更されることなく、通信制御部は、DNS処理要求(UID=0)をカーネルへ出力する(ステップS404)。   Subsequently, the communication control unit outputs the DNS processing request (UID = 0) to the kernel without executing the first specific code, that is, without changing the UID of the DNS processing request for output to the kernel. (Step S404).

次に、カーネルは、ステップS404で通信制御部から出力されたDNS処理要求(UID=0)を取得する(ステップS405)。その後、上述のようにカーネルに追加された特定コード(第2特定コード)が実行される。ここでは、通信制御部は、取得されたDNS処理要求のUID(UID=0)が特定IDであると判定する(ステップS406)。そして、カーネルは、DNS処理要求をモデム112へ出力する(ステップS407)。   Next, the kernel acquires the DNS processing request (UID = 0) output from the communication control unit in step S404 (step S405). Thereafter, the specific code (second specific code) added to the kernel as described above is executed. Here, the communication control unit determines that the UID (UID = 0) of the acquired DNS processing request is the specific ID (step S406). Then, the kernel outputs a DNS processing request to the modem 112 (step S407).

そして、モデム112は、ステップS407でカーネルから出力されたDNS処理要求を取得すると(ステップS408)、DNSデータ通信を行う(ステップS409)。   When the modem 112 acquires the DNS processing request output from the kernel in step S407 (step S408), the modem 112 performs DNS data communication (step S409).

このように、比較例に係るDNS処理においては、上述した第1特定コードが実行されないため、データ通信を禁止すべきアプリケーションからの要求であっても、DNSデータ通信が発生してしまう。すなわち、比較例において、通信制御部からカーネルへ出力されるDNS処理要求のUIDが通信制御部のUID(UID=0)と同一であるため、カーネルは、通信制御部から取得されたDNS処理要求に基づいてアプリケーションのUIDを識別できず、アプリケーションのUIDに応じたDNS処理の制御を実行できない。   As described above, in the DNS process according to the comparative example, the above-described first specific code is not executed, and therefore, even if the request is from the application for which data communication should be prohibited, DNS data communication occurs. That is, in the comparative example, since the UID of the DNS processing request output from the communication control unit to the kernel is the same as the UID (UID = 0) of the communication control unit, the kernel receives the DNS processing request acquired from the communication control unit Can not identify the UID of the application based on and can not control the DNS process according to the UID of the application.

しかしながら、比較例に係る通信装置1によれば、データ通信を禁止するアプリケーションからの要求に応じて、上述のようにDNSデータ通信が発生してしまうものの、DNS処理の完了後のデータ通信については、第1実施形態と同様に禁止される。したがって、第1実施形態と同様に、ユーザが意図しない通信の発生が低減可能である。   However, according to the communication apparatus 1 according to the comparative example, although the DNS data communication occurs as described above according to the request from the application that prohibits the data communication, the data communication after the completion of the DNS processing is , The same as in the first embodiment. Therefore, as in the first embodiment, the occurrence of communication not intended by the user can be reduced.

以上述べたように、第2実施形態に係る通信装置1は、アプリケーションからネットワークへの接続要求を取得すると、当該アプリケーションのID(例えば、UID)に応じて、当該接続要求に基づくDNS処理を制御する。かかる構成によって、例えばデータ通信を禁止するアプリケーションからの要求に対しては、データ通信に加えて、DNSデータ通信も禁止可能である。したがって、データ通信を禁止するアプリケーションからの要求に対して、データ通信およびDNSデータ通信の双方が発生しないため、例えば第1実施形態と比較して、ユーザが意図しない通信の発生がさらに低減可能である。また、データ通信を禁止するアプリケーションに対しては、第2特定コードの実行によってカーネルがDNS処理を抑制するので、カーネルからモデム112へDNS処理要求が出力されない。このため、例えばモデム112がドーマント状態(休止状態)である場合に、モデム112をドーマント状態から復帰させるための電力が消費されることが抑制可能である。   As described above, when the communication device 1 according to the second embodiment acquires a connection request from the application to the network, the communication device 1 controls the DNS process based on the connection request according to the ID of the application (for example, UID). Do. With this configuration, for example, in addition to data communication, DNS data communication can also be prohibited in response to a request from an application that prohibits data communication. Therefore, both the data communication and the DNS data communication do not occur in response to the request from the application that prohibits the data communication, so that the occurrence of the communication not intended by the user can be further reduced compared to, for example, the first embodiment. is there. In addition, for the application that prohibits data communication, the kernel suppresses the DNS process by the execution of the second specific code, so the kernel does not output the DNS process request to the modem 112. Therefore, for example, when the modem 112 is in the dormant state (dormant state), it can be suppressed that the power for recovering the modem 112 from the dormant state is consumed.

(第3実施形態)
次に、本発明の第3実施形態に係る通信装置1について説明する。上記の第2実施形態においては、通信制御部およびカーネルにそれぞれ追加された特定コードの実行によってDNS処理を制御する構成について説明した。一方、第3実施形態に係る通信装置1は、フレームワークに追加された特定コードの実行によってDNS処理を制御する点で、第2実施形態と相違する。
Third Embodiment
Next, a communication apparatus 1 according to a third embodiment of the present invention will be described. In the second embodiment described above, the configuration has been described in which the DNS processing is controlled by execution of the specific code added to the communication control unit and the kernel. On the other hand, the communication device 1 according to the third embodiment is different from the second embodiment in that the DNS process is controlled by executing a specific code added to the framework.

第3実施形態に係る通信装置1は、第1実施形態および第2実施形態と同様に、制御部10と、通信部11と、記憶部12と、表示部13と、操作部14とを備える(図1参照)。以下の説明において、第1実施形態および第2実施形態と同一の構成については、同一の符号を付し、説明は省略する。   The communication device 1 according to the third embodiment includes the control unit 10, the communication unit 11, the storage unit 12, the display unit 13, and the operation unit 14 as in the first and second embodiments. (See Figure 1). In the following description, the same components as those in the first embodiment and the second embodiment are denoted by the same reference numerals, and descriptions thereof will be omitted.

<第3実施形態に係るDNS処理>
図9を参照して、本実施形態に係る通信装置1において実行されるDNS処理について、具体的に説明する。ここで、本実施形態に係る通信装置1にインストールされたOS(変更OS)は、上述した第1実施形態に係るOSに含まれるフレームワークに、DNS処理を制御するための特定コード(第3特定コード)が追加されたOSである。あるいは、変更OSは、第1実施形態に係るOSに含まれるフレームワークの一部のコードが、第3特定コードに修正されたOSであってもよい。あるいは、変更OSは、標準OSに対して、上述した第3特定コードの追加または修正が行われたOSであってもよい。
<DNS processing according to the third embodiment>
The DNS process executed in the communication device 1 according to the present embodiment will be specifically described with reference to FIG. Here, the OS (modified OS) installed in the communication apparatus 1 according to the present embodiment is a specific code (third code) for controlling the DNS processing in the framework included in the OS according to the first embodiment described above. OS) is added with a specific code). Alternatively, the change OS may be an OS in which a part of code of the framework included in the OS according to the first embodiment is modified to the third specific code. Alternatively, the change OS may be an OS in which the addition or modification of the third specific code described above is performed on the standard OS.

また、以下の説明おいて、アプリケーションがFGで動作するかBGで動作するかにかかわらずデフォルトで全てのアプリケーション(全てのUIDおよびGID)のセルラ通信によるデータ通信が禁止されており、例外としてデータ通信を許可するID(特定ID)が個別に追加設定される構成について例示する。例えば、特定IDとして、通信制御部のUID(UID=0)が予め設定されているが、特定IDとして他のUIDが追加で設定されてもよい。例えば、通信装置1に対するユーザ入力に基づいて識別されたアプリケーションのUIDが、特定IDとして追加で設定されてもよい。   Also, in the following description, data communication by cellular communication of all applications (all UIDs and GIDs) is prohibited by default regardless of whether the application operates with FG or BG, and the exception is data An example of a configuration in which an ID (specific ID) for permitting communication is added and set individually is illustrated. For example, although the UID (UID = 0) of the communication control unit is set in advance as the specific ID, another UID may be additionally set as the specific ID. For example, the UID of the application identified based on the user input to the communication device 1 may be additionally set as the specific ID.

はじめに、アプリケーションA(UID=1)は、ネットワークへの接続要求をフレームワークへ出力する(ステップS500)。当該接続要求には、例えばアプリケーションAのUID(UID=1)およびデータ通信先のドメインが含まれる。   First, the application A (UID = 1) outputs a connection request to the network to the framework (step S500). The connection request includes, for example, the UID of application A (UID = 1) and the domain of the data communication destination.

次に、フレームワークは、ステップS500でアプリケーションAから接続要求を取得する(ステップS501)。その後、上述のようにフレームワークに追加された第3特定コードが実行される。   Next, the framework acquires a connection request from the application A in step S500 (step S501). Thereafter, the third specific code added to the framework as described above is executed.

第3特定コードの実行によって、フレームワークは、アプリケーションAから取得された接続要求のUIDが特定IDであるか否かを判定する(ステップS502)。UIDが特定IDではないと判定された場合(ステップS502−No)、フレームワークは、DNS処理を抑制(終了)して(ステップS503)、例えばエラーを返す。一方、UIDが特定IDであると判定された場合(ステップS502−Yes)、フレームワークは、DNS処理要求(UID=1)をモデム112へ出力する(ステップS504)。   By executing the third specific code, the framework determines whether the UID of the connection request acquired from the application A is a specific ID (step S502). If it is determined that the UID is not the specific ID (Step S502-No), the framework suppresses (ends) the DNS process (Step S503) and returns, for example, an error. On the other hand, when it is determined that the UID is the specific ID (Yes in step S502), the framework outputs a DNS processing request (UID = 1) to the modem 112 (step S504).

ステップS504でフレームワークからDNS処理要求(UID=1)が出力されると、通信制御部は、当該DNS処理要求を取得する(ステップS505)。DNS処理要求が取得されると、通信制御部は、カーネルへ出力するためのDNS処理要求のUIDを、通信制御部のUID(UID=0)に定める。続いて、通信制御部は、DNS処理要求(UID=0)をカーネルへ出力する(ステップS506)。   When the DNS processing request (UID = 1) is output from the framework in step S504, the communication control unit acquires the DNS processing request (step S505). When the DNS process request is acquired, the communication control unit determines the UID of the DNS process request to be output to the kernel as the UID (UID = 0) of the communication control unit. Subsequently, the communication control unit outputs a DNS processing request (UID = 0) to the kernel (step S506).

次に、カーネルは、ステップS506で通信制御部から出力されたDNS処理要求(UID=0)を取得すると(ステップS507)、DNS処理要求をモデム112へ出力する(ステップS508)。   Next, when the kernel acquires the DNS processing request (UID = 0) output from the communication control unit in step S506 (step S507), the kernel outputs the DNS processing request to the modem 112 (step S508).

そして、モデム112は、ステップS508でカーネルから出力されたDNS処理要求を取得すると(ステップS509)、DNSデータ通信を行う(ステップS510)。   When the modem 112 acquires the DNS processing request output from the kernel in step S508 (step S509), the modem 112 performs DNS data communication (step S510).

このように、第3実施形態に係る通信装置1によれば、特定IDと一致するアプリケーションに対しては、DNSデータ通信(およびデータ通信)が許可される。一方、特定IDと一致しないアプリケーションに対しては、DNS処理が抑制される。DNS処理が抑制されることによって、DNSデータ通信およびデータ通信が発生しないため、上述した第2実施形態と同様に、ユーザが意図しない通信の発生がさらに低減可能である。また、特定IDと一致しないアプリケーションに対しては、カーネルからモデム112へDNS処理要求が出力されない。このため、第2実施形態と同様に、例えばモデム112がドーマント状態である場合に、モデム112を起動させるための電力が消費されることが抑制可能である。   As described above, according to the communication device 1 according to the third embodiment, DNS data communication (and data communication) is permitted for an application that matches the specific ID. On the other hand, DNS processing is suppressed for applications that do not match the specific ID. Since the DNS data communication and the data communication do not occur by suppressing the DNS process, the occurrence of the communication not intended by the user can be further reduced as in the second embodiment described above. In addition, the DNS processing request is not output from the kernel to the modem 112 for the application that does not match the specific ID. Therefore, as in the second embodiment, for example, when the modem 112 is in the dormant state, it can be suppressed that the power for activating the modem 112 is consumed.

本発明を諸図面や実施例に基づき説明してきたが、当業者であれば本開示に基づき種々の変形や修正を行うことが容易であることに注意されたい。したがって、これらの変形や修正は本発明の範囲に含まれることに留意されたい。例えば、各構成部、各ステップなどに含まれる機能などは論理的に矛盾しないように再配置可能であり、複数の構成部やステップなどを1つに組み合わせたり、あるいは分割したりすることが可能である。また、本発明について装置を中心に説明してきたが、本発明は装置の各構成部が実行するステップを含む方法としても実現し得るものである。また、本発明について装置を中心に説明してきたが、本発明は装置が備えるプロセッサによって実行される方法、プログラム、またはプログラムを記録した記憶媒体としても実現し得るものであり、本発明の範囲にはこれらも包含されるものと理解されたい。   Although the present invention has been described based on the drawings and examples, it should be noted that those skilled in the art can easily make various changes and modifications based on the present disclosure. Therefore, it should be noted that these variations and modifications are included in the scope of the present invention. For example, the components included in each component, each step, and the like can be rearranged so as not to be logically inconsistent, and a plurality of components, steps, and the like can be combined or divided into one. It is. Furthermore, although the present invention has been described focusing on the device, the present invention can also be realized as a method including the steps performed by each component of the device. Furthermore, although the present invention has been described focusing on the apparatus, the present invention can also be realized as a method, a program, or a storage medium storing a program, which is executed by a processor included in the apparatus. It should be understood that these are also included.

例えば、上述した実施形態において、UIDに基づいてDNS処理が制御される構成について説明したが、UIDに限られず、例えばGIDに基づいてDNS処理が制御される構成であってもよい。   For example, although the configuration in which the DNS process is controlled based on the UID has been described in the above-described embodiment, the present invention is not limited to the UID. For example, the DNS process may be controlled based on the GID.

また、上述した第2実施形態および第3実施形態において、アプリケーションがFGで動作するかBGで動作するかにかかわらずデフォルトで全てのアプリケーション(全てのUIDおよびGID)のセルラ通信によるデータ通信が禁止されており、例外としてデータ通信を許可するID(特定ID)が個別に追加設定される構成について説明したが、UIDまたはGIDを用いてアプリケーションのデータ通信を禁止する構成はこれに限られない。例えば、デフォルトで全てのアプリケーションのセルラ通信によるデータ通信が許可されており、例外としてデータ通信を禁止するIDが個別に追加設定される構成であってもよい。また例えば、アプリケーションがFG(またはBG)で動作する場合に限定して、上述のようにアプリケーションのセルラ通信を禁止または許可する構成であってもよい。具体的には、BG(またはFG)で動作する全てのアプリケーションのセルラ通信をデフォルトで禁止(または許可)する構成であってもよい。   Also, in the second and third embodiments described above, data communication by cellular communication of all applications (all UIDs and GIDs) is prohibited by default regardless of whether the application operates with FG or BG. Although an exception has been described in which the ID (specific ID) for permitting data communication is added and set individually, the configuration for prohibiting data communication of an application using UID or GID is not limited to this. For example, by default, data communication by cellular communication of all applications is permitted, and as an exception, an ID for prohibiting data communication may be additionally set individually. Further, for example, the configuration may be configured to prohibit or permit the cellular communication of the application as described above only when the application operates with FG (or BG). Specifically, the configuration may be configured to prohibit (or permit) cellular communication of all applications operating on BG (or FG) by default.

また、上述した第3実施形態において、フレームワークに第3特定コードを追加する構成について説明したが、通信制御部に特定コード(第4特定コード)が追加される構成であってもよい。かかる構成において、通信制御部は、アプリケーション(UID=n)からの接続要求に応じてフレームワークから出力されたDNS処理要求(UID=n)を取得する。その後、第4特定コードが実行される。第4特定コードの実行によって、通信制御部は、取得されたDNS処理要求のUIDが特定IDであるか否かを判定する。そして、通信制御部は、UIDが特定IDではないと判定された場合にDNS処理を抑制し、UIDが特定IDであると判定された場合にDNS処理要求をカーネルへ出力する。かかる構成によっても、第3実施形態と同様に、ユーザが意図しない通信の発生がさらに低減可能である。また、第3実施形態と同様に、モデム112がドーマント状態である場合に、モデム112を起動させるための電力が消費されることが抑制可能である。   Further, in the third embodiment described above, the configuration in which the third identification code is added to the framework has been described, but the configuration in which the identification code (fourth identification code) is added to the communication control unit may be employed. In such a configuration, the communication control unit acquires the DNS process request (UID = n) output from the framework in response to the connection request from the application (UID = n). Thereafter, the fourth specific code is executed. By executing the fourth specific code, the communication control unit determines whether the UID of the acquired DNS processing request is a specific ID. Then, the communication control unit suppresses the DNS process when it is determined that the UID is not the specific ID, and outputs the DNS process request to the kernel when it is determined that the UID is the specific ID. Also with this configuration, as in the third embodiment, the occurrence of communication not intended by the user can be further reduced. Further, as in the third embodiment, when the modem 112 is in the dormant state, it can be suppressed that power for activating the modem 112 is consumed.

上記の実施形態では、従量課金制ではない方式によるデータ通信の方式として無線LANを例示したが、これに限定されず、従量課金制ではない方式は、Bluetooth(登録商標)やEthernet(登録商標)等のデータ通信方式であってもよい。   In the above embodiment, the wireless LAN is exemplified as a method of data communication by a method that is not a pay-as-you-go system, but it is not limited to this. The methods that are not a pay-as-you-go system are Bluetooth (registered trademark) and Ethernet (registered trademark) Or the like may be used.

1 通信装置
10 制御部
11 通信部
111 I/Fデバイス
112 モデム
113 無線LANデバイス
12 記憶部
13 表示部
14 操作部
141 タッチパッド
15 パケットフィルタ
16a、16b アプリケーション
17 接続機能部
18 VPNデバイス
DESCRIPTION OF SYMBOLS 1 communication apparatus 10 control part 11 communication part 111 I / F device 112 modem 113 wireless LAN device 12 storage part 13 display part 14 operation part 141 touch pad 15 packet filter 16a, 16b application 17 connection function part 18 VPN device

Claims (4)

アプリケーションからネットワークへの接続要求を取得すると、当該接続要求に係るドメインを含むパケットをDNSサーバへ送信するDNSデータ通信を含むDNS処理を行い、当該DNS処理の完了後に、前記DNS処理で取得されたIPアドレスに基づいて前記ネットワークとの間でデータ通信を行う通信装置であって、
バックグラウンドで動作するアプリケーションから前記接続要求を取得すると、前記接続要求元の前記アプリケーションのIDが、前記データ通信が許可されるIDとして予め設定された特定IDであるか否かを判定し、
前記アプリケーションのIDが特定IDであると判定された場合、前記DNS処理の実行要求であるDNS処理要求を前記ネットワークに接続する通信インタフェースであるモデムに出力することで前記DNSデータ通信を許可し、前記アプリケーションのIDが特定IDではないと判定された場合、前記DNS処理要求を前記モデムに出力しないことで前記DNSデータ通信を抑制する、通信装置。
When a connection request to a network is acquired from an application, DNS processing including DNS data communication for transmitting a packet including a domain related to the connection request to a DNS server is performed, and after the DNS processing is completed, the DNS processing is acquired by the DNS processing A communication apparatus for performing data communication with the network based on an IP address, the communication apparatus comprising:
When an application that runs in the background to get the connection request, ID of the connection request source of the application, it is determined whether the predetermined specific ID to the ID of the data communication are permitted,
When it is determined that the ID of the application is a specific ID, the DNS data communication is permitted by outputting a DNS processing request, which is an execution request of the DNS processing, to a modem, which is a communication interface connecting to the network, ID is determined to be if not the specific ID of the application, to suppress the DNS data communication the DNS processing request by not output to the modem, the communication device.
請求項1に記載の通信装置であって、
バックグラウンドで動作するアプリケーションからの前記接続要求に基づくDNS処理要求のIDを当該アプリケーションのIDに定めて、前記DNS処理要求をカーネルへ出力し、
前記カーネルに出力された前記DNS処理要求のIDに基づき、前記アプリケーションのIDが特定IDであるか否かを判定する、通信装置。
The communication device according to claim 1,
The ID of the DNS processing request based on the connection request from the application running in the background set to the ID of the application, outputs the DNS processing request to the kernel,
A communication apparatus, which determines whether the ID of the application is a specific ID, based on the ID of the DNS processing request output to the kernel.
アプリケーションからネットワークへの接続要求を取得すると、当該接続要求に係るドメインを含むパケットをDNSサーバへ送信するDNSデータ通信を含むDNS処理を行い、当該DNS処理の完了後に、前記DNS処理で取得されたIPアドレスに基づいて前記ネットワークとの間でデータ通信を行う通信装置が実行するDNS処理方法であって、
バックグラウンドで動作するアプリケーションから前記接続要求を取得するステップと、
前記接続要求元の前記アプリケーションのIDが、前記データ通信が許可されるIDとして予め設定された特定IDであるか否かを判定するステップと、
前記アプリケーションのIDが特定IDであると判定された場合、前記DNS処理の実行要求であるDNS処理要求を前記ネットワークに接続する通信インタフェースであるモデムに出力することで前記DNSデータ通信を許可し、前記アプリケーションのIDが特定IDではないと判定された場合、前記DNS処理要求を前記モデムに出力しないことで前記DNSデータ通信を抑制するステップと、
を含む、DNS処理方法。
When a connection request to a network is acquired from an application, DNS processing including DNS data communication for transmitting a packet including a domain related to the connection request to a DNS server is performed, and after the DNS processing is completed, the DNS processing is acquired by the DNS processing A DNS processing method executed by a communication device that performs data communication with the network based on an IP address ,
A step of acquiring the connection request from the application running in the background,
ID of the connection request source of the application, determining whether or not a predetermined specific ID to the ID of the data communication are permitted,
When it is determined that the ID of the application is a specific ID, the DNS data communication is permitted by outputting a DNS processing request, which is an execution request of the DNS processing, to a modem, which is a communication interface connecting to the network, and step of suppressing the DNS data communication by ID of the application does not output the determined if not the particular ID, the DNS processing request to said modem,
DNS processing method, including:
アプリケーションからネットワークへの接続要求を取得すると、当該接続要求に係るドメインを含むパケットをDNSサーバへ送信するDNSデータ通信を含むDNS処理を行い、当該DNS処理の完了後に、前記DNS処理で取得されたIPアドレスに基づいて前記ネットワークとの間でデータ通信を行う通信装置に、
バックグラウンドで動作するアプリケーションから前記接続要求を取得するステップと、
前記接続要求元の前記アプリケーションのIDが、前記データ通信が許可されるIDとして予め設定された特定IDであるか否かを判定するステップと、
前記アプリケーションのIDが特定IDであると判定された場合、前記DNS処理の実行要求であるDNS処理要求を前記ネットワークに接続する通信インタフェースであるモデムに出力することで前記DNSデータ通信を許可し、前記アプリケーションのIDが特定IDではないと判定された場合、前記DNS処理要求を前記モデムに出力しないことで前記DNSデータ通信を抑制するステップと、
を実行させる、プログラム。
When a connection request to a network is acquired from an application, DNS processing including DNS data communication for transmitting a packet including a domain related to the connection request to a DNS server is performed, and after the DNS processing is completed, the DNS processing is acquired by the DNS processing A communication device that performs data communication with the network based on an IP address ;
A step of acquiring the connection request from the application running in the background,
ID of the connection request source of the application, determining whether or not a predetermined specific ID to the ID of the data communication are permitted,
When it is determined that the ID of the application is a specific ID, the DNS data communication is permitted by outputting a DNS processing request, which is an execution request of the DNS processing, to a modem, which is a communication interface connecting to the network, and step of suppressing the DNS data communication by ID of the application does not output the determined if not the particular ID, the DNS processing request to said modem,
To run the program.
JP2016204384A 2016-10-18 2016-10-18 Communication apparatus, DNS processing method, and program Active JP6532851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016204384A JP6532851B2 (en) 2016-10-18 2016-10-18 Communication apparatus, DNS processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016204384A JP6532851B2 (en) 2016-10-18 2016-10-18 Communication apparatus, DNS processing method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016019930A Division JP6029781B1 (en) 2016-02-04 2016-02-04 Communication apparatus, DNS processing method, and program

Publications (2)

Publication Number Publication Date
JP2017139731A JP2017139731A (en) 2017-08-10
JP6532851B2 true JP6532851B2 (en) 2019-06-19

Family

ID=59566142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016204384A Active JP6532851B2 (en) 2016-10-18 2016-10-18 Communication apparatus, DNS processing method, and program

Country Status (1)

Country Link
JP (1) JP6532851B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2708352C1 (en) * 2019-02-07 2019-12-05 Акционерное общество "Лаборатория Касперского" Method of blocking advertisement on computing devices
CN110768875A (en) * 2019-12-27 2020-02-07 北京安博通科技股份有限公司 Application identification method and system based on DNS learning

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987611A (en) * 1996-12-31 1999-11-16 Zone Labs, Inc. System and methodology for managing internet access on a per application basis for client computers connected to the internet
JP6055218B2 (en) * 2012-07-19 2016-12-27 株式会社Nttドコモ Mobile communication system, network device, mobile station, and mobile communication method
JP6074190B2 (en) * 2012-08-10 2017-02-01 京セラ株式会社 Terminal device and control method of terminal device
JP6016670B2 (en) * 2013-02-26 2016-10-26 シャープ株式会社 Mobile terminal device

Also Published As

Publication number Publication date
JP2017139731A (en) 2017-08-10

Similar Documents

Publication Publication Date Title
KR102224760B1 (en) Automatic application updates
JP4618455B2 (en) Terminal device, network connection method, and program
CN107040965B (en) Flow control method and device and mobile terminal
JP5566309B2 (en) Information processing apparatus and information processing method
JP6532851B2 (en) Communication apparatus, DNS processing method, and program
JP6258985B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP6029781B1 (en) Communication apparatus, DNS processing method, and program
JP6093055B1 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
CN105207810A (en) Control method and system of switch, and switch having system
JP6069553B1 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP6258986B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP6180613B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP6339604B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP2017139751A (en) Communication device, communication control method and program
JP2017225161A (en) Communication apparatus, communication control method, and program
JP2017139747A (en) Communication device, communication control method and program
JP2017225162A (en) Communication device, communication control method, and program
JP2017139735A (en) Communication apparatus, communication control method, and program
JP2017139736A (en) Communication device, communication control method, and program
JP2017201830A (en) Communication device, communication control method and program
US20170223614A1 (en) Communication apparatus, communication control method, and non-transitory computer-readable recording medium
JP5066112B2 (en) Information processing device
JP2017138971A (en) Communication device, communication control method and program
JP2008269113A (en) Application execution environment construction system, device and method used for it, and program therefor
JP2013074329A (en) Portable electronic apparatus and control method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170815

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171013

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20171212

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180312

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20180319

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20180406

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190326

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190522

R150 Certificate of patent or registration of utility model

Ref document number: 6532851

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150