JP2004040348A - Packet control apparatus - Google Patents

Packet control apparatus Download PDF

Info

Publication number
JP2004040348A
JP2004040348A JP2002192899A JP2002192899A JP2004040348A JP 2004040348 A JP2004040348 A JP 2004040348A JP 2002192899 A JP2002192899 A JP 2002192899A JP 2002192899 A JP2002192899 A JP 2002192899A JP 2004040348 A JP2004040348 A JP 2004040348A
Authority
JP
Japan
Prior art keywords
packet
adapter
voip
lan
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002192899A
Other languages
Japanese (ja)
Inventor
Tatsuya Seo
瀬尾 達也
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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2002192899A priority Critical patent/JP2004040348A/en
Publication of JP2004040348A publication Critical patent/JP2004040348A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To simplify settings of a router and a personal computer or the like when a new application such as the VoIP is going to be added to an existing LAN facility or the like. <P>SOLUTION: A network application adaptor 20 is interposed between an ADSL modem 2 and the router 4 or between the ADSLmodem 2 and the personal computer 8. The adaptor 20 principally passes supplied packets without applying any processing to them, but separately decodes in itself packets for the VoIP supplied via the ADSLmodem 2 and supplies a voice signal or a control signal to a telephone set 10. Further, the adaptor 20 generates packets for the VoIP wherein a MAC address of the router 4 or the personal computer 8 is used for a sender MAC address on the basis of the voice signal or the control signal from the telephone set 10 and transmits the packets via the ADSL modem 2. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、各種ネットワーク機器の接続に用いて好適なパケット制御装置に関する。
【0002】
【従来の技術】
近年、IPネットワーク上で音声通話を実現するVoIPという技術が普及している。これにより、電話ネットワークをデータネットワークと統合することができ、回線の稼働率を向上でき、通信コストを下げるのが可能になる。ここで、VoIPに対応したユーザ側機器の構成例を図1(a)に示す。図において2はADSLモデムであり、インターネットサービスプロバイダ(ISP)との間でPPPoE(point to point protocol over Ethernet,「Ethernet」または「イーサネット」は登録商標)プロトコルを用いて通信する。
【0003】
8,8,……はパーソナルコンピュータ、6はVoIPアダプタであり、これらによってLAN(ローカルエリアネットワーク)5が形成されている。4はルータであり、LAN5内のパケットのうちADSLモデム2を介してインターネット等のWAN側に送信すべきパケットを抽出しADSLモデム2に供給するとともに、ADSLモデム2を介して受信したWAN側からのパケットをLAN5に供給する。VoIPアダプタ6は、電話機10から受信した音声信号および制御信号をIPパケットに変換しLAN5を介してこれらIPパケットを送信するとともに、供給されたIPパケットを音声信号および制御信号に変換し電話機10に供給する。
【0004】
また、ユーザ側機器の他の構成例を同図(b)に示す。図において一台のパーソナルコンピュータ8にはADSLモデム2およびVoIPアダプタ6が直結され、VoIPアダプタ6には電話機10が接続されている。ADSLモデム2を介してパーソナルコンピュータ8に供給されるIPパケットのうちVoIPに関するパケットはVoIPアダプタ6に供給され、VoIPアダプタ6を介して音声信号または制御信号に変換された後、これらの信号が電話機10に供給される。また、電話機10から供給された音声信号および制御信号は、VoIPアダプタ6においてIPパケットに変換され、当該IPパケットがパーソナルコンピュータ8を介してADSLモデム2に送信される。なお、IPパケットへの変換はパーソナルコンピュータ8において実行される場合もある。
【0005】
【発明が解決しようとする課題】
ところで、図1(a),(b)において元々VoIPアダプタ6および電話機10が無かった構成を想定すると、これらの構成にVoIPアダプタ6等を追加することは、以下のようにユーザにとってきわめて煩雑であり、IPプロトコルに関して知識が無いユーザにおいては設定を行うことが困難であった。
【0006】
まず、図1(a)の構成にあっては、LAN5内の複数のローカルアドレスとWAN側における一のグローバルアドレスとを対応付けるため、IPマスカレードと称される技術が多用されている。IPマスカレードを行うと、一般的にはLAN5内におけるポート番号とは異なるポート番号がWAN側にて使用されることになる。しかし、VoIPは使用すべきポート番号が予め規定されているため、VoIPに係るパケットはポート番号を変更しないようにルータ4を設定する必要がある。また、同図(b)の構成にあっては、VoIPアダプタ6に対応した新たなソフトウエアをパーソナルコンピュータ8にインストールする必要があり、WAN側に対する新たな設定も必要である。
【0007】
このような設定の煩雑さは、VoIPに限られるものではなく、ネットワークに対して新たなアプリケーションを追加しようとする場合にしばしば発生するものである。この発明は上述した事情に鑑みてなされたものであり、必要なアプリケーションを容易に追加できるパケット制御装置を提供することを目的としている。
【0008】
【課題を解決するための手段】
上記課題を解決するため本発明にあっては、下記構成を具備することを特徴とする。なお、括弧内は例示である。
請求項1記載のパケット制御装置にあっては、第1のパケット送受信装置(LAN側機器)と第2のパケット送受信装置(WAN側機器)との間で送受信されるパケットを伝送する経路に介挿されるパケット制御装置であって、前記経路を介して伝送されるパケットを観測し、前記第1のパケット送受信装置を特定するアドレス情報(MACアドレス)を取得する情報取得手段(SP302〜SP316)と、該取得したアドレス情報を送信元アドレスとするパケットを生成し、前記第2のパケット送受信装置(WAN側機器)に送出するパケット送出手段(SP402〜SP416)とを具備することを特徴とする。
さらに、請求項2記載の構成にあっては、請求項1記載のパケット制御装置において、前記情報取得手段における取得結果に応じて、前記第1または第2のパケット送受信装置の一方から他方に送出されたパケットを必要に応じて遮断する遮断手段(SP110,SP210)をさらに具備することを特徴とする。
さらに、請求項3記載の構成にあっては、請求項1記載のパケット制御装置において、前記情報取得手段における取得結果に応じて、前記第1または第2のパケット送受信装置の一方から他方に送出されたパケットを必要に応じて改変して送出する改変手段(変形例)をさらに具備することを特徴とする。
【0009】
【発明の実施の形態】
1.実施形態の構成
1.1.ユーザ側機器の構成例
次に、本発明の一実施形態によるアプリケーションアダプタを用いたユーザ側機器の構成例を図2(a),(b)を参照し説明する。図2(a)においては、図1(a)と同様に複数のパーソナルコンピュータ8,8,……およびルータ4がLAN5を介して接続されている。そして、ADSLモデム2とルータ4との間にはネットワークアプリケーションアダプタ20が介挿され、このアダプタ20に電話機10が接続されている。図2(a)においては、元々ADSLモデム2、ルータ4およびパーソナルコンピュータ8,8,……から成る既存の構成に対して、新たにVoIPを導入した場合の例(すなわちアダプタ20および電話機10を新規に追加した例)を想定している。
【0010】
また、図2(b)においては、一台のパーソナルコンピュータ8がADSLモデム2を介してWANに接続されていた状態において新たにVoIPを導入した場合の例(すなわちアダプタ20および電話機10を追加した例)を想定している。そして、理由は後述するが、何れの例においても、ルータ4等は既存の設定状況に対してなんら変更を要しないことが本実施形態のネットワークアプリケーションアダプタ20の特徴の一つである。
【0011】
1.2.アプリケーションアダプタのハードウエア構成
次に、ネットワークアプリケーションアダプタ20のハードウエア構成を図3を参照し説明する。図において220はCPUであり、フラッシュメモリ222に格納された制御プログラムに基づいて、バス228を介してアダプタ20内の各部を制御する。224はRAMであり、CPU220のワークメモリとして使用される。226はディスプレイであり、CPU220の制御の下、各種の情報を表示する。202,206,216は外部機器に接続されるインタフェースコントローラである。インタフェースコントローラ202はWAN側機器(図2(a),(b)の例にあってはADSLモデム2)に接続され、WAN側機器との間でパケットの送受信を行う。
【0012】
また、インタフェースコントローラ206はLAN側機器(図2(a),(b)の例にあってはルータ4またはパーソナルコンピュータ8)に接続され、LAN側機器との間でパケットの送受信を行う。また、インタフェースコントローラ216は電話機10に接続され、電話機10との間で音声信号および制御信号の送受信を行う。すなわち、インタフェースコントローラ216は電話機10から受信したアナログ信号(音声信号または制御信号)をデジタル信号に変換しバス228を介して出力するとともに、バス228を介して受信したデジタル信号をアナログ信号に変換し電話機10に供給する。
【0013】
ところで、図2(a)においてLAN5内で伝送されるパケットはIPパケットである。ここでは、TCP/IPパケットを例として、そのフォーマットを図10(a)を参照し説明する。図においてTCP/IPパケットの先頭には、イーサネットヘッダ110が設けられ、ここで送信元MACアドレスMSAおよび送信先MACアドレスMDAが指定される。また、120はIPヘッダであり、ここではOSI階層モデルにおけるトランスポート層のプロトコルPROTと、送信元IPアドレスISAと、送信先IPアドレスIDAとが指定される。
【0014】
TCP/IPパケットにおいては、上記プロトコルPROTでは「TCPプロトコル」が指定されることになる。130はTCPヘッダであり、ここでは送信元ポート番号SRC_PORTと、送信先ポート番号DEST_PORTとが指定される。そして、TCPヘッダ130の後には、伝送すべきデータ部140が設けられる。
【0015】
図10(a)はTCP/IPパケットの例について説明したが、UDP/IPパケットにおいては、IPヘッダ120のプロトコルPROTが「UDP」に設定され、TCPヘッダ130に代えてUDPヘッダが設けられることになる。なお、UDPヘッダにおいても、TCPヘッダ130と同様に、送信元ポート番号SRC_PORTおよび送信先ポート番号DEST_PORTが設けられる。
【0016】
一方、ルータ4およびインターネットサービスプロバイダ間におけるプロトコルには様々なものが使用されているが、ここではPPPoEが採用されている場合を想定する。すなわち、ルータ4においては、IPパケットとPPPoEパケットとが相互に変換されることになる。このため、ネットワークアプリケーションアダプタ20が送受信するパケットは全てPPPoEパケットである。ここで、図10(a)のIPパケットをPPPoEパケットに変換した例を同図(b)に示す。
【0017】
図10(b)において150はイーサネットヘッダであり、上記イーサネットヘッダ110と同様に送信元MACアドレスMSAおよび送信先MACアドレスMDAが指定される。次に、160はPPPoEヘッダであり、PPPoEセッションを一意に特定するセッションIDが指定される。次に、170はPPPヘッダであり、当該PPPヘッダ170以降のデータ長がここで指定される。180はIPヘッダであり、上記IPヘッダ120と同様に、トランスポート層のプロトコルPROTと送信元IPアドレスISAと送信先IPアドレスIDAとが指定される。但し、IPヘッダ180において指定されるIPアドレスは、グローバルIPアドレスである。
【0018】
190はTCPヘッダであり、上記TCPヘッダ130と同様に送信元ポート番号SRC_PORTと、送信先ポート番号DEST_PORTとが指定される。そして、TCPヘッダ190の後には、伝送すべきデータ部200が設けられる。なお、PPPoEパケットもIPヘッダ180以降に対してUDP/IPプロトコルを適用することが可能である。かかる場合には、IPヘッダ180内にてプロトコルPROTが「UDP」に設定され、TCPヘッダ190に代えてUDPヘッダが設けられることになる。
【0019】
1.3.ネットワークアプリケーションアダプタ20のタスク構成
次に、アダプタ20内のCPU220によって実行される各種タスクのタスク構成を図4を参照し説明する。図において204はパケット解析・情報抽出タスクであり、インタフェースコントローラ202,206において送受信されるパケットを相互に伝送するとともに、これらのパケットを解析し、必要な情報を抽出する。さらに、インタフェースコントローラ202,206間において相互に伝送すべきでないパケットについては伝送を停止し、あるいは必要に応じてアダプタ20内部で生成されたパケットをインタフェースコントローラ202,206を介して送信させる。
【0020】
224aは情報格納領域であり、上述したRAM224内の所定アドレス範囲に確保され、パケット解析・情報抽出タスク204によって抽出された各種情報を記憶する。212は入力判別タスクであり、電話機10から受信した信号がVoIPプロトコルに係る音声信号または制御信号であるのか、アダプタ20の内部状態を設定するための信号であるのかを判定する。本実施形態のネットワークアプリケーションアダプタ20においては特に入力用の操作子が設けられていないため、ユーザは電話機10において所定の操作を行うことにより、アダプタ20に対する各種設定を行うことができる。なお、アダプタ20自体に情報を入力する手段を設けてもよく、また、他の機器のディスプレイを併用することによってディスプレイ226を省略してもよい。
【0021】
入力判別タスク212は、電話機10から供給された信号が当該「所定の操作」に該当するか否かを判別し、該当する場合には当該操作内容が設定操作タスク210に通知される。設定操作タスク210においては、この通知された操作内容に基づいて、アダプタ20の内部状態すなわち情報格納領域224aにおける記憶内容が更新される。一方、電話機10から供給された信号であって該「所定の操作」以外の信号はVoIPプロトコルに係る制御信号または音声信号である。かかる場合には、当該信号はアプリケーション制御タスク208に供給される。
【0022】
アプリケーション制御タスク208においては、これら制御信号または音声信号に基づいて、VoIP通信のためのIPパケット(PPPoEパケット)が生成される。さらに、アプリケーション制御タスク208においては、インタフェースコントローラ202を介して受信されたパケットのうちVoIP通信のためのIPパケットが分解される。これによって、通信の相手側からの制御信号または音声信号が再生され、インタフェースコントローラ216を介して電話機10に供給されることになる。218は制御タスクであり、後述するプログラムに基づいて、他のタスクを制御する。
【0023】
2.実施形態の動作
2.1.LAN側からのパケット受信
次に、本実施形態において各種イベントが生じた時の動作を説明する。まず、LAN側機器からネットワークアプリケーションアダプタ20に何らかのパケット(ここではPPPoEパケット)が供給されると、制御タスク218において図5に示すLAN側パケット受信イベント処理ルーチンが起動される。図において処理がステップSP102に進むと、当該パケットから各種情報を抽出するための必要情報抽出処理サブルーチン(図7)が呼び出される。図7において処理がステップSP302に進むと、PPPoEパケットのイーサネットヘッダ150が解析され、送信元MACアドレスMSAおよび送信先MACアドレスMDAが取得される。
【0024】
ここに、送信元MACアドレスMSAはLAN側機器のMACアドレスであり、送信先MACアドレスMDAはブロードキャストアドレスあるいはインターネットサービスプロバイダ(ISP)側のBAS(Broadband Access Server、図示せず)のMACアドレスである。次に、処理がステップSP304に進むと、PPPoEヘッダ160が解析され、セッションIDが取得される。次に、処理がステップSP306に進むと、PPPヘッダ170あるいはIPヘッダ180が解析され、これによって当該PPPoEパケットに含まれるIPアドレス(送信元グローバルIPアドレスおよび送信先グローバルIPアドレス)が取得される。
【0025】
次に、処理がステップSP308に進むと、上記ステップSP302〜306において取得された各情報が情報格納領域224aに保存されている情報と一致するか否かが判定される。ここで「NO」と判定されると、処理はステップSP310に進み、情報格納領域224aに保存されている情報はロックされているか否か(更新が禁止されているか否か)が判定される。例えば、VoIPのために使用されるセッションIDあるいはグローバルIPアドレス等が予め固定されている場合等にあっては、ユーザによって強制的に(電話機10を介してマニュアル操作によって)これらの情報が設定される場合がある。かかる場合には、ネットワークアプリケーションアダプタ20に供給されたパケットに基づいてこれらの情報を更新すると通信を行うことができなくなるため、情報をロックしておく必要がある。
【0026】
情報がロックされていなければステップSP310において「NO」と判定され、処理はステップSP312に進む。ここでは、上記ステップSP302〜SP306において取得された情報が、現在保存されている情報に代えて、情報格納領域224aに書き込まれる。なお、ステップSP308またはステップSP10において「NO」と判定された場合には、ステップSP312が実行されず、その時点までに保存されていた情報がそのまま情報格納領域224aに保存される。
【0027】
次に、処理がステップSP314に進むと、先にステップSP302〜SP306において取得された情報をディスプレイ226に表示するか否かが判定される。なお、かかる情報を表示するか否かについては、予めユーザによって設定されている。ステップSP314において「YES」と判定されると、処理はステップSP316に進み、取得された情報がディスプレイ226に表示される。以上のステップにより、必要情報抽出処理サブルーチン(図7)は終了し、処理はLAN側パケット受信イベント処理ルーチン(図5)に戻る。
【0028】
図5において処理がステップSP104に進むと、TCPヘッダ190(またはこれに代わるUDPヘッダ)内の送信先ポート番号DEST_PORTが解析される。そして、そのポート番号がTCPまたはUDPの5060番、あるいはUDPの5004〜5015番以外の範囲であるか否かが判定される。ここで、これらのポート番号について簡単に説明しておく。VoIPにおいては、呼設定制御用の「SIP」および音声信号伝送用の「RTP」の2つのプロトコルが採用されている。TCPまたはUDPの5060番はSIP用に割り当てられ、UDPの5004〜5015番はRTPに割り当てられているのである。
【0029】
さて、ステップSP104において「YES」と判定された場合、すなわちLAN側機器から受信したパケットがVoIPに関連しないパケットである場合は、処理はステップSP106に進み、当該パケットがそのままWAN側に送出される。これにより、WAN側機器に送出されるパケットは、ネットワークアプリケーションアダプタ20を介挿しなかった場合と全く同様になる。
【0030】
一方、LAN側機器から受信したパケットがVoIPに関連するパケットであった場合にはステップSP104において「NO」と判定され、処理はステップSP108に進む。ここでは、LAN側機器においてSIPまたはRTPの使用が許可されているか否かが判定される。なお、LAN側機器におけるSIPまたはRTPの使用はデフォルトの状態では許可されないが、これらの使用を可能ならしめるべく予めアダプタ20においてユーザが設定することも可能である。
【0031】
LAN側機器におけるSIPまたはRTPの使用が許可されていない場合には、ステップSP108において「NO」と判定され、処理はステップSP110に進み、ここで当該パケットが破棄される。すなわち、かかる状態においては、アダプタ20に接続された電話機10のみによってVoIPを実行することが可能になり、仮にLAN側機器において他のVoIPアダプタ等を接続したとしても、これを使用することが不可能になる。
【0032】
一方、LAN側機器におけるSIPまたはRTPの使用が許可されている場合には、ステップSP108において「YES」と判定され、処理はステップSP106に進む。これにより、LAN側機器において生成されたVoIPに関連するパケットが、アダプタ20を介して、そのままWAN側機器に送出されることになる。以上のステップが終了すると、LAN側機器からパケットを受信した際のイベント処理が終了する。
【0033】
2.2.WAN側からのパケット受信
次に、WAN側機器からネットワークアプリケーションアダプタ20にPPPoEパケットが供給された場合の動作を説明する。WAN側機器からパケットが供給されると、制御タスク218において、図6に示すWAN側パケット受信イベント処理ルーチンが起動される。図において処理がステップSP202に進むと、上述したステップSP102の場合と同様に必要情報抽出処理サブルーチン(図7)が呼び出され、送信元MACアドレスMSA、送信先MACアドレスMDA、セッションID、送信元グローバルIPアドレスおよび送信先グローバルIPアドレスが抽出される。
【0034】
但し、WAN側機器から受信したパケットにおいては、送信元MACアドレスMSAおよび送信元グローバルIPアドレスはインターネットサービスプロバイダ(ISP)側のBASのアドレスであり、送信先MACアドレスMDAおよび送信先グローバルIPアドレスはLAN側機器のアドレスである。次に、処理がステップSP204に進むと、該抽出されたパケットはSIPまたはRTPのプロトコルのパケットであるか否かが判定される。
【0035】
ここで、当該パケットがSIPまたはRTPのプロトコルのパケットでは無い場合は「NO」と判定され、処理はステップSP212に進み、当該パケットがそのままLAN側機器に送出される。すなわち、WAN側機器から受信したパケットがVoIPに関連しないパケットである場合は、LAN側機器に送出されるパケットは、ネットワークアプリケーションアダプタ20を介挿しなかった場合と全く同様になる。
【0036】
一方、WAN側機器から受信したパケットがVoIPに関連するパケットであった場合にはステップSP204において「YES」と判定され、処理はステップSP206に進む。ここでは、ネットワークアプリケーションアダプタ20がSIPまたはRTPを使用して通信中であるか否かが判定される。ここで「YES」と判定されると、処理はステップSP210に進み、SIPまたはRTPのプロトコルに応じた処理がアダプタ20内において(特にアプリケーション制御タスク208において)実行される。これにより、アダプタ20内において実行中の通信処理が当該新たに受信したパケットについても続行されることになる。
【0037】
また、アダプタ20がSIPまたはRTPを使用して通信中ではない場合はステップSP206において「NO」と判定され、処理はステップSP208に進む。ここでは、LAN側機器におけるSIPまたはRTPの使用が許可されているか否かが判定される。ここで「YES」と判定されると、処理は上述したステップSP212に進み、当該受信したパケットがそのままLAN側機器に送出される。これにより、SIPまたはRTPに係る処理がLAN側機器において処理されることになる。
【0038】
また、ステップSP208において「NO」と判定されると、処理は上述したステップSP210に進む。すなわち、LAN側機器におけるSIPまたはRTPの使用が許可されておらず、かつ、アダプタ20もSIPまたはRTPを使用して通信中ではない状態でSIPまたはRTPプロトコルに係るパケットを受信する場合とは、通常は外部から新たな呼設定要求を受信する場合である。このため、かかる場合には、アプリケーション制御タスク208において、当該パケットに対してプロトコルに応じた呼設定処理等が実行されることになる。以上のステップが終了すると、WAN側機器からパケットを受信した際のイベント処理が終了する。
【0039】
2.3.パケット送出処理
アプリケーション制御タスク208においては、入力判別タスク212を介して電話機10からの制御信号または音声信号が供給されると、これに基づいてVoIP用のPPPoEパケットのTCPヘッダ190(またはこれに代わるUDPヘッダ)およびデータ部200が逐次生成される。データ部200等が生成されると、パケット送出要求が制御タスク218に供給され、制御タスク218において図8に示すパケット送出処理ルーチンが起動される。
【0040】
図において処理がステップSP402に進むと、LAN側機器におけるSIPまたはRTPの使用が許可されておらず、かつ、SIPまたはRTPがアダプタ20側にて使用可能な状態であるか否かが判定される。ここで「NO」と判定されると、本ルーチンが直ちに終了する。一方、ステップSP402において「YES」と判定されると、処理はステップSP404に進み、パケットを構成するために必要な情報が情報格納領域224aに既に格納されているか否かが判定される。
【0041】
ここで「必要な情報」とは、LAN側機器のグローバルIPアドレス、PPPoEセッションのセッションID、LAN側機器のMACアドレスおよびWAN側機器のMACアドレスである。ステップSP404において「NO」と判定されると、やはり本ルーチンの処理は直ちに終了する。
【0042】
すなわち、ステップSP402またはSP404において「NO」と判定されると、アプリケーション制御タスク208において生成されたデータ部200は実際にIPパケットとして送出されることなく破棄される。一方、これらのステップにおいて共に「YES」と判定されると、処理はステップSP406に進み、先に必要情報抽出処理サブルーチン(図7)において抽出されたLAN側機器のグローバルIPアドレスを送信元IPアドレスISAとするIPヘッダ180が形成される。
【0043】
次に、処理がステップSP408に進むと、データ部200等のデータ長に基づいて、PPPヘッダ170が構成される。次に、処理がステップSP410に進むと、PPPoEセッションのセッションIDに基づいてPPPoEヘッダ160が構成される。次に、処理がステップSP412に進むと、LAN側機器のMACアドレスを送信元MACアドレスMSAとし、WAN側機器のMACアドレスを送信先MACアドレスMDAとし、イーサネットヘッダ150が形成される。
【0044】
以上のステップにより、PPPoEパケット(図10(b))が完成するため、次に処理がステップSP414に進むと、当該PPPoEパケットがWAN側機器に対して送出される。次に、処理がステップSP416に進むと、アプリケーション制御タスク208において、当該PPPoEパケットに係るパケット送出要求がクリアされる。
【0045】
2.4.電話機操作検出処理
電話機10が非通話状態であって、電話機10がオフフックされ、そのテンキーボードにおいてなんらかの操作が行われると、入力判別タスク212において図9に示す電話機操作処理ルーチン(図9)が起動される。図において処理がステップSP502に進むと、当該操作はVoIPの接続開始を指示するものか否かが判定される。例えばテンキーボードにおいて通常の電話番号等を入力する操作はVoIPの接続開始を指示する操作である。
【0046】
ここで「YES」と判定されると処理はステップSP504に進み、相手先番号を表示するか否かが判定される。なお、相手先番号を表示するか否かは予めアダプタ20においてユーザが設定している。ステップSP504において「YES」と判定されると、処理はステップSP506に進み、ディスプレイ226に相手先番号が表示される。次に、処理がステップSP508に進むと、入力された電話番号がアプリケーション制御タスク208に通知され、アプリケーション制御タスク208においては、当該電話番号に対して、呼制御処理等のプロトコル処理が実行される。
【0047】
一方、ステップSP502において「NO」と判定された場合は、処理はステップSP510に進む。ここでは、当該操作内容がアダプタ20に対する各種設定を行うための「所定の操作」に該当するか否かが判定される。ここで「YES」と判定されると、情報格納領域224aに記憶されているパラメータ等の内容が、ユーザによる電話機10のテンキーボードのマニュアル操作に基づいて更新される。一方、ステップSP510において「NO」と判定されると、本ルーチンにおいて実質的な処理が行われることなく処理が完了する。
【0048】
3.変形例
本発明は上述した実施形態に限定されるものではなく、例えば以下のように種々の変形が可能である。
(1)上記実施形態のネットワークアプリケーションアダプタ20は、LAN側機器に接続され、LAN側機器のMACアドレスを用いてVoIPサービスを提供することを前提としていた。すなわち、ステップSP302(図7)においてルータ4等のLAN側機器が送出するPPPoEパケットに基づいて当該LAN側機器のMACアドレスを取得し、この取得したMACアドレスを、ネットワークアプリケーションアダプタ20が送出するPPPoEパケットの送信元MACアドレスMSAとして使用した。
【0049】
しかし、ネットワークアプリケーションアダプタ20は、LAN側機器が動作していない状態においても使用できるようにしてもよい。具体的には、アダプタ20は、LAN側機器用のインタフェースコントローラ206からPPPoEパケットが所定時間供給されない場合には、自機のMACアドレスを用いてWAN側機器との間でPPPoEセッション(第1のセッション)を確立し、当該セッションを介してVoIPサービスを提供するとよい。
【0050】
なお、アダプタ20がPPPoEセッションを確立した後にLAN側機器の動作が開始された場合には、アダプタ20はWAN側機器のBASを模擬してアダプタ20とLAN側機器との間でPPPoEセッション(第2のセッション)を確立し、これら第1および第2のセッションを仲介することによってLAN側機器とWAN側機器との通信を可能にしてもよい。
【0051】
(2)また、上記実施形態においては、LAN側機器とWAN側機器とがPPPoEプロトコルを用いて通信する例について説明したが、LAN側機器およびWAN側機器間のプロトコルはPPPoEに限られるものではなく、種々のプロトコルを用いてもよいことは言うまでもない。この場合、プロトコルの種類によっては、送出される各パケットに昇順のシリアルナンバが付与されることがある。
【0052】
かかる場合に、LAN側機器およびネットワークアプリケーションアダプタ20がWAN側機器に対して独自にパケットを送出すると、送出される複数のパケットにおいて重複するシリアルナンバが付与されることになる。かかる場合は、アダプタ20において、LAN側機器およびWAN側機器間で送受信されるパケットの一部(上記例にあってはシリアルナンバ)を改変して送出するとよい。
【0053】
(3)上記実施形態においては、ネットワークアプリケーションアダプタ20はVoIPサービスを提供するものであったが、アダプタ20が提供するアプリケーションはVoIPサービスに限定されるものではなく、例えばネットワークゲームなど、特定のプロトコルまたは特定のポート番号を使用する各種のアプリケーションに適用することができる。
【0054】
【発明の効果】
以上説明したように本発明によれば、第1のパケット送受信装置と第2のパケット送受信装置との間で送受信されるパケットを観測し、第1のパケット送受信装置を特定するアドレス情報を取得するとともに、該取得したアドレス情報を送信元アドレスとするパケットを生成し、第2のパケット送受信装置に送出するから、これら第1および第2のパケット送受信装置の設定を変更することなく新たなアプリケーションを容易に追加することができる。さらに、本発明においては、パケットを観測することによってアドレス情報を取得できるから、ユーザによる設定操作を大幅に減少させることができる。
【図面の簡単な説明】
【図1】VoIPを用いた従来のユーザ側機器の構成例を示すブロック図である。
【図2】本発明の一実施形態のネットワークアプリケーションアダプタ20を用いたユーザ側機器の構成例を示すブロック図である。
【図3】本実施形態のネットワークアプリケーションアダプタ20のハードウエアブロック図である。
【図4】本実施形態のネットワークアプリケーションアダプタ20のタスクのブロック図である。
【図5】LAN側パケット受信イベント処理ルーチンのフローチャートである。
【図6】WAN側パケット受信イベント処理ルーチンのフローチャートである。
【図7】必要情報抽出処理サブルーチンのフローチャートである。
【図8】パケット送出処理ルーチンのフローチャートである。
【図9】電話機操作処理ルーチンのフローチャートである。
【図10】IPパケットおよびPPPoEパケットの構成を示す図である。
【符号の説明】
2…ADSLモデム、4…ルータ、5…LAN、6…VoIPアダプタ、10…電話機、20…ネットワークアプリケーションアダプタ、8,8,………パーソナルコンピュータ、110…イーサネットヘッダ、120…IPヘッダ、130…TCPヘッダ、140…データ部、150…イーサネットヘッダ、160…PPPoEヘッダ、170…PPPヘッダ、180…IPヘッダ、190…TCPヘッダ、200…データ部、204…パケット解析・情報抽出タスク、208…アプリケーション制御タスク、210…設定操作タスク、212…入力判別タスク、218…制御タスク、220…CPU、222…フラッシュメモリ、224…RAM、224a…情報格納領域、226…ディスプレイ、228…バス、202,206,216…インタフェースコントローラ。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a packet control device suitable for connecting various network devices.
[0002]
[Prior art]
2. Description of the Related Art In recent years, a technology called VoIP for realizing a voice call on an IP network has become widespread. As a result, the telephone network can be integrated with the data network, the operation rate of the line can be improved, and the communication cost can be reduced. Here, FIG. 1A shows a configuration example of a user-side device compatible with VoIP. In the figure, reference numeral 2 denotes an ADSL modem, which communicates with an Internet service provider (ISP) using a PPPoE (point to point protocol over Ethernet, "Ethernet" or "Ethernet" is a registered trademark) protocol.
[0003]
Are personal computers, 6 is a VoIP adapter, and a LAN (local area network) 5 is formed by these. Reference numeral 4 denotes a router, which extracts packets to be transmitted to the WAN side such as the Internet via the ADSL modem 2 from the packets in the LAN 5 and supplies the packets to the ADSL modem 2, and receives the packets from the WAN side received via the ADSL modem 2 Is supplied to the LAN 5. The VoIP adapter 6 converts a voice signal and a control signal received from the telephone 10 into IP packets and transmits these IP packets via the LAN 5, and converts the supplied IP packets into voice signals and control signals to the telephone 10. Supply.
[0004]
Also, another configuration example of the user-side device is shown in FIG. In the figure, an ADSL modem 2 and a VoIP adapter 6 are directly connected to one personal computer 8, and a telephone 10 is connected to the VoIP adapter 6. Of the IP packets supplied to the personal computer 8 via the ADSL modem 2, packets relating to VoIP are supplied to the VoIP adapter 6 and converted to voice signals or control signals via the VoIP adapter 6, and then these signals are transmitted to the telephone. 10 is supplied. The voice signal and the control signal supplied from the telephone 10 are converted into IP packets in the VoIP adapter 6, and the IP packets are transmitted to the ADSL modem 2 via the personal computer 8. The conversion into the IP packet may be executed by the personal computer 8 in some cases.
[0005]
[Problems to be solved by the invention]
By the way, assuming a configuration without the VoIP adapter 6 and the telephone 10 in FIGS. 1A and 1B, adding the VoIP adapter 6 and the like to these configurations is extremely complicated for the user as described below. Therefore, it is difficult for a user who does not have knowledge of the IP protocol to make settings.
[0006]
First, in the configuration of FIG. 1A, a technique called IP masquerade is frequently used in order to associate a plurality of local addresses in the LAN 5 with one global address on the WAN side. When IP masquerading is performed, a port number different from the port number in the LAN 5 is generally used on the WAN side. However, since the port number to be used for VoIP is defined in advance, it is necessary to set the router 4 so that the packet related to VoIP does not change the port number. In the configuration shown in FIG. 2B, new software corresponding to the VoIP adapter 6 needs to be installed in the personal computer 8, and new settings on the WAN side are also required.
[0007]
Such complicated setting is not limited to VoIP, but often occurs when a new application is added to the network. The present invention has been made in view of the above circumstances, and has as its object to provide a packet control device that can easily add necessary applications.
[0008]
[Means for Solving the Problems]
In order to solve the above problems, the present invention is characterized by having the following configuration. The contents in parentheses are examples.
In the packet control device according to the first aspect, the packet is transmitted and received between a first packet transmission / reception device (LAN-side device) and a second packet transmission / reception device (WAN-side device). An information acquisition unit (SP302 to SP316) for observing a packet transmitted via the path and acquiring address information (MAC address) for specifying the first packet transmission / reception device; And a packet transmitting means (SP402 to SP416) for generating a packet using the obtained address information as a source address and transmitting the packet to the second packet transmitting / receiving apparatus (WAN-side device).
Further, according to the configuration of the second aspect, in the packet control apparatus of the first aspect, the packet is transmitted from one of the first and second packet transmitting / receiving apparatuses to the other in accordance with a result of the acquisition by the information acquiring means. It is characterized by further comprising blocking means (SP110, SP210) for blocking the packet as required.
Further, in the configuration according to the third aspect, in the packet control apparatus according to the first aspect, one of the first and second packet transmitting and receiving apparatuses is transmitted to the other according to an acquisition result of the information acquiring unit. It is characterized by further comprising modifying means (modification) for modifying the transmitted packet as necessary and transmitting the modified packet.
[0009]
BEST MODE FOR CARRYING OUT THE INVENTION
1. Configuration of the embodiment
1.1. Configuration example of user device
Next, a configuration example of a user-side device using an application adapter according to an embodiment of the present invention will be described with reference to FIGS. 2A, a plurality of personal computers 8, 8,... And a router 4 are connected via a LAN 5, as in FIG. A network application adapter 20 is interposed between the ADSL modem 2 and the router 4, and the telephone 10 is connected to the adapter 20. In FIG. 2A, an example in which VoIP is newly introduced to the existing configuration originally including the ADSL modem 2, the router 4, and the personal computers 8, 8,. Example) is assumed.
[0010]
FIG. 2B shows an example in which VoIP is newly introduced while one personal computer 8 is connected to the WAN via the ADSL modem 2 (that is, the adapter 20 and the telephone 10 are added). Example) is assumed. Although the reason will be described later, in any of the examples, it is one of the features of the network application adapter 20 of the present embodiment that the router 4 or the like does not need to change the existing setting status at all.
[0011]
1.2. Hardware configuration of application adapter
Next, the hardware configuration of the network application adapter 20 will be described with reference to FIG. In the figure, reference numeral 220 denotes a CPU, which controls each unit in the adapter 20 via the bus 228 based on a control program stored in the flash memory 222. A RAM 224 is used as a work memory of the CPU 220. A display 226 displays various kinds of information under the control of the CPU 220. Reference numerals 202, 206, and 216 denote interface controllers connected to external devices. The interface controller 202 is connected to the WAN-side device (ADSL modem 2 in the example of FIGS. 2A and 2B), and transmits and receives packets to and from the WAN-side device.
[0012]
The interface controller 206 is connected to the LAN-side device (the router 4 or the personal computer 8 in the example of FIGS. 2A and 2B) and transmits and receives packets to and from the LAN-side device. The interface controller 216 is connected to the telephone 10 and transmits and receives a voice signal and a control signal to and from the telephone 10. That is, the interface controller 216 converts an analog signal (voice signal or control signal) received from the telephone 10 into a digital signal and outputs the digital signal via the bus 228, and converts the digital signal received via the bus 228 into an analog signal. It is supplied to the telephone 10.
[0013]
Incidentally, the packet transmitted in the LAN 5 in FIG. 2A is an IP packet. Here, a format of a TCP / IP packet will be described with reference to FIG. In the figure, an Ethernet header 110 is provided at the beginning of a TCP / IP packet, where a source MAC address MSA and a destination MAC address MDA are specified. Reference numeral 120 denotes an IP header, which specifies a transport layer protocol PROT, a source IP address ISA, and a destination IP address IDA in the OSI hierarchical model.
[0014]
In a TCP / IP packet, "TCP protocol" is specified in the protocol PROT. Reference numeral 130 denotes a TCP header, in which a source port number SRC_PORT and a destination port number DEST_PORT are specified. After the TCP header 130, a data section 140 to be transmitted is provided.
[0015]
FIG. 10A illustrates an example of a TCP / IP packet. In a UDP / IP packet, the protocol PROT of the IP header 120 is set to “UDP”, and a UDP header is provided instead of the TCP header 130. become. In the UDP header, similarly to the TCP header 130, a source port number SRC_PORT and a destination port number DEST_PORT are provided.
[0016]
On the other hand, various protocols are used between the router 4 and the Internet service provider. Here, it is assumed that PPPoE is adopted. That is, in the router 4, the IP packet and the PPPoE packet are mutually converted. Therefore, all packets transmitted and received by the network application adapter 20 are PPPoE packets. Here, FIG. 10B shows an example in which the IP packet of FIG. 10A is converted into a PPPoE packet.
[0017]
In FIG. 10B, reference numeral 150 denotes an Ethernet header, in which a source MAC address MSA and a destination MAC address MDA are specified in the same manner as the Ethernet header 110. Next, reference numeral 160 denotes a PPPoE header, which designates a session ID that uniquely identifies a PPPoE session. Next, reference numeral 170 denotes a PPP header, and the data length after the PPP header 170 is specified here. Reference numeral 180 denotes an IP header, in which, similarly to the IP header 120, a protocol PROT of the transport layer, a source IP address ISA, and a destination IP address IDA are designated. However, the IP address specified in the IP header 180 is a global IP address.
[0018]
Reference numeral 190 denotes a TCP header, in which a source port number SRC_PORT and a destination port number DEST_PORT are specified as in the case of the TCP header 130. After the TCP header 190, a data section 200 to be transmitted is provided. Note that the UDP / IP protocol can be applied to the PPPoE packet for the IP header 180 and thereafter. In such a case, the protocol PROT is set to “UDP” in the IP header 180, and a UDP header is provided instead of the TCP header 190.
[0019]
1.3. Task configuration of network application adapter 20
Next, the task configuration of various tasks executed by the CPU 220 in the adapter 20 will be described with reference to FIG. In the figure, reference numeral 204 denotes a packet analysis / information extraction task, which mutually transmits and receives packets transmitted and received by the interface controllers 202 and 206, analyzes these packets, and extracts necessary information. Further, transmission of packets that should not be transmitted to each other between the interface controllers 202 and 206 is stopped, or packets generated inside the adapter 20 are transmitted via the interface controllers 202 and 206 as necessary.
[0020]
An information storage area 224 a is secured in a predetermined address range in the RAM 224 and stores various information extracted by the packet analysis / information extraction task 204. An input determination task 212 determines whether the signal received from the telephone 10 is a voice signal or a control signal according to the VoIP protocol or a signal for setting an internal state of the adapter 20. Since the network application adapter 20 of the present embodiment is not provided with any input operation element, the user can perform various settings for the adapter 20 by performing a predetermined operation on the telephone 10. The adapter 20 itself may be provided with a unit for inputting information, or the display 226 may be omitted by using a display of another device together.
[0021]
The input determination task 212 determines whether the signal supplied from the telephone 10 corresponds to the “predetermined operation”, and if so, notifies the setting operation task 210 of the content of the operation. In the setting operation task 210, the internal state of the adapter 20, that is, the storage content in the information storage area 224a is updated based on the notified operation content. On the other hand, signals other than the “predetermined operation” supplied from the telephone 10 are control signals or voice signals according to the VoIP protocol. In such a case, the signal is provided to the application control task 208.
[0022]
In the application control task 208, an IP packet (a PPPoE packet) for VoIP communication is generated based on these control signals or voice signals. Further, in the application control task 208, of the packets received via the interface controller 202, IP packets for VoIP communication are decomposed. As a result, a control signal or a voice signal from the communication partner is reproduced and supplied to the telephone 10 via the interface controller 216. A control task 218 controls other tasks based on a program described later.
[0023]
2. Operation of the embodiment
2.1. Packet reception from LAN side
Next, an operation when various events occur in the present embodiment will be described. First, when a certain packet (here, a PPPoE packet) is supplied from the LAN device to the network application adapter 20, the control task 218 starts the LAN packet reception event processing routine shown in FIG. In the figure, when the processing proceeds to step SP102, a necessary information extraction processing subroutine (FIG. 7) for extracting various information from the packet is called. In FIG. 7, when the process proceeds to step SP302, the Ethernet header 150 of the PPPoE packet is analyzed, and the source MAC address MSA and the destination MAC address MDA are obtained.
[0024]
Here, the source MAC address MSA is the MAC address of the device on the LAN side, and the destination MAC address MDA is the MAC address of a broadcast address or a BAS (Broadband Access Server, not shown) on the Internet service provider (ISP) side. . Next, when the process proceeds to step SP304, the PPPoE header 160 is analyzed and a session ID is obtained. Next, when the process proceeds to step SP306, the PPP header 170 or the IP header 180 is analyzed, whereby the IP addresses (the source global IP address and the destination global IP address) included in the PPPoE packet are obtained.
[0025]
Next, when the process proceeds to step SP308, it is determined whether or not each of the information obtained in steps SP302 to 306 matches the information stored in the information storage area 224a. If “NO” is determined here, the process proceeds to step SP310, and it is determined whether or not the information stored in the information storage area 224a is locked (whether or not updating is prohibited). For example, when the session ID or global IP address used for VoIP is fixed in advance, the information is forcibly set by the user (by manual operation via the telephone 10). In some cases. In such a case, if such information is updated based on the packet supplied to the network application adapter 20, communication cannot be performed, so that the information needs to be locked.
[0026]
If the information is not locked, “NO” is determined in the step SP310, and the process proceeds to a step SP312. Here, the information acquired in steps SP302 to SP306 is written to the information storage area 224a instead of the currently stored information. If "NO" is determined in the step SP308 or the step SP10, the step SP312 is not executed, and the information stored up to that point is stored in the information storage area 224a as it is.
[0027]
Next, when the process proceeds to step SP314, it is determined whether or not the information obtained in steps SP302 to SP306 is to be displayed on the display 226. Note that whether to display such information is set in advance by the user. If “YES” is determined in step SP314, the process proceeds to step SP316, and the acquired information is displayed on display 226. With the above steps, the necessary information extraction processing subroutine (FIG. 7) ends, and the process returns to the LAN-side packet reception event processing routine (FIG. 5).
[0028]
In FIG. 5, when the process proceeds to step SP104, the destination port number DEST_PORT in the TCP header 190 (or a UDP header instead thereof) is analyzed. Then, it is determined whether or not the port number is in a range other than the TCP or UDP number 5060 or the UDP numbers 5004 to 5015. Here, these port numbers will be briefly described. In VoIP, two protocols, "SIP" for call setting control and "RTP" for voice signal transmission, are adopted. TCP or UDP No. 5060 is allocated for SIP, and UDP Nos. 5004 to 5015 are allocated to RTP.
[0029]
By the way, if "YES" is determined in step SP104, that is, if the packet received from the LAN-side device is a packet not related to VoIP, the process proceeds to step SP106, and the packet is transmitted to the WAN side as it is. . As a result, the packet transmitted to the WAN-side device is exactly the same as when no network application adapter 20 is inserted.
[0030]
On the other hand, if the packet received from the LAN-side device is a packet related to VoIP, “NO” is determined in the step SP104, and the process proceeds to a step SP108. Here, it is determined whether the use of SIP or RTP is permitted in the LAN-side device. Note that the use of SIP or RTP in the LAN-side device is not permitted in a default state, but it is also possible for the user to set in advance in the adapter 20 in order to enable the use.
[0031]
If the use of SIP or RTP in the LAN device is not permitted, “NO” is determined in the step SP108, and the process proceeds to a step SP110, where the packet is discarded. That is, in such a state, VoIP can be executed only by the telephone 10 connected to the adapter 20, and even if another VoIP adapter or the like is connected to the LAN side device, it is impossible to use it. Will be possible.
[0032]
On the other hand, when the use of SIP or RTP in the LAN-side device is permitted, “YES” is determined in step SP108, and the process proceeds to step SP106. As a result, the packet related to VoIP generated in the LAN device is transmitted to the WAN device via the adapter 20 as it is. When the above steps are completed, the event processing when a packet is received from the LAN device ends.
[0033]
2.2. Packet reception from WAN side
Next, an operation when a PPPoE packet is supplied from the WAN device to the network application adapter 20 will be described. When a packet is supplied from the WAN-side device, the WAN-side packet reception event processing routine shown in FIG. In the figure, when the processing proceeds to step SP202, the necessary information extraction processing subroutine (FIG. 7) is called as in step SP102 described above, and the source MAC address MSA, destination MAC address MDA, session ID, source global The IP address and the destination global IP address are extracted.
[0034]
However, in the packet received from the WAN device, the source MAC address MSA and the source global IP address are the addresses of the BAS on the Internet service provider (ISP) side, and the destination MAC address MDA and the destination global IP address are This is the address of the LAN device. Next, when the process proceeds to step SP204, it is determined whether or not the extracted packet is a packet of the SIP or RTP protocol.
[0035]
Here, if the packet is not a packet of the SIP or RTP protocol, it is determined as “NO”, the process proceeds to step SP212, and the packet is transmitted to the LAN side device as it is. That is, when the packet received from the WAN device is a packet not related to VoIP, the packet transmitted to the LAN device is exactly the same as when the network application adapter 20 is not inserted.
[0036]
On the other hand, if the packet received from the WAN-side device is a packet related to VoIP, “YES” is determined in the step SP204, and the process proceeds to a step SP206. Here, it is determined whether the network application adapter 20 is communicating using SIP or RTP. If "YES" is determined here, the process proceeds to step SP210, and a process according to the SIP or RTP protocol is executed in the adapter 20 (in particular, in the application control task 208). As a result, the communication process being executed in the adapter 20 is continued for the newly received packet.
[0037]
If the adapter 20 is not communicating using SIP or RTP, "NO" is determined in the step SP206, and the process proceeds to a step SP208. Here, it is determined whether the use of SIP or RTP in the LAN device is permitted. If “YES” is determined here, the process proceeds to step SP212 described above, and the received packet is transmitted to the LAN-side device as it is. As a result, processing related to SIP or RTP is processed in the LAN-side device.
[0038]
If “NO” is determined in step SP208, the process proceeds to step SP210 described above. That is, when the use of SIP or RTP in the LAN-side device is not permitted and the adapter 20 receives a packet related to the SIP or RTP protocol in a state where the adapter 20 is not communicating using SIP or RTP, Usually, it is a case where a new call setting request is received from the outside. Therefore, in such a case, in the application control task 208, a call setting process or the like according to the protocol is performed on the packet. When the above steps are completed, the event processing when a packet is received from the WAN side device ends.
[0039]
2.3. Packet transmission processing
In the application control task 208, when a control signal or a voice signal is supplied from the telephone set 10 via the input discrimination task 212, the TCP header 190 of the PPPoE packet for VoIP (or a UDP header instead of this) is based on this. And the data section 200 are sequentially generated. When the data section 200 and the like are generated, a packet transmission request is supplied to the control task 218, and the control task 218 starts a packet transmission processing routine shown in FIG.
[0040]
In the figure, when the processing proceeds to step SP402, it is determined whether or not the use of SIP or RTP in the LAN-side device is not permitted and whether the SIP or RTP is usable on the adapter 20 side. . If "NO" is determined here, the present routine ends immediately. On the other hand, if “YES” is determined in the step SP402, the process proceeds to a step SP404, and it is determined whether or not information necessary for forming a packet is already stored in the information storage area 224a.
[0041]
Here, the “necessary information” is the global IP address of the LAN device, the session ID of the PPPoE session, the MAC address of the LAN device, and the MAC address of the WAN device. If "NO" is determined in the step SP404, the process of this routine also ends immediately.
[0042]
That is, if “NO” is determined in the step SP402 or SP404, the data part 200 generated in the application control task 208 is discarded without being actually transmitted as an IP packet. On the other hand, if “YES” is determined in both of these steps, the process proceeds to step SP406, in which the global IP address of the LAN device extracted in the necessary information extraction processing subroutine (FIG. 7) is replaced by the source IP address. An ISA IP header 180 is formed.
[0043]
Next, when the process proceeds to step SP408, the PPP header 170 is configured based on the data length of the data section 200 and the like. Next, when the process proceeds to step SP410, the PPPoE header 160 is configured based on the session ID of the PPPoE session. Next, when the process proceeds to step SP412, the MAC address of the LAN-side device is set as the source MAC address MSA, the MAC address of the WAN-side device is set as the destination MAC address MDA, and the Ethernet header 150 is formed.
[0044]
By the above steps, the PPPoE packet (FIG. 10B) is completed. Therefore, when the process proceeds to step SP414, the PPPoE packet is transmitted to the WAN side device. Next, when the process proceeds to step SP416, the application control task 208 clears the packet transmission request related to the PPPoE packet.
[0045]
2.4. Phone operation detection processing
When the telephone 10 is off-hook and the telephone 10 is off-hook and any operation is performed on the numeric keypad, a telephone operation processing routine (FIG. 9) shown in FIG. In the figure, when the process proceeds to step SP502, it is determined whether or not the operation is an instruction to start a VoIP connection. For example, an operation of inputting a normal telephone number or the like on the numeric keypad is an operation of instructing a start of VoIP connection.
[0046]
If "YES" is determined here, the process proceeds to step SP504, and it is determined whether or not the destination number is displayed. Whether or not to display the destination number is set by the user in the adapter 20 in advance. If “YES” is determined in step SP504, the process proceeds to step SP506, and the destination number is displayed on display 226. Next, when the process proceeds to step SP508, the input telephone number is notified to the application control task 208, and the application control task 208 executes a protocol process such as a call control process on the telephone number. .
[0047]
On the other hand, if “NO” is determined in step SP502, the process proceeds to step SP510. Here, it is determined whether or not the operation content corresponds to a “predetermined operation” for performing various settings for the adapter 20. If "YES" is determined here, the contents of the parameters and the like stored in the information storage area 224a are updated based on the manual operation of the numeric keyboard of the telephone 10 by the user. On the other hand, if “NO” is determined in step SP510, the processing is completed without performing substantial processing in this routine.
[0048]
3. Modified example
The present invention is not limited to the embodiments described above, and various modifications are possible, for example, as follows.
(1) The network application adapter 20 of the above embodiment is connected to the LAN-side device, and is premised on providing the VoIP service using the MAC address of the LAN-side device. That is, in step SP302 (FIG. 7), the MAC address of the LAN-side device is acquired based on the PPPoE packet sent by the LAN-side device such as the router 4, and the acquired MAC address is sent to the PPPoE sent by the network application adapter 20. Used as the source MAC address MSA of the packet.
[0049]
However, the network application adapter 20 may be used even when the LAN device is not operating. Specifically, when a PPPoE packet is not supplied from the LAN-side device interface controller 206 for a predetermined period of time, the adapter 20 uses its own MAC address to establish a PPPoE session with the WAN-side device (first PPPoE session). Session) to provide a VoIP service via the session.
[0050]
When the operation of the LAN-side device is started after the adapter 20 establishes the PPPoE session, the adapter 20 simulates the BAS of the WAN-side device, and establishes a PPPoE session (first session) between the adapter 20 and the LAN-side device. 2), and communication between the LAN-side device and the WAN-side device may be enabled by mediating the first and second sessions.
[0051]
(2) In the above-described embodiment, an example has been described in which the LAN-side device and the WAN-side device communicate using the PPPoE protocol. However, the protocol between the LAN-side device and the WAN-side device is not limited to PPPoE. Needless to say, various protocols may be used. In this case, depending on the type of the protocol, an ascending serial number may be assigned to each packet to be transmitted.
[0052]
In such a case, if the LAN-side device and the network application adapter 20 independently transmit packets to the WAN-side device, duplicate serial numbers will be assigned to a plurality of packets to be transmitted. In such a case, in the adapter 20, a part of the packet (serial number in the above example) transmitted and received between the LAN-side device and the WAN-side device may be modified and transmitted.
[0053]
(3) In the above embodiment, the network application adapter 20 provides the VoIP service. However, the application provided by the adapter 20 is not limited to the VoIP service. Alternatively, the present invention can be applied to various applications using a specific port number.
[0054]
【The invention's effect】
As described above, according to the present invention, a packet transmitted / received between the first packet transmitting / receiving apparatus and the second packet transmitting / receiving apparatus is observed, and address information for specifying the first packet transmitting / receiving apparatus is obtained. At the same time, a packet having the obtained address information as the source address is generated and transmitted to the second packet transmitting / receiving apparatus, so that a new application can be executed without changing the settings of the first and second packet transmitting / receiving apparatuses. Can be easily added. Further, in the present invention, since address information can be obtained by observing a packet, setting operations by a user can be greatly reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration example of a conventional user device using VoIP.
FIG. 2 is a block diagram illustrating a configuration example of a user-side device using a network application adapter 20 according to an embodiment of the present invention.
FIG. 3 is a hardware block diagram of the network application adapter 20 of the embodiment.
FIG. 4 is a block diagram of a task of the network application adapter 20 according to the embodiment.
FIG. 5 is a flowchart of a LAN-side packet reception event processing routine.
FIG. 6 is a flowchart of a WAN-side packet reception event processing routine.
FIG. 7 is a flowchart of a necessary information extraction processing subroutine.
FIG. 8 is a flowchart of a packet transmission processing routine.
FIG. 9 is a flowchart of a telephone operation processing routine.
FIG. 10 is a diagram showing the configuration of an IP packet and a PPPoE packet.
[Explanation of symbols]
2 ADSL modem, 4 router, 5 LAN, 6 VoIP adapter, 10 telephone, 20 network application adapter, 8, 8, ... personal computer, 110 Ethernet header, 120 IP header, 130 TCP header, 140 data part, 150 Ethernet header, 160 PPPoE header, 170 PPP header, 180 IP header, 190 TCP header, 200 data part, 204 packet analysis / information extraction task, 208 application Control task, 210: Setting operation task, 212: Input determination task, 218: Control task, 220: CPU, 222: Flash memory, 224: RAM, 224a: Information storage area, 226: Display, 228: Bus, 202, 206 , 21 ... interface controller.

Claims (3)

第1のパケット送受信装置と第2のパケット送受信装置との間で送受信されるパケットを伝送する経路に介挿されるパケット制御装置であって、
前記経路を介して伝送されるパケットを観測し、前記第1のパケット送受信装置を特定するアドレス情報を取得する情報取得手段と、
該取得したアドレス情報を送信元アドレスとするパケットを生成し、前記第2のパケット送受信装置に送出するパケット送出手段と
を具備することを特徴とするパケット制御装置。
A packet control device inserted in a path for transmitting a packet transmitted / received between a first packet transmitting / receiving device and a second packet transmitting / receiving device,
Information acquiring means for observing a packet transmitted via the path and acquiring address information for specifying the first packet transmitting / receiving apparatus;
A packet control unit, comprising: a packet transmission unit that generates a packet using the acquired address information as a transmission source address and transmits the packet to the second packet transmission / reception device.
前記情報取得手段における取得結果に応じて、前記第1または第2のパケット送受信装置の一方から他方に送出されたパケットを必要に応じて遮断する遮断手段
をさらに具備することを特徴とする請求項1記載のパケット制御装置。
2. The apparatus according to claim 1, further comprising a blocking unit configured to block a packet transmitted from one of the first and second packet transmission / reception devices to the other as necessary according to an acquisition result of the information acquisition unit. 2. The packet control device according to 1.
前記情報取得手段における取得結果に応じて、前記第1または第2のパケット送受信装置の一方から他方に送出されたパケットを必要に応じて改変して送出する改変手段
をさらに具備することを特徴とする請求項1記載のパケット制御装置。
According to another feature of the present invention, the information processing apparatus further includes a modification unit configured to modify a packet transmitted from one of the first and second packet transmission / reception devices to the other as necessary and transmit the packet according to an acquisition result of the information acquisition unit. The packet control device according to claim 1.
JP2002192899A 2002-07-02 2002-07-02 Packet control apparatus Pending JP2004040348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002192899A JP2004040348A (en) 2002-07-02 2002-07-02 Packet control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002192899A JP2004040348A (en) 2002-07-02 2002-07-02 Packet control apparatus

Publications (1)

Publication Number Publication Date
JP2004040348A true JP2004040348A (en) 2004-02-05

Family

ID=31701998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002192899A Pending JP2004040348A (en) 2002-07-02 2002-07-02 Packet control apparatus

Country Status (1)

Country Link
JP (1) JP2004040348A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246086A (en) * 2005-03-03 2006-09-14 Hitachi Communication Technologies Ltd Wireless lan card for data/voice transceiving
JP2006304241A (en) * 2005-04-18 2006-11-02 Celan Technology Inc Data transmitter/receiver and method for constructing band guaranteed network using the same
JP2007060610A (en) * 2005-07-29 2007-03-08 Nippon Telegr & Teleph Corp <Ntt> Network connection system, network connection apparatus, program thereof and recording medium
JP2009512377A (en) * 2005-10-21 2009-03-19 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Control of service quality in communication systems
JP2013198104A (en) * 2012-03-22 2013-09-30 Nec Engineering Ltd Signal converter, exchange, and signal conversion method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246086A (en) * 2005-03-03 2006-09-14 Hitachi Communication Technologies Ltd Wireless lan card for data/voice transceiving
JP4639854B2 (en) * 2005-03-03 2011-02-23 株式会社日立製作所 Wireless LAN card for data and voice transmission / reception
JP2006304241A (en) * 2005-04-18 2006-11-02 Celan Technology Inc Data transmitter/receiver and method for constructing band guaranteed network using the same
JP2007060610A (en) * 2005-07-29 2007-03-08 Nippon Telegr & Teleph Corp <Ntt> Network connection system, network connection apparatus, program thereof and recording medium
JP4612528B2 (en) * 2005-07-29 2011-01-12 日本電信電話株式会社 Network connection system, network connection device and program thereof
JP2009512377A (en) * 2005-10-21 2009-03-19 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Control of service quality in communication systems
JP4648458B2 (en) * 2005-10-21 2011-03-09 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Control of service quality in communication systems
JP2013198104A (en) * 2012-03-22 2013-09-30 Nec Engineering Ltd Signal converter, exchange, and signal conversion method

Similar Documents

Publication Publication Date Title
US6694437B1 (en) System and method for on-demand access concentrator for virtual private networks
US20060206705A1 (en) Security protocols on incompatible transports
JP3782981B2 (en) Session relay system, client terminal, session relay method, remote access method, session relay program, and client program
WO2007136101A1 (en) Communication module and application program provided with same
EP2096833A1 (en) A voice-over-IP(VoIP-) telephony computer system
WO2003105410A1 (en) Mechanism for implementing voice over ip telephony behind network firewalls
US20030236865A1 (en) Method and system for configuring remote access to a server
JP2005341237A (en) Network setting method and program, and its storage medium
JP2008078823A (en) Network equipment, port open/close control method, and port open/close control program
JP2004040348A (en) Packet control apparatus
JP2007235638A (en) Sip communication system, sip gateway device and sip communication control method used for the same
US20080159302A1 (en) Network Communication Equipment with PPPoE Bridging Function
JP2005072759A (en) Transmission device and method therefor, reception device and method therefor, communication device and method therefor, and program
JP2007274165A (en) Ip telephone system
JP2008078822A (en) Management terminal, port open/close control method, and port open/close control program
JP4371955B2 (en) Button telephone system and voice data communication method used therefor
JP2005197936A (en) Communication system, registering device, and communication device
JP4018361B2 (en) Network environment notification method, network environment notification system, and program
JP3555852B2 (en) Method and system for making a call from VoIP telephone terminal and information recording medium
JP3698701B2 (en) Establishing calls on intranets and external networks via DMZ
WO2002089415A1 (en) Method for communication audio and video data in multimedia communication system using h.323 protocol
Herrero Working with Ethernet
JP2003273892A (en) Router
JP3807334B2 (en) Modem evaluation system
JP4152304B2 (en) IP phone system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050224

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061127

A131 Notification of reasons for refusal

Effective date: 20061212

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Effective date: 20070208

Free format text: JAPANESE INTERMEDIATE CODE: A523

A131 Notification of reasons for refusal

Effective date: 20070925

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Effective date: 20071122

Free format text: JAPANESE INTERMEDIATE CODE: A523

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080729