CN108347392A - Service message straddle processing method, apparatus and system - Google Patents
Service message straddle processing method, apparatus and system Download PDFInfo
- Publication number
- CN108347392A CN108347392A CN201810233428.9A CN201810233428A CN108347392A CN 108347392 A CN108347392 A CN 108347392A CN 201810233428 A CN201810233428 A CN 201810233428A CN 108347392 A CN108347392 A CN 108347392A
- Authority
- CN
- China
- Prior art keywords
- port
- service
- service message
- master control
- card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 70
- 238000000034 method Methods 0.000 claims description 42
- 238000005538 encapsulation Methods 0.000 claims description 22
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 14
- 230000008878 coupling Effects 0.000 abstract description 7
- 238000010168 coupling process Methods 0.000 abstract description 7
- 238000005859 coupling reaction Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 239000000203 mixture Substances 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 102100033189 Diablo IAP-binding mitochondrial protein Human genes 0.000 description 2
- 101710101225 Diablo IAP-binding mitochondrial protein Proteins 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000011800 void material Substances 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 239000011111 cardboard Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3009—Header conversion, routing tables or routing tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/40—Constructional details, e.g. power supply, mechanical construction or backplane
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of service message straddle processing method, apparatus and system, master control board card is connected with one or more business line cards;It is provided with multiple virtual service ports in master control board card, is corresponded with the physical traffic port of business line card, shares the same port index;By corresponding virtual service port, the service message that business line card is sent is received;Query processing is forwarded to service message, obtains the port index of the corresponding virtual service port of destination address of service message;According to the corresponding port index of destination address, service message is sent to corresponding business line card, so that service line card sends service message by the corresponding physical traffic port in virtual service port.Present invention reduces the software module couplings for realizing logical complexity and master control board card and business line card of master control board card software module, improve the robustness of whole system.
Description
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of service message straddle processing method, apparatus and system.
Background technology
In the communications field, meet rack router, the switch system of distributed structure/architecture, generally by master control board card and industry
Business line card composition.In the conventional technology, the straddle processing of service message is relative complex.The central processing unit of master control board card includes
Agreement calculation processing unit, at a slow speed retransmission unit etc.;Each unit is required for the sending and receiving individually to service message to handle,
I.e. processing message is received and dispatched from which port of which line card.This processing mode leads to the realization logic of master control board card software module
The software module coupling of complexity, master control board card and business line card is high, so that whole system robustness is relatively low.
Invention content
In view of this, the purpose of the present invention is to provide a kind of service message straddle processing method, apparatus and system, with drop
The software module coupling for realizing logical complexity and master control board card and business line card of low master control board card software module, is improved whole
The robustness of a system.
In a first aspect, an embodiment of the present invention provides a kind of service message straddle processing method, this method is applied to network
The master control board card of node device, the master control board card are connected with one or more business line cards;Multiple void are provided in master control board card
Quasi- service port, virtual service port and the physical traffic port of business line card correspond, each virtual service port with it is right
The same port index of physical traffic ports share answered;This method includes:By corresponding virtual service port, business is received
The service message that line card is sent;Query processing is forwarded to service message, obtains the corresponding void of destination address of service message
The port index of quasi- service port;According to the corresponding port index of destination address, service message is sent to corresponding service line
Card, so that service line card sends service message by the corresponding physical traffic port in virtual service port.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiments of first aspect, wherein on
The step of service message that the business line card is sent is received by corresponding virtual service port is stated, including:Pass through Ethernet
The eth5 interfaces of network receive service message;The port index of physical traffic port is carried in the service message;Physical traffic end
The physical traffic port for the service message that mouth sends for reception network-side;It is corresponding virtual that service message is sent to port index
Service port.
With reference to first aspect, an embodiment of the present invention provides second of possible embodiments of first aspect, wherein on
It states and query processing is forwarded to service message, obtain the port rope of the corresponding virtual service port of destination address of service message
The step of drawing, including:Inquiry business neighbor database and business routing database carry out forward process at a slow speed to service message,
Obtain the port index of the corresponding virtual service port of destination address of service message.
With reference to first aspect, an embodiment of the present invention provides the third possible embodiments of first aspect, wherein on
The step of stating according to the corresponding port index of destination address, service message be sent to corresponding business line card, including:According to mesh
The corresponding virtual service port in address service message is packaged;The heading of encapsulation includes at least the MAC of master control board card
Address, the MAC Address of business line card, Ether protocoll number and virtual service port port index;It is corresponding by destination address
Service message after encapsulation is sent to corresponding business line card by virtual service port.
Second aspect, an embodiment of the present invention provides a kind of service message straddle processing method, this method is applied to network
The business line card of node device, business line card are connect with master control board card;Each physical traffic port of the business line card is in master control
There is corresponding virtual service port in board;This method includes:The service message from network-side is received, reception business is recorded
The physical traffic port of message;According to physical traffic port, the port index of corresponding virtual port is obtained;By service message with
Port index is sent to master control board card, so that master control board card is forwarded query processing to service message.
In conjunction with second aspect, an embodiment of the present invention provides the first possible embodiments of second aspect, wherein on
The step of service message and the port index are sent to the master control board card is stated, including:According to virtual service port
Service message is packaged;The heading of encapsulation include at least the MAC Address of business line card, master control board card MAC Address, with
The too port index of protocol number and virtual service port;By virtual service port, the service message after encapsulation is sent to master
Control board.
In conjunction with second aspect, an embodiment of the present invention provides second of possible embodiments of second aspect, wherein on
The method of stating further includes:Receive the service message that master control board card is sent;Service message is decapsulated, master control board card transmission is obtained
The corresponding port index in virtual service port of service message;Corresponding physical traffic port is obtained according to port index, is sent
Service message.
The third aspect, an embodiment of the present invention provides a kind of service message straddle processing unit, which is set to network
The master control board card of node device, master control board card are connected with one or more business line cards;It is provided in master control board card multiple virtual
The physical traffic port of service port, virtual service port and business board corresponds, each virtual service port with it is corresponding
The same port index of physical traffic ports share;The device includes:First service message receiving module, for passing through correspondence
Virtual service port, receive the service message that the business line card is sent;Forwarding inquiries processing module, for the business
Message is forwarded query processing, obtains the port index of the corresponding virtual service port of destination address of the service message;
First service message sending module, for according to the corresponding port index of the destination address, the service message to be sent to
Corresponding business line card, so that the service line card sends institute by the corresponding physical traffic port in the virtual service port
State service message.
Fourth aspect, an embodiment of the present invention provides a kind of service message straddle processing unit, which is set to network
The business line card of node device, business line card are connect with master control board card;Each physical traffic port of business line card is in master control borad
There is corresponding virtual service port in card;The device includes:Second service message receiving module comes from network-side for receiving
Service message, record receives the physical traffic port of the service message;Port index acquisition module, for according to physics industry
It is engaged in port, obtaining the port index of corresponding virtual port;Second service message sending module is used for service message and port
Index is sent to master control board card, so that master control board card is forwarded query processing to service message.
5th aspect, an embodiment of the present invention provides a kind of service message straddle processing system, which includes the master
Control board and business line card;The service message straddle processing unit that the above-mentioned third aspect provides is set in master control board card;It is above-mentioned
The service message straddle processing unit that fourth aspect provides is set to business line card.
The embodiment of the present invention brings following advantageous effect:
An embodiment of the present invention provides a kind of service message straddle processing method, apparatus and systems, by corresponding virtual
Service port receives the service message that business line card is sent;After being forwarded query processing to service message, service message is obtained
The corresponding virtual service port of destination address port index;According to the corresponding port index of destination address, by service message
It is sent to corresponding business line card, so that service line card sends business by the corresponding physical traffic port in virtual service port
Message;Which reduces the software mould for realizing logical complexity and master control board card and business line card of master control board card software module
Block coupling improves the robustness of whole system.
Other features and advantages of the present invention will illustrate in the following description, alternatively, Partial Feature and advantage can be with
Deduce from specification or unambiguously determine, or by implement the present invention above-mentioned technology it can be learnt that.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, better embodiment cited below particularly, and match
Appended attached drawing is closed, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow chart of service message straddle processing method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another service message straddle processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of service message straddle processing unit provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another service message straddle processing unit provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of service message straddle processing system provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of distributed apparatus provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another distributed apparatus provided in an embodiment of the present invention;
Fig. 8 is IP unicast message board-spanning forwarding data flow figure provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Currently, the communication equipment due to distributed structure/architecture is complex to the straddle processing mode of service message, cause be
Robustness of uniting is relatively low, is based on this, a kind of service message straddle processing method provided in an embodiment of the present invention, apparatus and system, can
To be applied to interchanger, router and other distributed structure/architecture equipment.
For ease of understanding the present embodiment, first to a kind of service message straddle disclosed in the embodiment of the present invention at
Reason method describes in detail.
A kind of flow chart of service message straddle processing method shown in Figure 1, this method are set applied to network node
Standby master control board card, the master control board card are connected with one or more business line cards;Multiple virtual services are provided in master control board card
Port, virtual service port and the physical traffic port of business line card correspond, each virtual service port and corresponding object
Reason service port shares the same port index;This method includes:
Step S100 receives the service message that business line card is sent by corresponding virtual service port;
Above-mentioned steps S100, is realized especially by following manner:
(1) by the eth5 interfaces of Ethernet, service message is received;Physical traffic port is carried in the service message
Port index;Physical traffic port is the physical traffic port for receiving the service message that network-side is sent;
Message is the data cell exchanged in network with transmission, i.e. the website data block disposably to be sent.Message includes
The complete data information that will send;The information generally includes type of message, message version, message length, message entity
Deng.
(2) service message is sent to the corresponding virtual service port of port index..
Step S102 is forwarded query processing to service message, and the destination address for obtaining service message is corresponding virtual
The port index of service port;
Specifically, above-mentioned steps S102 includes:Inquiry business neighbor database and business routing database, to service message
Forward process at a slow speed is carried out, the port index of the corresponding virtual service port of destination address of service message is obtained.
Wherein, the agreement run in the CPU on master control board card (Central Processing Unit, central processing unit)
Treatment progress constitutes agreement calculation processing unit.Protocol massages transmitting-receiving in protocol processing unit is exactly to virtual service port
The transmitting-receiving of db (database, database).Data surface forward processing unit at a slow speed, using the information of heading as Key (key),
Which after the db and business datum face neighbours db of the routing of query traffic data face, obtain sending from virtual service port.
Service message is sent to corresponding business line card by step S104 according to the corresponding port index of destination address, with
So that service line card is passed through the corresponding physical traffic port in virtual service port, sends service message.
Above-mentioned steps S104, is specifically realized by following manner:
(1) service message is packaged according to destination address corresponding virtual service port;The heading of encapsulation is at least
The MAC Address of MAC (Media Access Control, medium access control) address, business line card including master control board card, with
The too port index of protocol number and virtual service port;
The above-mentioned encapsulation to service message is also referred to as message redirecting encapsulation.Message redirecting refers to the number of service port
According to message, a message redirecting encapsulation is carried out, being sent to master cpu by control plane submits business virtual service in master control
Port db;Or master control is encapsulated by a message redirecting, and line card CPU is sent to by controlling torus network, is unsealed and from ASIC
The process that (Application Specific Integrated Circuit, application-specific integrated circuit) service port is sent.
Message redirecting encapsulates, and refers to increasing a redirection using entire service message as payload (payload)
Head.The header format for redirecting protocol type is as follows:
| dmac[6] | smac[6] | ethertype(ETHER_TYPE_XXXX) | redir(6)| | Service message |
Wherein, dmac is cpu port MAC Address of the redirection target board in control torus network, and length is 6 bytes;
Smac is the cpu port MAC Address that source plate is stuck in control torus network, and length is 6 bytes;Ethertype is to redirect ether association
View number, length are 2 bytes, for distinguishing direction;For example, ETHER_T_LC2CP 0x8987 are the message weight for receiving line card
It is directed to the Ether protocoll number of master control;And ETHER_T_CP2LC 0x8986 are the message redirecting that sends master control to line card,
And the Ether protocoll number finally sent from line card service port;Redir is to redirect description field, and length is 6 bytes;The description
Field carries the information that source plate card has calculated service message, includes length, ifindex and rcode at present;Wherein,
Length is 2 bytes for describing service message length, length;Ifindex is used to describe the target transmitting and receiving service of service message
Port IFINDEX (interface index interface indexes), length are 2 bytes;Specifically, for LC2CP (LineCard to
Control Plane line cards are to master control), carry the receiving port IFINDEX of service message;For CP2LC (Control
Plane to LineCard master controls are to line card), carry the sending port IFINDEX of service message;Rcode is to redirect reason.
In actual implementation, each master control board card or business line card are each equipped with corresponding slot number SLOT (card slot) and compile
Location, slot number are determined by which slot position of the cabinet of insertion rack.The CPU of master control board card and each business being connect with the main card
The CPU composition control torus networks of line card;In the network, one and its is assigned in any master control board card or business line card
No. SLOT corresponding MAC Address and IP (Internet Protocol, Internet protocol) addressings;No. SLOT, MAC Address and
In IP address three, any one can open master control board card or business line card with unique mark one, and can turn mutually between any two
It changes.The service port of all business line cards has unique port addressing IFINDEX;The IFINDEX is by No. SLOT and business
Locally number (PORT) merges synthesis, a service port of one business line card of unique mark to the service port of line card.For example,
Assuming that allocation rule is ifindex=(SLOT<<8)+PORT)).The ifindex of the PORT 1 of business line card (No. SLOT is 1)
For hexadecimal 0x101, that is, hexadecimal 0x101=(1<<8)+1.The value of PORT when line card hardware design by determining.One
There are two entities by ifindex, refer to the corresponding physical traffic ports the ifindex on business line card, refer to this in master control
The corresponding virtual service port in physical traffic port that ifindex is represented;
The service port of all business line cards forms a data surface;Above-mentioned all data surface service ports are all in master control borad
There are one virtual interfaces to correspond in the CPU of card, the data surface business virtual service end in all virtual service port composition master controls
Mouth db.
(2) by the corresponding virtual service port of destination address, the service message after encapsulation is sent to corresponding business
Line card.
An embodiment of the present invention provides a kind of service message straddle processing methods to be connect by corresponding virtual service port
The service message that receipts business line card is sent;After being forwarded query processing to service message, the destination address of service message is obtained
The port index of corresponding virtual service port;According to the corresponding port index of destination address, service message is sent to correspondence
Business line card so that service line card pass through the corresponding physical traffic port in virtual service port, send service message.This method
The software module coupling for realizing logical complexity and master control board card and business line card for reducing master control board card software module, carries
The high robustness of whole system.
The flow chart of another service message straddle processing method shown in Figure 2, this method are applied to network node
The business line card of equipment, business line card are connect with master control board card;Each physical traffic port of the business line card is in master control board card
In have corresponding virtual service port;This method includes:
Step S200, receives the service message from network-side, and record receives the physical traffic port of service message;
Step S202 obtains the port index of corresponding virtual port according to physical traffic port;
Service message and port index are sent to master control board card by step S204 so that master control board card to service message into
The processing of row forwarding inquiries.
Above-mentioned steps S204, is specifically realized by following manner:
(1) service message is packaged according to virtual service port;The heading of encapsulation includes at least business line card
The port index of MAC Address, the MAC Address of master control board card, Ether protocoll number and virtual service port;
(2) by virtual service port, the service message after encapsulation is sent to master control board card.
Further, the above method further includes:
(1) service message that master control board card is sent is received;
(2) service message is decapsulated, the virtual service port for obtaining master control board card transmission service message is corresponding
Port index;
(3) corresponding physical traffic port is obtained according to port index, sends service message.
An embodiment of the present invention provides a kind of service message straddle processing methods, receive the service message from network-side
Afterwards, record receives the physical traffic port of service message;Then according to physical traffic port, the end of corresponding virtual port is obtained
Stomochord draws;Service message and port index are sent to master control board card, so that master control board card is forwarded inquiry to service message
Processing;This method reduce the software module couplings of master control board card and business line card, improve the stability of whole system.
A kind of structural schematic diagram of service message straddle processing unit shown in Figure 3, the device are set to network section
The master control board card of point device, master control board card are connected with one or more business line cards;Multiple virtual industry are provided in master control board card
Be engaged in port, the physical traffic port of virtual service port and business board corresponds, each virtual service port with it is corresponding
The same port index of physical traffic ports share;The device includes:First service message receiving module 300, for by pair
The virtual service port answered receives the service message that the business line card is sent;Forwarding inquiries processing module 302, for institute
It states service message and is forwarded query processing, obtain the port of the corresponding virtual service port of destination address of the service message
Index;First service message sending module 304 is used for according to the corresponding port index of the destination address, by the business report
Text is sent to corresponding business line card, so that the service line card passes through the corresponding physical traffic end in the virtual service port
Mouthful, send the service message.
The structural schematic diagram of another service message straddle processing unit shown in Figure 4, the device are set to network
The business line card of node device, business line card are connect with master control board card;Each physical traffic port of business line card is in master control borad
There is corresponding virtual service port in card;The device includes:Second service message receiving module 400 comes from net for receiving
The service message at network end, record receive the physical traffic port of the service message;Port index acquisition module 402 is used for root
According to physical traffic port, the port index of corresponding virtual port is obtained;Second service message sending module 404 is used for industry
Business message is sent to master control board card with port index, so that master control board card is forwarded query processing to service message.
Above-mentioned service message straddle processing unit has phase with the service message straddle processing method that above-described embodiment provides
Same technical characteristic reaches identical technique effect so can also solve identical technical problem.
A kind of structural schematic diagram of service message straddle processing system shown in Figure 5, which includes master control board card
50 and business line card;It is illustrated by taking business board there are two master control board card connections as an example in Fig. 5, respectively business board 51a
With business board 51b;Above-mentioned service message straddle processing unit shown in Fig. 3 is set in master control board card;It is above-mentioned shown in Fig. 4
Service message straddle processing unit is set in business line card.
Specifically, master control board card is connected with multiple business line cards;Master control board card CPU and the CPU of each business line card are formed
Star topology, as control plane;Multiple business ASIC of multiple business line cards are interconnected, by ASIC and its service port group of extraction
At a data surface;ASIC in above-mentioned data plane network is high performance network A SIC;The data surface is according under master control borad
The list item of hair, provide line card port to line card port straddle fast-forwarding;The forwarding-table item is that master cpu passes through control plane
What network issued.
Master control board card CPU processor is communicated by control plane network A SIC with business line card CPU, realizes business line card or more
Wire management, service line card port management, forwarding-table item management, redirection business Message processing, straddle forward process and association at a slow speed
The functions such as view calculating.
Business line card CPU processor, is managed this service line card, mainly to the high performance net of this business line card
Interface attributes in network ASIC, the functions such as forwarding-table item are managed.
L2 (data link layer), L3 (network layer) and L4 (transmission can be carried out between master control board card CPU and business line card CPU
Layer) communication.Wherein service message is redirected is communicated using L2.L3, L4 can be used for line card wire management up and down, list item management etc..
In the course of work of system, when data surface does not have forwarding-table item, the message of data surface service port needs
It is redirected to master control, carrying out tabling look-up in master control carries out straddle forward process at a slow speed, is redirected to line card after processing again, and obtain employment
The data surface service port of business line card ASIC is sent.
It when data surface service port receives protocol massages, needs to be redirected to master control, agreement PMs is sent in master control
(Protocol Modules protocol process module) module carries out agreement calculation processing, and the data surface road being issued in master control
By list item db;Data surface neighbor entry db instructs straddle forward process at a slow speed;It is issued to the ASIC of business line card simultaneously, instructs number
Fast-forwarding is carried out to service message according to face ASIC.
Protocol module PMs in master control is needed when sending protocol massages from the ASIC data face business end of business line card
Mouth sends protocol massages, it is also desirable to the message redirecting to line card, and be sent from data surface service port.
System provided in an embodiment of the present invention is when handling message board-spanning forwarding, without being concerned about how practical message is from business
The practical transmitting-receiving of the service port of plate, logic is simple, improves the robustness of whole system.
A kind of structural schematic diagram of distributed apparatus shown in Figure 6, the distributed apparatus are another above-mentioned industry
Business message straddle processing system, including master control board card, business board.CPU runs embedded OS, master control borad on master control borad
Module in operating system has:Agreement calculation processing unit, business datum face route db, business datum face neighbours db, business number
According to face forward processing unit, business datum face port db, the driving of virtual service port at a slow speed.Business board operating system main modular
Have:Redirect driving.
In operating system on master control board card, there are one virtual services in master control for the service port on each business board
Port corresponds to, all virtual service port composition virtual service port db.Virtual service port driving processing virtual service port
Transceiver logic, encapsulation CP2LC redirects head when transmission, and the redirection that business line card is reached by controlling torus network drives, and connects
Time receiving solves LC2CP, is submitted to some virtual service port.Transmitting-receiving of each module of master control in virtual service port db to message, it is real
Border effect is exactly the transmitting-receiving to physical traffic port on business board.The protocol processes run in operating system on master control board card into
Journey constitutes agreement calculation processing unit.Protocol massages transmitting-receiving in protocol processing unit is exactly the receipts to virtual service port db
Hair.Data surface forward processing unit at a slow speed, to service message according to the information of heading as Key, query traffic data face road
By db and business datum face neighbours db after, obtain from which virtual service port send, and from the virtual service port send
It goes out.The protocol massages calculation processing process of master control, retransmission unit can quote service port db to message at a slow speed.From business end
How it is by the physical traffic port in control plane network redirection to corresponding line card that port in mouth db carries out packet sending and receiving
's.This framework is not intended to limit the quantity of master control borad and the quantity of business board.
In operating system on business board, the virtual service port driving that cooperation master control is responsible in driving is redirected, is completed empty
The transceiver logic of quasi- service port, reaches each module of master control to virtual service port db, actual effect is exactly to object on business board
Manage the transmitting-receiving of service port.For the CP2LC messages of master control, CP2LC heads are parsed, obtain the IFINDEX for being actually subjected to send, are called
The SDK (Software Development Kit, Software Development Kit) of ASIC sends out payload from physical traffic port
It sees off.For being sent to the message of CPU from ASIC, a head LC2CP is encapsulated, from control torus network, is sent to the virtual of master control
Service port driving unit.
In above-mentioned distributed apparatus, all line card service ports reached the standard grade are addressed.IFINDEX can be marked uniquely
Know a port of a bracing cable card, and is provided with a corresponding virtual interface in master control kernel.Agreement in master control calculates
In processing and the operation of forwarding-table item database, without being concerned about which line card message belongs to, IFINDEX can be directly used,
The protocol stack of Linux can also be directly used, it is not necessary to modify greatly reduce complexity, increase the stability of whole equipment;Separately
On the one hand, with part processing on business line card, another part processing reaches distribution on master control board card for the transmitting-receiving of service message
The effect of formula straddle effectively reduces the requirement of the CPU process performances of master control board card.
The structural schematic diagram of another distributed apparatus shown in Figure 7, in the equipment, including one piece of master control borad, two
Block business board is business board 1, business board 2 respectively.
No. SLOT interface that control torus network is connected to for 1, CPU that business board 1 distributes is eth5 (Ethernet interface 5),
Eth5 is 00 according to the SLOT MAC Address calculated:00:00:00:00:01, be according to the SLOT IP address calculated
192.168.0.1.The application-specific integrated circuit of the business board provides two service ports, port 1/0/1 and port 1/0/2.
It is 0x101, the ifindex of port1/0/2 distribution to address the overall situation ifindex, the wherein ifindex of port 1/0/1 according to SLOT
For 0x102.
It is eth5 that business board 2, which distributes the interface that No. SLOT is connected to control torus network for 2, CPU, and eth5 is calculated according to SLOT
MAC Address is 00:00:00:00:00:02, it is 192.168.0.2 according to the SLOT IP address calculated.The special collection of the business board
Two 2 service ports, port2/0/1 and port 2/0/2 are provided at circuit.Ifindex is addressed according to SLOT, wherein
The ifindex of port 2/0/1 is 0x201, and the ifindex that port 2/0/2 is distributed is 0x202.
It is eth5 that master control borad, which distributes the interface that No. SLOT is connected to control torus network for 8, CPU, and eth5 is calculated according to SLOT
MAC Address is 00:00:00:00:00:08, it is 192.168.0.8 according to the SLOT IP address calculated.In the operating system of master control
Four interfaces (dark circles) if0x101, if0x102, if0x201, if0x202 composition business datums face service port are fictionalized
Db corresponds to the port 1/0/1 of business board, port 1/0/2, port 2/0/1, port 2/0/2 respectively.In master control to each industry
The packet sending and receiving for the port being engaged on plate, practical is exactly to be received and dispatched from if (interface interfaces) interface, shields if in different business
Details on plate.Details of the if on different business plate is handled by the driving of virtual service port.The effect of redirection is exactly master control
Forward process at a slow speed and agreement calculation processing module be exactly to 1 service port of business board to the packet sending and receiving of if0x101
The transmitting-receiving of port 1/0/1.Other ports are similar.
The course of work of the equipment is as follows, shown in Figure 8 IP unicast message board-spanning forwarding data flow figure.Report
Text is flowed according to the sequence of location A in Fig. 4, B location, location of C, the positions D, the positions E, the positions F, the positions G, the positions H, the positions I
It is dynamic, enter ASIC from the port 1/0/1 of business board 1, and be redirected to master control, the routing by master control is forwarded to business board 2,
And it is finally sent from port 2/0/2.Message is between multiple boards when the flow of distributed treatment, and message is from port1/0/1
It encapsulates LC2CP by the CPU processing of business board 1 into (location A) ASIC and redirects head, sent from eth5 (B latter
Set), the interface eth5 (location of C) of master control is reached using control plane Ethernet;The message is sent to virtual service port to drive
LC2CP heads are peeled in dynamic (positions D), driving off, and (positions E) is received from if0x101;By forward process at a slow speed, inquiry business neighbours
Db, business route db, obtain sending outgoing interface if0x202 (positions F);The corresponding physical traffic ports if0x202 are port 2/
0/2, it is handled by the driving of virtual service port, encapsulation CP2LC redirects head (positions G), is sent from eth5;By control
Face Ethernet reaches the eth5 interfaces (positions H) of business board 2.The CPU parsings CP2LC of business board 2 redirects head, extraction
Payload is sent (positions I) from the port 2/0/2 of ASIC.The message repeating process is that service message straddle is distributed
Processing mode.Business board 1 is responsible for executing message reception, and master control borad is responsible for executing message forwarding decision, and business board 2 is responsible for executing report
Literary final transmission.
B location, location of C and the message encapsulation format comprising the heads LC2CP of the positions D are as follows:
The message that the port 1/0/1 of above-mentioned business board 1 is received is redirected to master control borad if0x101 interfaces by encapsulation.
The message encapsulation format comprising the heads CP2LC of the positions G and the positions H is as follows:
That is the message that the port 2/0/2 of master control borad is received is redirected to the physics port 2/ of business board 2 by encapsulation
0/2 interface.
An embodiment of the present invention provides a kind of distributed apparatus, which includes master control board card and coupled
Business line card.There are one virtual service interfaces to correspond in the CPU of master control board card for the port of business line card;In business line card
After redirecting head encapsulation to service message in CPU, by corresponding virtual service interface on the message redirecting to master control;It is main
The packet sending and receiving of protocol processing unit and retransmission unit at a slow speed is by the transmitting-receiving to virtual service interface, without being concerned about report in control
How text is actually from the practical transmitting-receiving of service port of business board.Which reduces the coupling of master control borad and cable card board upper module
Property, the implementation complexity of agreement calculation processing unit and retransmission unit at a slow speed is reduced, the robustness of whole system is improved.
The computer program product of service message straddle processing method, apparatus and system that the embodiment of the present invention is provided,
Computer readable storage medium including storing program code, the instruction that said program code includes can be used for executing front side
Method described in method embodiment, specific implementation can be found in embodiment of the method, and details are not described herein.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
Can also be electrical connection to be mechanical connection;It can be directly connected, can also indirectly connected through an intermediary, Ke Yishi
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition
Concrete meaning in invention.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
In the description of the present invention, it should be noted that term "center", "upper", "lower", "left", "right", "vertical",
The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to
Convenient for the description present invention and simplify description, do not indicate or imply the indicated device or element must have a particular orientation,
With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ",
" third " is used for description purposes only, and is not understood to indicate or imply relative importance.
Finally it should be noted that:Embodiment described above, only specific implementation mode of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art
In the technical scope disclosed by the present invention, it can still modify to the technical solution recorded in previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover the protection in the present invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of service message straddle processing method, which is characterized in that the method is applied to the master control borad of apparatus for network node
Card, the master control board card are connect with one or more business line cards;Multiple virtual service ports are provided in the master control board card,
The physical traffic port of the virtual service port and the business line card corresponds, each virtual service port with it is corresponding
The same port index of physical traffic ports share;The method includes:
By corresponding virtual service port, the service message that the business line card is sent is received;
Query processing is forwarded to the service message, obtains the corresponding virtual service end of destination address of the service message
The port index of mouth;
According to the corresponding port index of the destination address, the service message is sent to corresponding business line card, so that institute
Service line card is stated by the corresponding physical traffic port in the virtual service port, sends the service message.
2. according to the method described in claim 1, it is characterized in that, described by corresponding virtual service port, described in reception
The step of service message that business line card is sent, including:
By the eth5 interfaces of Ethernet, the service message is received;Physical traffic port is carried in the service message
Port index;The physical traffic port is the physical traffic port for receiving the service message that network-side is sent;
The service message is sent to the corresponding virtual service port of the port index.
3. according to the method described in claim 1, it is characterized in that, described be forwarded query processing to the service message,
The step of obtaining the port index of the corresponding virtual service port of destination address of the service message, including:
Inquiry business neighbor database and business routing database carry out forward process at a slow speed to the service message, obtain institute
State the port index of the corresponding virtual service port of destination address of service message.
4. according to the method described in claim 1, it is characterized in that, described according to the corresponding port index of the destination address,
The service message is sent to corresponding business line card, including:
The service message is packaged according to the destination address corresponding virtual service port;The heading of the encapsulation
Including at least the MAC Address of the master control board card, the MAC Address of the business line card, Ether protocoll number and the virtual service
The port index of port;
By the corresponding virtual service port of the destination address, the service message after encapsulation is sent to corresponding business
Line card.
5. a kind of service message straddle processing method, which is characterized in that the method is applied to the service line of apparatus for network node
Card, the business line card are connect with the master control board card;Each physical traffic port of the business line card is in the master control borad
There is corresponding virtual service port in card;The method includes:
The service message from network-side is received, record receives the physical traffic port of the service message;
According to the physical traffic port, the port index of corresponding virtual port is obtained;
The service message and the port index are sent to the master control board card, so that the master control board card is to the business
Message is forwarded query processing.
6. according to the method described in claim 5, it is characterized in that, the service message and the port index are sent to institute
The step of stating master control board card, including:
The service message is packaged according to the virtual service port;The heading of the encapsulation includes at least the industry
The port index of the business MAC Address of line card, the MAC Address of the master control board card, Ether protocoll number and the virtual service port;
By the virtual service port, the service message after encapsulation is sent to the master control board card.
7. according to the method described in claim 5, it is characterized in that, the method further includes:
Receive the service message that the master control board card is sent;
The service message is decapsulated, the virtual service port pair that the master control board card sends the service message is obtained
The port index answered;
Corresponding physical traffic port is obtained according to the port index, sends the service message.
8. a kind of service message straddle processing unit, which is characterized in that described device is set to the master control borad of apparatus for network node
Card, the master control board card are connect with one or more business line cards;Multiple virtual service ports are provided in the master control board card,
The physical traffic port of the virtual service port and the business board corresponds, each virtual service port with it is corresponding
The same port index of physical traffic ports share;Described device includes:
First service message receiving module, for by corresponding virtual service port, receiving the industry that the business line card is sent
Business message;
Forwarding inquiries processing module obtains the mesh of the service message for being forwarded query processing to the service message
The corresponding virtual service port in address port index;
First service message sending module, for according to the corresponding port index of the destination address, the service message to be sent out
It send to corresponding business line card, so that the service line card passes through the corresponding physical traffic port in the virtual service port, hair
Send the service message.
9. a kind of service message straddle processing unit, which is characterized in that described device is set to the service line of apparatus for network node
Card, the business line card are connect with the master control board card;Each physical traffic port of the business line card is in the master control borad
There is corresponding virtual service port in card;;Described device includes:
Second service message receiving module, for receiving the service message from network-side, record receives the service message
Physical traffic port;
Port index acquisition module, for according to the physical traffic port, obtaining the port index of corresponding virtual port;
Second service message sending module, for the service message and the port index to be sent to the master control board card,
So that the master control board card is forwarded query processing to the service message.
10. a kind of service message straddle processing system, which is characterized in that the system comprises the master control board card and service lines
Card;Service message straddle processing unit according to any one of claims 8 is set in master control board card;Business report described in claim 9
Literary straddle processing unit is set to business line card.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810233428.9A CN108347392B (en) | 2018-03-20 | 2018-03-20 | Cross-board processing method, device and system for service message |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810233428.9A CN108347392B (en) | 2018-03-20 | 2018-03-20 | Cross-board processing method, device and system for service message |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108347392A true CN108347392A (en) | 2018-07-31 |
| CN108347392B CN108347392B (en) | 2021-07-27 |
Family
ID=62956746
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810233428.9A Active CN108347392B (en) | 2018-03-20 | 2018-03-20 | Cross-board processing method, device and system for service message |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108347392B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109634678A (en) * | 2019-01-07 | 2019-04-16 | 烽火通信科技股份有限公司 | A kind of method and system for flexibly supporting a variety of boards |
| CN110536188A (en) * | 2019-07-18 | 2019-12-03 | 烽火通信科技股份有限公司 | OLT device management method and system |
| CN110855803A (en) * | 2018-08-20 | 2020-02-28 | 北京神州泰岳软件股份有限公司 | Data acquisition method and device |
| CN111404811A (en) * | 2020-03-16 | 2020-07-10 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
| CN114143275A (en) * | 2021-11-18 | 2022-03-04 | 锐捷网络股份有限公司 | Virtual switching link establishing method and device, electronic equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101252537A (en) * | 2008-03-31 | 2008-08-27 | 杭州华三通信技术有限公司 | A switching network communication system, method and main control board |
| CN101262366A (en) * | 2008-02-01 | 2008-09-10 | 杭州华三通信技术有限公司 | Debugging method, system and distributed device for target single board |
| CN101963949A (en) * | 2010-10-11 | 2011-02-02 | 北京星网锐捷网络技术有限公司 | Hot plug realization method, hot plug system and board card |
| CN102474449A (en) * | 2009-11-02 | 2012-05-23 | 马维尔国际贸易有限公司 | Switching apparatus and method based on virtual interfaces |
| CN105939279A (en) * | 2015-08-19 | 2016-09-14 | 杭州迪普科技有限公司 | Traffic processing method and device |
| WO2016206527A1 (en) * | 2015-06-25 | 2016-12-29 | 中兴通讯股份有限公司 | Method and apparatus for determining to-be-upgraded board, main control board, and board system |
| CN107547253A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | A kind of collocation method and device |
-
2018
- 2018-03-20 CN CN201810233428.9A patent/CN108347392B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101262366A (en) * | 2008-02-01 | 2008-09-10 | 杭州华三通信技术有限公司 | Debugging method, system and distributed device for target single board |
| CN101252537A (en) * | 2008-03-31 | 2008-08-27 | 杭州华三通信技术有限公司 | A switching network communication system, method and main control board |
| CN102474449A (en) * | 2009-11-02 | 2012-05-23 | 马维尔国际贸易有限公司 | Switching apparatus and method based on virtual interfaces |
| CN101963949A (en) * | 2010-10-11 | 2011-02-02 | 北京星网锐捷网络技术有限公司 | Hot plug realization method, hot plug system and board card |
| WO2016206527A1 (en) * | 2015-06-25 | 2016-12-29 | 中兴通讯股份有限公司 | Method and apparatus for determining to-be-upgraded board, main control board, and board system |
| CN105939279A (en) * | 2015-08-19 | 2016-09-14 | 杭州迪普科技有限公司 | Traffic processing method and device |
| CN107547253A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | A kind of collocation method and device |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110855803A (en) * | 2018-08-20 | 2020-02-28 | 北京神州泰岳软件股份有限公司 | Data acquisition method and device |
| CN110855803B (en) * | 2018-08-20 | 2022-07-19 | 北京神州泰岳软件股份有限公司 | Data acquisition method and device |
| CN109634678A (en) * | 2019-01-07 | 2019-04-16 | 烽火通信科技股份有限公司 | A kind of method and system for flexibly supporting a variety of boards |
| CN110536188A (en) * | 2019-07-18 | 2019-12-03 | 烽火通信科技股份有限公司 | OLT device management method and system |
| CN110536188B (en) * | 2019-07-18 | 2022-02-01 | 烽火通信科技股份有限公司 | OLT equipment management method and system |
| CN111404811A (en) * | 2020-03-16 | 2020-07-10 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
| CN114143275A (en) * | 2021-11-18 | 2022-03-04 | 锐捷网络股份有限公司 | Virtual switching link establishing method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108347392B (en) | 2021-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108347392A (en) | Service message straddle processing method, apparatus and system | |
| CN108471390A (en) | The reorientation method of service message straddle processing system and service message | |
| CN101867520B (en) | Method for exchanging data between board cards in distribution type system | |
| US10523551B1 (en) | Methods and apparatus related to a virtual multi-hop network topology emulated within a data center | |
| CN102918808B (en) | The method of transfer of virtual LAN Information in the discovery of phantom station interface and configuration protocol | |
| EP2688243B1 (en) | 50 Gb/s ethernet using serializer/deserializer lanes | |
| CN1875585B (en) | Dynamic unknown L2 flooding control with MAC limits | |
| US8116309B2 (en) | Enhanced Ethernet protocol for shortened data frames within a constrained neighborhood based on unique ID | |
| TWI449380B (en) | Data center network system and packet transmission method thereof | |
| CN101841451B (en) | Virtual local area network-based speed limiting method and system for cloud hosts | |
| CN107465590A (en) | Network infrastructure system, the method for route network traffic and computer-readable medium | |
| CN108616402B (en) | Management method and system of remote equipment | |
| CN106936777A (en) | Cloud computing distributed network implementation method based on OpenFlow, system | |
| CN102857428B (en) | A kind of message forwarding method based on Access Control List (ACL) and equipment | |
| CN103166874A (en) | A message forwarding method and device | |
| CN102148766B (en) | Method for service interworking in PON (passive optical network) under three-layer function networking | |
| CN103227843A (en) | Physical link address management method and device | |
| CN102480358A (en) | Centralized virtual switch architecture control method and device | |
| CN101325554B (en) | Method for establishing route, forwarding chip and three-layer switchboard | |
| CN109547365A (en) | A kind of unmanned Combat Command System data exchange system based on SRIO | |
| CN109257266B (en) | Method for expanding PON local area network group based on VXLAN technology | |
| CN105429870A (en) | VXLAN security gateway device and application method thereof in SDN | |
| WO2015117411A1 (en) | Service data transmission method and device | |
| CN105978762A (en) | Redundant Ethernet data transmission device, system and method thereof | |
| CN101159674A (en) | Packet routing switch device and method thereof |
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 |