JP2004180253A - Communication device, communication method and telephone device capable of using the same, video phone device, and imaging device - Google Patents

Communication device, communication method and telephone device capable of using the same, video phone device, and imaging device Download PDF

Info

Publication number
JP2004180253A
JP2004180253A JP2003005101A JP2003005101A JP2004180253A JP 2004180253 A JP2004180253 A JP 2004180253A JP 2003005101 A JP2003005101 A JP 2003005101A JP 2003005101 A JP2003005101 A JP 2003005101A JP 2004180253 A JP2004180253 A JP 2004180253A
Authority
JP
Japan
Prior art keywords
packet
communication method
unit
processing
communication
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.)
Granted
Application number
JP2003005101A
Other languages
Japanese (ja)
Other versions
JP3557202B2 (en
Inventor
Kazuaki Okamoto
一晃 岡本
Hideo Hirono
英雄 廣野
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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
Priority to JP2003005101A priority Critical patent/JP3557202B2/en
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to CN038124793A priority patent/CN1656767B/en
Priority to KR1020077018565A priority patent/KR100899923B1/en
Priority to PCT/JP2003/012166 priority patent/WO2004036865A1/en
Priority to KR1020077006527A priority patent/KR100790673B1/en
Priority to AU2003266582A priority patent/AU2003266582A1/en
Priority to KR1020047014902A priority patent/KR100753734B1/en
Publication of JP2004180253A publication Critical patent/JP2004180253A/en
Application granted granted Critical
Publication of JP3557202B2 publication Critical patent/JP3557202B2/en
Priority to US11/003,982 priority patent/US7843968B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Telephonic Communication Services (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide technology for effectively processing data communication by a plurality of communication protocols. <P>SOLUTION: In an internet telephone device 100, when a network interface unit 130 receives a packet, a protocol detecting unit 176 detects the packet whether a TCP packet or a UDP packet. When the packet is detected as the TCP packet, a CPU 110, which is a general circuit, performs a packet process by software. When the packet is detected as the UDP packet, a UDP processing unit 174, which is a special circuit, performs the packet process. Audio data to be transmitted and received by the UDP packet is decoded by a codec processing unit 140 and outputted to a speaker 160. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は通信技術に関し、特に複数の通信プロトコルによるデータ通信を効率的に処理する技術に関する。
【0002】
【従来の技術】
インターネットが広く普及し、ネットワークのインフラの整備も進みつつある現在、通話音声信号を符号化したデータをパケット化し、インターネットなどのネットワークを介して送受信するインターネット電話装置が注目を集めている。通話音声と同時にビデオ映像を送ることにより、ビデオ電話装置として利用することも可能であり、従来の電話装置に取って代わる次世代の電話装置として期待されている。
【0003】
現在、パケット通信のための通信プロトコルとして、TCP/IP(Transmission Control Protocol / Internet Protocol)が広く利用されている。TCPは、装置間で接続を確立してからデータを送受信するなど、正確性を重視した通信プロトコルである。しかしながら、処理が複雑で、相手側がパケットを受信したことを確認するまで次のパケットを送ることができないなどの時間的制約があり、リアルタイム性に欠けるため、通話音声の送受信には不向きである。
【0004】
TCPよりも簡便な通信プロトコルに、UDP/IP(User Datagram Protocol / Internet Protocol)がある。UDPでは、データの送受信に先立って装置間で接続を確立する必要がなく、パケットの受信確認を待たずに次のパケットを送ることが許されるので、送信側は次々にパケットを送出することができる。そのため、データの正確性よりもリアルタイム性が重視される、通話音声の送受信に適している。
【0005】
TCPとUDPの双方の通信プロトコルをサポートする装置では、パケット通信のための処理は、CPUなどの汎用プロセッサによりソフトウェア処理されるのが一般的である。また、ネットワークルータなど、高速性が要求される一部の装置では、全てのプロトコル処理をハードウェア化して実装している。
【0006】
【非特許文献1】
エスティー(ST)マイクロエレクトロニクス株式会社、ボイスオーバーアイピー(VoIP)デジタルプロセッサデータシート、[online]、平成14年、[平成14年9月30日検索]、インターネット<URL:http://www.st.com/stonline/books/pdf/docs/7818.pdf>
【0007】
【発明が解決しようとする課題】
双方の通信プロトコルをソフトウェアにより処理する方式では、処理効率が悪い、速度が遅い、消費電力が大きい、などの課題がある。とくに、複数の相手と同時に通話したり、音声とともに画像を送ったりする場合には、プロトコル処理が律速となり、リアルタイム性が損なわれる恐れがある。さらに、通話中は常にCPUがプロトコル処理を実行しているため、その他のアプリケーションを並行して実行させるのが困難である。処理速度を向上させるためにCPU能力を上げると、コスト、消費電力、熱発生などを増大させる結果となるため、いずれかを犠牲にして妥協点を見出す必要がある。
【0008】
双方の通信プロトコルをハードウェアにより処理する方式では、高速なプロトコル処理が可能となるが、複雑な処理が必要なTCPの処理もハードウェア化するため、回路規模が大きくなり、コスト、消費電力、熱の発生などの点で問題がある。
【0009】
本発明は、そうした課題に鑑みてなされたものであり、その目的は、複数の通信プロトコルによるデータ通信を効率よく処理する技術を提供することにある。本発明の別の目的は、比較的簡便な回路構成により、高速でリアルタイムな通信を実現する技術を提供することにある。
【0010】
【課題を解決するための手段】
本発明のある態様は通信装置に関する。この通信装置は、ネットワークを介して送られたパケットを受信する受信部と、受信したパケットが、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式により送られたパケットであったとき、そのパケットをソフトウェアにより処理するための汎用回路と、受信したパケットが、装置間での接続の確立を要しない第2の通信方式により送られたパケットであったとき、そのパケットを処理するための専用回路と、を備える。
【0011】
本発明の別の態様も、通信装置に関する。この通信装置は、ネットワークを介して送られたパケットを受信する受信部と、受信したパケットが、送信パケットの到着確認を行う第1の通信方式により送られたパケットであったとき、そのパケットをソフトウェアにより処理するための汎用回路と、受信したパケットが、送信パケットの到着確認を行わない第2の通信方式により送られたパケットであったとき、そのパケットを処理するための専用回路と、を備える。
【0012】
汎用回路は、CPU、DSPなどであってもよい。第1の通信方式は、たとえば、TCPであってもよい。第2の通信方式は、たとえば、UDPであってもよい。UDPの処理のみをハードウェア化することにより、回路規模の増大を抑えつつ、UDPの処理を高速化することができる。
【0013】
この通信装置は、ネットワークを介してパケットを送信する送信部をさらに備え、送信するパケットが、前記第1の通信方式により送られるとき、そのパケットを前記汎用回路により処理し、送信するパケットが、前記第2の通信方式により送られるとき、そのパケットを前記専用回路により処理してもよい。
【0014】
この通信装置は、受信したパケットが、どの通信方式により送られたかを検出する検出部をさらに備えてもよい。検出部は、パケットのヘッダを参照して、通信方式を検出してもよい。この検出部も、専用の回路により構成されてもよい。
【0015】
前記検出部により、前記第1の通信方式により送られたパケットが検出されたとき、前記検出部は、そのパケットを、前記汎用回路を介さずに、直接前記専用回路へ送ってもよい。ソフトウェア処理を介さず、専用回路により処理することで、高速な処理が実現する。また、CPUなどの汎用回路の処理負担を軽減することができる。
【0016】
この通信装置は、パケットを構成するデータを暗号化または復号化するセキュリティ処理部をさらに備えてもよい。このセキュリティ処理部も、専用の回路により構成されてもよい。
【0017】
本発明のさらに別の態様も、通信装置に関する。この通信装置は、ネットワークを介して送られたパケットを受信する受信部と、受信したパケットがフラグメント化されたパケットであったとき、そのパケットをソフトウェアにより処理するために汎用回路へ送り、受信したパケットがフラグメント化されていないパケットであったとき、そのパケットをハードウェアにより処理するために第1の専用回路へ送る第1の判別部と、を備える。
【0018】
IPパケットのうち、オプション付きのIPパケットや、フラグメント化されたIPパケットなどは、複雑な処理を必要とするので、これらのIPパケットも専用回路で処理しようとすると、回路規模が増大し、消費電力やコストの増大を招く。そのため、通常のIPパケットは専用回路で高速に処理しつつ、通常のIPパケットよりも複雑な処理を必要とする特殊なIPパケットは、CPUなどの汎用回路でソフトウェアにより処理することで、専用回路の回路規模を抑え、消費電力およびコストを低減することができる。
【0019】
この通信装置は、前記第1の専用回路により処理したパケットが、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式により送られたパケットであったとき、そのパケットを前記汎用回路に送り、前記第1の専用回路により処理したパケットが、装置間での接続の確立を要しない第2の通信方式により送られたパケットであったとき、そのパケットをハードウェアにより処理するための第2の専用回路へ送る第2の判別部をさらに備えてもよい。通常のIPパケットのIP処理をIP処理回路で行った後、パケットがUDPであるかTCPであるかを判断し、UDPパケットのみをUDP処理回路で処理し、TCPパケットはCPUなどの汎用回路によりソフトウェア処理してもよい。
【0020】
本発明のさらに別の態様も、通信装置に関する。この通信装置は、ネットワークを介して受信したパケットが、リアルタイムな処理を要するデータを含むパケットであるか否かを判別する判別部と、前記パケットを一時的に保持するバッファと、前記バッファへの前記パケットの格納を制御する制御部と、を備え、前記制御部は、前記バッファの空き領域が所定のしきい値を下回ったとき、前記リアルタイムな処理を要するデータを含むパケットの前記バッファへの格納を許可する一方、リアルタイムな処理を要するデータを含まないパケットの前記バッファへの格納を禁止する。
【0021】
リアルタイムな処理を要するパケットを優先的に受信バッファに取り込んで処理することで、バッファが飽和してリアルタイムな処理を要するパケットが破棄される可能性を抑えることができる。
【0022】
本発明のさらに別の態様も、通信装置に関する。この通信装置は、ネットワークを介して受信したパケットが、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式により送られたパケットであるか、装置間での接続の確立を要しない第2の通信方式により送られたパケットであるかを判別する判別部と、前記パケットを一時的に保持するバッファと、前記バッファへの前記パケットの格納を制御する制御部と、を備え、前記制御部は、前記バッファの空き領域が所定のしきい値を下回ったとき、前記第2の通信方式により送られたパケットの前記バッファへの格納を許可する一方、前記第1の通信方式により送られたパケットの前記バッファへの格納を禁止する。
【0023】
電話装置における通話音声信号や、ビデオ電話装置における映像信号などをUDPにより送受信する場合、UDPパケットをTCPパケットより優先して選択的に取り込むことにより、UDPパケットが破棄されて通話音声信号などのデータが欠落する可能性を抑えることができる。
【0024】
本発明のさらに別の態様も、通信装置に関する。この通信装置は、ネットワークを介して受信したパケットの種別を判別する判別部と、前記パケットを一時的に保持するバッファと、前記バッファへのパケットの格納を制御する制御部と、を備え、前記制御部は、前記バッファへのパケットの格納の許否を判定するためのしきい値をパケットの種別に応じて複数保持し、前記バッファの空き領域がしきい値を下回ったパケット種別のパケットの前記バッファへの格納を禁止する。
【0025】
リアルタイムな処理を要するパケットや、重要度の高いパケットに対するしきい値を、その他のパケットに対するしきい値よりも低く設定してもよい。これにより、バッファの空き領域が少なくなったときに、リアルタイム性を有するパケットや、重要度の高いパケットを優先的に取り込み、パケットが破棄される可能性を抑えることができる。
【0026】
本発明のさらに別の態様は、電話装置に関する。この電話装置は、音声を入力する入力部と、前記入力部により入力された音声を他の装置へ送信し、他の装置から音声を受信する通信部と、他の装置から受信した音声を出力する出力部と、を備え、前記通信部は、ネットワークを介して送られたパケットを受信する受信部と、受信したパケットの通信方式を検出する検出部と、前記通信方式が、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式であったとき、そのパケットをソフトウェアにより処理するための汎用回路と、前記通信方式が、装置間での接続の確立を要しない第2の通信方式であったとき、そのパケットを処理するための専用回路と、を含み、前記音声を前記第2の通信方式により送受信する。出力部はスピーカであってもよく、入力部はマイクロホンであってもよい。
【0027】
本発明のさらに別の態様は、ビデオ電話装置に関する。このビデオ電話装置は、画像および音声を入力する入力部と、前記入力部により入力された画像および音声を他の装置へ送信し、他の装置から画像および音声を受信する通信部と、他の装置から受信した画像および音声を出力する出力部と、を備え、前記通信部は、ネットワークを介して送られたパケットを受信する受信部と、受信したパケットの通信方式を検出する検出部と、前記通信方式が、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式であったとき、そのパケットをソフトウェアにより処理するための汎用回路と、前記通信方式が、装置間での接続の確立を要しない第2の通信方式であったとき、そのパケットを処理するための専用回路と、を含み、前記画像および音声を前記第2の通信方式により送受信する。
【0028】
本発明のさらに別の態様は、撮像装置に関する。この撮像装置は、画像を撮像する撮像部と、前記撮像部により撮像された画像を他の装置へ送信し、他の装置から画像を受信する通信部と、を備え、前記通信部は、ネットワークを介して送られたパケットを受信する受信部と、受信したパケットの通信方式を検出する検出部と、前記通信方式が、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式であったとき、そのパケットをソフトウェアにより処理するための汎用回路と、前記通信方式が、装置間での接続の確立を要しない第2の通信方式であったとき、そのパケットを処理するための専用回路と、を含み、前記画像を前記第2の通信方式により送受信する。
【0029】
本発明のさらに別の態様は、通信方法に関する。この方法は、パケットを受信したときに、そのパケットの通信方式を検出する工程と、前記通信方式に応じて、そのパケットを処理すべき回路にパケットのデータを送る工程と、を含む。
【0030】
前記検出する工程は、パケットのヘッダを解析することにより、データの送受信に先立って装置間での接続の確立を要する第1の通信方式によるパケットであるか、装置間での接続の確立を要しない第2の通信方式によるパケットであるかを検出し、前記データを送る工程は、前記第1の通信方式によるパケットを、ソフトウェア処理するための汎用回路に送り、前記第2の通信方式によるパケットを、そのパケットを処理するための専用回路に送ってもよい。
【0031】
前記検出する工程は、パケットのヘッダを解析することにより、フラグメント化されたパケットであるか、フラグメント化されていないパケットであるかを検出し、前記データを送る工程は、前記フラグメント化されたパケットを、ソフトウェア処理するための汎用回路に送り、前記フラグメント化されていないパケットを、そのパケットを処理するための専用回路に送ってもよい。
【0032】
リアルタイム性を要しないデータは、前記第1の通信方式により送受信する一方、リアルタイム性を要するストリームデータは、前記第2の通信方式により送受信してもよい。リアルタイムな処理を要するデータとは、時間制約を受けるデータをいい、また、リアルタイム性を要しないデータとは、時間制約を受けないデータをいう。ストリームデータは、たとえば、通話音声データ、動画データ、などであってもよい。
【0033】
本発明のさらに別の態様は、通信方法に関する。この方法は、パケットを受信したときに、そのパケットの種別を検出する工程と、前記種別ごとに設定された条件に基づいて、パケットを一時的に保持するバッファへのそのパケットの格納の許否を判断する工程と、格納が許可されたときに、そのパケットを前記バッファへ格納する工程と、格納が許可されなかったときに、そのパケットを破棄する工程と、を含む。
【0034】
なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、などの間で変換したものもまた、本発明の態様として有効である。
【0035】
【発明の実施の形態】
(第1の実施の形態)
図1は、本発明の第1の実施の形態に係る通信装置の一例としてのインターネット電話装置100の全体構成を示す。インターネット電話装置100は、インターネット20を介して、他のインターネット電話装置100との間で通話を行うための装置である。インターネット電話装置100は、主に、ソフトウェア処理を実行するための汎用回路であるCPU110、プログラムエリアまたはワークエリアとして利用されるメモリ120、インターネット20を介してパケットを送受信するネットワークインターフェース部130、音声信号を入力するマイク150、音声信号を出力するスピーカ160、音声信号の圧縮符号化処理および復号処理を行うコーデック処理部140、通信プロトコルに応じた各種処理を行うプロトコル処理部170、およびこれらの構成を電気的に接続するバス102を備える。
【0036】
本実施の形態のインターネット電話装置100では、トランスポート層の通信プロトコルとして、UDPを利用して音声信号を送受信する。UDPは、接続の確立を要さず、パケットを次々に送出することが可能な通信方式であるため、プロトコル処理が簡単で、かつ高速な通信が可能であり、通話音声を送るなどのリアルタイムな通信に適している。本実施の形態のインターネット電話装置100では、UDPにより送られたパケットの処理を、専用の回路であるプロトコル処理部170に実行させることで、さらに処理速度を向上させ、通話音声のリアルタイムな送受信を実現する。
【0037】
インターネット電話装置100が送受信するパケットのうち、TCPにより送受信されるパケットは、CPU110を利用してソフトウェアにより処理される。リアルタイム性を要しないTCPについては、専用の回路を設けず、汎用回路によるソフトウェア処理を行うことで、回路規模の増大を抑え、コスト、消費電力、熱発生の増大を最小限に抑えることができる。本発明者の試算によれば、TCPとUDPの双方を専用回路により処理する場合に比べて、回路の面積および消費電力が約1/3で済むことが分かっている。
【0038】
ネットワークインターフェース部130が受信したパケットは、プロトコル処理部170のIP処理部178に送られる。IP処理部178は、パケットが自装置に割り当てられたIPアドレスに宛てられたものであるか否かを判断し、自装置宛てのパケットのみをプロトコル検出部176に送る。プロトコル検出部176は、パケットに付されたIPヘッダ内のプロトコル種別を示すPROTを参照して、または、TCPヘッダまたはUDPヘッダを参照して、プロトコルの種別を検出する。パケットがTCPにより送られたパケットであった場合は、そのパケットのデータをバス102上に送り、CPU110によりソフトウェア処理させる。パケットがUDPのパケットであった場合は、そのパケットのデータをUDP処理部174に送り、UDPデータの処理のために専用に設けられた回路により処理させる。
【0039】
UDP処理部174は、UDPパケットを処理するための専用回路であり、UDPパケットを受け取って、そのヘッダを解析し、必要な処理を実行する。セキュリティ処理部172は、データに対して暗号化処理などのセキュリティ対策が施されていた場合に、暗号を復号するなどの処理を行う。復号されたデータは、コーデック処理部140に送られる。コーデック処理部140は、圧縮符号化されていた通話音声信号を復号し、スピーカ160に出力する。
【0040】
このように、本実施の形態のインターネット電話装置100では、正確性よりもリアルタイム性が重視され、通話中、常時処理が必要となる通話音声データは、UDPにより送受信を行い、専用回路であるUDP処理部174によりハードウェア処理を行う一方、リアルタイム性よりも正確性が重視されるデータは、TCPにより送受信を行い、CPU110によりソフトウェア処理を行う。これにより、回路の複雑化、回路規模、コスト、消費電力、熱発生などの増大を抑えつつ、通話音声データを高速に処理することが可能となる。このような利点は、複数の相手と同時に通話したり、通話音声とともに画像を送信するなど、大量のデータを同時に処理することが必要な場合に、より顕著となる。また、プロトコル検出部176によりパケットの種別を検出し、パケットの処理主体を高速かつ適切に選択することができる。さらに、CPU110の処理負担を軽減し、低コスト化、低消費電力化が実現できるほか、CPU110に余力ができるため、通話中に他のアプリケーションを実行することが可能となり、新たなサービスを提供することもできる。
【0041】
以上、パケットを受信したときの動作について説明したが、つづいて、マイク150から入力された音声信号をパケット化して送信するときの動作について説明する。マイク150から入力された音声信号は、コーデック処理部140に送られ、符号化される。符号化された信号は、必要であれば、セキュリティ処理部172により暗号化されたあと、UDP処理部174に送られ、UDPヘッダが付され、パケット化される。このUDPパケットは、ネットワークインターフェース部130を介して、インターネット20に送出される。
【0042】
図2は、本実施の形態における通信方法の手順を示すフローチャートである。ネットワークインターフェース部130がパケットを受信すると(S100)、IP処理部178が処理を行ったあと、プロトコル検出部176がUDPパケットかTCPパケットかを検出する(S102)。UDPパケットであった場合は(S102のY)、UDPパケットを処理するための専用回路であるUDP処理部174によりパケット処理が行われる(S104)。TCPパケットであった場合は(S102のN)、汎用回路であるCPU110によりパケット処理が行われる(S106)。その後、データの種類に応じて、必要な処理が行われる。
【0043】
(第2の実施の形態)
図3は、第2の実施の形態に係る通信装置の一例としてのビデオ電話装置200の全体構成を示す。本実施の形態のビデオ電話装置200は、図1に示した第1の実施の形態のインターネット電話装置100の構成に加えて、入力部の一例としての画像入力部180、および出力部の一例としての表示装置190を備える。その他の構成については、第1の実施の形態と同様である。同様の構成には同じ符号を付している。本実施の形態では、画像データもUDPにより送受信される。
【0044】
画像入力部180は、通話音声とともに相手に送信すべき画像を入力する。画像入力部180は、外部のカメラやビデオ再生装置などから画像を入力してもよいし、自身が撮像装置として画像を撮像してもよい。入力された画像は、コーデック処理部140に直接送られて符号化され、UDP処理部174によりUDPパケットに整形されて、ネットワークインターフェース部130によりインターネット20へ送出される。表示装置190は、通話音声とともに相手から受信した画像を表示する。ネットワークインターフェース部130が受信したUDPパケットに含まれる画像データは、UDP処理部174、セキュリティ処理部172、およびコーデック処理部140により処理され、コーデック処理部140から表示装置190に直接画像データが送られ、表示される。
【0045】
(第3の実施の形態)
図4は、第3の実施の形態に係る通信装置の一例としてのデジタルカメラ300の全体構成を示す。本実施の形態のデジタルカメラ300は、電話通信機能を有しており、図1に示した第1の実施の形態のインターネット電話装置100の構成に加えて、撮像部182および表示装置190を備える。その他の構成については、第1の実施の形態と同様である。同様の構成には同じ符号を付している。
【0046】
撮像部182は、CCDなどの撮像素子と、それを制御する構成を含み、静止画または動画を撮像する。撮像された画像は、コーデック処理部140に直接送られて符号化され、UDP処理部174によりUDPパケットに整形されて、ネットワークインターフェース部130によりインターネット20へ送出される。表示装置190は、通話音声とともに相手から受信した画像を表示する。ネットワークインターフェース部130が受信したUDPパケットに含まれる画像データは、UDP処理部174、セキュリティ処理部172、およびコーデック処理部140により処理され、コーデック処理部140から表示装置190に直接画像データが送られ、表示される。
【0047】
(第4の実施の形態)
図5は、第4の実施の形態に係る通信装置の一例としてのビデオ電話装置200の全体構成を示す。本実施の形態のビデオ電話装置200は、図3に示した第2の実施の形態のビデオ電話装置200に比して、画像入力部180および表示装置190が、コーデック処理部140に直接接続されているのではなく、バス102に接続されている。その他の構成は図3と同様であり、同様の構成には同じ符号を付している。
【0048】
画像入力部180が入力した画像は、メモリ120に保持され、適宜読み出されて、コーデック処理部140により符号化される。符号化された画像データは、UDP処理部174によりUDPパケットに整形されて、ネットワークインターフェース部130によりインターネット20へ送出される。ネットワークインターフェース部130が受信したUDPパケットに含まれる画像データは、UDP処理部174、セキュリティ処理部172、およびコーデック処理部140により処理され、バス102を介して表示装置190に送られ、表示される。
【0049】
(第5の実施の形態)
図6は、第5の実施の形態に係る通信装置の一例としてのデジタルカメラ300の全体構成を示す。本実施の形態のデジタルカメラ300は、図4に示した第3の実施の形態のデジタルカメラ300に比して、撮像部182および表示装置190が、コーデック処理部140に直接接続されているのではなく、バス102に接続されている。その他の構成は図4と同様であり、同様の構成には同じ符号を付している。
【0050】
撮像部182が撮像した画像は、メモリ120に保持され、適宜読み出されて、コーデック処理部140により符号化される。符号化された画像データは、UDP処理部174によりUDPパケットに整形されて、ネットワークインターフェース部130によりインターネット20へ送出される。ネットワークインターフェース部130が受信したUDPパケットに含まれる画像データは、UDP処理部174、セキュリティ処理部172、およびコーデック処理部140により処理され、バス102を介して表示装置190に送られ、表示される。
【0051】
(第6の実施の形態)
図7は、第6の実施の形態に係る通信装置の一例としてのインターネット電話装置100の全体構成を示す。本実施の形態のインターネット電話装置100は、図1に示した第1の実施の形態のインターネット電話装置100の構成に加えて、IP判別部186およびパケット受信部192をさらに備え、プロトコル検出部176に代えてUDP判別部184を備える。その他の構成は図1と同様であり、同様の構成には同じ符号を付している。
【0052】
本実施の形態のインターネット電話装置100でも、第1の実施の形態と同様に、音声信号を含むUDPパケットを専用のハードウェアで処理することで、処理速度を向上させ、通話音声のリアルタイムな送受信を実現するが、本実施の形態では、さらにリアルタイム性を向上させるための技術を提案する。
【0053】
パケット受信部192は、リアルタイム性を要するデータを含むパケットを、リアルタイム性を要しないパケットに優先して受信バッファ193に格納するために、リアルタイム性を要しないパケットについては、受信バッファ193の空き領域が所定のしきい値を下回ると受信バッファ193への格納を禁止し、リアルタイム性を要するパケットのみを格納可能とする。これにより、リアルタイム性を要するパケットの受信が遅延したり、パケットが破棄されてデータが欠落する可能性を抑えることができる。
【0054】
IP判別部186は、IPパケットのうち、複雑な処理を要する特殊なパケットを判別し、そのパケットをCPU110に送ってソフトウェアにより処理させる一方、通常のIPパケットはIP処理部178に送ってハードウェアにより処理させる。これにより、IP処理部178のハードウェア規模の増大、複雑化、消費電力の増大を回避しつつ、専用のハードウェアにより通常のIPパケットを高速に処理することができる。それぞれの技術の詳細については、図を参照しつつ後述する。
【0055】
図8は、パケット受信部192の内部構成を示す。制御部195は、読出し位置管理部196、書込み位置管理部197、およびバッファ飽和検出部198を含む。本実施の形態の受信バッファ193は、FIFO(First In First Out)メモリにより構成されており、読出し位置管理部196は受信バッファ193のリードアドレスを保持するレジスタであり、書込み位置管理部197は受信バッファ193のライトアドレスを保持するレジスタである。バッファ飽和検出部198は、読出し位置管理部196に保持されたリードアドレスと、書込み位置管理部197に保持されたライトアドレスとの差を算出することにより、受信バッファ193の使用領域の大きさを検出し、受信バッファ193の空き領域を把握する。
【0056】
バッファ飽和検出部198は、受信バッファ193への書込みの許否を判定するための複数のしきい値を保持している。しきい値は、パケットの種別に応じて設定されており、受信バッファ193の空き領域が、あるパケット種別に対するしきい値を下回ると、その種別のパケットの受信バッファ193への書込みを禁止し、受信したパケットを破棄する。
【0057】
本実施の形態では、リアルタイムな処理を要するデータを含むパケットを優先的に受信バッファ193に格納するために、リアルタイムな処理を要するパケットに対する許否判定のしきい値を、リアルタイムな処理を要しないパケットに対する許否判定のしきい値よりも低く設定する。たとえば、リアルタイムな処理を要するパケットに対するしきい値を0とし、リアルタイムな処理を要しないパケットに対するしきい値をバッファサイズの50%としたとき、バッファ飽和検出部198は、受信バッファ193の空き領域が50%を下回ると、リアルタイムな処理を要しないパケットに対してはバッファが飽和したと判定して書込みを禁止する一方、リアルタイムな処理を要するパケットに対しては空き領域があると判定して書込みを許可する。すなわち、受信バッファ193の空き領域が50%以上のときは、リアルタイムな処理を要するパケットもリアルタイムな処理を要しないパケットも受信バッファ193に格納可能とするが、空き領域が50%を下回ると、リアルタイムな処理を要するパケットのみの格納を許可する。
【0058】
本実施の形態では、リアルタイム性を要する音声信号は、UDPを用いて送受信される。そのため、パケット判別部194は、受信したパケットがTCPパケットであるかUDPパケットであるかを判別し、TCPパケットであれば、リアルタイムな処理を要しないパケットに対しての許否判定を採用し、UDPパケットであれば、リアルタイムな処理を要するパケットに対しての許否判定を採用する。パケット判別部194は、格納を許可されたパケットを受信バッファ193に格納し、格納を拒否されたパケットを破棄する。
【0059】
TCPでは、FTP(File Transfer Protocol)によりデータファイルを転送する場合など、一時に大量のパケットを受信する可能性があるが、このとき、受信バッファ193がTCPパケットで飽和し、UDPパケットを受信できなくなる恐れがある。音声信号を含むUDPパケットは、リアルタイムに再生する必要があるので、UDPパケットが優先的に受信バッファ193を利用できるようにすることで、パケットの破棄によるデータの欠落を最小限に抑える。UDPは再送制御を行わないので、いったんパケットが破棄されると再び取得することができないが、TCPは、再送制御を行うので、欠落したデータを再送により補うことが可能である。
【0060】
受信バッファ193を2つ設け、一方にリアルタイム性を要するパケットを格納し、他方にリアルタイム性を要しないパケットを格納するように構成してもよいが、上述の技術を用いることにより、1つの受信バッファ193でリアルタイムな処理を要するパケットを優先的に受信することができるので、2つの受信バッファ193を設ける場合に比べて、ハードウェア規模を抑え、消費電力を低減することができる。
【0061】
リアルタイムな処理を要するデータを含むか否かを示す情報をパケットのヘッダ情報に格納しておき、その情報を参照してパケットの種別を取得し、受信バッファ193への格納の許否を判定してもよい。リアルタイム性の有無だけでなく、他の観点に基づいてしきい値を設定し、受信バッファ193への格納の優先度を決定してもよい。たとえば、重要度が高く、データの欠落が許されないパケットのしきい値を他のパケットのしきい値よりも低く設定し、優先的に取り込むようにしてもよい。パケット判別部194がしきい値を保持し、バッファ飽和検出部198から受信バッファ193の残量を取得して、受信バッファ193への書込みの許否を判定してもよい。
【0062】
図9は、本実施の形態におけるパケットの受信手順を示すフローチャートである。ネットワークインターフェース部130がパケットを受信すると(S200)、パケット判別部194がリアルタイムな処理を要するデータを含むパケットか否かを判別する(S202)。リアルタイム性のパケットであった場合は(S202のY)、リアルタイム性のパケットに対して設定されたしきい値を用いて受信バッファ193への格納の許否が判定される(S204)。リアルタイム性のパケットでなかった場合は(S202のN)、非リアルタイム性のパケットに対して設定されたしきい値を用いて受信バッファ193への格納の許否が判定される(S206)。そして、受信したパケットの受信バッファ193への格納が許可された場合は(S208のY)、パケットを受信バッファ193に格納し(S210)、格納が許可されなかった場合は(S208のN)、パケットは破棄される(S212)。
【0063】
図10は、IP判別部186の内部構成を示す。第1の判別部の一例としてのIP判別部186は、IPヘッダ検出部187、IPヘッダ判定部188、およびパケット出力切替部189を含む。IPヘッダ検出部187は、パケット受信部192から取得したパケットのIPヘッダを検出し、IPヘッダ判定部188に送る。IPヘッダ判定部188は、IPヘッダなどを参照して、そのパケットが通常のIPパケットであるか、複雑な処理を要する特殊なIPパケットであるかを判定し、判定結果をパケット出力切替部189に通知する。特殊なIPパケットは、たとえば、オプション付きIPパケット、フラグメント化されたIPパケットなどであってもよい。パケット出力切替部189は、IPヘッダ判定部188の判定結果に基づいて、IPヘッダ検出部187が取得したIPパケットの出力先を切り替える。パケット出力切替部189は、通常のIPパケットをハードウェアにより処理させるために第1の専用回路の一例としてのIP処理部178へ出力し、複雑な処理を要する特殊なIPパケットをソフトウェアにより処理させるためにバスインターフェースを介して汎用回路の一例としてのCPU110へ出力する。
【0064】
フラグメント化されたIPパケットは、パケットの順序の管理や、欠落や重複があったときの処理など、通常のIP処理よりも複雑な処理が必要となる。また、オプション付きIPパケットは、付されたオプションに応じた処理が必要となる。このような例外的な処理もハードウェアにより実現しようとすると、回路規模が増大し、コストや消費電力の増大を招く。そのため、通常のIPパケットのみを処理可能なハードウェアのみを設けることで、コストや消費電力を抑える。
【0065】
IP処理部178により処理されたパケットは、第2の判別部の一例としてのUDP判別部184に送られる。UDP判別部184は、受信したパケットがTCPパケットであるかUDPパケットであるかを判別し、UDPパケットは第2の専用回路の一例としてのUDP処理部174によりハードウェア処理する一方、TCPパケットは汎用回路の一例としてのCPU110によりソフトウェア処理する。ここで、UDP判別部184は、第1の実施の形態におけるプロトコル検出部176と同様の機能を有するが、本実施の形態では、通信プロトコルのうちトランスポート層の通信方式の種別を判別することを明示するために、この名称を用いている。
【0066】
このように、本実施の形態のインターネット電話装置100では、IP判別部186によりIPパケットの種別を検出し、パケットの処理主体を高速かつ適切に選択することができる。また、通話音声などのリアルタイムな処理を要するデータを含む通常のIPパケットは専用回路であるIP処理部178により高速に処理を行いつつ、複雑な処理を要する特殊なIPパケットはCPU110によりソフトウェア処理を行うことにより、回路の複雑化、回路規模、コスト、消費電力、熱発生などの増大を抑えることができる。
【0067】
図11は、本実施の形態におけるパケット処理手順を示すフローチャートである。ネットワークインターフェース部130がパケットを受信すると(S300)、IP判別部186が通常のIPパケットか否かを判別する(S302)。通常のIPパケットであった場合は(S302のY)、専用回路であるIP処理部178によりIPのパケット処理が行われる(S304)。フラグメント化されたIPパケットなど、複雑な処理を要する特殊なIPパケットであった場合は(S302のN)、汎用回路であるCPU110に送られ、ソフトウェアによりパケット処理が行われる(S310)。UDP判別部184は、IP処理部178により処理されたパケットがUDPパケットであるか否かを判別する(S306)。UDPパケットであった場合は(S306のY)、専用回路であるUDP処理部174によりUDPのパケット処理が行われる。TCPパケットであった場合は(S306のN)、汎用回路であるCPU110に送られ、ソフトウェアによりパケット処理が行われる(S310)。
【0068】
以上、本発明を実施の形態をもとに説明した。この実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。以下、そうした例を述べる。
【0069】
実施の形態では、電話装置を例にとって説明したが、本発明の技術は、コンピュータや携帯電話など、ストリームデータを送受信する通信装置全般に利用可能である。
【0070】
IP処理部178、プロトコル検出部176、UDP処理部174の機能を有する回路を、一つの半導体基板上に搭載してもよい。さらに、セキュリティ処理部172、コーデック処理部140、CPU110などの回路を搭載してもよい。これにより、通信装置の小型化、軽量化、高速化を図ることができる。
【0071】
【発明の効果】
本発明によれば、複数の通信プロトコルによるデータ通信を効率よく処理することができる。また、比較的簡便な回路構成により、高速でリアルタイムな通信を実現することができる。
【図面の簡単な説明】
【図1】第1の実施の形態に係る通信装置の一例としてのインターネット電話装置の全体構成を示す図である。
【図2】第1の実施の形態に係る通信方法の手順を示すフローチャートである。
【図3】第2の実施の形態に係る通信装置の一例としてのビデオ電話装置の全体構成を示す図である。
【図4】第3の実施の形態に係る通信装置の一例としてのデジタルカメラの全体構成を示す図である。
【図5】第4の実施の形態に係る通信装置の一例としてのビデオ電話装置の全体構成を示す図である。
【図6】第5の実施の形態に係る通信装置の一例としてのデジタルカメラの全体構成を示す図である。
【図7】第6の実施の形態に係る通信装置の一例としてのインターネット電話装置の全体構成を示す図である。
【図8】第6の実施の形態に係るインターネット電話装置のパケット受信部の内部構成を示す図である。
【図9】第6の実施の形態におけるパケットの受信手順を示すフローチャートである。
【図10】第6の実施の形態に係るインターネット電話装置のIP判別部の内部構成を示す図である。
【図11】第6の実施の形態におけるパケットのパケット処理手順を示すフローチャートである。
【符号の説明】
20 インターネット、 100 インターネット電話装置、 130 ネットワークインターフェース部、 140 コーデック処理部、 150 マイク、 160 スピーカ、 170 プロトコル処理部、 172 セキュリティ処理部、 174 UDP処理部、 176 プロトコル検出部、 178 IP処理部、 180 画像入力部、 182 撮像部、 184 UDP判別部、 186 IP判別部、 190 表示装置、 192 パケット受信部、 193 受信バッファ、 194 パケット判別部、 195 制御部、 200 ビデオ電話装置、 300 デジタルカメラ。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a communication technology, and particularly to a technology for efficiently processing data communication using a plurality of communication protocols.
[0002]
[Prior art]
2. Description of the Related Art With the widespread use of the Internet and the improvement of network infrastructure, Internet telephone devices that packetize data obtained by encoding a call voice signal and transmit / receive the data via a network such as the Internet have attracted attention. By transmitting a video image simultaneously with a call voice, it can be used as a video telephone device, and is expected as a next-generation telephone device to replace a conventional telephone device.
[0003]
Currently, TCP / IP (Transmission Control Protocol / Internet Protocol) is widely used as a communication protocol for packet communication. TCP is a communication protocol that emphasizes accuracy, such as transmitting and receiving data after establishing a connection between devices. However, the processing is complicated, and there is a time constraint such that the next packet cannot be sent until the other party confirms that the packet has been received, and the real-time property is lacking.
[0004]
UDP / IP (User Datagram Protocol / Internet Protocol) is a simpler communication protocol than TCP. In UDP, it is not necessary to establish a connection between devices prior to data transmission / reception, and the next packet can be sent without waiting for packet reception confirmation. Therefore, the transmitting side can send packets one after another. it can. Therefore, it is suitable for transmitting and receiving call voice, in which real-time performance is more important than data accuracy.
[0005]
In an apparatus that supports both TCP and UDP communication protocols, processing for packet communication is generally performed by software using a general-purpose processor such as a CPU. In some devices that require high speed, such as a network router, all protocol processing is implemented by hardware.
[0006]
[Non-patent document 1]
Estee (ST) Microelectronics, Inc., Voice over IP (VoIP) Digital Processor Datasheet, [online], 2002, [Search September 30, 2002], Internet <URL: http://www.st .com / stonline / books / pdf / docs / 7818.pdf>
[0007]
[Problems to be solved by the invention]
The method of processing both communication protocols by software has problems such as low processing efficiency, low speed, and high power consumption. In particular, when talking with a plurality of parties at the same time or sending an image together with voice, the protocol processing is rate-determining, and the real-time property may be impaired. Further, since the CPU always executes the protocol processing during a call, it is difficult to execute other applications in parallel. Increasing CPU power to increase processing speed results in increased cost, power consumption, heat generation, and the like, and a compromise must be found at the expense of either.
[0008]
In a system in which both communication protocols are processed by hardware, high-speed protocol processing can be performed. However, since TCP processing that requires complicated processing is also implemented by hardware, the circuit scale becomes large, and cost, power consumption, There is a problem in terms of heat generation.
[0009]
The present invention has been made in view of such a problem, and an object of the present invention is to provide a technique for efficiently processing data communication using a plurality of communication protocols. Another object of the present invention is to provide a technique for realizing high-speed, real-time communication with a relatively simple circuit configuration.
[0010]
[Means for Solving the Problems]
One embodiment of the present invention relates to a communication device. The communication device includes a receiving unit that receives a packet transmitted via a network, and the received packet is transmitted by a first communication method that requires that a connection be established between the devices prior to data transmission / reception. When the packet is a packet, the general-purpose circuit for processing the packet by software, and when the received packet is a packet transmitted by the second communication method that does not require the establishment of a connection between devices, A dedicated circuit for processing the packet.
[0011]
Another embodiment of the present invention also relates to a communication device. The communication device includes a receiving unit that receives a packet transmitted via a network, and, when the received packet is a packet transmitted by a first communication method for confirming the arrival of a transmitted packet, A general-purpose circuit for processing by software; and a dedicated circuit for processing a received packet when the packet is a packet transmitted by the second communication method that does not confirm the arrival of a transmission packet. Prepare.
[0012]
The general-purpose circuit may be a CPU, a DSP, or the like. The first communication scheme may be, for example, TCP. The second communication scheme may be, for example, UDP. By making only the UDP processing hardware, it is possible to increase the speed of the UDP processing while suppressing an increase in the circuit scale.
[0013]
The communication device further includes a transmission unit that transmits a packet via a network, and when the packet to be transmitted is transmitted by the first communication method, the packet is processed by the general-purpose circuit, and the packet to be transmitted is: When sent by the second communication scheme, the packet may be processed by the dedicated circuit.
[0014]
The communication device may further include a detection unit that detects a communication method in which the received packet is sent. The detection unit may detect the communication method by referring to the header of the packet. This detection unit may also be configured by a dedicated circuit.
[0015]
When the detecting unit detects a packet transmitted by the first communication method, the detecting unit may directly transmit the packet to the dedicated circuit without passing through the general-purpose circuit. High-speed processing is realized by processing by a dedicated circuit without going through software processing. Further, the processing load of a general-purpose circuit such as a CPU can be reduced.
[0016]
The communication device may further include a security processing unit that encrypts or decrypts data forming the packet. This security processing unit may also be configured by a dedicated circuit.
[0017]
Yet another embodiment of the present invention also relates to a communication device. The communication device has a receiving unit that receives a packet sent via a network, and when the received packet is a fragmented packet, sends the packet to a general-purpose circuit for processing by software and receives the packet. A first determining unit that, when the packet is an unfragmented packet, sends the packet to a first dedicated circuit for processing by hardware.
[0018]
Of the IP packets, IP packets with options, fragmented IP packets, and the like require complicated processing. Therefore, if these IP packets are also to be processed by a dedicated circuit, the circuit scale increases and consumption is increased. This leads to an increase in power and cost. For this reason, special IP packets that require more complicated processing than ordinary IP packets are processed by software using general-purpose circuits such as a CPU, while ordinary IP packets are processed at high speed by dedicated circuits. Circuit size, power consumption and cost can be reduced.
[0019]
This communication device, when a packet processed by the first dedicated circuit is a packet transmitted by a first communication method that requires a connection to be established between devices prior to data transmission / reception, To the general-purpose circuit, and when the packet processed by the first dedicated circuit is a packet transmitted by the second communication method that does not require the establishment of a connection between devices, the packet is sent to the general-purpose circuit by hardware. The information processing apparatus may further include a second determination unit that sends the data to a second dedicated circuit for processing. After the IP processing of the normal IP packet is performed by the IP processing circuit, it is determined whether the packet is UDP or TCP, only the UDP packet is processed by the UDP processing circuit, and the TCP packet is processed by a general-purpose circuit such as a CPU. Software processing may be performed.
[0020]
Yet another embodiment of the present invention also relates to a communication device. The communication device includes: a determination unit configured to determine whether a packet received via a network is a packet including data that requires real-time processing; a buffer that temporarily holds the packet; A control unit for controlling the storage of the packet, the control unit, when the free space of the buffer is less than a predetermined threshold, the packet to the buffer of the data including the data that requires real-time processing to the buffer While permitting storage, prohibiting storage of packets that do not include data requiring real-time processing in the buffer.
[0021]
By preferentially fetching a packet that requires real-time processing into the reception buffer and processing it, it is possible to suppress the possibility that the buffer is saturated and a packet that requires real-time processing is discarded.
[0022]
Yet another embodiment of the present invention also relates to a communication device. The communication device may be configured such that a packet received via a network is a packet transmitted by a first communication method that requires a connection to be established between devices before data transmission / reception, or a packet transmitted between devices. A determination unit that determines whether the packet is transmitted by the second communication method that does not require establishment, a buffer that temporarily holds the packet, and a control unit that controls storage of the packet in the buffer, The control unit, when the free space of the buffer falls below a predetermined threshold, while allowing the storage of the packet sent by the second communication method in the buffer, while the first The storage of the packet sent by the communication method in the buffer is prohibited.
[0023]
When transmitting and receiving a voice signal of a telephone device and a video signal of a video telephone device by UDP, the UDP packet is discarded by selectively taking in the UDP packet with priority over the TCP packet, and data such as a voice signal of the call is discarded. Can be reduced.
[0024]
Yet another embodiment of the present invention also relates to a communication device. The communication device includes a determination unit that determines a type of a packet received via a network, a buffer that temporarily holds the packet, and a control unit that controls storage of the packet in the buffer, The control unit holds a plurality of thresholds for determining whether to allow or disallow the storage of the packet in the buffer according to the type of the packet, and stores the threshold value of the packet of the packet type in which the free space of the buffer is less than the threshold. Prohibits storage in the buffer.
[0025]
A threshold value for a packet that requires real-time processing or a packet having a high degree of importance may be set lower than threshold values for other packets. Thus, when the free space in the buffer is reduced, packets having real-time properties or packets with high importance are preferentially captured, and the possibility of discarding packets can be suppressed.
[0026]
Yet another embodiment of the present invention relates to a telephone device. This telephone device has an input unit for inputting voice, a communication unit for transmitting voice input from the input unit to another device and receiving voice from another device, and outputting a voice received from another device. And a communication unit, wherein the communication unit receives a packet sent via a network, a detection unit that detects a communication method of the received packet, and the communication method is used for data transmission and reception. When the first communication method requires the connection to be established between the devices in advance, the general-purpose circuit for processing the packet by software and the communication method do not require the connection to be established between the devices. And a dedicated circuit for processing the packet when the communication method is the second communication method, and transmits and receives the voice by the second communication method. The output unit may be a speaker, and the input unit may be a microphone.
[0027]
Still another preferred embodiment according to the present invention relates to a video telephone device. The video telephone device includes an input unit for inputting an image and a voice, a communication unit for transmitting the image and the voice input by the input unit to another device, and receiving an image and a voice from the other device, An output unit that outputs images and sounds received from the device, and the communication unit, a reception unit that receives a packet transmitted via a network, and a detection unit that detects a communication method of the received packet, When the communication method is a first communication method that requires a connection to be established between devices prior to data transmission / reception, a general-purpose circuit for processing the packet by software, and the communication method includes: A dedicated circuit for processing the packet when the second communication method does not require the establishment of a connection between the two communication methods, Received.
[0028]
Yet another embodiment of the present invention relates to an imaging device. The imaging device includes an imaging unit that captures an image, and a communication unit that transmits an image captured by the imaging unit to another device and receives an image from another device, wherein the communication unit includes a network. A receiving unit that receives a packet transmitted via a communication unit, a detecting unit that detects a communication method of the received packet, and a first method in which the communication method requires that a connection be established between devices prior to transmission and reception of data. A general-purpose circuit for processing the packet by software when the communication method is used, and processing the packet when the communication method is a second communication method that does not require establishment of a connection between devices. And a dedicated circuit for transmitting and receiving the image by the second communication method.
[0029]
Still another embodiment of the present invention relates to a communication method. The method includes, upon receiving a packet, detecting a communication mode of the packet, and transmitting data of the packet to a circuit that should process the packet according to the communication mode.
[0030]
In the detecting step, by analyzing a header of the packet, it is determined whether the packet is a packet according to the first communication method that requires the establishment of a connection between the devices before data transmission / reception, or the connection between the devices needs to be established. Detecting whether the packet is not a packet according to the second communication scheme and sending the data includes sending the packet according to the first communication scheme to a general-purpose circuit for software processing, and transmitting the packet according to the second communication scheme. May be sent to a dedicated circuit for processing the packet.
[0031]
The step of detecting detects whether the packet is a fragmented packet or a non-fragmented packet by analyzing a header of the packet, and the step of sending the data includes the step of: May be sent to a general-purpose circuit for software processing, and the unfragmented packet may be sent to a dedicated circuit for processing the packet.
[0032]
Data that does not require real-time characteristics may be transmitted and received by the first communication method, while stream data that requires real-time characteristics may be transmitted and received by the second communication method. Data requiring real-time processing refers to data that is subject to time constraints, and data that does not require real-time processing refers to data that is not subject to time constraints. The stream data may be, for example, call voice data, moving image data, and the like.
[0033]
Still another embodiment of the present invention relates to a communication method. The method includes the steps of: detecting a type of a packet when the packet is received; and determining whether or not to permit the storage of the packet in a buffer for temporarily storing the packet based on a condition set for each type. Deciding, storing the packet in the buffer when storage is permitted, and discarding the packet when storage is not permitted.
[0034]
It is to be noted that any combination of the above-described components and any conversion of the expression of the present invention between a method, an apparatus, a system, and the like are also effective as embodiments of the present invention.
[0035]
BEST MODE FOR CARRYING OUT THE INVENTION
(First Embodiment)
FIG. 1 shows an overall configuration of an Internet telephone device 100 as an example of a communication device according to a first embodiment of the present invention. The Internet telephone device 100 is a device for making a call with another Internet telephone device 100 via the Internet 20. The Internet telephone device 100 mainly includes a CPU 110 that is a general-purpose circuit for executing software processing, a memory 120 used as a program area or a work area, a network interface unit 130 that transmits and receives packets via the Internet 20, and a voice signal. , A microphone 160 for inputting an audio signal, a speaker 160 for outputting an audio signal, a codec processing unit 140 for performing a compression encoding process and a decoding process on an audio signal, a protocol processing unit 170 for performing various processes according to a communication protocol, and a configuration of these components. A bus 102 for electrical connection is provided.
[0036]
In the Internet telephone device 100 of the present embodiment, audio signals are transmitted and received using UDP as a transport layer communication protocol. UDP is a communication method that does not require connection establishment and can send out packets one after another, so that protocol processing is easy and high-speed communication is possible, and real-time communication such as sending call voice is performed. Suitable for communication. In the Internet telephone device 100 according to the present embodiment, the processing of the packet transmitted by the UDP is performed by the protocol processing unit 170 which is a dedicated circuit, thereby further improving the processing speed and real-time transmission / reception of the call voice. Realize.
[0037]
Of the packets transmitted and received by the Internet telephone device 100, packets transmitted and received by TCP are processed by software using the CPU 110. For TCP that does not require real-time processing, software processing is performed by a general-purpose circuit without providing a dedicated circuit, thereby suppressing an increase in circuit scale and minimizing an increase in cost, power consumption, and heat generation. . According to the estimation of the inventor, it has been found that the area and power consumption of the circuit can be reduced to about 3 as compared with the case where both TCP and UDP are processed by the dedicated circuit.
[0038]
The packet received by the network interface unit 130 is sent to the IP processing unit 178 of the protocol processing unit 170. The IP processing unit 178 determines whether the packet is addressed to the IP address assigned to the own device, and sends only the packet addressed to the own device to the protocol detecting unit 176. The protocol detection unit 176 detects the protocol type with reference to the PROT indicating the protocol type in the IP header attached to the packet, or with reference to the TCP header or the UDP header. If the packet is a packet sent by TCP, the data of the packet is sent to the bus 102 and the CPU 110 performs software processing. When the packet is a UDP packet, the data of the packet is sent to the UDP processing unit 174 and processed by a circuit provided exclusively for processing the UDP data.
[0039]
The UDP processing unit 174 is a dedicated circuit for processing a UDP packet, receives a UDP packet, analyzes its header, and executes necessary processing. The security processing unit 172 performs processing such as decryption of encryption when data is subjected to security measures such as encryption processing. The decoded data is sent to codec processing section 140. The codec processing unit 140 decodes the communication voice signal that has been compression-encoded and outputs the decoded signal to the speaker 160.
[0040]
As described above, in the Internet telephone device 100 according to the present embodiment, real-time performance is more important than accuracy, and call voice data that needs to be constantly processed during a call is transmitted and received by the UDP. While the processing unit 174 performs hardware processing, data for which accuracy is more important than real-time processing is transmitted and received by TCP, and the CPU 110 performs software processing. This makes it possible to process call voice data at high speed while suppressing an increase in circuit complexity, circuit scale, cost, power consumption, heat generation, and the like. Such an advantage becomes more remarkable when a large amount of data needs to be processed at the same time, such as when talking with a plurality of parties at the same time or transmitting an image together with the call voice. In addition, the type of the packet is detected by the protocol detection unit 176, and the processing entity of the packet can be selected quickly and appropriately. Further, the processing load on the CPU 110 can be reduced, cost reduction and power consumption can be reduced, and since the CPU 110 has extra power, it is possible to execute other applications during a call and provide a new service. You can also.
[0041]
The operation when the packet is received has been described above. Next, the operation when the audio signal input from the microphone 150 is packetized and transmitted will be described. The audio signal input from the microphone 150 is sent to the codec processing unit 140 and encoded. The encoded signal is, if necessary, encrypted by the security processing unit 172, sent to the UDP processing unit 174, attached with a UDP header, and packetized. This UDP packet is transmitted to the Internet 20 via the network interface unit 130.
[0042]
FIG. 2 is a flowchart illustrating a procedure of the communication method according to the present embodiment. When the network interface unit 130 receives the packet (S100), after the IP processing unit 178 performs processing, the protocol detection unit 176 detects whether the packet is a UDP packet or a TCP packet (S102). If it is a UDP packet (Y in S102), the packet processing is performed by the UDP processing unit 174, which is a dedicated circuit for processing the UDP packet (S104). If the packet is a TCP packet (N in S102), the packet processing is performed by the CPU 110, which is a general-purpose circuit (S106). After that, necessary processing is performed according to the type of data.
[0043]
(Second embodiment)
FIG. 3 shows an overall configuration of a video telephone device 200 as an example of a communication device according to the second embodiment. The video telephone device 200 according to the present embodiment has, in addition to the configuration of the Internet telephone device 100 according to the first embodiment shown in FIG. 1, an image input unit 180 as an example of an input unit, and an example of an output unit. Is provided. Other configurations are the same as those of the first embodiment. The same components are denoted by the same reference numerals. In the present embodiment, image data is also transmitted and received by UDP.
[0044]
The image input unit 180 inputs an image to be transmitted to the other party together with the call voice. The image input unit 180 may input an image from an external camera, a video playback device, or the like, or may itself capture an image as an imaging device. The input image is directly sent to the codec processing unit 140 and encoded, shaped into a UDP packet by the UDP processing unit 174, and sent out to the Internet 20 by the network interface unit 130. The display device 190 displays the image received from the other party together with the call voice. The image data included in the UDP packet received by the network interface unit 130 is processed by the UDP processing unit 174, the security processing unit 172, and the codec processing unit 140, and the image data is directly transmitted from the codec processing unit 140 to the display device 190. ,Is displayed.
[0045]
(Third embodiment)
FIG. 4 shows an overall configuration of a digital camera 300 as an example of a communication device according to the third embodiment. The digital camera 300 according to the present embodiment has a telephone communication function, and includes an imaging unit 182 and a display device 190 in addition to the configuration of the Internet telephone device 100 according to the first embodiment illustrated in FIG. . Other configurations are the same as those of the first embodiment. The same components are denoted by the same reference numerals.
[0046]
The imaging unit 182 includes an imaging device such as a CCD and a configuration for controlling the imaging device, and captures a still image or a moving image. The captured image is directly sent to the codec processing unit 140, encoded, shaped into a UDP packet by the UDP processing unit 174, and transmitted to the Internet 20 by the network interface unit 130. The display device 190 displays the image received from the other party together with the call voice. The image data included in the UDP packet received by the network interface unit 130 is processed by the UDP processing unit 174, the security processing unit 172, and the codec processing unit 140, and the image data is directly transmitted from the codec processing unit 140 to the display device 190. ,Is displayed.
[0047]
(Fourth embodiment)
FIG. 5 shows an overall configuration of a video telephone device 200 as an example of a communication device according to the fourth embodiment. The video telephone device 200 according to the present embodiment differs from the video telephone device 200 according to the second embodiment shown in FIG. 3 in that the image input unit 180 and the display device 190 are directly connected to the codec processing unit 140. Instead, it is connected to the bus 102. Other configurations are the same as those in FIG. 3, and the same configurations are denoted by the same reference numerals.
[0048]
The image input by the image input unit 180 is stored in the memory 120, read out as appropriate, and encoded by the codec processing unit 140. The encoded image data is shaped into a UDP packet by the UDP processing unit 174 and transmitted to the Internet 20 by the network interface unit 130. The image data included in the UDP packet received by the network interface unit 130 is processed by the UDP processing unit 174, the security processing unit 172, and the codec processing unit 140, sent to the display device 190 via the bus 102, and displayed. .
[0049]
(Fifth embodiment)
FIG. 6 shows an overall configuration of a digital camera 300 as an example of a communication device according to the fifth embodiment. The digital camera 300 of the present embodiment is different from the digital camera 300 of the third embodiment shown in FIG. 4 in that the imaging unit 182 and the display device 190 are directly connected to the codec processing unit 140. Instead, it is connected to the bus 102. Other configurations are the same as those in FIG. 4, and the same configurations are denoted by the same reference numerals.
[0050]
The image captured by the imaging unit 182 is stored in the memory 120, read out as appropriate, and encoded by the codec processing unit 140. The encoded image data is shaped into a UDP packet by the UDP processing unit 174 and transmitted to the Internet 20 by the network interface unit 130. The image data included in the UDP packet received by the network interface unit 130 is processed by the UDP processing unit 174, the security processing unit 172, and the codec processing unit 140, sent to the display device 190 via the bus 102, and displayed. .
[0051]
(Sixth embodiment)
FIG. 7 shows an overall configuration of an Internet telephone device 100 as an example of a communication device according to a sixth embodiment. The Internet telephone device 100 according to the present embodiment further includes an IP determining unit 186 and a packet receiving unit 192 in addition to the configuration of the Internet telephone device 100 according to the first embodiment shown in FIG. And a UDP discriminating unit 184. Other configurations are the same as those in FIG. 1, and the same configurations are denoted by the same reference numerals.
[0052]
In the Internet telephone device 100 of the present embodiment, similarly to the first embodiment, the processing speed is improved by processing the UDP packet including the audio signal by the dedicated hardware, and the real-time transmission and reception of the call audio is performed. In this embodiment, a technique for further improving the real-time property is proposed.
[0053]
The packet receiving unit 192 stores the packet including the data requiring the real-time property in the receiving buffer 193 in preference to the packet not requiring the real-time property. Is smaller than a predetermined threshold, storage in the reception buffer 193 is prohibited, and only packets that require real-time processing can be stored. As a result, it is possible to suppress the possibility that the reception of a packet that requires real-time processing is delayed or the packet is discarded and data is lost.
[0054]
The IP discriminating unit 186 discriminates a special packet that requires complicated processing from the IP packets, and sends the packet to the CPU 110 to be processed by software. To be processed. This makes it possible to process normal IP packets at high speed with dedicated hardware while avoiding an increase in hardware scale, complexity, and power consumption of the IP processing unit 178. Details of each technique will be described later with reference to the drawings.
[0055]
FIG. 8 shows the internal configuration of the packet receiving unit 192. The control unit 195 includes a read position management unit 196, a write position management unit 197, and a buffer saturation detection unit 198. The reception buffer 193 of the present embodiment is configured by a FIFO (First In First Out) memory, the read position management unit 196 is a register for holding the read address of the reception buffer 193, and the write position management unit 197 is a reception position. This is a register for holding the write address of the buffer 193. The buffer saturation detection unit 198 calculates the difference between the read address held in the read position management unit 196 and the write address held in the write position management unit 197, and determines the size of the used area of the reception buffer 193. Detect and detect the free area of the reception buffer 193.
[0056]
The buffer saturation detection unit 198 holds a plurality of thresholds for determining whether or not writing to the reception buffer 193 is permitted. The threshold value is set according to the type of the packet. When the free space of the reception buffer 193 falls below the threshold value for a certain packet type, writing of the packet of that type to the reception buffer 193 is prohibited, Discard the received packet.
[0057]
In the present embodiment, in order to preferentially store a packet including data requiring real-time processing in the reception buffer 193, the threshold value of the permission / rejection determination for a packet requiring real-time processing is set to a packet that does not require real-time processing. Is set lower than the threshold value of the permission / rejection determination for. For example, when the threshold value for a packet requiring real-time processing is set to 0 and the threshold value for a packet not requiring real-time processing is set to 50% of the buffer size, the buffer saturation detecting unit 198 determines whether or not the reception buffer 193 has an empty area. Is less than 50%, it is determined that the buffer is saturated for packets that do not require real-time processing and writing is prohibited, while it is determined that there is free space for packets that require real-time processing. Allow writing. That is, when the free space of the reception buffer 193 is 50% or more, both the packet that requires real-time processing and the packet that does not require real-time processing can be stored in the reception buffer 193. Permits storing only packets that require real-time processing.
[0058]
In the present embodiment, audio signals requiring real-time properties are transmitted and received using UDP. Therefore, the packet determination unit 194 determines whether the received packet is a TCP packet or a UDP packet. If the received packet is a TCP packet, the packet determination unit 194 employs a permission / prohibition determination for a packet that does not require real-time processing, and If the packet is a packet, a determination is made as to whether or not the packet requires real-time processing. The packet discrimination unit 194 stores the packet permitted to be stored in the reception buffer 193, and discards the packet rejected to be stored.
[0059]
In TCP, for example, when a data file is transferred by FTP (File Transfer Protocol), there is a possibility that a large amount of packets may be received at one time. At this time, the reception buffer 193 is saturated with TCP packets, and can receive UDP packets. There is a risk of disappearing. Since a UDP packet including an audio signal needs to be reproduced in real time, the UDP packet is preferentially used in the reception buffer 193 to minimize data loss due to packet discarding. Since UDP does not perform retransmission control, once a packet is discarded, it cannot be obtained again. However, since TCP performs retransmission control, it is possible to compensate for missing data by retransmission.
[0060]
Although two reception buffers 193 may be provided, one may store a packet that requires real-time characteristics and the other may store a packet that does not require real-time characteristics. Since packets requiring real-time processing can be preferentially received by the buffer 193, the hardware scale can be reduced and power consumption can be reduced as compared with the case where two reception buffers 193 are provided.
[0061]
Information indicating whether or not data that requires real-time processing is stored in the header information of the packet, the type of the packet is acquired by referring to the information, and whether or not the storage in the reception buffer 193 is permitted is determined. Is also good. A threshold value may be set based on not only the presence / absence of the real-time property but also another viewpoint, and the priority of storage in the reception buffer 193 may be determined. For example, the threshold value of a packet having a high degree of importance and in which data loss is not allowed may be set lower than the threshold values of other packets, and may be preferentially taken in. The packet determination unit 194 may hold the threshold value, acquire the remaining amount of the reception buffer 193 from the buffer saturation detection unit 198, and determine whether or not writing to the reception buffer 193 is permitted.
[0062]
FIG. 9 is a flowchart showing a packet receiving procedure according to the present embodiment. When the network interface unit 130 receives a packet (S200), the packet determination unit 194 determines whether the packet includes data that requires real-time processing (S202). If the packet is a real-time packet (Y in S202), whether or not the packet can be stored in the reception buffer 193 is determined using the threshold set for the real-time packet (S204). If the packet is not a real-time packet (N in S202), whether or not the packet can be stored in the reception buffer 193 is determined using the threshold set for the non-real-time packet (S206). If storage of the received packet in the reception buffer 193 is permitted (Y in S208), the packet is stored in the reception buffer 193 (S210). If storage is not permitted (N in S208), The packet is discarded (S212).
[0063]
FIG. 10 shows the internal configuration of the IP determining unit 186. The IP determining unit 186 as an example of the first determining unit includes an IP header detecting unit 187, an IP header determining unit 188, and a packet output switching unit 189. The IP header detection unit 187 detects the IP header of the packet acquired from the packet reception unit 192, and sends the packet to the IP header determination unit 188. The IP header determining unit 188 determines whether the packet is a normal IP packet or a special IP packet requiring complicated processing by referring to the IP header or the like, and outputs the determination result to the packet output switching unit 189. Notify The special IP packet may be, for example, an IP packet with options, a fragmented IP packet, or the like. The packet output switching unit 189 switches the output destination of the IP packet acquired by the IP header detection unit 187 based on the determination result of the IP header determination unit 188. The packet output switching unit 189 outputs an ordinary IP packet to the IP processing unit 178 as an example of a first dedicated circuit in order to process the IP packet by hardware, and causes a special IP packet requiring complicated processing to be processed by software. For this purpose, the data is output to a CPU 110 as an example of a general-purpose circuit via a bus interface.
[0064]
Fragmented IP packets require more complex processing than normal IP processing, such as managing the order of packets and processing when there is loss or duplication. Further, an IP packet with an option requires processing according to the added option. Attempting to realize such an exceptional process by hardware increases the circuit scale, resulting in an increase in cost and power consumption. Therefore, cost and power consumption are suppressed by providing only hardware capable of processing only normal IP packets.
[0065]
The packet processed by the IP processing unit 178 is sent to a UDP determining unit 184 as an example of a second determining unit. The UDP determining unit 184 determines whether the received packet is a TCP packet or a UDP packet. The UDP packet is hardware-processed by the UDP processing unit 174 as an example of the second dedicated circuit, while the TCP packet is Software processing is performed by the CPU 110 as an example of a general-purpose circuit. Here, the UDP determining unit 184 has a function similar to that of the protocol detecting unit 176 in the first embodiment. However, in the present embodiment, the UDP determining unit 184 determines the type of the communication system of the transport layer among the communication protocols. This name is used to clearly indicate
[0066]
As described above, in the Internet telephone device 100 of the present embodiment, the type of the IP packet is detected by the IP discriminating unit 186, and the processing entity of the packet can be quickly and appropriately selected. A normal IP packet including data that requires real-time processing such as call voice is processed at high speed by an IP processing unit 178 which is a dedicated circuit, while a special IP packet requiring complicated processing is processed by the CPU 110 by software processing. By doing so, it is possible to suppress an increase in circuit complexity, circuit scale, cost, power consumption, heat generation, and the like.
[0067]
FIG. 11 is a flowchart illustrating a packet processing procedure according to the present embodiment. When the network interface unit 130 receives the packet (S300), the IP determining unit 186 determines whether the packet is a normal IP packet (S302). If the packet is a normal IP packet (Y in S302), the IP processing unit 178, which is a dedicated circuit, performs IP packet processing (S304). If the packet is a special IP packet that requires complicated processing such as a fragmented IP packet (N in S302), the packet is sent to the CPU 110, which is a general-purpose circuit, and packet processing is performed by software (S310). The UDP determining unit 184 determines whether the packet processed by the IP processing unit 178 is a UDP packet (S306). If the packet is a UDP packet (Y in S306), the UDP processing unit 174, which is a dedicated circuit, performs UDP packet processing. If the packet is a TCP packet (N in S306), the packet is sent to the CPU 110, which is a general-purpose circuit, and packet processing is performed by software (S310).
[0068]
The present invention has been described based on the embodiments. This embodiment is an exemplification, and it is understood by those skilled in the art that various modifications can be made to the combination of each component and each processing process, and that such modifications are also within the scope of the present invention. . Hereinafter, such an example will be described.
[0069]
In the embodiments, the telephone device has been described as an example. However, the technology of the present invention can be used for all communication devices that transmit and receive stream data, such as computers and mobile phones.
[0070]
A circuit having the functions of the IP processing unit 178, the protocol detection unit 176, and the UDP processing unit 174 may be mounted on one semiconductor substrate. Further, circuits such as the security processing unit 172, the codec processing unit 140, and the CPU 110 may be mounted. This makes it possible to reduce the size, weight, and speed of the communication device.
[0071]
【The invention's effect】
According to the present invention, data communication using a plurality of communication protocols can be efficiently processed. In addition, high-speed real-time communication can be realized by a relatively simple circuit configuration.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an overall configuration of an Internet telephone device as an example of a communication device according to a first embodiment.
FIG. 2 is a flowchart illustrating a procedure of a communication method according to the first embodiment.
FIG. 3 is a diagram illustrating an overall configuration of a video telephone device as an example of a communication device according to a second embodiment;
FIG. 4 is a diagram illustrating an overall configuration of a digital camera as an example of a communication device according to a third embodiment.
FIG. 5 is a diagram illustrating an overall configuration of a video telephone device as an example of a communication device according to a fourth embodiment.
FIG. 6 is a diagram illustrating an overall configuration of a digital camera as an example of a communication device according to a fifth embodiment.
FIG. 7 is a diagram illustrating an overall configuration of an Internet telephone device as an example of a communication device according to a sixth embodiment.
FIG. 8 is a diagram showing an internal configuration of a packet receiving unit of an Internet telephone device according to a sixth embodiment.
FIG. 9 is a flowchart showing a packet receiving procedure according to the sixth embodiment.
FIG. 10 is a diagram showing an internal configuration of an IP discriminating unit of an Internet telephone device according to a sixth embodiment.
FIG. 11 is a flowchart illustrating a packet processing procedure of a packet according to the sixth embodiment.
[Explanation of symbols]
Reference Signs List 20 Internet, 100 Internet telephone device, 130 network interface unit, 140 codec processing unit, 150 microphone, 160 speaker, 170 protocol processing unit, 172 security processing unit, 174 UDP processing unit, 176 protocol detection unit, 178 IP processing unit, 180 Image input unit, 182 imaging unit, 184 UDP determination unit, 186 IP determination unit, 190 display device, 192 packet reception unit, 193 reception buffer, 194 packet determination unit, 195 control unit, 200 video telephone device, 300 digital camera.

Claims (20)

ネットワークを介して送られたパケットを受信する受信部と、
受信したパケットが、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式により送られたパケットであったとき、そのパケットをソフトウェアにより処理するための汎用回路と、
受信したパケットが、装置間での接続の確立を要しない第2の通信方式により送られたパケットであったとき、そのパケットを処理するための専用回路と、
を備えることを特徴とする通信装置。
A receiving unit that receives a packet sent via the network;
A general-purpose circuit for processing the received packet by software when the received packet is a packet transmitted according to a first communication method that requires a connection to be established between devices prior to data transmission / reception;
When the received packet is a packet sent by the second communication method that does not require the establishment of a connection between devices, a dedicated circuit for processing the packet;
A communication device comprising:
ネットワークを介して送られたパケットを受信する受信部と、
受信したパケットが、送信パケットの到着確認を行う第1の通信方式により送られたパケットであったとき、そのパケットをソフトウェアにより処理するための汎用回路と、
受信したパケットが、送信パケットの到着確認を行わない第2の通信方式により送られたパケットであったとき、そのパケットを処理するための専用回路と、
を備えることを特徴とする通信装置。
A receiving unit that receives a packet sent via the network;
A general-purpose circuit for processing the packet by software when the received packet is a packet transmitted by the first communication method for confirming the arrival of a transmission packet;
When the received packet is a packet sent by the second communication method that does not confirm the arrival of the transmission packet, a dedicated circuit for processing the packet,
A communication device comprising:
ネットワークを介してパケットを送信する送信部をさらに備え、
送信するパケットが、前記第1の通信方式により送られるとき、そのパケットを前記汎用回路により処理し、
送信するパケットが、前記第2の通信方式により送られるとき、そのパケットを前記専用回路により処理することを特徴とする請求項1または2に記載の通信装置。
A transmission unit that transmits the packet via the network,
When a packet to be transmitted is sent by the first communication method, the packet is processed by the general-purpose circuit,
The communication device according to claim 1, wherein when a packet to be transmitted is sent by the second communication method, the packet is processed by the dedicated circuit.
受信したパケットが、どの通信方式により送られたかを検出する検出部をさらに備えることを特徴とする請求項1から3のいずれかに記載の通信装置。The communication device according to claim 1, further comprising a detection unit configured to detect a communication method in which the received packet is transmitted. 前記検出部により、前記第1の通信方式により送られたパケットが検出されたとき、前記検出部は、そのパケットを、前記汎用回路を介さずに、直接前記専用回路へ送ることを特徴とする請求項4に記載の通信装置。When the detection unit detects a packet transmitted by the first communication method, the detection unit transmits the packet directly to the dedicated circuit without passing through the general-purpose circuit. The communication device according to claim 4. パケットを構成するデータを暗号化または復号化するセキュリティ処理部をさらに備えることを特徴とする請求項1から5のいずれかに記載の通信装置。The communication device according to claim 1, further comprising a security processing unit that encrypts or decrypts data forming a packet. ネットワークを介して送られたパケットを受信する受信部と、
受信したパケットがフラグメント化されたパケットであったとき、そのパケットをソフトウェアにより処理するために汎用回路へ送り、受信したパケットがフラグメント化されていないパケットであったとき、そのパケットをハードウェアにより処理するために第1の専用回路へ送る第1の判別部と、
を備えることを特徴とする通信装置。
A receiving unit that receives a packet sent via the network;
When the received packet is a fragmented packet, the packet is sent to a general-purpose circuit for processing by software, and when the received packet is a non-fragmented packet, the packet is processed by hardware. A first discriminator for sending to the first dedicated circuit to perform
A communication device comprising:
前記第1の専用回路により処理したパケットが、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式により送られたパケットであったとき、そのパケットを前記汎用回路に送り、前記第1の専用回路により処理したパケットが、装置間での接続の確立を要しない第2の通信方式により送られたパケットであったとき、そのパケットをハードウェアにより処理するための第2の専用回路へ送る第2の判別部をさらに備えることを特徴とする請求項7に記載の通信装置。When the packet processed by the first dedicated circuit is a packet transmitted by a first communication method that requires a connection to be established between devices prior to data transmission / reception, the packet is sent to the general-purpose circuit. When the packet processed by the first dedicated circuit is a packet transmitted by the second communication method which does not require the establishment of a connection between the devices, a second packet for processing the packet by hardware. 8. The communication device according to claim 7, further comprising a second determination unit that sends the signal to the second dedicated circuit. ネットワークを介して受信したパケットが、リアルタイムな処理を要するデータを含むパケットであるか否かを判別する判別部と、
前記パケットを一時的に保持するバッファと、
前記バッファへの前記パケットの格納を制御する制御部と、を備え、
前記制御部は、前記バッファの空き領域が所定のしきい値を下回ったとき、前記リアルタイムな処理を要するデータを含むパケットの前記バッファへの格納を許可する一方、リアルタイムな処理を要するデータを含まないパケットの前記バッファへの格納を禁止することを特徴とする通信装置。
A determining unit that determines whether the packet received via the network is a packet including data that requires real-time processing,
A buffer for temporarily holding the packet,
A control unit that controls storage of the packet in the buffer,
The control unit, when the free space of the buffer falls below a predetermined threshold, allows storage of the packet including the data requiring the real-time processing in the buffer, and includes the data requiring the real-time processing. A communication device for prohibiting the storage of an empty packet in the buffer.
ネットワークを介して受信したパケットが、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式により送られたパケットであるか、装置間での接続の確立を要しない第2の通信方式により送られたパケットであるかを判別する判別部と、
前記パケットを一時的に保持するバッファと、
前記バッファへの前記パケットの格納を制御する制御部と、を備え、
前記制御部は、前記バッファの空き領域が所定のしきい値を下回ったとき、前記第2の通信方式により送られたパケットの前記バッファへの格納を許可する一方、前記第1の通信方式により送られたパケットの前記バッファへの格納を禁止することを特徴とする通信装置。
The packet received via the network is a packet transmitted by the first communication method that requires establishing a connection between devices prior to data transmission / reception, or a packet that does not require the establishment of a connection between devices. A determination unit that determines whether the packet is transmitted by the communication method of No. 2;
A buffer for temporarily holding the packet,
A control unit that controls storage of the packet in the buffer,
The control unit, when the free space of the buffer falls below a predetermined threshold, allows storage of the packet transmitted by the second communication method in the buffer, while allowing the packet to be transmitted by the first communication method. A communication device for inhibiting storage of a sent packet in the buffer.
ネットワークを介して受信したパケットの種別を判別する判別部と、
前記パケットを一時的に保持するバッファと、
前記バッファへのパケットの格納を制御する制御部と、を備え、
前記制御部は、前記バッファへのパケットの格納の許否を判定するためのしきい値をパケットの種別に応じて複数保持し、前記バッファの空き領域がしきい値を下回ったパケット種別のパケットの前記バッファへの格納を禁止することを特徴とする通信装置。
A determining unit that determines a type of a packet received via the network;
A buffer for temporarily holding the packet,
A control unit that controls storage of packets in the buffer,
The control unit holds a plurality of thresholds for determining whether to allow or disallow the storage of a packet in the buffer in accordance with the type of the packet, and stores a plurality of thresholds of the packet type in which the free space of the buffer is below the threshold. A communication device for prohibiting storage in the buffer.
リアルタイムな処理を要するパケットの種別のしきい値を、リアルタイムな処理を要しないパケットの種別のしきい値よりも低く設定したことを特徴とする請求項11に記載の通信装置。12. The communication apparatus according to claim 11, wherein a threshold value of a type of a packet requiring real-time processing is set lower than a threshold value of a type of a packet not requiring real-time processing. 音声を入力する入力部と、
前記入力部により入力された音声を他の装置へ送信し、他の装置から音声を受信する通信部と、
他の装置から受信した音声を出力する出力部と、を備え、
前記通信部は、
ネットワークを介して送られたパケットを受信する受信部と、
受信したパケットの通信方式を検出する検出部と、
前記通信方式が、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式であったとき、そのパケットをソフトウェアにより処理するための汎用回路と、
前記通信方式が、装置間での接続の確立を要しない第2の通信方式であったとき、そのパケットを処理するための専用回路と、を含み、
前記音声を前記第2の通信方式により送受信することを特徴とする電話装置。
An input unit for inputting voice,
A communication unit that transmits voice input by the input unit to another device and receives voice from another device,
An output unit that outputs audio received from another device,
The communication unit,
A receiving unit that receives a packet sent via the network;
A detection unit that detects a communication method of the received packet;
A general-purpose circuit for processing the packet by software when the communication method is a first communication method that requires establishing a connection between devices prior to data transmission / reception;
A dedicated circuit for processing the packet when the communication method is the second communication method that does not require the establishment of a connection between the devices,
A telephone device for transmitting and receiving the voice according to the second communication method.
画像および音声を入力する入力部と、
前記入力部により入力された画像および音声を他の装置へ送信し、他の装置から画像および音声を受信する通信部と、
他の装置から受信した画像および音声を出力する出力部と、を備え、
前記通信部は、
ネットワークを介して送られたパケットを受信する受信部と、
受信したパケットの通信方式を検出する検出部と、
前記通信方式が、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式であったとき、そのパケットをソフトウェアにより処理するための汎用回路と、
前記通信方式が、装置間での接続の確立を要しない第2の通信方式であったとき、そのパケットを処理するための専用回路と、を含み、
前記画像および音声を前記第2の通信方式により送受信することを特徴とするビデオ電話装置。
An input unit for inputting images and sounds,
A communication unit that transmits the image and the sound input by the input unit to another device and receives the image and the sound from the other device,
An output unit that outputs images and sounds received from other devices,
The communication unit,
A receiving unit that receives a packet sent via the network;
A detection unit that detects a communication method of the received packet;
A general-purpose circuit for processing the packet by software when the communication method is a first communication method that requires establishing a connection between devices prior to data transmission / reception;
A dedicated circuit for processing the packet when the communication method is the second communication method that does not require the establishment of a connection between the devices,
A video telephone device for transmitting and receiving the image and the sound by the second communication method.
画像を撮像する撮像部と、
前記撮像部により撮像された画像を他の装置へ送信し、他の装置から画像を受信する通信部と、を備え、
前記通信部は、
ネットワークを介して送られたパケットを受信する受信部と、
受信したパケットの通信方式を検出する検出部と、
前記通信方式が、データの送受信に先立って装置間で接続を確立することを要する第1の通信方式であったとき、そのパケットをソフトウェアにより処理するための汎用回路と、
前記通信方式が、装置間での接続の確立を要しない第2の通信方式であったとき、そのパケットを処理するための専用回路と、を含み、
前記画像を前記第2の通信方式により送受信することを特徴とする撮像装置。
An imaging unit that captures an image,
A communication unit that transmits an image captured by the imaging unit to another device and receives an image from another device,
The communication unit,
A receiving unit that receives a packet sent via the network;
A detection unit that detects a communication method of the received packet;
A general-purpose circuit for processing the packet by software when the communication method is a first communication method that requires establishing a connection between devices prior to data transmission / reception;
A dedicated circuit for processing the packet when the communication method is the second communication method that does not require the establishment of a connection between the devices,
An image pickup apparatus for transmitting and receiving the image by the second communication method.
パケットを受信したときに、そのパケットの通信方式を検出する工程と、
前記通信方式に応じて、そのパケットを処理すべき回路にパケットのデータを送る工程と、
を含むことを特徴とする通信方法。
Detecting a communication method of the packet when receiving the packet;
Sending data of the packet to a circuit that should process the packet according to the communication method;
A communication method comprising:
前記検出する工程は、パケットのヘッダを解析することにより、フラグメント化されたパケットであるか、フラグメント化されていないパケットであるかを検出し、
前記データを送る工程は、前記フラグメント化されたパケットを、ソフトウェア処理するための汎用回路に送り、前記フラグメント化されていないパケットを、そのパケットを処理するための専用回路に送ることを特徴とする請求項16に記載の通信方法。
The detecting step detects whether the packet is a fragmented packet or a non-fragmented packet by analyzing a header of the packet,
The step of sending the data includes sending the fragmented packet to a general-purpose circuit for software processing, and sending the unfragmented packet to a dedicated circuit for processing the packet. The communication method according to claim 16.
前記検出する工程は、パケットのヘッダを解析することにより、データの送受信に先立って装置間での接続の確立を要する第1の通信方式によるパケットであるか、装置間での接続の確立を要しない第2の通信方式によるパケットであるかを検出し、
前記データを送る工程は、前記第1の通信方式によるパケットを、ソフトウェア処理するための汎用回路に送り、前記第2の通信方式によるパケットを、そのパケットを処理するための専用回路に送ることを特徴とする請求項16に記載の通信方法。
In the detecting step, by analyzing a header of the packet, it is determined whether the packet is a packet according to the first communication method that requires the establishment of a connection between the devices before data transmission / reception, or the connection between the devices needs to be established. To detect whether the packet is based on the second communication method,
The step of sending the data includes sending the packet according to the first communication scheme to a general-purpose circuit for software processing, and sending the packet according to the second communication scheme to a dedicated circuit for processing the packet. 17. The communication method according to claim 16, wherein:
リアルタイム性を要しないデータは、前記第1の通信方式により送受信する一方、リアルタイム性を要するストリームデータは、前記第2の通信方式により送受信することを特徴とする請求項16から18のいずれかに記載の方法。19. Data according to any one of claims 16 to 18, wherein data not requiring real time is transmitted and received by the first communication method, while stream data requiring real time is transmitted and received by the second communication method. The described method. パケットを受信したときに、そのパケットの種別を検出する工程と、
前記種別ごとに設定された条件に基づいて、パケットを一時的に保持するバッファへのそのパケットの格納の許否を判断する工程と、
格納が許可されたときに、そのパケットを前記バッファへ格納する工程と、
格納が許可されなかったときに、そのパケットを破棄する工程と、
を含むことを特徴とする通信方法。
Detecting the type of the packet when receiving the packet;
Based on the conditions set for each type, a step of determining whether or not the storage of the packet in a buffer that temporarily holds the packet,
When storage is permitted, storing the packet in the buffer;
Discarding the packet when storage is not permitted;
A communication method comprising:
JP2003005101A 2002-09-30 2003-01-10 Communication device, communication method, and telephone device, video telephone device, and imaging device that can use the method Expired - Fee Related JP3557202B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP2003005101A JP3557202B2 (en) 2002-09-30 2003-01-10 Communication device, communication method, and telephone device, video telephone device, and imaging device that can use the method
KR1020077018565A KR100899923B1 (en) 2002-09-30 2003-09-24 Communication device and application thereof
PCT/JP2003/012166 WO2004036865A1 (en) 2002-09-30 2003-09-24 Communication device and application thereof
KR1020077006527A KR100790673B1 (en) 2002-09-30 2003-09-24 Communication device and application thereof
CN038124793A CN1656767B (en) 2002-09-30 2003-09-24 Communication apparatus and applications thereof
AU2003266582A AU2003266582A1 (en) 2002-09-30 2003-09-24 Communication device and application thereof
KR1020047014902A KR100753734B1 (en) 2002-09-30 2003-09-24 Communication device and application thereof
US11/003,982 US7843968B2 (en) 2002-09-30 2004-12-06 Communication apparatus and applications thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002287870 2002-09-30
JP2003005101A JP3557202B2 (en) 2002-09-30 2003-01-10 Communication device, communication method, and telephone device, video telephone device, and imaging device that can use the method

Related Child Applications (3)

Application Number Title Priority Date Filing Date
JP2004088459A Division JP2004173332A (en) 2002-09-30 2004-03-25 Communication equipment
JP2004088460A Division JP2004236351A (en) 2002-09-30 2004-03-25 Communication method, and communication device
JP2004088458A Division JP3796251B2 (en) 2002-09-30 2004-03-25 Communication device

Publications (2)

Publication Number Publication Date
JP2004180253A true JP2004180253A (en) 2004-06-24
JP3557202B2 JP3557202B2 (en) 2004-08-25

Family

ID=32715597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003005101A Expired - Fee Related JP3557202B2 (en) 2002-09-30 2003-01-10 Communication device, communication method, and telephone device, video telephone device, and imaging device that can use the method

Country Status (1)

Country Link
JP (1) JP3557202B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006229977A (en) * 2005-02-18 2006-08-31 Thomson Licensing Method for performing data transport over serial bus using internet protocol and apparatus for use in method
JP2006311355A (en) * 2005-04-28 2006-11-09 Matsushita Electric Ind Co Ltd Transmitter/receiver, transmission and reception method, program, and recording medium
JP2008535080A (en) * 2005-03-31 2008-08-28 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Protecting data delivered out of order
US7675643B2 (en) 2005-04-11 2010-03-09 Canon Kabushiki Kaisha Print controller, control method therefor and program
US8271767B2 (en) 2007-06-29 2012-09-18 Kabushiki Kaisha Toshiba Controlling arithmetic processing according to asynchronous and synchronous modes based upon data size threshold

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006229977A (en) * 2005-02-18 2006-08-31 Thomson Licensing Method for performing data transport over serial bus using internet protocol and apparatus for use in method
JP2008535080A (en) * 2005-03-31 2008-08-28 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Protecting data delivered out of order
JP4903780B2 (en) * 2005-03-31 2012-03-28 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Protecting data delivered out of order
US8352727B2 (en) 2005-03-31 2013-01-08 Telefonaktiebolaget L M Ericsson (Publ) Protection of data delivered out-of-order
US7675643B2 (en) 2005-04-11 2010-03-09 Canon Kabushiki Kaisha Print controller, control method therefor and program
JP2006311355A (en) * 2005-04-28 2006-11-09 Matsushita Electric Ind Co Ltd Transmitter/receiver, transmission and reception method, program, and recording medium
JP4723902B2 (en) * 2005-04-28 2011-07-13 パナソニック株式会社 Transmission / reception device, transmission / reception method, program, and recording medium
US8271767B2 (en) 2007-06-29 2012-09-18 Kabushiki Kaisha Toshiba Controlling arithmetic processing according to asynchronous and synchronous modes based upon data size threshold

Also Published As

Publication number Publication date
JP3557202B2 (en) 2004-08-25

Similar Documents

Publication Publication Date Title
US7843968B2 (en) Communication apparatus and applications thereof
US8402538B2 (en) Method and system for detecting and responding to harmful traffic
US8769665B2 (en) IP communication device as firewall between network and computer system
CN115209163A (en) Data processing method, data processing device, storage medium and electronic equipment
JP3557202B2 (en) Communication device, communication method, and telephone device, video telephone device, and imaging device that can use the method
JP3796251B2 (en) Communication device
JP2004236351A (en) Communication method, and communication device
JP2008060785A (en) Ip telephone communication recording system
JP2004173332A (en) Communication equipment
JP2005072705A (en) Communication terminal and packet communication system
JP6526084B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
JP2013051565A (en) Communication terminal device, communication control method, and communication control program
KR100899923B1 (en) Communication device and application thereof
JP2004153471A (en) Method for calculating checksum, method for recording checksum, and communication apparatus capable of utilizing the methods
JP3557201B2 (en) Packet processing device, packet processing method, and telephone device that can use the method
JP2005123985A (en) Communication apparatus and communication method
JP4514487B2 (en) Packet processing device
AU2012379685B2 (en) Data path processing
CN109792408B (en) Gateway for efficient management of transport connections in a data network
WO2024067430A1 (en) Transmission method and system, and related apparatus
JP2007251592A (en) Semiconductor integrated circuit for communication and communication processor using it
JP2005124049A (en) Device and method for processing image data
JP4382745B2 (en) Communications system
JP2005318378A (en) Real-time communication equipment and method for controlling reception buffer
JP2004336437A (en) Circuit and system for video image receiving

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040322

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040427

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040514

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080521

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100521

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 9

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees