CN107438035A - A kind of network processing unit, network processing method and system, veneer - Google Patents

A kind of network processing unit, network processing method and system, veneer Download PDF

Info

Publication number
CN107438035A
CN107438035A CN201610356508.4A CN201610356508A CN107438035A CN 107438035 A CN107438035 A CN 107438035A CN 201610356508 A CN201610356508 A CN 201610356508A CN 107438035 A CN107438035 A CN 107438035A
Authority
CN
China
Prior art keywords
message
network
port
port number
side
Prior art date
Application number
CN201610356508.4A
Other languages
Chinese (zh)
Inventor
姜海明
杨远田
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to CN201610356508.4A priority Critical patent/CN107438035A/en
Publication of CN107438035A publication Critical patent/CN107438035A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding through a switch fabric
    • H04L49/253Connections establishment or release between ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags

Abstract

The invention provides a kind of network processing unit, network processing system and method, Network Side Interface unit receives the message from network side, message is sent to port resolution unit, as port resolution unit according to corresponding to the unique identification information of the network-side port in the heading of message determines message logical port number, then message and logical port number are sent to micro engine unit, micro engine unit is handled message accordingly, is then forwarded to exchange side interface unit.The logical port number of message is determined by port resolution unit, this is handled so as to eliminate micro engine unit, greatly reduces the burden of micro engine unit so that the disposal ability of network processing unit is obviously improved.

Description

A kind of network processing unit, network processing method and system, veneer

Technical field

The present invention relates to the communications field, more particularly to a kind of network processing unit, network processing method and system, veneer.

Background technology

Network today development speed is surprising, and the growth of network traffics and the appearance of new business are, it is necessary to which the network equipment has line Fast and flexible disposal ability.Network processing unit relies on its high speed processing and flexible programmability, it has also become in current network The effective solution of data processing.

Typical architecture such as Fig. 1 of network processing system application, including interface card 11, network processing unit 12, switching network 13.

Network processing unit 12 is responsible for the message of the reception of Processing Interface card 11, realizes service distributing, forwarding, Network Side Interface list Member 121 and exchange side interface unit 123 receive network side side respectively and exchange side enters the flow of network processing unit 12, micro engine Unit 122 is the core processing engine of network processing unit 12, for Message processing;Switching network 13 is responsible for exchanging access and QOS (Quality of Service, service quality) processing.

Interface card 11 is responsible for port access, generally comprises optical module, FPGA or PHY etc..Such as E1, STM-1, GE, XFI Deng the access of type port.

At present network processing unit 12 provide external interface include multichannel SERDES (SERializer/DESerializer, Serializer/de-serializers) bus, these buses can generally be individually configured to SGMII (Serial Gigabit Media Independent Interface, serial gigabit GMII) (1G), XFI (10G), XLAUI (40G), CAUI The interface type such as (100G), INTERLAKEN, in addition, in order to support more outgoing interfaces, preferably utilize network processing unit 12 High speed processing ability, interface card 11 can go out the low-speed interfaces such as multichannel E1, SGMII, now need interface card 11 to do message conversion, Channel information is carried by increasing heading, realizes multichannel to mapping all the way;The message received to exchange side, at present using allusion quotation Type is to be carried to network processing unit 12 by exchanging head for Interlaken interfaces, usual exit port, exchanges and is included out in head Port information.

For above two scene, it is required for network processing unit to perceive fine-grained channelizing port information, i.e. logical end Slogan.A large amount of instructions are spent to go identification to conciliate by residing at the microcode in micro engine unit using usual network processing unit at present Analysis, the microcode resource of network processing unit is most precious resources, and micro-code instruction length determines the forwarding performance of network processing unit.Cause How this, save the performance of microcode, makes the disposal ability of network processing unit stronger, turns into a urgent problem to be solved.

The content of the invention

The invention provides a kind of network processing unit, network processing method and system, veneer, solve and adopt in the prior art The waste of microcode performance caused by the logical port number of message is obtained with the microcode of the micro engine in network processing unit, so as to So that the problem of network processing unit process performance difference.

In order to solve the above-mentioned technical problem, the invention provides a kind of network processing method, including:

Receive the message from network side or exchange side;

The unique identification information of network-side port in the heading of the message, determine to patrol corresponding to the message Collect port numbers;

According to the message and corresponding logical port number, the message is handled.

Optionally, the unique identification information in the heading according to message, logical port number corresponding to message is determined Including:According to the corresponding relation between the unique identification information and default unique identification information and logical port number, really Logical port number corresponding to the fixed message.

Optionally, when the network-side port is unchannelized mode, the unique mark in the heading of the message Information includes physical port number;When the network-side port is channelized mode, unique mark in the heading of the message Knowing information includes physical port number and channel number.

Optionally, the corresponding relation between the default unique identification information and logical port number includes:Physical port Corresponding relation number between logical port number, or the corresponding relation between physical port number and channel number and logical port number;

Logical port number corresponding to the determination message includes:

When the network-side port is unchannelized mode, according to the physical port number and default physical port Corresponding relation number between logical port number, determines logical port number corresponding to the message;

When the network-side port is channelized mode, according to the physical port number and channel number and default thing The corresponding relation between port numbers and channel number and logical port number is managed, determines logical port number corresponding to the message.

Further, present invention also offers a kind of network processing unit, including Network Side Interface unit, exchange side interface list Member, port resolution unit and micro engine unit;

The Network Side Interface unit receives the message from network side, and the message is sent into port resolution unit; Port resolution unit determines that the message is corresponding according to the unique identification information of the network-side port in the heading of the message Logical port number, and the message and the logical port number are sent to the micro engine unit;The micro engine unit According to the message and logical port number, the message is handled, and the message after processing is sent to the exchange Side interface unit;

The exchange side interface unit receives the message from exchange side, and the message is sent into port resolution unit; Port resolution unit determines that the message is corresponding according to the unique identification information of the network-side port in the heading of the message Logical port number, and the message and the logical port number are sent to the micro engine unit;The micro engine unit According to the message and logical port number, the message is handled, and the message after processing is sent to the network Side interface unit.

Optionally, the port resolution unit is believed according to the unique mark of the network-side port in the heading of the message Breath determines that logical port number corresponding to the message includes:The port resolution unit includes port table, the port table storage Corresponding relation between unique identification information and logical port number, the port table is searched according to the unique identification information, Determine logical port number corresponding to the message.

Optionally, when the network-side port is unchannelized mode, the unique mark in the heading of the message Information includes physical port number;When the network-side port is channelized mode, unique mark in the heading of the message Knowing information includes physical port number and channel number.

Optionally, the port table includes the first sublist and the second sublist;First sublist stores physical port number Corresponding relation between logical port number, second sublist store physical port number and channel number and logical port number it Between corresponding relation;

When the network-side port is unchannelized mode, looked into according to the physical port number in first sublist Look for and logical port number corresponding to determining;

When the network-side port is channelized mode, according to the physical port number and channel number in the described second son Searched in table and logical port number corresponding to determining.

Optionally, the port resolution unit also includes selection subelement;First sublist is according to the network side The pattern of mouth determines concurrently to send splitting signal to the selection subelement;The selection subelement determines according to the splitting signal Logical port number corresponding to the message.

Optionally, the port table also stored for the corresponding relation between logical port number and port information, according to described Unique identification information is searched in the port table and port information corresponding to determining.

Further, present invention also offers a kind of network processing system, including interface card and above-mentioned network processing unit; The card that receives includes at least one interface, and each interface corresponds at least one network-side port, and the interface card passes through institute State network-side port and receive message, and the message is sent by the net passed in the network processing unit by corresponding interface Network side interface unit.

Further, present invention also offers a kind of veneer, including above-mentioned network processing unit.

Beneficial effects of the present invention

The invention provides a kind of network processing unit, network processing method and system, veneer, Network Side Interface unit receives Message from network side, message is sent to port resolution unit, by heading of the port resolution unit according to message The unique identification information of network-side port determines logical port number corresponding to message, is then sent to message and logical port number Micro engine unit, micro engine unit are handled message accordingly, are then forwarded to exchange side interface unit.Parsed by port single Member determines the logical port number of message, and this is handled so as to eliminate micro engine unit, greatly reduces micro engine unit Burden so that the disposal ability of network processing unit is obviously improved.

Brief description of the drawings

Fig. 1 is a kind of structural representation of network processing system;

Fig. 2 is a kind of structural representation for network processing unit that one embodiment of the invention provides;

Fig. 3 is a kind of structural representation for network processing system that one embodiment of the invention provides;

Fig. 4 is a kind of structural representation for port resolution unit that one embodiment of the invention provides;

Fig. 5 is a kind of structural representation for port resolution unit that one embodiment of the invention provides;

Fig. 6 is a kind of structural representation for first sublist that one embodiment of the invention provides;

Fig. 7 is a kind of structural representation for second sublist that one embodiment of the invention provides;

Fig. 8 is a kind of schematic flow sheet for network processing method that one embodiment of the invention provides;

Fig. 9 is a kind of structural representation for first sublist that one embodiment of the invention provides;

Figure 10 is a kind of structural representation for second sublist that one embodiment of the invention provides.

Embodiment

The design point of the present invention is, increases a port resolution unit in network processing unit, by port resolution unit The unique identification information of Network Side Interface in the heading of message, logical port number corresponding to the message is determined, then Message and logical port number are sent to micro engine unit again, micro engine unit is handled the message accordingly, is saved Microcode resource in micro engine unit so that the disposal ability of micro engine unit is obviously improved.

The specific implementation to the present invention is described further below in conjunction with the accompanying drawings.

Embodiment one

A kind of network processing unit is present embodiments provided, refer to Fig. 2, including:

Network Side Interface unit 121, exchange side interface unit 123, port resolution unit 124 and micro engine unit 122;

Network Side Interface unit 121 receives the message from network side, and message is sent into port resolution unit 124;End Mouthful resolution unit 124 determines logic corresponding to message according to the unique identification information of the network-side port in the heading of message Port numbers, and message and logical port number are sent to micro engine unit 122;Micro engine unit 122 is according to message and logic Port numbers, message is handled, and the message after processing is sent to exchange side interface unit 123;

Exchange side interface unit 123 receives the message from exchange side, and message is sent into port resolution unit 124;End Mouthful resolution unit 124 determines logic corresponding to message according to the unique identification information of the network-side port in the heading of message Port numbers, and message and logical port number are sent to micro engine unit 122;Micro engine unit 122 is according to message and logic Port numbers, message is handled, and the message after processing is sent to Network Side Interface unit 121.

Network Side Interface unit 121 is the unit that network processing unit 12 interacts with the external world, the various messages sent from outside, Network processing unit 12 is entered by Network Side Interface unit 121;Likewise, the message in network processing unit 12 is also by network side Interface unit 121 is sent to the position specified.And the micro engine unit 122 in network processing unit 12 is handled message When, it is necessary to know the logical port number of the fine-grained port information, the i.e. network-side port of message of message, message could be entered The processing of row next step, processing procedure here include forwarding etc. operation of being modified to message;Therefore, in the message of message In the case of including unique identification information in head, by port resolution unit 124 according to the unique identification information, message is determined Logical port number, it is determined that after the logical port number of message, message and the logical port number are just sent to micro engine Unit 122, follow-up processing is carried out by micro engine unit 122.Micro engine unit 122 is handling message and then will reported Text is sent to exchange side interface unit 123, and the message is sent into switching network by exchange side interface unit 123.

On the other hand, switching network also has message generation, and is sent to the external world by network processing unit 12;Therefore, exchange Side interface unit 123 receives the message from exchange side, after the message that have received exchange side, due to the message is sent out into net Network processor 12 is, it is necessary to know the logic port of fine-grained outlet information, the i.e. network-side port of message corresponding to the message Number, therefore, the message is sent to port resolution unit 124 by exchange side interface unit 123, and port resolution unit 124 is according to this Unique identification information in the heading of message, the logical port number of network-side port corresponding to the message is determined, then should Message and logical port number are sent to micro engine unit 122, and the message is sent to accordingly by micro engine unit 122 accordingly Side.

The transmission of message has the difference from network side and exchange side, that is, the message for having network side transmission to come in, also there is exchange Transmit the message of coming in side;When the message is come in from network side transmission, network processing unit 12 is it is understood that message passes Logical port number corresponding to progressive next network-side port, so as to handle the message;When the message is passed from exchange side It is progressive come when, network processing unit 12 it is understood that logical port number corresponding to the network-side port that message passes, That is whether from the message of network side transmission, or the message from exchange side transmission, what it needed to learn is network side Logical port number corresponding to port.

Although in addition, from Network Side Interface unit 121 transmit message, and exchange side interface unit 123 transmit report Text, before being handled into micro engine unit 122, it may pass through port resolution unit 124 and it handled, so And the message that only can also be transmitted to Network Side Interface unit 121 is handled by port resolution unit 124, or it is only right The message that exchange side interface unit 123 transmits is handled by port resolution unit 124, no matter using which kind of mode can be with The processing load of micro engine unit 122 is reduced to a certain extent, lifts the process performance of network processing unit 12.

Further, Fig. 4 is refer to, port resolution unit 124 includes port table 20, and port table 20 stores unique mark Corresponding relation between information and logical port number, therefore, port resolution unit 124 is according to the unique identification information of message at this Searched in port table 20 and logical port number corresponding to determining, the logical port number and message are then sent to micro engine unit 122.Corresponding relation between the unique identification information and logical port number that are stored in port table 20 is default corresponding relation, this Individual relation is usually relevant with experience, or system inertia etc., and logical port number often follows certain rule.

Network Side Interface unit 121 is often connected with multiple network-side ports;Network-side port, in general, Ke Yifen For two kinds of ports:One kind is unchannelized mode, and another kind is channelized mode.Channelized mode is that interface is divided into more height Interface, such as by the port of a 2M bandwidth, be divided into 32 64K subchannel, this 32 subchannels can with 1,2,4,8 It is individual, 16 and be all that unit is combined, there is provided multiple subchannels for users to use and allow available free passage;And Unchannelized mode, it is not possible to interface is divided into multiple sub-interfaces, but can also be realized by other technologies in an interface It is middle to carry out multiple communications, such as virtual circuit and multiplexing, because channelizing interface is that the division from passage is realized on hardware, Therefore its cost is higher than unchannelized interface.In addition, the characteristics of interface of channelized mode, is, and the interface after division, its thing It is identical to manage port numbers, likewise, its respective physical port number of the interface for the unchannelized mode that can not be divided is fixed.Cause This, when Network Side Interface is unchannelized mode, the unique identification information of message includes physical port number;Work as Network Side Interface When being channelized mode, the unique identification information of message includes physical port number and channel number.

Because network-side port has point of channelizing and unchannelized, therefore, the port table 20 in port resolution unit 124 Including the first sublist 201 and the second sublist 202;First sublist 201 stores pair between physical port number and logical port number It should be related to, refer to Fig. 6;Stored in second sublist 202 corresponding between physical port number and channel number and logical port number Relation, it refer to Fig. 7.When network-side port is unchannelized mode, searched according to physical port number in the first sublist 201 And logical port number corresponding to determining;When Network Side Interface is channelized mode, according to physical port number and channel number Searched in two sublists 202 and logical port number corresponding to determining.In addition, although in most cases, the first sublist 201 is to use In the lookup of the logical port number of the network-side port of unchannelized mode, the second sublist 202 is the net for channelized mode The lookup of the logical port number of network side ports, but sometimes, for the network-side port of channelizing, we need only to know Logical port number corresponding to its physical port number of road, without the combination more refineing between physical port number and channel number Corresponding logical port number, now, the network-side port of channelized mode still can be according to the thing stored in the first sublist 201 Corresponding relation between reason port numbers and logical port number is searched and determines the corresponding logical port number of the message, and this is in this implementation Also it is allowed in example.

Because port table 20 includes the first sublist 201 and the second sublist 202, physics end is stored in the first sublist 201 Corresponding relation between slogan and logical port number, and store physical port number and channel number and logic in the second sublist 202 Corresponding relation between port numbers, then, it is necessary to the first sublist 201 or the second sublist 202 are selected.Selection, i.e., It is from the first sublist 201 or the second sublist 202, selects that table needed, search and determine corresponding to message from the table Logical port number.Again because the first sublist 201 and the second sublist 202 are selected often by the pattern of Network Side Interface , then, port resolution unit 124 includes selection subelement 30, for the sublist of model selection first according to Network Side Interface 201 or second sublist 202 search and draw a circle to approve logical port number corresponding to message.Specifically, selection process can have it is a variety of: First, the pattern that selection subelement 30 takes the lead according to Network Side Interface, it is determined that being the first sublist 201 of selection or the second sublist 202, then, then pair the first sublist 201 determined or the second sublist 202 are searched, and the result found is sent into micro- draw Hold up;Second, directly searched according to unique identification information in the first sublist 201 and the second sublist 202, in general, this The search procedure of sample can produce two kinds of results, first, between the physical port number and logical port number in the first sublist 201 The logical port number of message that determines of corresponding relation, when physical port number and channel number in the second sublist 202 with Grace corresponding relation determines the logical port number of grace message between logical port number, and the two port numbers are often different;So, In the first sublist 201 or the second sublist 202, determined concurrently to send splitting signal single to selection according to the pattern of network-side port Member 30, subelement 30 is selected to determine logical port number corresponding to message further according to splitting signal.That is, with the first sublist Exemplified by 201, the first sublist 201 determines concurrently to send splitting signal to give selection subelement 30 according to the pattern of network-side port, then Select the logical port number according to corresponding to splitting signal determines message of subelement 30.

In addition, it is further, except storing pair between unique identification information and logical port number in this port table 20 Outside should being related to, the corresponding relation between logical port number and port information also stored for;Due to message unique identification information with Logical port number also has corresponding relation, then, it is corresponding between the logical port number stored in port table 20 and port information Relation, it is also assumed that be the corresponding relation between unique identification information and port information, even unique identification information, logic There is corresponding corresponding relation between port numbers and port information this three.In port, resolution unit 124 is according to unique mark Know information when determining logical port number, can also according to corresponding to determining the unique identification information port information;Here port The particular content of information can be defined flexibly, for example can deposit the information such as Port Mirroring, port default priority.

In addition, the present embodiment additionally provides a kind of veneer, including above-mentioned network processing unit 12.

By the network processing unit 12 in the present embodiment, before message is handled into micro engine unit 122, shift to an earlier date By fine-grained port information, the logical port number of message extracts, and for micro engine, the message received has been taken With logical port number, therefore do not need microcode to spend instruction to do parsing and logical operation, be greatly reduced micro engine list The load of member 122, improve the process performance of network processing unit 12.

Embodiment two

A kind of network processing system is present embodiments provided, refer to the network in Fig. 3, including interface card 11 and embodiment Processor 12;Wherein interface card 11 includes at least one interface, and each interface corresponds at least one network-side port, interface card 11 receive message by network-side port, and message is passed to the network side joint in network processing unit 12 by corresponding interface Mouth unit 121.

The effect of interface card 11 is to provide interface, and interface is used to transmit message.It is readily apparent that, interface card 11 should be at least There are both ends, one end receives extraneous message, and the message received is sent to the network side joint in network processing unit 12 by the other end Mouth unit 121.It is exactly interface by that one end that the message received is sent to network processing unit 12, each in interface card 11 connects The physical port number of mouth is different;That one end of extraneous message is received, is exactly network-side port, network-side port is according to it The difference of type is divided into unchannelized mode and channelized mode, and unchannelized mode is exactly that an interface corresponds to this network Side ports, channelized mode are exactly that an interface corresponds to multiple network-side ports;Multiple network-side ports of one interface, its thing It is all identical to manage port numbers, and difference is the difference of channel number, therefore, for the network-side port biography from unchannelized mode The message passed, the unique identification information in its heading should include physical port number, and for the network from channelized mode The message of side ports transmission, the unique identification information in its heading should include physical port number and channel number.

In addition, between the interface and network-side port of interface card 11, its agreement is not necessarily identical;Therefore, interface card 11 removes Outside transmission message, the protocol conversion between network-side port and interface can also be realized so that message can pass through The Network Side Interface unit 121 that interface card 11 enters in network processing unit 12.

Network processing unit 12 in the present embodiment is similar with embodiment one, repeats no more here.

In addition, in the other end of network processing unit 12, i.e., the one end interacted with exchange side interface unit 123, also wrap Include switching network;Switching network is responsible for exchanging access and QOS processing.Switching network can receive message by exchange side interface unit 123, Message can be sent to network processing unit 12 by exchange side interface unit 123, so as to realize its effect.

Embodiment three

A kind of network processing method is present embodiments provided, refer to Fig. 8, including:

Receive the message from network side or exchange side;

The unique identification information of network-side port in the heading of message, determine logic port corresponding to message Number;

According to message and corresponding logical port number, message is handled.

The message of network side is that the message of exchange side is entered by switching network by the outside message for entering network processing unit 12 The message of network processing unit 12;And, it is necessary to know the fine-grained of message when being handled in network processing unit 12 message The logical port number of the network-side port of port information, i.e. message, the processing of next step, processing here could be carried out to message Process includes forwarding etc. operation of being modified to message;Therefore, unique identifier is included in the heading of message In the case of, according to the unique identification information, the logical port number of message is determined, then can is according to message and logic port Number, message is handled.

The transmission of message has the difference from network side and exchange side, that is, has the message that network side transmission is come in, and exchange side Transmit the message of coming in;When the message is come in from network side transmission, network processing unit 12 is it is understood that message transmission Logical port number corresponding to the network-side port come in, so as to handle the message;When the message is from exchange side transmission When coming in, network processing unit 12 is it is understood that logical port number corresponding to the network-side port that message passes, also It is to say, whether from the message of network side transmission, or the message from exchange side transmission, what it needed to learn is network side The logical port number of mouth.

Further, the corresponding relation between unique identification information and logical port number has been preset in network processing unit 12, That is step S102 includes:According to the corresponding pass between unique identification information and default unique identification information and logical port number System, determines logical port number corresponding to message.This default corresponding relation, can be as embodiment one, in port table The corresponding relation is stored in 20, then search in processes in port table 20 directly according to unique identification information corresponding to logic Port numbers.Corresponding relation between the unique identification information stored in port table 20 and logical port number is default corresponding pass System, this relation is usually relevant with experience, or system inertia etc., and logical port number often follows certain rule.

Network-side port, in general, two kinds of ports can be divided into:One kind is unchannelized mode, and another kind is passage Change pattern.Channelized mode is that interface is divided into multiple sub-interfaces, such as by the port of a 2M bandwidth, is divided into 32 64K Passage, this 32 subchannels can be combined in units of 1,2,4,8,16 and whole, there is provided more height Passage for users to use and allows available free passage;And unchannelized mode, it is not possible to interface is divided into more height and connect Mouthful, but can also be realized by other technologies and multiple communications are carried out in an interface, such as virtual circuit and multiplexing, due to Channelizing interface is that the division from passage is realized on hardware, therefore its cost is higher than unchannelized interface.In addition, channelizing The characteristics of interface of pattern is that the interface after division, its physical port number is identical, likewise, the unchannelized mould that can not be divided Its respective physical port number of the interface of formula is fixed.Therefore, when Network Side Interface is unchannelized mode, message is only One identification information includes physical port number;When Network Side Interface is channelized mode, the unique identification information of message includes thing Manage port numbers and channel number.

Because network-side port has point of channelizing and unchannelized, therefore, default unique identification information and logical end Corresponding relation between slogan can include:Corresponding relation between physical port number and logical port number, or physical port number Corresponding relation between channel number and logical port number, then, S102 includes:When network-side port is unchannelized mode When, according to the corresponding relation between physical port number and default physical port number and logical port number, determine that message is corresponding Logical port number;When network-side port is channelized mode, according to physical port number and channel number and default physics Corresponding relation between port numbers and channel number and logical port number, determine logical port number corresponding to message.That is, In the case of port table 20, port table 20 can include the first sublist 201 and the second sublist 202;First sublist 201 stores Corresponding relation between physical port number and logical port number, physical port number and channel number are stored in second sublist 202 Corresponding relation between logical port number.When network-side port is unchannelized mode, according to physical port number first Searched in sublist 201 and logical port number corresponding to determining;When Network Side Interface is channelized mode, according to physical port number Searched with channel number in the second sublist 202 and logical port number corresponding to determining.Although in addition, in most cases, One sublist 201 is the lookup of the logical port number of the network-side port for unchannelized mode, and the second sublist 202 is to be used to lead to The lookup of the logical port number of the network-side port of road pattern, but sometimes, for the network-side port of channelizing, I Need only to know logical port number corresponding to its physical port number, without more refineing to physical port number and passage The logical port number with reference to corresponding between number, now, the network-side port of channelized mode still can be according to the first sublist Corresponding relation between the physical port number stored in 201 and logical port number is searched and determines the corresponding logic port of the message Number, this is also allowed in the present embodiment.

Because port table 20 includes the first sublist 201 and the second sublist 202, physics end is stored in the first sublist 201 Corresponding relation between slogan and logical port number, and store physical port number and channel number and logic in the second sublist 202 Corresponding relation between port numbers, then, it is necessary to the first sublist 201 or the second sublist 202 are selected.Selection, i.e., It is from the first sublist 201 or the second sublist 202, selects that table needed, search and determine corresponding to message from the table Logical port number.Again because the first sublist 201 and the second sublist 202 are selected often by the pattern of Network Side Interface , then, port resolution unit 124 includes selection subelement 30, for the sublist of model selection first according to Network Side Interface 201 or second sublist 202 search and draw a circle to approve logical port number corresponding to message.Specifically, selection process can have it is a variety of: First, the pattern that selection subelement 30 takes the lead according to Network Side Interface, it is determined that being the first sublist 201 of selection or the second sublist 202, then, then pair the first sublist 201 determined or the second sublist 202 are searched, and the result found is sent into micro- draw Hold up;Second, directly searched according to unique identification information in the first sublist 201 and the second sublist 202, in general, this The search procedure of sample can produce two kinds of results, first, between the physical port number and logical port number in the first sublist 201 The logical port number of message that determines of corresponding relation, when physical port number and channel number in the second sublist 202 with Grace corresponding relation determines the logical port number of grace message between logical port number, and the two port numbers are often different;So, In the first sublist 201 or the second sublist 202, determined concurrently to send splitting signal single to selection according to the pattern of network-side port Member 30, subelement 30 is selected to determine logical port number corresponding to message further according to splitting signal.That is, with the first sublist Exemplified by 201, the first sublist 201 determines concurrently to send splitting signal to give selection subelement 30 according to the pattern of network-side port, then Select the logical port number according to corresponding to splitting signal determines message of subelement 30.

In addition, it is further, except storing pair between unique identification information and logical port number in this port table 20 Outside should being related to, the corresponding relation between unique identification information and logical port number and port information also stored for;Solved in port , can also be according to corresponding to determining the unique identification information when analysis unit 124 determines logical port number according to unique identification information Port information;Here the particular content of port information can be defined flexibly, for example can to deposit Port Mirroring, port default excellent The information such as first level.

By the network processing method in the present embodiment, the message from network side and/or exchange side is received, then basis The unique identification information of network-side port in the heading of message determines logical port number corresponding to message, so as to eliminate net The process that micro engine unit 122 in network processor 12 is handled this, for micro engine, the message received is Logical port number is carried, therefore instruction need not be spent to do parsing and logical operation, is greatly reduced micro engine unit 122 meet, improves the process performance of network processing unit 12.

Example IV

A kind of network processing system is present embodiments provided, refer to Fig. 3, including:

Interface card 11, network processing unit 12, switching network;

Interface card 11 includes at least one interface, and each interface corresponds at least one network-side port, and interface card 11 is logical Cross network-side port and receive message, and message is passed to the network interface list in network processing unit 12 by corresponding interface Member.

The effect of interface card 11 is to provide interface, and interface is used to transmit message.It is readily apparent that, interface card 11 should be at least There are both ends, one end receives extraneous message, and the message received is sent to the network side joint in network processing unit 12 by the other end Mouth unit 121.It is exactly interface by that one end that the message received is sent to network processing unit 12, each in interface card 11 connects The physical port number of mouth is different;That one end of extraneous message is received, is exactly network-side port, network-side port is according to it The difference of type is divided into unchannelized mode and channelized mode, and unchannelized mode is exactly that an interface corresponds to this network Side ports, channelized mode are exactly that an interface corresponds to multiple network-side ports;Multiple network-side ports of one interface, its thing It is all identical to manage port numbers, and difference is the difference of channel number, therefore, for the network-side port biography from unchannelized mode The message passed, the unique identification information in its heading should include physical port number, and for the network from channelized mode The message of side ports transmission, the unique identification information in its heading should include physical port number and channel number.

Network processing unit 12 include Network Side Interface unit 121, exchange side interface unit 123, port resolution unit 124 with And micro engine unit 122;Wherein:

Network Side Interface unit 121 receives the message from network side, and message is sent into port resolution unit 124;End Mouthful resolution unit 124 determines logic corresponding to message according to the unique identification information of the network-side port in the heading of message Port numbers, and message and logical port number are sent to micro engine unit 122;Micro engine unit 122 is according to message and logic Port numbers, message is handled, and the message after processing is sent to exchange side interface unit 123;

Exchange side interface unit 123 receives the message from exchange side, and message is sent into port resolution unit 124;End Mouthful resolution unit 124 determines logic corresponding to message according to the unique identification information of the network-side port in the heading of message Port numbers, and message and logical port number are sent to micro engine unit 122;Micro engine unit 122 is according to message and logic Port numbers, message is handled, and the message after processing is sent to Network Side Interface unit 121.

The single SERDES bus configurations of network processing unit 12 and interface card 11 are public into channelized mode, such as BROADCOM The HIGIG/HIGIG+ released is taken charge of, by HIGIG head transmission channel port informations.Now one of network processing unit 12 SERDES corresponds to 10 SGMII ports of panel side, and generally FPGA (Field-Programmable Gate are used on interface card 11 Array, field programmable gate array) realize SGMII and HIGIG conversion.So enter the message of network processing unit 12 Heading, carry channel (passage) channelizing information.

The message entered for exchange side, generally carries the exit port information of message by exchanging head, and microcode needs to know The fine-grained exit port information carried from exchange head, and corresponding exit port is sent to, for channelizing port, it is also necessary to will go out Port translation goes out end by channelizing hair into the channelizing head containing channelizing information accordingly, interface card 11 toward final Mouthful.

Fig. 9 is the schematic diagram of the first sublist 201 of the port table 20 in the present embodiment port resolution unit 124:

Key assignments:PhyPort (physical port number)

Table content:Valid (significance bit)+Lport (logical port number)+PortInfo (port information).

Figure 10 is the schematic diagram of the second sublist 202 of the port table 20 in the present embodiment port resolution unit 124:

TCAM (ternary content addressable memory three-state content addressing memories):PhyPort+ Channel (channel number);

SRAM (Static Random Access Memory, static RAM):Lport+PortInfo.

For first sublist 201 by PhyPort indexes, PhyPort is one of all of the port type that interface card 11 is supported Physics is numbered, and for channelizing port, such as the HIGIG ports in legend, its PhyPort is same value.

Field in first sublist 201, valid are whether to use the flag bit of port table 201, pass through this mark on hardware The alternatively splitting signal of subelement 30.If 1, then Lport and PortInfo obtains from the first sublist 201;Otherwise Obtained according to TCAM;Lport is the logical port number that microcode uses, and is corresponded with network side panel terminal port, is most fine granularity Port numbers, microcode needs this port numbers to look into various information;PortInfo is port content, and particular content can be defined flexibly, For example the information such as Port Mirroring, port default priority can be deposited.

Second sublist 202 includes index direct index SARM, SARM content and the first son that TCAM and SRAM, TCAM are returned The content of table 201 is essentially identical, mainly includes Lport and PortInfo.Matched rule is deposited in TCAM, rule includes PhyPort and Channel.The message entered for channelizing port, searches in TCAM and SARM and finishes, can export Lport And PortInfo.

Fig. 5 is refer to, selects splitting signal of the subelement 30 in the first sublist 201 to carry out path selection, output is most Whole Lport and PortInfo.

More specifically state, for the network-side port of unchannelized mode, valid=1 in port table 201, selection Subelement 30 can select the result in the first sublist 201 as output;For the network-side port of channelized mode, valid= 0, select subelement 30 to select from the result in the second sublist 202 as output.

In addition, the first sublist 201 and the second sublist 202 are basically identical, practical application can be deposited with same memory, Content in table can also be defined flexibly, be belonged within invention content.

Above content is to combine specific embodiment further description made for the present invention, it is impossible to assert this hair Bright specific implementation is confined to these explanations.For general technical staff of the technical field of the invention, do not taking off On the premise of from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the protection of the present invention Scope.

Claims (12)

  1. A kind of 1. network processing method, it is characterised in that including:
    Receive the message from network side or exchange side;
    The unique identification information of network-side port in the heading of the message, determine logical end corresponding to the message Slogan;
    According to the message and corresponding logical port number, the message is handled.
  2. 2. network processing method as claimed in claim 1, it is characterised in that unique mark in the heading according to message Know information, determine that logical port number includes corresponding to message:Believed according to the unique identification information and default unique mark Corresponding relation between breath and logical port number, determines logical port number corresponding to the message.
  3. 3. network processing method as claimed in claim 2, it is characterised in that when the network-side port is unchannelized mode When, the unique identification information in the heading of the message includes physical port number;When the network-side port is channelizing mould During formula, the unique identification information in the heading of the message includes physical port number and channel number.
  4. 4. network processing method as claimed in claim 3, it is characterised in that the default unique identification information and logical end Corresponding relation between slogan includes:Corresponding relation between physical port number and logical port number, or physical port number and logical Corresponding relation between Taoist monastic name and logical port number;
    Logical port number corresponding to the determination message includes:
    When the network-side port is unchannelized mode, according to the physical port number and default physical port number with Corresponding relation between logical port number, determine logical port number corresponding to the message;
    When the network-side port is channelized mode, according to the physical port number and channel number and default physics end Corresponding relation between slogan and channel number and logical port number, determine logical port number corresponding to the message.
  5. 5. a kind of network processing unit, it is characterised in that single including Network Side Interface unit, exchange side interface unit, port parsing Member and micro engine unit;
    The Network Side Interface unit receives the message from network side, and the message is sent into port resolution unit;It is described Port resolution unit determines that the message is corresponding according to the unique identification information of the network-side port in the heading of the message Logical port number, and the message and the logical port number are sent to the micro engine unit;The micro engine unit According to the message and logical port number, the message is handled, and the message after processing is sent to the exchange Side interface unit;
    The exchange side interface unit receives the message from exchange side, and the message is sent into port resolution unit;It is described Port resolution unit determines that the message is corresponding according to the unique identification information of the network-side port in the heading of the message Logical port number, and the message and the logical port number are sent to the micro engine unit;The micro engine unit According to the message and logical port number, the message is handled, and the message after processing is sent to the network Side interface unit.
  6. 6. network processing unit as claimed in claim 5, it is characterised in that the port resolution unit is according to the report of the message The unique identification information of network-side port in literary head determines that logical port number corresponding to the message includes:The port parsing Unit includes port table, and the port table stores the corresponding relation between unique identification information and logical port number, according to institute State unique identification information and search the port table, determine logical port number corresponding to the message.
  7. 7. network processing unit as claimed in claim 6, it is characterised in that when the network-side port is unchannelized mode When, the unique identification information in the heading of the message includes physical port number;When the network-side port is channelizing mould During formula, the unique identification information in the heading of the message includes physical port number and channel number.
  8. 8. network processing unit as claimed in claim 7, it is characterised in that the port table includes the first sublist and the second son Table;First sublist stores the corresponding relation between physical port number and logical port number, and second sublist stores Corresponding relation between physical port number and channel number and logical port number;
    When the network-side port is unchannelized mode, searched simultaneously in first sublist according to the physical port number It is determined that corresponding logical port number;
    When the network-side port is channelized mode, according to the physical port number and channel number in second sublist Search and logical port number corresponding to determining.
  9. 9. network processing unit as claimed in claim 8, it is characterised in that it is single that the port resolution unit also includes selection Member;First sublist determines concurrently to send splitting signal to the selection subelement according to the pattern of the network-side port;Institute State selection subelement logical port number according to corresponding to the splitting signal determines the message.
  10. 10. the network processing unit as described in claim any one of 6-9, it is characterised in that the port table also stored for logic Corresponding relation between port numbers and port information, searched and determined pair in the port table according to the unique identification information The port information answered.
  11. A kind of 11. network processing system, it is characterised in that the network including interface card and as described in claim any one of 5-10 Processor;The card that receives includes at least one interface, and each interface corresponds at least one network-side port, the interface card Message is received by the network-side port, and the message is sent by corresponding interface and passes to the network processing unit In Network Side Interface unit.
  12. 12. a kind of veneer, it is characterised in that including the network processing unit as described in claim any one of 5-10.
CN201610356508.4A 2016-05-25 2016-05-25 A kind of network processing unit, network processing method and system, veneer CN107438035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610356508.4A CN107438035A (en) 2016-05-25 2016-05-25 A kind of network processing unit, network processing method and system, veneer

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610356508.4A CN107438035A (en) 2016-05-25 2016-05-25 A kind of network processing unit, network processing method and system, veneer
PCT/CN2017/074461 WO2017202084A1 (en) 2016-05-25 2017-02-22 Network processor, network processing method and system, single board, and computer storage medium

Publications (1)

Publication Number Publication Date
CN107438035A true CN107438035A (en) 2017-12-05

Family

ID=60412133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610356508.4A CN107438035A (en) 2016-05-25 2016-05-25 A kind of network processing unit, network processing method and system, veneer

Country Status (2)

Country Link
CN (1) CN107438035A (en)
WO (1) WO2017202084A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019165855A1 (en) * 2018-02-28 2019-09-06 华为技术有限公司 Message transmission method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362744B2 (en) * 2002-08-15 2008-04-22 International Business Machines Corporation Database management system and method of using it to transmit packets
CN101242284B (en) * 2008-03-20 2012-09-05 杭州华三通信技术有限公司 Communication method and network device based on SPI bus
CN102347955A (en) * 2011-11-01 2012-02-08 杭州依赛通信有限公司 Reliable data transmission protocol based on virtual channels
CN105337884A (en) * 2015-09-25 2016-02-17 盛科网络(苏州)有限公司 Method and device for achieving multistage message editing service control on the basis of logic port

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019165855A1 (en) * 2018-02-28 2019-09-06 华为技术有限公司 Message transmission method and device

Also Published As

Publication number Publication date
WO2017202084A1 (en) 2017-11-30

Similar Documents

Publication Publication Date Title
US9225643B2 (en) Lookup cluster complex
EP2993837B1 (en) Methods and apparatus for path selection within a network based on flow duration
USRE45570E1 (en) Data transmission method using packet aggregation
US10425359B2 (en) Packet data traffic management apparatus
US20140036675A1 (en) System and method for virtual ethernet interface binding
US8964537B2 (en) Method and system for egress policy indications
US8705533B1 (en) Fast packet encapsulation using templates
EP1109363B1 (en) Routing engine
US6181699B1 (en) Apparatus and method of assigning VLAN tags
EP0993153B1 (en) Packet forwarding apparatus with a flow detection table
US6981054B1 (en) Flow control arrangement in a network switch based on priority traffic
CN1761219B (en) Method for implementing automatic discovery of topological structure in MPLS ring net
US6295299B1 (en) Data path architecture for a LAN switch
DE102013225692A1 (en) network status figure
CN102104541B (en) Header processing engine
US7522595B2 (en) Communicating packets between forwarding contexts using virtual interfaces
US6151322A (en) Multiport data switch having data frame VLAN tagging and VLAN stripping
US8811171B2 (en) Flow control for multi-hop networks
US7191259B2 (en) Method and apparatus for fast integer within-range compare
CN102047618B (en) A network processor unit and a method for a network processor unit
US7042891B2 (en) Dynamic selection of lowest latency path in a network switch
EP1779605B1 (en) Forwarding database in a network switch device
US7647472B2 (en) High speed and high throughput digital communications processor with efficient cooperation between programmable processing components
US7330918B2 (en) Buffer memory management method and system
US6963585B1 (en) Method and system for establishing a virtual path capability in a frame relay network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination