CN106911571B - A kind of distal end PW BFD descriptor learning method and system based on network processing unit - Google Patents

A kind of distal end PW BFD descriptor learning method and system based on network processing unit Download PDF

Info

Publication number
CN106911571B
CN106911571B CN201710114675.2A CN201710114675A CN106911571B CN 106911571 B CN106911571 B CN 106911571B CN 201710114675 A CN201710114675 A CN 201710114675A CN 106911571 B CN106911571 B CN 106911571B
Authority
CN
China
Prior art keywords
bfd
descriptor
processing unit
network processing
local terminal
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
CN201710114675.2A
Other languages
Chinese (zh)
Other versions
CN106911571A (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.)
Wuhan Fenghuo Optical Network Information Technology Co ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201710114675.2A priority Critical patent/CN106911571B/en
Publication of CN106911571A publication Critical patent/CN106911571A/en
Application granted granted Critical
Publication of CN106911571B publication Critical patent/CN106911571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/68Pseudowire emulation, e.g. IETF WG PWE3

Abstract

The invention discloses a kind of distal end PW BFD descriptor learning method and system based on network processing unit, the specific steps are as follows: internal list item is arranged in S1 on the network processing unit of local terminal, and internal list item includes the corresponding relationship of PW label Yu local terminal BFD descriptor;S2, after the BFD message that distal end is sent reaches network processing unit, network processing unit extracts BFD message, parse BFD message, extract PW label, and internal list item is searched using PW label as KEY, according to the corresponding relationship of PW label and local terminal BFD descriptor, network processing unit obtains corresponding local terminal BFD descriptor;BFD message is written in local terminal BFD descriptor by S3, network processing unit, completes the study of BFD descriptor.BFD descriptor is learnt by network processing unit in the present invention, control software is not needed in entire learning process and is participated in, solves the problem concerning study of BFD descriptor under cross-domain scene, implementation process is simple, high reliablity.

Description

A kind of distal end PW BFD descriptor learning method and system based on network processing unit
Technical field
The present invention relates to the technical fields for learning PW BFD descriptor in distal end in communication equipment, and in particular to one kind is based on net The distal end PW BFD descriptor learning method and system of network processor.
Background technique
In current operator's return network, with being stepped up for portfolio, network topology is gradually complicated, matches in equipment The PW BFD quantity set is also more and more, and wherein PW BFD is practical two-way converting detection BFD (Bidirectional Forwarding Detection) binding pseudo-wire PW (Pseudowire) business a kind of configuration, for quickly detecting certain PW State.During local terminal and opposite equip. establish dynamic bidirectional forwarding detection BFD, traditional dynamic PW BFD study is retouched Stating symbol process is that control software is realized by transmitting-receiving LSP PING message, learns the BFD descriptor of distal end later by configuration data It is handed down to the hardware of business board.It will appear cross-domain L2VPN in return network, intermediate cross-domain point is MS-PW node, this Under scene, when PW BFD is established in local terminal and opposite end, if learning descriptor using LSP PING, local terminal does not know the IP of opposite end, So the IP of LSP PING can only use the IP of MS-PW node, then software is controlled according to the binding of cross-domain PW by MS-PW node Relationship converts the data and configuration of LSP PING message, and control software realization process is complicated, and feasibility is not high.
By way of controlling software learning PW BFD descriptor, control software will receive and parse through LSP PING message, Whole operation process is run on cpu system, if local device is configured with thousands of dynamic PW BFD, During BFD is established, entire learning process needs to repeat thousand times, and the process of dynamic PW BFD study descriptor can consume CPU Resource, CPU usage can maintain a high position in learning process, influence whether to operate in the control software on CPU when serious Other modules.For example the higher Routing Protocol of requirement of real-time is restrained.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of distal ends based on network processing unit PW BFD descriptor learning method and system, implementation process is simple, high reliablity.
To achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of distal end PW BFD descriptor learning method based on network processing unit, the specific steps are as follows:
Internal list item is arranged in S1 on the network processing unit of local terminal, and internal list item includes PW label and local terminal BFD descriptor Corresponding relationship;
S2, after the BFD message that distal end is sent reaches network processing unit, network processing unit extracts BFD message, parsing BFD report Text extracts PW label, and internal list item is searched using PW label as KEY, closes according to PW label is corresponding with local terminal BFD descriptor System, network processing unit obtain corresponding local terminal BFD descriptor;
BFD message is written in local terminal BFD descriptor by S3, network processing unit, completes the study of BFD descriptor.
Based on the above technical solution, in S1, PW label is generated according to Routing Protocol, corresponding, PW label End BFD descriptor is generated according to user configuration or control software algorithm.
Based on the above technical solution, specific step is as follows by the S2:
S20, after the BFD message that distal end is sent reaches network processing unit, network processing unit screens and extracts BFD message;
S21, network processing unit parses BFD message, and the YID field for obtaining BFD message is transferred to S22 if YID=0, Conversely, then terminating, it is transferred to S23;
S22, network processing unit extracts the PW label of BFD message, using PW label as the inside of KEY Network Search processor List item obtains a corresponding local terminal BFD descriptor according to the corresponding relationship of PW label and local terminal BFD descriptor;
BFD message is directly forwarded to FPGA by S23, network processing unit, and FPGA does subsequent BFD state machine processing.
Based on the above technical solution, in S3, by the YID field of local BFD descriptor write-in BFD message.
Based on the above technical solution, YID field is the remote descriptors of BFD session.
A kind of distal end PW BFD descriptor learning system based on network processing unit, comprising:
Internal list item setting unit, for internal list item to be arranged on the network processing unit of local terminal, wherein internal list item packet Include the corresponding relationship of PW label Yu local terminal BFD descriptor;
Local terminal BFD descriptor acquiring unit, for from the BFD message that network processing unit extracts, parsing BFD message to be extracted PW label, and using PW label as the inside list item of KEY Network Search processor, according to PW label and local terminal BFD descriptor Corresponding relationship obtains corresponding local terminal BFD descriptor;
Local terminal BFD descriptor writing unit, for BFD message to be written from network processing unit by local terminal BFD descriptor.
Based on the above technical solution, the internal list item setting unit includes PW label generation unit and local terminal BFD descriptor generation unit:
PW label generation unit, for generating PW label according to Routing Protocol;
Local terminal BFD descriptor generation unit, it is corresponding for generating PW label according to user configuration or control software algorithm Local terminal BFD descriptor.
Based on the above technical solution, local terminal BFD descriptor writing unit reports local BFD descriptor write-in BFD The YID field of text.
Compared with the prior art, the advantages of the present invention are as follows:
(1) present invention in the distal end PW BFD descriptor learning method based on network processing unit, first by PW label with In the corresponding relationship write-in network processing unit of BFD descriptor, BFD descriptor is learnt by network processing unit, in entire learning process It does not need control software to participate in, solves the problem concerning study of BFD descriptor under cross-domain scene, implementation process is simple, high reliablity.
(2) the distal end PW BFD descriptor learning method based on network processing unit in the present invention is received without using control software It sends out LSP PING message and realizes that dynamic PW BFD learns descriptor process, the process of all PW BFD descriptor study is in net It completes, is not run on CPU on network processor, reduce consumption of the BFD study to system CPU, improve the whole of system Body performance.
Detailed description of the invention
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is the system flow chart of the embodiment of the present invention.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
Shown in Figure 1, the embodiment of the present invention provides a kind of distal end PW BFD descriptor study based on network processing unit Method, the specific steps are as follows:
Internal list item is arranged in the network processing unit of local terminal in S1, and internal list item includes that several PW labels are retouched with local terminal BFD State the corresponding relationship of symbol;Wherein, PW label is generated according to Routing Protocol, and the corresponding local terminal BFD descriptor of PW label is root It is generated according to user configuration or control software algorithm.BFD descriptor for identifying a BFD session, be it is unique in equipment, General bit wide is 32b.
S2, after the BFD message that distal end is sent reaches network processing unit, network processing unit extracts BFD message, parsing BFD report Text extracts PW label, and internal list item is searched using PW label as KEY, closes according to PW label is corresponding with local terminal BFD descriptor System, network processing unit obtain corresponding local terminal BFD descriptor;
Wherein specific step is as follows by S2:
S20, the BFD message that distal end is sent is after network processing unit plate mouth arrival network processing unit, network processing unit screening And BFD message is extracted, wherein the format of BFD message is the head the Ethernet header+MPLS head+IP+BFD descriptor;
S21, network processing unit parses BFD message, and the YID field for obtaining BFD message is transferred to S22 if YID=0, Conversely, then terminating, it is transferred to S23;
S22, network processing unit extracts the PW label of BFD message, using PW label as the inside of KEY Network Search processor List item obtains a corresponding local terminal BFD descriptor according to the corresponding relationship of PW label and local terminal BFD descriptor;
BFD message is directly forwarded to FPGA by S23, network processing unit, and FPGA does subsequent BFD state machine processing.
The YID field of local terminal BFD descriptor write-in BFD message is completed the study of BFD descriptor by S3, network processing unit. YID field is the remote descriptors of BFD session.
Shown in Figure 2, the present invention provides a kind of distal end PW BFD descriptor learning system based on network processing unit, packet It includes:
Internal list item setting unit, for internal list item to be arranged in the network processing unit of local terminal, wherein internal list item packet Include the corresponding relationship of several PW labels Yu local terminal BFD descriptor;
Wherein, internal list item setting unit includes PW label generation unit and local terminal BFD descriptor generation unit: PW label Generation unit, for generating PW label according to Routing Protocol;
Local terminal BFD descriptor generation unit, it is corresponding for generating PW label according to user configuration or control software algorithm Local terminal BFD descriptor.
Local terminal BFD descriptor acquiring unit, for from the BFD message that network processing unit extracts, parsing BFD message to be extracted PW label, and using PW label as the inside list item of KEY Network Search processor, according to PW label and local terminal BFD descriptor Corresponding relationship obtains corresponding local terminal BFD descriptor.
Local terminal BFD descriptor writing unit, for local terminal BFD descriptor to be written to the YID of BFD message from network processing unit Field.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (7)

1. a kind of distal end PW BFD descriptor learning method based on network processing unit, which is characterized in that specific step is as follows:
Internal list item is arranged in S1 on the network processing unit of local terminal, and internal list item includes pair of PW label Yu local terminal BFD descriptor It should be related to;
S2, after the BFD message that distal end is sent reaches network processing unit, network processing unit extracts BFD message, parses BFD message, mentions PW label is taken, and searches internal list item using PW label as KEY, according to the corresponding relationship of PW label and local terminal BFD descriptor, net Network processor obtains corresponding local terminal BFD descriptor;
BFD message is written in local terminal BFD descriptor by S3, network processing unit, completes the study of BFD descriptor.
2. a kind of distal end PW BFD descriptor learning method based on network processing unit as described in claim 1, feature exist In: in S1, PW label is generated according to Routing Protocol, the corresponding local terminal BFD descriptor of PW label be according to user configuration or Person controls what software algorithm generated.
3. a kind of distal end PW BFD descriptor learning method based on network processing unit as described in claim 1, feature exist In specific step is as follows by the S2:
S20, after the BFD message that distal end is sent reaches network processing unit, network processing unit screens and extracts BFD message;
S21, network processing unit parses BFD message, and the YID field for obtaining BFD message is transferred to S22 if YID=0, conversely, Then terminate, is transferred to S23;
S22, network processing unit extracts the PW label of BFD message, using PW label as the inside table of KEY Network Search processor , according to the corresponding relationship of PW label and local terminal BFD descriptor, obtain a corresponding local terminal BFD descriptor;
BFD message is directly forwarded to FPGA by S23, network processing unit, and FPGA does subsequent BFD state machine processing;
Wherein, YID field is the remote descriptors of BFD message.
4. a kind of distal end PW BFD descriptor learning method based on network processing unit as described in claim 1, feature exist In: in S3, by the YID field of local BFD descriptor write-in BFD message;
Wherein, YID field is the remote descriptors of BFD message.
5. a kind of distal end PW BFD descriptor learning system based on network processing unit characterized by comprising
Internal list item setting unit, for internal list item to be arranged on the network processing unit of local terminal, wherein internal list item includes PW The corresponding relationship of label and local terminal BFD descriptor;
Local terminal BFD descriptor acquiring unit, for from the BFD message that network processing unit extracts, parsing BFD message to extract PW mark Label, and using PW label as the inside list item of KEY Network Search processor, it is corresponding with local terminal BFD descriptor according to PW label Relationship obtains corresponding local terminal BFD descriptor;
Local terminal BFD descriptor writing unit, for BFD message to be written from network processing unit by local terminal BFD descriptor.
6. a kind of distal end PW BFD descriptor learning system based on network processing unit as claimed in claim 5, feature exist In the internal list item setting unit includes PW label generation unit and local terminal BFD descriptor generation unit:
PW label generation unit, for generating PW label according to Routing Protocol;
Local terminal BFD descriptor generation unit, for generating corresponding, PW label according to user configuration or control software algorithm Hold BFD descriptor.
7. a kind of distal end PW BFD descriptor learning system based on network processing unit as claimed in claim 5, feature exist In: local terminal BFD descriptor writing unit by the YID field of local BFD descriptor write-in BFD message;
Wherein, YID field is the remote descriptors of BFD message.
CN201710114675.2A 2017-02-28 2017-02-28 A kind of distal end PW BFD descriptor learning method and system based on network processing unit Active CN106911571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710114675.2A CN106911571B (en) 2017-02-28 2017-02-28 A kind of distal end PW BFD descriptor learning method and system based on network processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710114675.2A CN106911571B (en) 2017-02-28 2017-02-28 A kind of distal end PW BFD descriptor learning method and system based on network processing unit

Publications (2)

Publication Number Publication Date
CN106911571A CN106911571A (en) 2017-06-30
CN106911571B true CN106911571B (en) 2019-08-13

Family

ID=59208825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710114675.2A Active CN106911571B (en) 2017-02-28 2017-02-28 A kind of distal end PW BFD descriptor learning method and system based on network processing unit

Country Status (1)

Country Link
CN (1) CN106911571B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911262A (en) * 2017-11-17 2018-04-13 烽火通信科技股份有限公司 A kind of cross-domain method that detection of connectivity is carried out using LSP Ping/Traceroute
CN110995594A (en) * 2019-12-23 2020-04-10 安徽皖通邮电股份有限公司 Method for solving PW BFD attack shock
CN111294358B (en) * 2020-02-21 2021-08-31 苏州盛科通信股份有限公司 Message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011120297A1 (en) * 2010-03-30 2011-10-06 中兴通讯股份有限公司 Protection method, system, provider edge and customer edge for virtual private lan services
CN104270309A (en) * 2014-09-09 2015-01-07 烽火通信科技股份有限公司 Method for achieving multi-hop BFD under IP RAN equipment
WO2015109734A1 (en) * 2014-01-24 2015-07-30 中兴通讯股份有限公司 Pseudo wire protection method, device and node
CN104821957A (en) * 2015-04-16 2015-08-05 瑞斯康达科技发展股份有限公司 Implementation method, device and system of BFD state machine
US9509599B2 (en) * 2014-08-04 2016-11-29 Telefonaktiebolaget L M Ericsson (Publ) Self-bootstrapping BFD session over MPLS LSP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011120297A1 (en) * 2010-03-30 2011-10-06 中兴通讯股份有限公司 Protection method, system, provider edge and customer edge for virtual private lan services
WO2015109734A1 (en) * 2014-01-24 2015-07-30 中兴通讯股份有限公司 Pseudo wire protection method, device and node
US9509599B2 (en) * 2014-08-04 2016-11-29 Telefonaktiebolaget L M Ericsson (Publ) Self-bootstrapping BFD session over MPLS LSP
CN104270309A (en) * 2014-09-09 2015-01-07 烽火通信科技股份有限公司 Method for achieving multi-hop BFD under IP RAN equipment
CN104821957A (en) * 2015-04-16 2015-08-05 瑞斯康达科技发展股份有限公司 Implementation method, device and system of BFD state machine

Also Published As

Publication number Publication date
CN106911571A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
US10404605B2 (en) Packet processing method, device and computer storage medium
CN106961445B (en) Packet parsing device based on FPGA hardware parallel pipeline
WO2017084600A1 (en) Internet of things system used for intelligent gas meter and information transmission method for internet of things system
CN106911571B (en) A kind of distal end PW BFD descriptor learning method and system based on network processing unit
CN106375223B (en) A kind of data forwarding system and method based on SDN
CN104518973B (en) A kind of reliable multicast transmission method of the data based on SDN environment
CN108270699B (en) Message processing method, shunt switch and aggregation network
CN108964943A (en) A kind of method and device for realizing IOAM encapsulation
CN102685006A (en) Method and device for forwarding data messages
WO2018210225A1 (en) Method and device for automatically implementing ioam encapsulation, and storage medium
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
CN104378249B (en) Detection method, device, system, controller and the gateway of data link
CN105634923B (en) Ethernet based on SDN controllers broadcasts optimized treatment method
CN110290092B (en) SDN network configuration management method based on programmable switch
WO2016095574A1 (en) Sdn-based mpls network control system and method
US8908689B2 (en) Apparatus and method for processing packet
CN102904813A (en) Message forwarding method and corresponding equipment
CN105471742B (en) A kind of message processing method and equipment
CN104468343B (en) Message processing method, SDN forwarding device and SDN controller
CN104426762A (en) Metadata transmitting and receiving method and OFLS (open flow logic switch)
CN103905285A (en) Method for dividing users with the same MAC address into multiple different VLANs
CN108881064A (en) Message information acquisition methods and sending method
CN105119679B (en) A kind of method and system for realizing that SNTP client times are synchronous
SG11201809826WA (en) Sip information analysis method and device, server, and medium
CN110493036A (en) A kind of management-control method of gateway

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200601

Address after: 430000 room 2102, floor 2, photoelectric communication industrial building, Fenghuo Road, Guandong Industrial Park, Donghu Development Zone, Wuhan City, Hubei Province

Patentee after: Wuhan Fenghuo Optical Network Information Technology Co.,Ltd.

Address before: 430000 East Lake high tech Development Zone, Hubei Province, No. 6, No., high and new technology development zone, No. four

Patentee before: FIBERHOME TELECOMMUNICATION TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 430000 g6-1302, Wuhan New Energy Research Institute building, 999 Gaoxin Avenue, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee after: Wuhan Optical Network Information Technology Co., Ltd

Address before: 430000 room 2102, floor 2, photoelectric communication industrial building, Fenghuo Road, Guandong Industrial Park, Donghu Development Zone, Wuhan City, Hubei Province

Patentee before: Wuhan Fenghuo Optical Network Information Technology Co.,Ltd.

CP03 Change of name, title or address