JP2002077291A - Header-processing method - Google Patents

Header-processing method

Info

Publication number
JP2002077291A
JP2002077291A JP2000261604A JP2000261604A JP2002077291A JP 2002077291 A JP2002077291 A JP 2002077291A JP 2000261604 A JP2000261604 A JP 2000261604A JP 2000261604 A JP2000261604 A JP 2000261604A JP 2002077291 A JP2002077291 A JP 2002077291A
Authority
JP
Japan
Prior art keywords
header
processing
field
address
protocol field
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.)
Withdrawn
Application number
JP2000261604A
Other languages
Japanese (ja)
Inventor
Akihiko Nagatomo
晃彦 長友
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2000261604A priority Critical patent/JP2002077291A/en
Publication of JP2002077291A publication Critical patent/JP2002077291A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that conventionally in header processing of communication data through network, high rate processing incident to increase of communication traffic cannot be follow up, because a software processing has been employed, and to realize turning into higher rate header-processing, while suppressing cost increase. SOLUTION: In the header-processing method, a next protocol field register 2 and an address translator 3 are configured by hardware and the type field of Ethernet (R) header and the protocol field (next protocol field 1) of IP header in communication data are taken out and stored in the next protocol field register 2. The address translator 3 regards registered values as addresses, and distributes appropriate processing systems selectively.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ネットワークにお
けるデータ通信システムに用いられる伝送制御技術に係
り、特に通信データをシステム内で処理することを許可
するヘッダー処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transmission control technique used in a data communication system in a network, and more particularly to a header processing method for permitting communication data to be processed in the system.

【0002】[0002]

【従来の技術】一般的に、ネットワークによるデータ通
信システムには、広域通信として代表的なインターネッ
トが知られており、他にも同一構内や同一建物内のよう
な狭い範囲で構築されるLAN(local area network)
が知られており、このLANシステムのうち最も普及し
ているものとしてイーサネット(登録商標)がある。
2. Description of the Related Art In general, as a data communication system using a network, a typical Internet is known as a wide area communication, and a LAN (LAN) constructed in a narrow area such as in the same premises or the same building. local area network)
The Ethernet (registered trademark) is the most widespread LAN system.

【0003】ネットワーク通信において、端末間でやり
取りされる通信データの先頭部分には、送信先の相手の
アドレス番号や自身のアドレス番号等の情報からなるI
PヘッダーやTCPヘッダーが設けられている。このヘ
ッダー情報は、それぞれのパケットの先頭部分に設けら
れており、通信データを取り込む際にその都度、所定の
処理が行われている。
[0003] In network communication, a head portion of communication data exchanged between terminals includes an IP address consisting of information such as an address number of a transmission destination and its own address number.
A P header and a TCP header are provided. The header information is provided at the head of each packet, and a predetermined process is performed each time communication data is fetched.

【0004】図2(a)には、LANの階層構造の一例
を示し、同図(b)には、イーサネットにおけるヘッダ
ー情報の一例を示す。 LANの階層構造は、物理層、
データリンク層、ネットワーク層、トランスポート層、
セッション層、プレゼンテーション層及びアプリケーシ
ョン層等により階層的に構築されている。各階層では、
上層にどのような種類のパケットが乗っているのかを識
別するため、ヘッダーには上階層のパケットがなんであ
るかを識別するためのフィールドが設けられている。
FIG. 2A shows an example of a hierarchical structure of a LAN, and FIG. 2B shows an example of header information in Ethernet. The hierarchical structure of the LAN is a physical layer,
Data link layer, network layer, transport layer,
It is hierarchically constructed by a session layer, a presentation layer, an application layer, and the like. At each level,
In order to identify what type of packet is on the upper layer, a field is provided in the header to identify what the upper layer packet is.

【0005】この識別するためのフィールドの具体的な
例としては、図2(b)に示すイーサネットヘッダーに
含まれる宛先MACアドレス、送信元MACアドレス及
びパケット長/タイプのフィールドや、次に続くIPヘ
ッダーに含まれるプロトコルフィールド等が代表的であ
る。
[0005] Specific examples of the field for identification include the destination MAC address, source MAC address and packet length / type fields included in the Ethernet header shown in FIG. A protocol field included in the header is typical.

【0006】[0006]

【発明が解決しようとする課題】従来の通信システムに
おいては、前述したようなフィールドを処理する必要が
ある場合、大抵は複雑な処理を行うことが前提となって
構築されているため、順応性が高いソフトウェアにより
対応していた。つまり、CPU等の処理装置を用いて、
ソフトウェアによりこれらの情報を識別して、所定の処
理を行っていた。
In a conventional communication system, when it is necessary to process a field as described above, the communication system is usually constructed on the assumption that a complicated process is performed. Had higher software support. That is, using a processing device such as a CPU,
Such information is identified by software and predetermined processing is performed.

【0007】しかし、近年のインターネットで行われる
通信量が増加に伴い、トラフィックの増加が爆発的に伸
びており、今後、サーバーやクライアントがすべての処
理をソフトウェアで対応し続けることが困難であると想
定される。これらを改善するために種々の方法が考えら
れているが、コストアップを抑制しつつ、さらに高速処
理が実現することが望まれている。
[0007] However, with the recent increase in the amount of communication performed on the Internet, traffic has exploded, and it is difficult for servers and clients to continue to handle all processing with software in the future. is assumed. Various methods have been considered to improve these, but it is desired to realize higher-speed processing while suppressing an increase in cost.

【0008】そこで本発明は、パケットの通信データに
おける上階層のプロトコルの処理をハードウェアにより
処理して、通信にかかるコストアップを抑制しつつ、さ
らに高速処理が実現するヘッダー処理方法を提供するこ
とを目的とする。
Accordingly, the present invention provides a header processing method in which processing of an upper-layer protocol in communication data of a packet is processed by hardware, thereby suppressing an increase in communication cost and realizing higher-speed processing. With the goal.

【0009】[0009]

【課題を解決するための手段】本発明は上記目的を達成
するために、ネットワークから着信した通信データのヘ
ッダー情報から上階層の内容を識別するためのフィール
ドを取り出して、レジスタに登録し、このフィールドを
アドレスと見なして、予めアドレスが付与されたヘッダ
ー処理を行うための複数の処理系に対して、該当するア
ドレスが定義された処理系を選択して、前記フィールド
の情報を振り分けるヘッダー処理方法を提供する。ま
た、前記フィールドは、データリンク層、ネットワーク
層及びトランスポート層に含まれる識別情報からなる。
According to the present invention, in order to achieve the above object, a field for identifying the contents of an upper layer is extracted from header information of communication data received from a network and registered in a register. A header processing method in which a field is regarded as an address, and a processing system in which a corresponding address is defined is selected for a plurality of processing systems for performing header processing to which an address is previously assigned, and information of the field is distributed. I will provide a. The field includes identification information included in the data link layer, the network layer, and the transport layer.

【0010】以上のような構成のヘッダー処理方法は、
ハードウェアにより通信データから上階層のプロトコル
を識別するためのデータリンク層、ネットワーク層及び
トランスポート層に含まれる識別情報(次プロトコルフ
ィールド)を取り出して、その次プロトコルフィールド
をアドレスと見なして、予め処理内容に応じてアドレス
により区分けされた処理系に対して、該当する処理系を
選択して、フィールドの情報の振り分けを行う。
[0010] The header processing method having the above structure is as follows.
The hardware extracts the identification information (next protocol field) included in the data link layer, network layer, and transport layer for identifying the upper layer protocol from the communication data, regards the next protocol field as an address, and For the processing system classified by the address according to the processing content, the corresponding processing system is selected and the field information is sorted.

【0011】[0011]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態について詳細に説明する。図1には、本発明のヘ
ッダー処理方法を実現するための一実施形態に係るヘッ
ダー処理装置に適用した構成例を示し説明する。本実施
形態においては、通信データの一例として、イーサネッ
ト通信おけるヘッダーを示して説明するが、勿論イーサ
ネットに限定されるものではない。通常、ネットワーク
を通じて着信したパケット単位の通信データから上階層
のパケットの様子を示唆する識別情報としては、データ
リンク層、ネットワーク層及びトランスポート層等に含
まれている。その代表的なものとしては、イーサネッド
ヘッダーのタイプフィールド、それに続く、IPヘッダ
ーのプロトコルフィールド(以降、これらを次プロトコ
ルフィールドと称する)、そのほかにTCPヘッダーの
プロトコルフィールド等があり、本実施形態ではこれら
のフィールドを一例として説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows an example of a configuration applied to a header processing apparatus according to an embodiment for realizing the header processing method of the present invention. In the present embodiment, as an example of the communication data, a header in the Ethernet communication will be described and described. However, the communication data is not limited to the Ethernet. Normally, identification information indicating the state of a packet in an upper layer from communication data in packet units received via a network is included in a data link layer, a network layer, a transport layer, and the like. Typical examples are a type field of an Ethernet header, a protocol field of an IP header, which is referred to as a next protocol field, and a protocol field of a TCP header. These fields will be described as an example.

【0012】この構成においては、次プロトコルフィー
ルド1を取り出して一時的に登録する複数のレジスタが
設けられた次プロトコルフィールド・レジスタ2と、こ
の次プロトコルフィールド・レジスタ2に登録された値
をアドレスと見なして、後述する処理部4におけて該当
する処理系を選択して、次プロトコルフィールドフィー
ルドの情報をそれぞれに転送するアドレストランスレー
タ3と、それぞれのプロトコルに応じた処理を行う処理
系が所定のアドレスにより区別されて複数備えられる処
理部4とで構成される。次プロトコルフィールド・レジ
スタ2は、次プロトコルフィールド1をそれぞれの項毎
に登録できるようにレジスタを備えている。勿論、この
レジスタは複数段備えてもよい。また、この構成にさら
にCPU等からなる制御部5を備えて、トランスレータ
におけるアドレスと処理系との関連づけをユーザ側で変
更出来るように構成することも可能である。
In this configuration, a next protocol field register 2 provided with a plurality of registers for taking out and temporarily registering the next protocol field 1 and a value registered in the next protocol field register 2 as an address Considering this, an address translator 3 that selects a corresponding processing system in a processing unit 4 to be described later and transfers the information of the next protocol field field to each other, and a processing system that performs processing according to each protocol is a predetermined processing system It is composed of a plurality of processing units 4 which are distinguished by addresses. The next protocol field register 2 has a register so that the next protocol field 1 can be registered for each item. Of course, this register may be provided in a plurality of stages. In addition, the configuration may further include a control unit 5 including a CPU or the like so that the user can change the association between the address in the translator and the processing system.

【0013】このような構成によるヘッダー処理方法
は、次プロトコルフィールドを登録するレジスタとアド
レスによる処理系への振り分けを行うトランスレータを
ハードウェアによりHBOX(例えば、本出願人が提案
する特願2000−211351号に開示される)のよ
うな機能を構築して、上階層のプロトコルの処理の一部
をハードウェアに任せている。また、ハードウェアによ
る他の機能としては、データ等の暗号化及び復号化、さ
らにはマーキング、ヘッダーの一部情報の入れ替えや書
き換え等に用いることが考えられる。
In the header processing method having such a configuration, a translator for performing a distribution to a processing system based on a register for registering a next protocol field and an address is implemented by HBOX (for example, Japanese Patent Application No. 2000-21351 proposed by the present applicant). (Disclosed in Japanese Patent Application Laid-Open No. H10-26095), and a part of the processing of the upper-layer protocol is left to hardware. Other hardware functions may be used for encrypting and decrypting data and the like, and for marking, exchanging and rewriting part of header information, and the like.

【0014】次に、ヘッダー処理方法について説明す
る。まず、予め処理部4の各処理系4a,4b,4c…
は、入力したデータ(タイプフィールドやプロトコルフ
ィールド等)に対する個々のフィールドに対する処理
と、処理を選択するためのイネーブル信号を解読するた
めの回路等により構成される。また、アドレストランス
レータ3においては、アドレスと各処理系とをハードウ
ェアで関連づけておき、入力したアドレスにより処理系
を選択する。
Next, a header processing method will be described. First, the processing systems 4a, 4b, 4c,.
Is composed of a circuit for processing input data (type field, protocol field, etc.) for each field, and a circuit for decoding an enable signal for selecting the processing. In the address translator 3, the address and each processing system are associated with each other by hardware, and the processing system is selected based on the input address.

【0015】そして、ネットワークを通じて通信データ
が着信する。この通信データにおいて、図示しない制御
部の制御により、図1に示したようなイーサネッドヘッ
ダーにおけるタイプフィールドやIPヘッダーにおける
プロトコルフィールド(次プロトコルフィールド1)が
取り出され、次プロトコルフィールド・レジスタ2に登
録される。次に、このレジスタ2に登録された値をアド
レストランスレータ3に出力する。このアドレストラン
スレータ3は、登録されたその値をアドレスと見なし
て、次プロトコルフィールド・レジスタ2から取り出し
たアドレスにより該当する処理系を選択し、レジスタ2
からデータを処理系にアドレッシングする。この際、タ
イプフィールドやIPヘッダーにおけるプロトコルフィ
ールドが同じ1つの処理系に選択されて処理されるので
はなく、原則的にフィールド個々に処理系が選択され
て、それぞれに処理が行われる。このように、受け取っ
た次プロトコルフィールド・レジスタ2からの次プロト
コルフィールド1におけるタイプフィールドやIPヘッ
ダーのプロトコルフィールドがそれぞれに処理される。
Then, communication data arrives through the network. In this communication data, the type field in the Ethernet header and the protocol field (next protocol field 1) in the IP header as shown in FIG. Is done. Next, the value registered in the register 2 is output to the address translator 3. The address translator 3 regards the registered value as an address, selects a corresponding processing system according to the address extracted from the next protocol field register 2, and
Address data to the processing system. At this time, the type field and the protocol field in the IP header are not selected and processed by one and the same processing system. In principle, a processing system is selected for each field and the processing is performed on each field. In this manner, the type field in the next protocol field 1 from the received next protocol field register 2 and the protocol field of the IP header are processed respectively.

【0016】以上説明したように、本実施形態によれ
ば、ハードウェアにより構築された構成を用いてヘッダ
ー処理に係る処理系の選択を行っているため、着信した
通信データから自動的に必要な次プロトコルフィールド
を読み出して、処理系を指定することが可能なため、全
部をソフトウェアによる処理したことに比べて高速処理
が実現できる。また、自動的に必要な次プロトコルフィ
ールドを読み出し、処理系を選択するため、ユーザへの
作業負担が軽減される。さらに、処理系の選択作業をア
ドレストランスレータに集約させることで、設定変更に
よる選択作業に自由度を持たすことができる。その結果
として、マルチプロトコル、マルチレイヤのサポートが
容易になる。
As described above, according to the present embodiment, since the processing system related to the header processing is selected using the configuration constructed by the hardware, necessary processing is automatically performed from the received communication data. Since the next protocol field can be read and the processing system can be designated, high-speed processing can be realized as compared with the case where all processing is performed by software. In addition, since the necessary next protocol field is automatically read and the processing system is selected, the work load on the user is reduced. Furthermore, by consolidating the processing for selecting the processing system into the address translator, the degree of freedom can be increased in the selection by changing the settings. As a result, multi-protocol, multi-layer support is facilitated.

【0017】さらに、実施形態の変形例について説明す
る。前述した実施形態では、次プロトコルフィールド・
レジスタ2に登録したフィールド値をアドレスと見なし
て用いたが、このアドレスの代わりにIDを用いて同様
な処理を実現することができる。つまり、アドレストラ
ンスレータと処理系とを予めIDにより関連づけてお
き、次プロトコルフィールド・レジスタに登録された次
プロトコルフィールドの各項(イーサネッドヘッダーに
おけるタイプフィールドやIPヘッダーにおけるプロト
コルフィールド)を登録した際にそれぞれにIDを付与
して、その付与されたIDを用いてアドレストランスレ
ータによる処理系の選択を行ってもよい。
Further, a modified example of the embodiment will be described. In the embodiment described above, the next protocol field
Although the field value registered in the register 2 is used as an address, similar processing can be realized by using an ID instead of this address. That is, when the address translator and the processing system are associated in advance by ID, and each item of the next protocol field (type field in the Ethernet header or protocol field in the IP header) registered in the next protocol field register is registered, An ID may be assigned to each of them, and the processing system may be selected by the address translator using the assigned ID.

【0018】尚、処理系が複雑な処理を必要とする場合
は、プロセサで行う方が良い場合もあるが、各階層のパ
ケットで同じようなヘッダー処理を処理系で行わせた
り、各階層に渡って単調な処理を行わせるような処理の
場合、ハードウェア構成による本実施形態のヘッダー処
理方法は有用である。
When the processing system requires complicated processing, it may be better to perform the processing in the processor. However, the same header processing is performed in the packet in each layer by the processing system. In the case of a process in which a monotonous process is performed, the header processing method according to the present embodiment using a hardware configuration is useful.

【0019】[0019]

【発明の効果】以上詳述したように本発明によれば、パ
ケットの通信データにおける上階層のプロトコルの処理
をハードウェアにより処理して、通信にかかるコストア
ップを抑制しつつ、さらに高速処理が実現するヘッダー
処理方法を提供することができる。
As described above in detail, according to the present invention, the processing of the upper layer protocol in the communication data of the packet is processed by the hardware, so that the increase in the communication cost can be suppressed and the high-speed processing can be performed. It is possible to provide a header processing method to be realized.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のヘッダー処理方法を実現するための一
実施形態に係るヘッダー処理装置に適用した構成例を示
す図である。
FIG. 1 is a diagram showing a configuration example applied to a header processing device according to an embodiment for realizing a header processing method of the present invention.

【図2】一般的なLANの階層構造とイーサネットにお
けるヘッダー情報を示す図である。
FIG. 2 is a diagram showing a hierarchical structure of a general LAN and header information in Ethernet.

【符号の説明】[Explanation of symbols]

1…次プロトコルフィールド 2…次プロトコルフィールド・レジスタ 3…アドレストランスレータ 4…処理部 5…CPU(制御部) 1. Next protocol field 2. Next protocol field register 3. Address translator 4. Processing unit 5. CPU (control unit)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークから着信した通信データの
ヘッダー情報から上階層の内容を識別するためのフィー
ルドを取り出して、レジスタに登録し、このフィールド
をアドレスと見なして、予めアドレスが付与されたヘッ
ダー処理を行うための複数の処理系に対して、該当する
アドレスが定義された処理系を選択して、前記フィール
ドの情報を振り分けることを特徴とするヘッダー処理方
法。
1. A header process for extracting a field for identifying the contents of an upper layer from header information of communication data received from a network, registering the field in a register, treating this field as an address, and preliminarily assigning an address. A header processing method characterized by selecting a processing system in which a corresponding address is defined for a plurality of processing systems for performing the above, and distributing the information of the field.
【請求項2】 前記ヘッダー処理方法において、 上階層の内容を識別するための前記フィールドは、デー
タリンク層、ネットワーク層及びトランスポート層に含
まれる識別情報からなることを特徴とする請求項1に記
載のヘッダー処理方法。
2. The method according to claim 1, wherein in the header processing method, the field for identifying the contents of an upper layer comprises identification information included in a data link layer, a network layer, and a transport layer. The header processing method described.
JP2000261604A 2000-08-30 2000-08-30 Header-processing method Withdrawn JP2002077291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000261604A JP2002077291A (en) 2000-08-30 2000-08-30 Header-processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000261604A JP2002077291A (en) 2000-08-30 2000-08-30 Header-processing method

Publications (1)

Publication Number Publication Date
JP2002077291A true JP2002077291A (en) 2002-03-15

Family

ID=18749417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000261604A Withdrawn JP2002077291A (en) 2000-08-30 2000-08-30 Header-processing method

Country Status (1)

Country Link
JP (1) JP2002077291A (en)

Similar Documents

Publication Publication Date Title
US7420979B2 (en) VLAN server
US7395332B2 (en) Method and apparatus for high-speed parsing of network messages
US7225188B1 (en) System and method for performing regular expression matching with high parallelism
US20070214282A1 (en) Load balancing via rotation of cluster identity
US20040210663A1 (en) Object-aware transport-layer network processing engine
US20030128708A1 (en) Communication apparatus and relay apparatus for performing packet priority control
US5852714A (en) Real time broadcasting system on an internet
JP2002359637A (en) Packet relay processing apparatus
US20110142050A1 (en) Hashing packet contents to determine a processor
US6112247A (en) Network controller for processing status queries
US6598088B1 (en) Port switch
US7809008B2 (en) Methods and apparatus for routing packets
JP2002077291A (en) Header-processing method
US7961732B2 (en) Method and hardware apparatus for implementing frame alteration commands
JP2006013732A (en) Routing device and authentication method of information processor
US20030115359A1 (en) Network relay apparatus, network system, and network relay method
JP2009217841A (en) Packet relay processor
US20050080913A1 (en) Method and system for querying information from a switch by a server in a computer network
JP3922541B2 (en) Communication packet processing apparatus and system and method
JP4418409B2 (en) PREMIUM PACKET IDENTIFICATION DEVICE, TERMINAL DEVICE, PREMIER PACKET IDENTIFICATION SYSTEM, AND PREMIER PACKET IDENTIFICATION METHOD
JP2000261487A (en) Device and system for packet filtering
JP2007104700A (en) Packet relay processing apparatus
JPH04267463A (en) Security system
Parr Enhanced address resolution in a multi-LAN Ethernet communications system
JPH11234322A (en) Device and method for improving function level 2 'ethernet(r)' switch to or higher than level 3

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071106