CN104158809B - The method and device of protocol massages transmitted to CPU - Google Patents

The method and device of protocol massages transmitted to CPU Download PDF

Info

Publication number
CN104158809B
CN104158809B CN201410411451.4A CN201410411451A CN104158809B CN 104158809 B CN104158809 B CN 104158809B CN 201410411451 A CN201410411451 A CN 201410411451A CN 104158809 B CN104158809 B CN 104158809B
Authority
CN
China
Prior art keywords
protocol massages
protocol
equipment
cpu
transmitted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410411451.4A
Other languages
Chinese (zh)
Other versions
CN104158809A (en
Inventor
韩冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410411451.4A priority Critical patent/CN104158809B/en
Publication of CN104158809A publication Critical patent/CN104158809A/en
Application granted granted Critical
Publication of CN104158809B publication Critical patent/CN104158809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Massaging Devices (AREA)

Abstract

The application proposes the method and device of protocol massages transmitted to CPU.Method includes:Equipment for enabling ISIS agreements or enabling the agreement for being multiplexed ISIS, the exchange chip of the equipment preserve the acl rule of protocol massages transmitted to CPU, and the rule is:When the protocol type that the content that fixed position is preset in protocol massages is identified is identical with the protocol type that this equipment enables, by protocol massages transmitted to CPU;The exchange chip of the equipment receives the protocol massages that the CPU of the equipment is sent, and the fixed position of the protocol massages carries the enabled protocol type information of the equipment, and exchange chip sends the protocol massages;When the exchange chip of the equipment receives the protocol massages that miscellaneous equipment is sent, the acl rule for the protocol massages transmitted to CPU that the message is preserved with itself is matched, if matching, by the protocol massages transmitted to CPU.The application enables protocol massages transmitted to CPU exactly.

Description

The method and device of protocol massages transmitted to CPU
Technical field
The application is related to Message processing technical field, more particularly to protocol massages transmitted to CPU (Central Processing Unit, CPU) method and device.
Background technology
SPB (Shortest Path Bridge, shortest path bridge) is IEEE (Institute of Electrical And Electronics Engineers, IEEE) ethernet standard that 802.1aq is defined is MSTP The further extension of (Multiple Spanning Tree Protocol, Multiple Spanning Tree Protocol), it is intended to build large flat Clog-free double layer network.SPB uses ISIS (Intermediate System to Intermediate System, centre system Uniting to intermediate system)-SPB shares the Link State in network, and network each nodal parallel calculates most short between each node Path, avoid the unstability and part of links brought using STP (Spanning Tree Protocol, Spanning-Tree Protocol) The low deficiency of utilization ratio.SPB configuration managements are simple, cost is cheap, can be directed to application of the Ethernet in data center.
IS-IS is initially ISO (International Organization for Standardization, world mark Standardization tissue) it is the one of its CLNP (Connection-Less Network Protocol, connectionless network protocol) designs Kind dynamic routing protocol.
In order to provide the route support to IP, IETF (Internet Engineering Task Force, internet work Journey task groups) IS-IS is expanded and changed in RFC 1195, enable it to apply simultaneously in TCP (Transmission Control Protocol, transmission control protocol)/IP and OSI (Open System Interconnect, Open System Interconnection) in environment, referred to as Integrated IS-IS (Integrated IS-IS) or Dual IS- IS。
IS-IS belongs to IGP (Interior Gateway Protocol, Interior Gateway Protocol), in autonomous system Portion.IS-IS is a kind of link-state protocol, is carried out using SPF (Shortest Path First, SPF) algorithm Router-level topology.
SPB protocol multiplexings ISIS, both protocol massages heads are identical.Want to distinguish two agreements, it is necessary to point Analyse protocol support (agreement support) option (i.e. TLV 0x81) that protocol massages carry.
When the private network at SPB network both ends configures ISIS agreements, ISIS neighbours can not be established between private network, this be because For:Because SPB agreements are identical with the header of ISIS agreements, so enabling the equipment of SPB agreements in exchange chip ACL (Access Control List, the accesses control list) rules of the SPB protocol massages transmitted to CPU of upper configuration are with enabling The acl rule of the ISIS protocol massages transmitted to CPU configured in the equipment of ISIS agreements is identical, so, may result in ISIS When protocol massages transmit in SPB network, when reaching SPB equipment, SPB equipment can be because the ISIS protocol massages have matched certainly Body configuration SPB protocol massages transmitted to CPU acl rule, and be mistakenly considered the ISIS protocol massages for SPB protocol massages from And by its transmitted to CPU, as a result cause the ISIS protocol massages mistakenly to be terminated.
Above mentioned problem may also occur in other multiplexing ISIS agreement, such as TRILL (Transparent Interconnection of Lots of Links, transparent interconnection of lots of links interconnection), EVI (Ethernet Virtual Interconnection, Ethernet virtualization interconnection) agreement etc..
The content of the invention
The application provides the method and device of protocol massages transmitted to CPU.
What the technical scheme of the application was realized in:
A kind of method of protocol massages transmitted to CPU, this method include:
Equipment for enabling ISIS agreements or enabling the agreement for being multiplexed ISIS, the exchange chip of the equipment are protected The acl rule of protocol massages transmitted to CPU is deposited, the rule is:When the association that the content that fixed position is preset in protocol massages is identified When view type is identical with the protocol type that this equipment enables, by protocol massages transmitted to CPU;
The exchange chip of the equipment receives the protocol massages that the CPU of the equipment is sent, the protocol massages it is described solid Determine opening position and carry the enabled protocol type information of the equipment, exchange chip sends the protocol massages;
When the exchange chip of the equipment receives the protocol massages that miscellaneous equipment is sent, by the message and itself preserve The acl rule of the protocol massages transmitted to CPU matched, if matching, by the protocol massages transmitted to CPU.
A kind of device of protocol massages transmitted to CPU, the device, which is located to enable ISIS agreements or enable, is multiplexed ISIS Agreement equipment exchange chip on, the device includes:
Acl rule preserving module:The acl rule of protocol massages transmitted to CPU is preserved, the rule is:When pre- in protocol massages If the protocol type that the content of fixed position is identified is identical with the protocol type that this equipment enables, it will be sent on protocol massages CPU;
Protocol massages transceiver module:Receive the protocol massages that the CPU of the equipment is sent, the fixation of the protocol massages Opening position carries the enabled protocol type information of the equipment, and the protocol massages are sent;Sent out when receiving miscellaneous equipment During the protocol massages come, the acl rule for the protocol massages transmitted to CPU that the message is preserved with acl rule preserving module enters Row matching, if matching, by the protocol massages transmitted to CPU.
It can be seen that in the application, by being taken in the fixed position of ISIS protocol massages or the protocol massages for being multiplexed ISIS Protocol type information with message so that the association of outgoing packet can be identified exactly by receiving the devices exchange chip of protocol massages Type is discussed, so as to whether judge exactly by message up sending equipment CPU.
Brief description of the drawings
Fig. 1 is the method flow diagram for the protocol massages transmitted to CPU that the embodiment of the present application provides;
Fig. 2 is the form schematic diagram of ISIS hello packet;
Fig. 3 is the composition schematic diagram of the device for the protocol massages transmitted to CPU that the embodiment of the present application provides.
Embodiment
Fig. 1 is the method flow diagram for the protocol massages transmitted to CPU that the embodiment of the present application provides, and it is comprised the following steps that:
Step 101:Equipment for enabling ISIS agreements or enabling the agreement for being multiplexed ISIS, the exchange of the equipment Chip preserves the acl rule of protocol massages transmitted to CPU, and the rule is:When the content that fixed position is preset in protocol massages is marked When the protocol type of knowledge is identical with the protocol type that this equipment enables, by protocol massages transmitted to CPU.
The acl rule of protocol massages transmitted to CPU is pre-configured with equipment.
In the present embodiment, for ISIS protocol massages or multiplexing ISIS protocol massages, a position is selected in messages Fixed field is put, protocol type information is carried using the field;Meanwhile define the field corresponding to different types of agreement Value.
The form of most common ISIS protocol massages -- ISIS hello packet is as shown in Fig. 2 wherein, Variable The position of field before Length Fields fields and form are all fixed.
Figure it is seen that the 7th byte of ISIS hello packet is Reserved (reservation) field, the present embodiment It is middle to represent the enabled protocol type of equipment using the Reserved fields.For example, it can represent that equipment enables in the following way Protocol type:
1) when 8 bit of the Reserved fields are all 0, i.e., when Reserved fields value is 00000000, represent ISIS agreements are in itself;
2) from the low level of the Reserved fields to seniority top digit, the first bit is 1, when other bit are 0, i.e. Reserved When field value is 00000001, SPB agreements are represented;2nd bit is 1, and when other bit are 0, i.e., Reserved fields value is When 00000010, TRILL protocol is represented;3rd bit is 1, and when other bit are 0, i.e., Reserved fields value is 00000100 When, represent EVI agreements.
When occurring other multiplexing ISIS protocol type in the future, Reserved fields can be determined in the manner described above Other values, will not be repeated here.
So, for enable ISIS agreements in itself or enable multiplexing ISIS agreement equipment for, set to this Restricted information of the increase to Reserved fields is needed in the acl rule of the protocol massages transmitted to CPU of standby configuration, it is specific as follows:
1) when equipment enables ISIS agreements itself, ACL of the keeper to the protocol massages transmitted to CPU of the device configuration Rule is:When the value of the Reserved fields of the 7th byte of protocol massages is 00000000, by the message up sending CPU。
2) when equipment enables SPB agreements, acl rule of the keeper to the protocol massages transmitted to CPU of the device configuration For:When the value of the Reserved fields of the 7th byte of protocol massages is 00000001, by the messages transmitted to CPU.
3) when equipment enables TRILL protocol, keeper advises to the ACL of the protocol massages transmitted to CPU of the device configuration It is then:When the value of the Reserved fields of the 7th byte of protocol massages is 00000010, by the messages transmitted to CPU.
4) when equipment enables EVI agreements, acl rule of the keeper to the protocol massages transmitted to CPU of the device configuration For:When the value of the Reserved fields of the 7th byte of protocol massages is 00000100, by the messages transmitted to CPU.
So, acl rule can accurately distinguish ISIS agreements and be multiplexed ISIS each agreement.
It should be noted that above-mentioned be merely given as a kind of difference of the value by Reserved fields to represent different The example of the enabled different agreement type of equipment.In actual applications, which value is used to represent which kind of protocol type can be with Any setting, as long as ensureing the value difference of Reserved fields corresponding to different agreement type.It can certainly use Field that the other positions of protocol massages are fixed and unappropriated represents the enabled protocol type of equipment.
Step 102:When the equipment of agreement for enabling ISIS agreements or enable multiplexing ISIS will send protocol massages When, the CPU of the equipment constructs the message, wherein, the default fixed position of the message carries the enabled protocol class of this equipment The message constructed is sent to the exchange chip of the equipment by type information, the CPU of the equipment, and the exchange chip of the equipment reports this Text is sent.
According to the citing in step 101, can in the Reserved fields that the position of protocol massages is fixed Portable device Enabled protocol type information.
Step 103:When enable ISIS agreements or enable multiplexing ISIS agreement equipment exchange chip receive During the protocol massages sent to miscellaneous equipment, the acl rule of the message and the protocol massages transmitted to CPU of itself configuration is carried out Match somebody with somebody, if matching, by the CPU of this equipment of the message up sending;Otherwise, the message is directly forwarded.
Specifically, the exchange chip of equipment is according to the fixed position described in acl rule, from the protocol massages received The opening position obtain the enabled protocol type of equipment for sending the protocol massages, if the protocol type obtained enables with this equipment Protocol type it is identical, then it is assumed that match, the CPU of this equipment will be given on the protocol massages;Otherwise, the agreement report is directly forwarded Text.
Furthermore, it is contemplated that when the equipment of different vendor in network be present, the equipment of some possible manufacturers does not support this Shen Please the scheme that provides of embodiment, therefore give following solution:
Match somebody with somebody in advance on the exchange chip of the equipment of the scheme for the protocol massages transmitted to CPU that the embodiment of the present application offer is provided Put both of which:Mode standard and enhancement mode, mode standard are the scheme of existing protocol massages transmitted to CPU, enhancement mode That is the scheme for the protocol massages transmitted to CPU that the embodiment of the present application provides.When all in double layer network or LAN make Can the multiplexing ISIS equipment of agreement when all supporting the scheme that the embodiment of the present application provides, then the exchange chips of all devices is all Open enhancement mode;Otherwise, mode standard is opened on the exchange chip of the equipment for the scheme that the embodiment of the present application offer is provided, So, all devices in network all carry out the processing of protocol massages transmitted to CPU using existing scheme.In actual applications, may be used Default device opens mode standard;Certainly, also can Default device unlatching enhancement mode.
The embodiment of the present application possesses following beneficial effect:
Exchange chip can be caused to identify different protocol massages, so that protocol massages can be sent on exactly CPU is forwarded, and also ensure that ISIS protocol massages in the agreement by being multiplexed ISIS (such as:SPB, TRILL, EVI etc.) During network, will not directly it be forwarded by transmitted to CPU, so that ISIS protocol massages can cross over multiplexing ISIS agreement Network.
Fig. 3 is the device for the protocol massages transmitted to CPU that the embodiment of the present application provides, and the device, which is located at, enables ISIS agreements Or enable multiplexing ISIS agreement equipment exchange chip on, the device mainly includes:Acl rule preserving module and association Packet sending and receiving module is discussed, wherein:
Acl rule preserving module:The acl rule of protocol massages transmitted to CPU is preserved, the rule is:When pre- in protocol massages If the protocol type that the content of fixed position is identified is identical with the protocol type that this equipment enables, it will be sent on protocol massages CPU。
Protocol massages transceiver module:Receive the protocol massages that the CPU of the equipment is sent, the fixation of the protocol massages Opening position carries the enabled protocol type information of the equipment, and the protocol massages are sent;Sent out when receiving miscellaneous equipment During the protocol massages come, the acl rule for the protocol massages transmitted to CPU that the message is preserved with acl rule preserving module enters Row matching, if matching, by the protocol massages transmitted to CPU.
Wherein, the fixed position described in acl rule that acl rule preserving module preserves is:Position is consolidated in protocol massages Fixed and unappropriated field.
Wherein, sent on the protocol massages that protocol massages transceiver module preserves the message with acl rule preserving module CPU acl rule, which carries out matching, to be included:According to the fixed position described in acl rule, from the position of the protocol massages received The place of putting, which obtains, sends the protocol type that the equipment of the protocol massages enables, if the agreement that the protocol type obtained enables with this equipment Type is identical, then it is assumed that matches.
In actual applications, described device further comprises:Mode of operation selecting module, for preserving two kinds of Working moulds Formula:Mode standard and enhancement mode, wherein, do not retouched in the acl rule of protocol massages transmitted to CPU corresponding to mode standard comprising this State:When the protocol type that the content that fixed position is preset in protocol massages is identified is identical with the protocol type that this equipment enables When, by protocol massages transmitted to CPU, the description is included in the acl rule of protocol massages transmitted to CPU corresponding to enhancement mode:Work as association When the protocol type that the content of default fixed position is identified in view message is identical with the protocol type that this equipment enables, by agreement Messages transmitted to CPU;When the equipment of all agreements for enabling multiplexing ISIS in network residing for the equipment is all supported to strengthen mould During formula, enhancement mode is opened, otherwise, opens mode standard.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.

Claims (4)

  1. A kind of 1. method of protocol massages transmitted to CPU, it is characterised in that this method includes:
    Equipment for enabling Intermediate System-to-Intermediate System ISIS agreements or enabling the agreement for being multiplexed ISIS, it is described to set Standby exchange chip preserves the access control list ACL rule of protocol massages transmitted to CPU, and the rule is:When pre- in protocol massages If the protocol type that the content of fixed position is identified is identical with the protocol type that this equipment enables, it will be sent on protocol massages CPU;
    The exchange chip of the equipment receives the protocol massages that the CPU of the equipment is sent, the fixed bit of the protocol massages Put place and carry the enabled protocol type information of the equipment, exchange chip sends the protocol massages;
    When the exchange chip of the equipment receives the protocol massages that miscellaneous equipment is sent, by the message and the institute itself preserved The acl rule for stating protocol massages transmitted to CPU is matched, if matching, by the protocol massages transmitted to CPU;Otherwise, directly turn Send out the message;
    The fixed position is:
    Position is fixed and unappropriated field in protocol massages.
  2. 2. according to the method for claim 1, it is characterised in that the exchange chip of the equipment is by the message and itself preserves The acl rule of the protocol massages transmitted to CPU carry out matching and include:
    The exchange chip of equipment obtains according to the fixed position described in acl rule from the opening position of the protocol massages received The enabled protocol type of the equipment for sending the protocol massages is taken, if the protocol type phase that the protocol type obtained enables with this equipment Together, then it is assumed that match.
  3. 3. a kind of device of protocol massages transmitted to CPU, the device, which is located at, to be enabled ISIS agreements or enables multiplexing ISIS's On the exchange chip of the equipment of agreement, it is characterised in that the device includes:
    Acl rule preserving module:The acl rule of protocol massages transmitted to CPU is preserved, the rule is:It is solid when being preset in protocol massages When the protocol type that the content that positioning is put is identified is identical with the protocol type that this equipment enables, by protocol massages transmitted to CPU;
    Protocol massages transceiver module:Receive the protocol massages that the CPU of the equipment is sent, the fixed position of the protocol massages Place carries the enabled protocol type information of the equipment, and the protocol massages are sent;When receiving what miscellaneous equipment was sent During protocol massages, the acl rule progress for the protocol massages transmitted to CPU that the message and acl rule preserving module are preserved Match somebody with somebody, if matching, by the protocol massages transmitted to CPU;Otherwise, the message is directly forwarded;
    The fixed position described in acl rule that the acl rule preserving module preserves is:
    Position is fixed and unappropriated field in protocol massages.
  4. 4. device according to claim 3, it is characterised in that the protocol massages transceiver module advises the message and ACL Then the acl rule for the protocol massages transmitted to CPU that preserving module preserves, which carries out matching, includes:
    According to the fixed position described in acl rule, obtained from the opening position of the protocol massages received and send the agreement report The enabled protocol type of the equipment of text, if the protocol type obtained is identical with the protocol type that this equipment enables, then it is assumed that matching On.
CN201410411451.4A 2014-08-20 2014-08-20 The method and device of protocol massages transmitted to CPU Active CN104158809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410411451.4A CN104158809B (en) 2014-08-20 2014-08-20 The method and device of protocol massages transmitted to CPU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410411451.4A CN104158809B (en) 2014-08-20 2014-08-20 The method and device of protocol massages transmitted to CPU

Publications (2)

Publication Number Publication Date
CN104158809A CN104158809A (en) 2014-11-19
CN104158809B true CN104158809B (en) 2017-12-15

Family

ID=51884214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410411451.4A Active CN104158809B (en) 2014-08-20 2014-08-20 The method and device of protocol massages transmitted to CPU

Country Status (1)

Country Link
CN (1) CN104158809B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302351B (en) * 2015-06-03 2019-10-15 华为技术有限公司 Collect the method, apparatus and system of accesses control list
CN109995678B (en) * 2017-12-29 2022-06-10 迈普通信技术股份有限公司 Message transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006100503A2 (en) * 2005-03-24 2006-09-28 Orange Sa Packet radio network for activation of a packet data protocol context
CN101155107A (en) * 2006-09-25 2008-04-02 华为技术有限公司 Method, device and system for bearing P2P protocol on elastic grouping ring
CN103001816A (en) * 2011-09-14 2013-03-27 华为技术有限公司 Data communication method and data communication equipment
CN103607354A (en) * 2013-11-26 2014-02-26 中国联合网络通信集团有限公司 Flow control method, DPI equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006100503A2 (en) * 2005-03-24 2006-09-28 Orange Sa Packet radio network for activation of a packet data protocol context
CN101155107A (en) * 2006-09-25 2008-04-02 华为技术有限公司 Method, device and system for bearing P2P protocol on elastic grouping ring
CN103001816A (en) * 2011-09-14 2013-03-27 华为技术有限公司 Data communication method and data communication equipment
CN103607354A (en) * 2013-11-26 2014-02-26 中国联合网络通信集团有限公司 Flow control method, DPI equipment and system

Also Published As

Publication number Publication date
CN104158809A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
US11438260B2 (en) Method and apparatus for forwarding MPLS data packet
EP3151509B1 (en) Enhanced evpn mac route advertisement having mac (l2) level authentication, security and policy control
CN104243270B (en) A kind of method and apparatus for establishing tunnel
US9148300B2 (en) Method and system for telecommunications including self-organizing scalable Ethernet using IS-IS hierarchy
KR101593356B1 (en) System and method for using label distribution protocol (ldp) in ipv6 networks
CN104283791B (en) Three etale topologies in a kind of SDN determine method and apparatus
US7944854B2 (en) IP security within multi-topology routing
EP3151510A2 (en) Mac (l2) level authentication, security and policy control
CN108270673B (en) File transmitting method, device and system
CA2520560A1 (en) Arrangement in a router for distributing a routing rule used to generate routes based on a pattern of a received packet
WO2013054344A4 (en) Method and apparatus for end-end communication and inter-domain routing in omnipresent ethernet networks with an option to migrate to mpls-tp
CN112671641B (en) Message forwarding method and device
CN105591798B (en) The method, apparatus of OAM Information is transmitted in DCN
JP6605558B2 (en) Network probe routing
CN106817299A (en) The list item generation method and device and message forwarding method of software defined network
EP3025453A1 (en) Probe routing in a network
CN103825818B (en) A kind of more topological network retransmission methods and device
CN104158809B (en) The method and device of protocol massages transmitted to CPU
Carlson et al. PPP transparent interconnection of lots of links (TRILL) protocol control protocol
CN105471742B (en) A kind of message processing method and equipment
KR101851031B1 (en) Pseudo-wire providing an in-band control channel using an offset
Xu et al. SR-MPLS over IP
CN105577542B (en) A kind of message forwarding method and routing bridge based on TRILL network
US10291430B2 (en) Method, device and system for managing TRILL network using three-layer network manager
CN104836799B (en) A kind of LDP session establishing methods and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant