CN1835508A - Method of converting and controlling separated network information exchange inside of net - Google Patents

Method of converting and controlling separated network information exchange inside of net Download PDF

Info

Publication number
CN1835508A
CN1835508A CN 200610049576 CN200610049576A CN1835508A CN 1835508 A CN1835508 A CN 1835508A CN 200610049576 CN200610049576 CN 200610049576 CN 200610049576 A CN200610049576 A CN 200610049576A CN 1835508 A CN1835508 A CN 1835508A
Authority
CN
China
Prior art keywords
mapping unit
multicast
protocol
transmission
transmission mapping
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
Application number
CN 200610049576
Other languages
Chinese (zh)
Other versions
CN100553257C (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.)
Zhejiang Gongshang University
Original Assignee
Zhejiang Gongshang University
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 Zhejiang Gongshang University filed Critical Zhejiang Gongshang University
Priority to CNB2006100495762A priority Critical patent/CN100553257C/en
Publication of CN1835508A publication Critical patent/CN1835508A/en
Application granted granted Critical
Publication of CN100553257C publication Critical patent/CN100553257C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method is a process or protocol for use in making information exchange between the protocol unit of forwarding or control element and the transmission mapping unit. It comprises: the protocol unit starts up the transmission mapping unit by opening service primitive, and sets, modifies and deletes the parameters of the transmission mapping unit by configuring the service primitive, and inquiries the parameter and state of the transmission mapping unit by inquiring the service primitive, and transmits the ForCES protocol message to the transmission mapping unit by transmitting the service primitive, and receives the ForCES protocol message from other forwarding and control elements received by the transmission mapping unit by receiving the service primitive, and closes the transmission mapping unit by closing the service primitive. The invention also implements multicast transmission method of ForCES protocol message in the protocol unit layer.

Description

Transmit method with the exchange of control separated network spare internal information
Technical field
The present invention relates to the technology of networkware (as router, gateway, switch etc.), be specifically related to transmit with networkware that control separates in carry out information exchange method and agreement.
Background technology
Along with the rapid expansion in applications of computer network fields such as the Internet, new features, new demand constantly occur and constantly change, and this generation network equipment of will looking for novelty should have enough flexibilities, can make response to new business, new demand apace; Require new generation network equipment should have enough openings, make the user can be according to the resource flexible combination of being opened, so that different network demand services to be provided; Require new generation network equipment should have enough modular natures, and carry out standardization by standardization body, make each module to develop by the different manufacturers independent studies, can become an integral body by the cordwood system type organic assembling again, this cordwood development model can greatly be accelerated the Products Development process, also help benign competition simultaneously, reduce cost, the development of personal computer (PC) has fully proved the validity of this pattern.
The networkware that forwarding separates with control has obtained broad research and application at present just because of the above requirement of having satisfied new generation network.Carry out about transmitting mainly to formulate to organize under the IETF guiding at present in internet standard with the research of control separated network spare, IETF has set up in special ForCES (Forwarding and Control Element Separation transmits and separates with the control piece) working group.The typical structure of forwarding and control separated network spare as shown in Figure 1.The networkware that forwarding separates with control is divided into forwarding element and control piece two parts, information exchange between them uses the Information Exchange Agreement of standardized being called as " ForCES agreement " (to see Avri Doria, Wang Weiming etc.: " ForCES Protocol Specification ", http://www.ietf.org/internet-drafts/draft-ietf-forces-protocol-06.txt), and then transmit with controlling separated network spare and be also referred to as the ForCES networkware, standardization makes that forwarding element and control piece can be by different manufacturers productions.A ForCES networkware can be made up of a plurality of forwarding elements and a plurality of control piece, wherein the use of a plurality of control pieces is for the system redundancy purpose, forwarding element is connected with external network by network interface, also be connected to each other between a plurality of forwarding elements by interface, the network packet of coming in from a forwarding element network interface can be forwarded to another forwarding element, is sent back to external network by its network interface again.But from the outside, the networkware that these forwarding elements and control piece are formed is that a complete and independent network equipment entity is as a router or switch.Stipulated among the Internet protocol RFC3654 to transmit and the demand (Requirements) of controlling separated network spare, Internet protocol RFC3746 has stipulated the framework (Framework) of forwarding with control separated network spare.IETF ForCES working group is also formulating and is being near completion and is being used for the internet protocol standard of " the ForCES agreement " of information exchange between forwarding element and control piece.IETF ForCES working group is also formulating the consensus standard about " the ForCES forwarding element model " of the specific descriptions model of each resource module in the forwarding element.
What transmit and control the exchange of separated network spare internal information can be the core content of ForCES networkware technical research by standardized means.It comprises two aspect research contents at least: transmission of Information method between the formal definition method of information exchange between forwarding element and control piece and forwarding element and control piece.
The ForCES agreement that is near completion has at present been stipulated the formal definition method of information exchange between forwarding element and control piece, information is expressed as the message format of a rule, this message is called as " ForCES protocol message ", all forwarding elements and control piece in networkware have all been specified an identification number in advance, the ForCES agreement uses this identification number to carry out transmission of messages as message addresses, also comprise in the ForCES protocol message one about " type " of this message and one about this transmission of messages with handle desired information such as " priority ".The ForCES protocol message can be divided into two classes usually: control protocol message and redirected protocol message, can distinguish this two classes message by " type " information in the ForCES protocol format.Control protocol message is the protocol message that is used to control the category information switching purpose that this forwarding element or control piece oneself produce, as is used to dispose or inquire about the protocol message etc. of the parameter of forwarding element or control piece; Redirected protocol message is to be used for the protocol message of convey data packets, usually need exchange clear data category information between forwarding element and control piece, for example, forwarding element need be redirected some network packet of coming in via network interface and send on the control piece outside networkware, control piece also needs some packets with its generation to send on the forwarding element to be sent to outside the networkware by forwarding element again, and these data all need to transmit by the redirected protocol message of ForCES agreement.
Can standardized forwarding element and control piece between the transmission method of information exchange be another important research content of ForCES networkware internal information switching technology.The information channel that connects forwarding element and control piece may be diversified on physical layer, for example, the single-hop of IP agreement or multihop network, directly Ethernet or atm network etc. can be based on, network that uses the TCP/UDP agreement or the network that uses other transport layer protocol can be further be divided into again based on the network of IP agreement.
Irrelevant with used different transmission technologys for the design that makes the ForCES consensus standard, the transmission mechanism of ForCES agreement is designed to structure as shown in Figure 2.Message transmitting procedure is finished by two unit: protocol element and transmission mapping unit.
Protocol element is responsible for producing and processing and the irrelevant ForCES protocol message of transport layer type, protocol element management simultaneously and control transmission map unit.
Transmission mapping unit provides protocol message transmission service for protocol element, and the service that is provided comprises transmission performance control as reliability, congested control, message sequence etc.; A forwarding element may need to send identical ForCES message content to a plurality of control pieces or a control piece to a plurality of forwarding elements, and this is called as the multicast transmission of ForCES protocol message in the protocol element aspect, and transmission mapping unit need be supported this multicast transmission.In order to realize required service and control, transmission mapping unit need obtain relevant Control Parameter and service from protocol element parameter is set.May produce the different protocol message of two classes at aforesaid protocol element: the situation of control protocol message and redirected protocol message, transmission mapping unit are divided into two passages usually: control protocol message channel and redirected protocol message passage.Because being redirected the protocol message passage is used for transmitting from the outer packet of networkware, this passage may be subjected to from the outer malicious attack of networkware, the assailant may attempt by send the packet that needs to be redirected to by its forwarding element control piece in a large number to this networkware, make the transmission channel of transmission mapping unit get clogged, and then making information exchange paralysis between forwarding element and control piece, this attack is called as from the Denial of Service attack that is redirected bag.
Information transmission mode is more prior to be, be required between protocol element and the transmission mapping unit to be connected by standardized information switching method, this makes same ForCES protocol element module to move on different transmission unit modules, and then protocol element (normally software is main product) is separated on the product meaning with transmission mapping unit (normally hardware and software).
So, a kind ofly can be become the major issue that the current needs of ForCES networkware technical research solve by the standardized agreement that is used for carrying out between protocol element and the transmission mapping unit information exchange, this agreement is the method for carrying out information exchange between a kind of protocol element and the transmission mapping unit.
Do not find at present any relevant patent of information switching method or research article between protocol element and the transmission mapping unit in the ForCES networkware, IETF ForCES working group is present not to provide a kind of method agreement of effective and complete this information exchange of solution yet.
Do not find at present to realize in any relevant ForCES networkware the patent or the research article of the transmission of protocol element information multicast, IETF ForCES working group does not provide a kind of effective and complete method that addresses this problem at present yet yet.Once realize the relevant discussion of multicast transmission technology on the Internet relevant for transmission mapping unit supported protocol unit, the basic concept of reflection is: define a kind of agreement that is used for directly carrying out between transmission mapping unit and transmission mapping unit information exchange, the information parameter that multicast needs etc. transmits by this agreement.For example, when a forwarding element is wanted to add some multicast group, the transmission mapping unit of this forwarding element need use the transport layer information exchange agreement that is defined specially to send request adding message to the transmission mapping unit of all members in this multicast group, equally, message is withdrawed from the request of need sending in the time of withdrawing from this multicast.The subject matter of this method is:
(1) multicast transmission of protocol element can not realize that by transmission mapping unit it needs the control of protocol element fully, more specifically says, it needs the protocol element control of control piece.For example, all determine about the selected of multicast member by control piece protocol element.So, even defined the exchange agreement of transmission mapping unit, use this agreement still can not finish the control of protocol element multicast merely to transmission mapping unit, institute is incomplete in the above described manner; So far still find no the solution of effect.
(2) the ForCES agreement is the agreement of information exchange between the protocol element of forwarding element and control piece, by the information switching method between suitable design agreement unit and transmission mapping unit, just can realize above-mentioned transmission mapping unit and the information exchange demand between transmission mapping unit, be unnecessary so define the protocol method of direct information exchange between a kind of transmission mapping unit in addition.
Summary of the invention
The objective of the invention is to solve in the prior art an open question still, solve the transmission problem of ForCES agreement in the current forwarding that faces of IETF ForCES standard formulation working group and the control separated network spare, to advance corresponding standard formulation work.Technical problem comprises the method agreement problem of carrying out information exchange between the protocol element and transmission mapping unit in the networkware, and protocol element realizes that effectively a control piece carries out the multicast transmission problem of ForCES protocol message to a plurality of control pieces to a plurality of forwarding elements or forwarding element in the networkware.
In view of the above, the present invention provided a kind of transmit with control separated network spare in carry out information exchange between protocol element and the transmission mapping unit method, it is one to overlap the complete protocol element and the agreement of transmission mapping unit information exchange.Based on this agreement, the present invention has further provided protocol element in a kind of this networkware and has realized that effectively a control piece carries out the method for ForCES protocol message multicast transmission to a plurality of control pieces to a plurality of forwarding elements or forwarding element.
The present invention provides and a kind ofly it is characterized in that transmitting and controlling the method for carrying out information exchange between the protocol element and transmission mapping unit in the separated network spare, comprises following centre point:
(1) the protocol element use is opened service primitive and is opened transmission mapping unit;
(2) protocol element use configuration service primitive is provided with, revises or delete the parameter of transmission mapping unit;
(3) protocol element uses inquiry service primitive to come the parameter or the state of query transmission map unit;
(4) protocol element is used and is sent service primitive sends ForCES protocol message from this protocol element generation to transmission mapping unit;
(5) protocol element is used and is received the ForCES protocol message that service primitive comes to come from from the transmission mapping unit reception control piece or forwarding element;
(6) the protocol element use is closed service primitive and is closed transmission mapping unit.
Service primitive is to comprise a kind of instrument that carries out information exchange between the modular unit of program, it is reflected in the modular unit is the set that is stored in one section instruction and data on its built-in storage, the characteristics of this set are that it can be controlled the operational mode of its instruction and operation result is returned another module by the output parameter transmission by input parameter by another modular unit, and service primitive also can be understood that it is a kind of application programming interfaces (API).Service primitive can be expressed as
The service primitive name (parameter, parameter ...) and form.Parameter wherein promptly is the information that exchanges between two unit.
Because protocol element management and control transmission map unit, transmission mapping unit provide protocol message transmission service for protocol element, so the service primitive in the described method is to offer protocol element by transmission mapping unit, the service primitive that protocol element provides by the execution transmission mapping unit reaches the management control of transmission mapping unit and utilizes.All information exchanges of protocol element and transmission mapping unit all realize by the service primitive in the described method.
Protocol element is used and is sent service primitive sends ForCES protocol message from this protocol element generation to transmission mapping unit, it is characterized in that, wherein send the destination identification number, type and the priority that comprise this protocol message of from the ForCES protocol message that is sent out, having separated in the service primitive parameter, transmission mapping unit is according to the transmission processing method of this service primitive parameter decision to this ForCES protocol message, and transmission mapping unit does not read the action of the ForCES protocol message body that is transmitted.
Sending service primitive can be expressed as:
Transmission service primitive name (ForCES protocol message destination identification number,
ForCES protocol message type,
ForCES protocol message priority,
ForCES protocol message body,
...) wherein ForCES protocol message body be the complete package of a ForCES protocol message.
Transmission mapping unit is after receiving that this service primitive calls, just can obtain destination identification number, type and precedence information by reading ForCES protocol message body about this message, it is needed that these information are that transmission mapping unit is transmitted this ForCES protocol message, for example, the recipient of destination identification number decision message, the different transfer approachs of type of message and priority decision message are to satisfy its different transmission performance requirement.Though in ForCES protocol message body, also include these information, but transmission mapping unit is if obtain these information by reading this message body, to make the realization of transmission mapping unit be associated with concrete ForCES protocol format, for example, the upgrading of ForCES agreement changes the variation that may cause the variation of its message format and then will cause the transmission mapping unit design.So the method that transmission mapping unit design is not associated with the concrete form of ForCES protocol message has the important techniques superiority, also IETF ForCES working group is desired just reaches.
Protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, and this service primitive can be expressed as:
Configuration service primitive name (parameter name,
The operation number,
Parameter value,
...) parameter name wherein represents the name of operated parameter, can represent that generally various parameter is given a unique identification number in advance with an identification number; Operation number expression action type has three kinds of action types: be provided with, revise and deletion; Parameter value is given in the occurrence of this required under predetermined operation parameter.
Protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that the parameter of configuration comprises transmission mapping unit event of failure call back function name, transmission mapping unit is subjected to being redirected passage obstructing event call back function name from the Denial of Service attack early warning event call-back function name that is redirected bag, transmission mapping unit control channel obstructing event call back function name, transmission mapping unit.Based on this technical method, transmission mapping unit just can be set up the mechanism of reporting corresponding event to protocol element immediately.
Call back function is to comprise another instrument that carries out information exchange between the modular unit of program, it is reflected in the modular unit is the set that is stored in one section instruction and data on its built-in storage, the characteristics of this set are that the name by transmitting this set to another modular unit is the call back function name, another module just can be controlled and carry out this instruction set, also can transmit into parameter in the execution.
The event of failure call back function name that the transmission mapping unit utilization is set up, in case when setting up transmission mapping unit and detecting the incident that any form fault takes place, promptly by calling this call back function, report this incident to protocol element, make protocol element can utilize predefined scheme to handle this incident.After this incident was by report, if this state-event disappears behind the certain hour, transmission mapping unit also can continue to use this call back function to report the incident that this state-event has disappeared to protocol element.
What the transmission mapping unit utilization was set up is subjected to from the Denial of Service attack early warning event call-back function name that is redirected bag, in case setting up transmission mapping unit detects when being subjected to Denial of Service attack dangerous, promptly by calling this call back function, report this incident to protocol element, make protocol element can utilize predefined scheme to resist this Denial of Service attack.After this incident was by report, if this state-event disappears behind the certain hour, transmission mapping unit also can continue to use this call back function to report the incident that this state-event has disappeared to protocol element.
Control channel obstructing event call back function name that the transmission mapping unit utilization is set up or redirected passage obstructing event call back function name, in case when setting up transmission mapping unit and detecting such incident by calling this call back function, report this incident to protocol element, make protocol element can utilize predefined scheme to eliminate such incident.After this incident was by report, if such state-event disappears behind the certain hour, transmission mapping unit also can continue to use such call back function to report the incident that this state-event has disappeared to protocol element.
Protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that, the parameter of configuration comprises transmission mapping unit and receives that ForCES protocol message event call-back function name from other forwarding element or control piece, transmission mapping unit can utilize this parameter to set up to protocol element and report this incident immediately and the mechanism of the ForCES protocol message received to the protocol element transmission.This mechanism makes protocol element to receive the ForCES protocol message by asynchronous system.Aforesaid direct use receives the mode of service primitive reception ForCES protocol message by method of synchronization work, also is that protocol element need be carried out this service primitive in advance, and then waits for the arrival of ForCES protocol message.
Protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that, the parameter of configuration comprises the multicast list that is used to realize protocol element ForCES protocol message multicast transmission, the multicast member tabulation that this multicast list comprises a multicast number and uses forwarding element identification number or control piece identification number to represent can be expressed as:
Multicast number, and member's identification number, member's identification number ...
This information parameter is used to set up the multicast transmission mechanism of ForCES protocol message on the protocol element aspect, and also promptly a forwarding element sends identical ForCES protocol message mechanism to a plurality of control pieces or a control piece to a plurality of forwarding elements.Member's identification number wherein is the forwarding element of ForCES protocol level or the identification number of control piece.
Protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that, when the transmission matching layer is to use udp protocol to carry out ForCES protocol message multicast transmission, the parameter that is disposed comprises the corresponding relation tabulation of protocol element multicast number and UDP multicast address, can be expressed as:
{ multicast number, UDP multicast address } the UDP multicast address of using usually is an IP multicast address.
The present invention is based on the method for carrying out information exchange between aforesaid protocol element and transmission mapping unit, further provided a kind of transmit with control separated network spare in its protocol element realize that a control piece carries out the method for ForCES protocol message multicast transmission to a plurality of control pieces to a plurality of forwarding elements or forwarding element, it is characterized in that, comprise following steps:
(1) protocol element of control piece forms a multicast list, the multicast member tabulation that this multicast list comprises a multicast number and uses forwarding element identification number or control piece identification number to represent, when transmission mapping unit uses udp protocol to carry out ForCES protocol message multicast transmission, also comprise the corresponding relation of a multicast number and UDP multicast address;
(2) control piece protocol element uses the described method of claim 1 to be delivered to the transmission mapping unit of control piece this multicast list and the multicast number corresponding relation with the UDP multicast address;
(3) control piece protocol element with this multicast list with and the corresponding relation of multicast number and UDP multicast address, use the ForCES agreement to be delivered in all forwarding element members' that participate in this multicast the protocol element;
(4) forwarding element protocol element uses the described method of claim 1 to be delivered in the transmission mapping unit of this forwarding element this multicast list and the multicast number corresponding relation with the UDP multicast address;
(5) transmission mapping unit of control piece and forwarding element is according to this multicast list and the multicast number corresponding relation with the UDP multicast address, in conjunction with the information that transmission mapping unit exists, set up multicast number in this multicast list and the mapping relations between the transmission mapping unit actual transmissions address;
(6) according to these mapping relations, when transmission mapping unit receives need number carry out the ForCES protocol message of multicast transmission with this multicast the time, among all members that transmission mapping unit requires this transmission of messages to this multicast.
This method feature is that also control piece can change multicast member at any time by revising multicast list and other parameter, deletes this multicast services by deleting a multicast list and other parameter.
Remarkable advantage of the present invention
1. the present invention solves the realization of ForCES networkware technology and works out the several relevant major issue of being badly in need of solution in the technology standardization process, be a kind of can standardized forwarding and control separated network spare in carry out information exchange between protocol element and transmission mapping unit method agreement and a kind of method that realizes ForCES protocol message multicast transmission in protocol element.Work from IETF ForCES working group, the present invention is that an at present unique cover has total solution, can carry out standardized method agreement about this information exchange to the application of IETF ForCES working group, does not see that other any effective solution delivers.Use the present invention and have the standardized prospect of drawing up, so the present invention has broad application prospects and practical effect prospect widely.
2. remarkable technological merit of the present invention is:
(1) the present invention has satisfied all demands of information exchange between present protocol element and transmission mapping unit about the method effective technical means ease in use of carrying out information exchange between protocol element and transmission mapping unit;
(2) the present invention is about carrying out the method for information exchange between protocol element and transmission mapping unit, make transmission mapping unit need not read the content of the ForCES protocol message that transmits through it, make the transmission mapping unit design can be totally independent of the concrete form of ForCES agreement, allow transmission mapping unit and protocol element that this reaches for IETF ForCES working group is desired provide very favourable technical support as independent production development separately;
(3) the present invention is based on the method for carrying out information exchange between given protocol element and transmission mapping unit, realized expeditiously a kind ofly carrying out the method for ForCES protocol message multicast transmission in protocol element, this method need not in the ForCES networkware definition out of Memory exchange agreement in addition such as the transmission mapping unit Information Exchange Agreement to transmission mapping unit.
3. method of the present invention has been used by real system and has been proved practicable.
Description of drawings
Fig. 1 transmits and the structural representation of controlling separated network spare
Fig. 2 is the relational structure schematic diagram of protocol element and transmission mapping unit
Fig. 3 is the schematic diagram of a specific embodiment
Embodiment
Technical scheme of the present invention realizes in conjunction with utilization hardware unit process shown in Figure 3.
As shown in Figure 3, the IXP2400 network processing unit (containing necessary peripheral circuit) that present embodiment uses Intel Company to produce constitutes forwarding element, use the PC computer to constitute control piece, having two labels is respectively 1 and 2 control piece and three labels and is respectively 10,11 and 12 forwarding element and forms a ForCES networkware, forwarding element has a plurality of network interfaces that are connected with external network, interconnects realization by Ethernet interface via an Ethernet switch between forwarding element and control piece and intercoms mutually.
Forwarding element and control piece all use the TCP/UDP transmission mapping unit, also be that the ForCES protocol message is encapsulated in this transmission mapping unit in Transmission Control Protocol bag or the udp protocol bag, the TCP/UDP agreement further is encapsulated on the IP protocol package and is transmitted then, and this transmission unit can move the multicast protocol such as the IGMP of IP layer simultaneously.
The instruction code that the operation of forwarding element and control piece is obtained through compiling system compiling separately by basic C language.Present embodiment is at first used basic C language syntax to implement described instruction and data tactical rule with this according to the method described in the present invention and is write transmission mapping unit service primitive and other program related to the present invention, compilation tool compiling separately obtains program command code separately through control piece and forwarding element, and packs in the memory of transmission mapping unit separately by loading appliance separately.Obtain of the present inventionly to be used for protocol element and transmission mapping unit is carried out the program command code of information exchange and is transfused to protocol element separately by same step.Protocol element also is loaded into ForCES protocol handling program and ForCES protocol application separately simultaneously.Each the self-starting operation of protocol element in last control piece and the forwarding element and transmission mapping unit is loaded in program command code wherein, general transmission mapping unit code is by operation slightly earlier, the protocol element code is operation then, but this order does not need to be guaranteed that this order does not influence operate as normal.After the code operation, promptly by the method for the invention exchange message, also promptly begin between forwarding element and control piece simultaneously between protocol element and the transmission mapping unit by the method for the invention exchange message continually.
The following describes some relevant embodiments of the inventive method.
At first design the concrete structure of transmission map layer service primitives according to the actual conditions (C language syntax) of the inventive method and this enforcement.In the parametric description of following service primitive, be designated as " primitive input " by the primitive parameter of the primitive caller input value of protocol element, the primitive input parameter that needs to be returned to the caller parameter value by transmission mapping unit output is designated as " primitive output ".
1) transmission mapping unit is opened service primitive TMLopen
The primitive form:
int TMLopen(void);
Primitive parameter:
Void: printenv
Return value:
What return is integer (int) value, the meaning of value:
0: this primitive calls success;
Other value: this primitive malloc failure malloc also returns error code.
2) transmission mapping unit is closed service primitive TMLclose
The primitive form:
int TMLclose(void);
Primitive parameter:
Void: printenv
Return value:
0: this primitive calls success;
Other value: this primitive malloc failure malloc also returns wrong number.
3) transmission mapping unit configuration service primitive TMLconfig
The primitive form:
int TMLconfig(int td,
int op,
void *tp);
Primitive parameter:
Td: the TML parameter name that dispose, primitive input;
Op: operation number, primitive input, the meaning of value is:
1: this TML parameter is set, is about to a parameter and adds the TML layer to;
2: revise this TML parameter, promptly use new parameter to cover original parameter;
3: delete this TML parameter, if a parameter value has been specified in this operation, then this parameter is only deleted in this operation
In the part of designated value; If this operates not designated parameter value, promptly the pointer of parameter value is empty, should
Operation will be deleted all values with this relating to parameters, and delete this parameter;
Other value: illegal operation;
Tp: the pointer of the parameter value that parameter value that dispose or sensing will be disposed, primitive input; Delete when being operating as
When removing operation (being op=3), this parameter value pointer can be empty (being tp=0).
Return value:
0: this primitive calls success;
Other value: this primitive malloc failure malloc also returns wrong number.
4) transmission mapping unit inquiry service primitive TMLquery
The primitive form:
int TMLquery(int td,
void *tp);
Primitive parameter:
Td: the TML parameter that inquire about or state name, primitive input;
Tp: the parameter that the quilt that sensing is returned is inquired about or the pointer of state value, primitive output.
Return value:
0: this primitive calls success;
Other value: this primitive malloc failure malloc also returns wrong number.
5) transmission mapping unit sends service primitive TMLsend
The primitive form:
int TMLsend(long int msgDestID,
int msgType,
int msgPrio,
int msgLen,
char *msgBody);
Primitive parameter:
MsgDestID: the purpose identification number of the ForCES protocol message that send, it is forwarding as shown in Figure 3
Part identification number 10,11 or 12 etc., the primitive input;
MsgType: the type of message of the ForCES protocol message that send, primitive input;
MsgPrio: the message priority of the ForCES protocol message that send, primitive input;
MsgLen: the length of the ForCES protocol message that send, primitive input;
MsgBody: the pointer of the ForCES protocol message body that sensing will send, primitive input.
Return value:
0: this primitive calls success;
Other value: this primitive malloc failure malloc also returns wrong number.
6) transmission mapping unit receives service primitive TMLreceive
The primitive form:
int TMLreceive(int *msgLen,
char **msgBody);
Primitive parameter:
MsgLen: point to the pointer of the length of the ForCES protocol message that receives, primitive output;
MsgBody: point to the pointer of the pointer of the ForCES protocol message body that receives, use the order of two-layer pointer
Be to allow transmission mapping unit only pass pointer parameter back, and avoided moving of time-consuming protocol message body,
Primitive output.
Return value:
0: this primitive calls success;
Other value: this primitive malloc failure malloc also returns wrong number.
Based on the service primitive of stipulating above, the relative program instruction code of the information exchange of carrying out between the method according to this invention design agreement unit and the transmission mapping unit, method is:
(1) protocol element uses described TMLopen service primitive to open transmission mapping unit,
(2) protocol element uses described TMLconfig service primitive to be provided with, to revise or delete the parameter of transmission mapping unit,
(3) protocol element uses described TMLquery service primitive to come the parameter or the state of query transmission map unit,
(4) protocol element uses described TMLsend service primitive to come to send the ForCES protocol message that this protocol element produces to transmission mapping unit,
(5) protocol element uses described TMLreceive service primitive to come to receive the ForCES protocol message that comes from other control piece or forwarding element from transmission mapping unit,
(6) protocol element uses described TMLclose service primitive to close transmission mapping unit.
The destination identification number, type and the priority that wherein comprise this protocol message of from the ForCES protocol message that is sent out, having separated in the parameter of TMLsend service primitive, transmission mapping unit is according to the transmission processing method of this service primitive parameter decision to this ForCES protocol message, transmission mapping unit does not obtain these parameters by the action of reading the ForCES protocol message body that is transmitted, and makes the transmission mapping unit design be independent of the design of protocol element.Wherein the destination identification number determines the destination of this protocol message in protocol element, establish the mapping table of IP address, a protocol element destination identification number and actual purpose ground in the TCP/UDP transmission mapping unit, use this relation table promptly can determine the practical IP layer address of this protocol message.Wherein the type parameter decision is following concerns: control class ForCES protocol message uses the Transmission Control Protocol transmission, is redirected the transmission of quasi-protocol ForCES protocol message use udp protocol.Wherein the protocol message of the priority parameters decision high priority front that is placed in the transmission mapping unit transmit queue preferentially obtains transmission.
Further specify the step that protocol element is designed for the call back function of transmission mapping unit incident.About the concrete processing mode of protocol element after receiving the transmission mapping unit incident is not main contents of the present invention, because the length relation is not included in this implementation.
The call back function that is used for the transmission mapping unit incident below the protocol element design:
Int callbackTMLFailureEvent (int eventState, int failCode); This is a transmission mapping unit event of failure call back function, and wherein parameter is imported by transmission mapping unit, and its meaning is:
EventState=1: this incident takes place;
=0: this incident is disengaged.
FailCode: the concrete failure code of this incident.
Int callbackTMLDoSAlertEvent (int eventState); This is that transmission mapping unit is subjected to from the Denial of Service attack early warning event call-back function that is redirected bag, and the parameter meaning is the same.
Int callbackTMLCtrMsgCongestEvent (int eventState); This is a transmission mapping unit control channel obstructing event call back function, and the parameter meaning is the same.
Int callbackTMLRedMsgCongestEvent (int eventState); This is that transmission mapping unit is redirected passage obstructing event call back function, and the parameter meaning is the same.
Int callbackTMLMsgArrivalEvent (int msgLen, char*msgBody); This is that transmission mapping unit is received the ForCES protocol message event call-back function from other forwarding element or control piece, wherein parameter m sgLen is the length about this ForCES protocol message by the transmission mapping unit input, and msgBody is for pointing to the pointer of this protocol message body.
The parameter that further design allows the TMLconfig service primitive be disposed comprises and is used for the call back function name that above-mentioned all kinds of incidents take place to the protocol element report transmission mapping unit, make protocol element above-mentioned call back function name can be passed to transmission mapping unit, an embodiment is as shown in the table:
Parameter name (td) Parameter value
1 callbackTMLFailureEvent
2 callbackTMLDoSAlertEvent
3 callbackTMLCtrMsgCongestEvent
4 callbackTMLRedMsgCongestEvent
5 callbackTMLMsgArrivalEvent
Below be operational instances: protocol element is carried out following service primitive will set into transmission mapping unit to transmission mapping unit event of failure call back function name:
TMLconfig (1,1, callbackTMLFailureEvent); Protocol element is carried out following service primitive will be modified as current value (if being provided with this call back function name originally) to transmission mapping unit event of failure call back function name:
TMLconfig (1,2, callbackTMLFailureEvent); The following service primitive of protocol element execution will be deleted and be arranged on transmission mapping unit event of failure call back function name:
TMLconfig(1,3,0);
Can be according to the trigger condition of various actual conditions design transmission mapping unit to above incident, an exemplifying embodiment is as follows:
(1) transmission mapping unit event of failure trigger condition: when transmission mapping unit is found with the other side's transmission mapping unit communication disruption.
(2) transmission mapping unit is subjected to from the Denial of Service attack early warning trigger conditions that is redirected bag: having control class message to require under the transmission situation, control channel is in the state of transmission rate less than 10 message bags of per second continuous 10 seconds.
(3) transmission mapping unit control channel obstructing event trigger condition: having control class message to require under the transmission situation, control channel can not send message continuous 1 second.
(4) transmission mapping unit is redirected passage obstructing event trigger condition: having under the redirect message requirement transmission situation, be redirected passage and can not send message continuous 1 second.
The implementation process that the parameter that the TMLconfig service primitive is disposed comprises ForCES protocol message multicast transmission desired parameters is as follows:
The data structure that at first defines multicast list is:
struct McastList{
Long int groupID; // this is the multicast number of protocol element
Int number; // this is a multicast member quantity
Long int memberIDlist[]; // this is with the multicast member tabulation of transmitting or the control piece identification number is represented
; Further set the used parameter td=10 of TMLconfig service primitive configuration multicast list.
According to above setting, if formed two multicast list in protocol element, as:
McastList * mList1, * mList2; And in list parameter, imported corresponding data, then protocol element is carried out following service primitive operation and will be set to transmission mapping unit to mList1 and mList2 multicast list:
TMLconfig(10,1,mList1);
TMLconfig (10,1, mList2); Protocol element is carried out the data that following service primitive will be revised the mList1 multicast list that has been set at transmission mapping unit:
TMLconfig (10,2, mList1); Protocol element is carried out following service primitive will delete the mList2 multicast list that has been set at transmission mapping unit:
TMLconfig (10,3, mList2); Protocol element is carried out following service primitive will delete the multicast list that all have been set at transmission mapping unit:
TMLconfig(10,3,0);
Present embodiment uses the transmission mapping unit of TCP/UDP agreement, according to the inventive method, the parameter that the TMLconfig service primitive is disposed need comprise the tabulation of the required protocol element multicast of ForCES protocol message multicast transmission number and UDP multicast address corresponding relation, and implementation process is as follows:
At first define the data structure of multicast number and UDP multicast address corresponding relation:
struct McastTMLPar{
Long int groupID; The multicast of // protocol element number
_ u32 IPv4add; The IP that is used for the UDP multicast address (IPv4) address of // 32bits
; Further set the used parameter td=11 of TMLconfig service primitive configuration above-mentioned parameter.
According to above setting, if formed two multicasts number and the tabulation of UDP multicast address corresponding relation, that is: in protocol element
McastTMLPar * mPar1, * mPar2; And in parameter, imported corresponding data, then: protocol element is carried out following service primitive will be set to transmission mapping unit to mPar1 and mPar2:
TMLconfig(11,1,mPar1);
TMLconfig (11,1, mPar2); Protocol element is carried out the data that following service primitive will be revised the mPar1 that has been set at transmission mapping unit:
TMLconfig (11,2, mPar1); Protocol element is carried out following service primitive will delete the mPar2 that has been set at transmission mapping unit:
TMLconfig (11,3, mPar2); Protocol element is carried out following service primitive will delete all corresponding relation that has been set at transmission mapping unit tabulations:
TMLconfig(11,3,0);
After the design of above step, further can obtain a protocol layer program command code set and transmission map layer program command code collection, use aforesaid step, this code loading is gone into the protocol element and the transmission mapping unit of control piece and forwarding element, start this program command code of operation, promptly begin information exchanging process between the protocol layer of forwarding element or control piece and the transmission map layer and between forwarding element and the control piece, and then forwarding element and control piece are finished needed as networkware such as the required every work of router by the inventive method regulation.
On above-described enforcement basis, further can realize carrying out ForCES protocol message multicast transmission to a plurality of forwarding elements or a forwarding element to a plurality of control pieces, for example can realize by as shown in Figure 3 control piece 1 to forwarding element 10,11 multicasts or realize by forwarding element 12 to control piece 1 and 2 multicasts by a control piece.The implementation method step is as follows:
(1) protocol element of control piece forms a multicast list and multicast by aforesaid data structure and concrete multicast requirements and number tabulates with UDP multicast address corresponding relation, because except that current active control piece, other control piece all is operated in the back-up state, so all control pieces all will obtain this parameter;
(2) control piece protocol element uses the defined TMLconfig service primitive of present embodiment to be delivered to the transmission mapping unit of control piece these two parameters;
(3) control piece protocol element uses the ForCES agreement to be delivered in all forwarding element members' that participate in this multicast the protocol element these two parameters;
(4) forwarding element protocol element uses the defined TMLconfig service primitive of present embodiment to be delivered in the transmission mapping unit of forwarding element these two parameters;
(5) transmission mapping unit of control piece and forwarding element is according to these two parameters, in conjunction with the IP multicast information of setting up based on this parameter operation IP multicast protocol IGMP, set up multicast number in this protocol element multicast list and the mapping relations between the transmission mapping unit actual transmissions IP address;
(6) according to these mapping relations and use the IP multicast protocol, when transmission mapping unit receives need number carry out the ForCES protocol message of multicast transmission with this protocol element multicast the time, transmission mapping unit is transferred to this message multicast among all members of this multicast requirement.
Use above step, be used in combination modification and delete function in the TMLconfig primitive simultaneously, just can realize revising at any time the multicast member in this multicast list, also can delete this multicast list to delete this multicast functionality.
The above only is of the present invention than exemplary embodiments, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, a kind of in the method for transmitting with the exchange of control separated network spare internal information, it is the agreement of carrying out information exchange between protocol element and the transmission mapping unit therein, it is characterized in that, comprises following steps:
(1) the protocol element use is opened service primitive and is opened transmission mapping unit;
(2) protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit;
(3) protocol element uses inquiry service primitive to come the parameter or the state of query transmission map unit;
(4) protocol element is used and is sent service primitive sends ForCES protocol message from this protocol element generation to transmission mapping unit;
(5) protocol element is used and is received the ForCES protocol message that service primitive comes to come from from the transmission mapping unit reception networkware internal control product or forwarding element;
(6) the protocol element use is closed service primitive and is closed transmission mapping unit.
2, according to the described method of claim 1, protocol element is used and is sent service primitive sends ForCES protocol message from this protocol element generation to transmission mapping unit, it is characterized in that, wherein send the destination identification number, type and the priority that comprise this protocol message of from the ForCES protocol message that is sent out, having separated in the service primitive parameter, transmission mapping unit is according to the transmission processing method of this service primitive parameter decision to this ForCES protocol message, and transmission mapping unit does not read the action of the ForCES protocol message body that is transmitted.
3, according to the described method of claim 1, protocol element uses configuration service primitive to be provided with, revise or delete the parameter of transmission mapping unit, it is characterized in that, the parameter of configuration comprises transmission mapping unit event of failure call back function name, transmission mapping unit is subjected to from the Denial of Service attack early warning event call-back function name that is redirected bag, transmission mapping unit control channel obstructing event call back function name and transmission mapping unit are redirected passage obstructing event call back function name, and transmission mapping unit can utilize described parameter to set up the mechanism of reporting corresponding event to protocol element immediately.
4, according to the described method of claim 1, protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that, the parameter of configuration comprises transmission mapping unit and receives that ForCES protocol message event call-back function name from forwarding element in the networkware or control piece, transmission mapping unit can utilize this parameter to set up to protocol element and report this incident immediately and the mechanism of the ForCES protocol message received to the protocol element transmission.
5, according to the described method of claim 1, protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that, the parameter of configuration comprises the multicast list that is used to realize protocol element ForCES protocol message multicast transmission, the multicast member tabulation that this multicast list comprises a multicast number and uses forwarding element identification number or control piece identification number to represent.
6, according to the described method of claim 1, protocol element uses configuration service primitive to be provided with, to revise or delete the parameter of transmission mapping unit, it is characterized in that, when transmission mapping unit was to use udp protocol to carry out ForCES protocol message multicast transmission, the parameter that is disposed comprised the corresponding relation tabulation of protocol element multicast number and UDP multicast address.
7, a kind of forwarding and the method for controlling the exchange of separated network spare internal information, be to realize that in the protocol element of forwarding element and control piece a control piece carries out the method for ForCES protocol message multicast transmission to a plurality of control pieces to a plurality of forwarding elements or forwarding element, it is characterized in that, comprise following steps:
(1) protocol element of control piece forms a multicast list, the multicast member tabulation that this multicast list comprises a multicast number and uses forwarding element identification number or control piece identification number to represent, when transmission mapping unit uses udp protocol to carry out ForCES protocol message multicast transmission, also comprise the corresponding relation of a multicast number and UDP multicast address;
(2) control piece protocol element uses the described method of claim 1 to be delivered to the transmission mapping unit of control piece this multicast list and the multicast number corresponding relation with the UDP multicast address;
(3) control piece protocol element with this multicast list with and the corresponding relation of multicast number and UDP multicast address, use the ForCES agreement to be delivered in all forwarding element members' that participate in this multicast the protocol element;
(4) forwarding element protocol element uses the described method of claim 1 to be delivered in the transmission mapping unit of this forwarding element this multicast list and the multicast number corresponding relation with the UDP multicast address;
(5) transmission mapping unit of control piece and forwarding element is according to this multicast list and the multicast number corresponding relation with the UDP multicast address, in conjunction with the information that transmission mapping unit exists, set up multicast number in this multicast list and the mapping relations between the transmission mapping unit actual transmissions address;
(6) according to these mapping relations, when transmission mapping unit receives need number carry out the ForCES protocol message of multicast transmission with this multicast the time, among all members that transmission mapping unit requires this transmission of messages to this multicast.
8, according to the described method of claim 7, it is characterized in that, control piece changes multicast member at any time by the corresponding relation of revising multicast list and multicast number and UDP multicast address, deletes this multicast services by deleting a multicast list and other parameter.
CNB2006100495762A 2006-02-24 2006-02-24 Transmit method with the exchange of control separated network spare internal information Expired - Fee Related CN100553257C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100495762A CN100553257C (en) 2006-02-24 2006-02-24 Transmit method with the exchange of control separated network spare internal information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100495762A CN100553257C (en) 2006-02-24 2006-02-24 Transmit method with the exchange of control separated network spare internal information

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN2009101274084A Division CN101599846B (en) 2006-02-24 2006-02-24 Method for multicast transmission of information in forwarding and controlling separation network wares

Publications (2)

Publication Number Publication Date
CN1835508A true CN1835508A (en) 2006-09-20
CN100553257C CN100553257C (en) 2009-10-21

Family

ID=37003109

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100495762A Expired - Fee Related CN100553257C (en) 2006-02-24 2006-02-24 Transmit method with the exchange of control separated network spare internal information

Country Status (1)

Country Link
CN (1) CN100553257C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237413B (en) * 2008-02-29 2010-06-09 浙江工商大学 Method for realizing high-availability of control part under forward and control separated network architecture
CN101834871A (en) * 2010-05-14 2010-09-15 浙江工商大学 Open type router device and method thereof
CN101883049A (en) * 2010-06-29 2010-11-10 浙江工商大学 Method for realizing business configuration router based on architecture of transmitting and controlling separate networkware
CN101378326B (en) * 2008-09-18 2011-03-16 中兴通讯股份有限公司 Method for multicast user inquiring and aging
CN101409723B (en) * 2008-11-27 2011-11-09 浙江工商大学 Method for designing synthesis network management system based on ForCES protocol
CN102761491A (en) * 2012-07-24 2012-10-31 浙江工商大学 Reliable multicast transmission method for ForCES protocol information
CN103051560A (en) * 2013-01-07 2013-04-17 浙江工商大学 Implementation method for retransmitting and controlling congestion control in separating system
CN103095701A (en) * 2013-01-11 2013-05-08 中兴通讯股份有限公司 Open flow table security enhancement method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237413B (en) * 2008-02-29 2010-06-09 浙江工商大学 Method for realizing high-availability of control part under forward and control separated network architecture
CN101378326B (en) * 2008-09-18 2011-03-16 中兴通讯股份有限公司 Method for multicast user inquiring and aging
CN101409723B (en) * 2008-11-27 2011-11-09 浙江工商大学 Method for designing synthesis network management system based on ForCES protocol
CN101834871A (en) * 2010-05-14 2010-09-15 浙江工商大学 Open type router device and method thereof
CN101834871B (en) * 2010-05-14 2013-02-27 浙江工商大学 Open type router device and method thereof
CN101883049A (en) * 2010-06-29 2010-11-10 浙江工商大学 Method for realizing business configuration router based on architecture of transmitting and controlling separate networkware
CN101883049B (en) * 2010-06-29 2011-11-30 浙江工商大学 Method for realizing business configuration router based on architecture of transmitting and controlling separate networkware
CN102761491A (en) * 2012-07-24 2012-10-31 浙江工商大学 Reliable multicast transmission method for ForCES protocol information
CN103051560A (en) * 2013-01-07 2013-04-17 浙江工商大学 Implementation method for retransmitting and controlling congestion control in separating system
CN103051560B (en) * 2013-01-07 2015-06-03 浙江工商大学 Implementation method for retransmitting and controlling congestion control in separating system
CN103095701A (en) * 2013-01-11 2013-05-08 中兴通讯股份有限公司 Open flow table security enhancement method and device
CN103095701B (en) * 2013-01-11 2016-04-13 中兴通讯股份有限公司 Open flows table security enhancement method and device

Also Published As

Publication number Publication date
CN100553257C (en) 2009-10-21

Similar Documents

Publication Publication Date Title
CN1835508A (en) Method of converting and controlling separated network information exchange inside of net
CN101056208A (en) Service tracking method, network device, O&M controller, and service request device
CN1142489C (en) Information handling method and information handling apparatus, and memory medium for storing server control program
CN100351788C (en) Drive method for embedded apparatus
CN1677979A (en) System and method for sharing objects between computers over a network
CN1914862A (en) Cluster system, cluster member, and failure recovery method and program thereof
CN1905530A (en) Method and system of multicast and video-on-demand
CN1925462A (en) Cache system
CN1661990A (en) Protocol translator
CN101064726A (en) Address translator, message processing method and equipment
CN1297169C (en) Information packet communication terminal, communication system, communication method and communication program
CN101061672A (en) Communication system, wireless lan base station controller, and wireless lan base station device
CN1855900A (en) Gateway system
CN1756197A (en) System, equipment, method and computer program product for managing equipment
CN1382347A (en) Network architecture and method service script execution and management
CN1859332A (en) System, device and method for synchronously processing e-mail using data
CN1674554A (en) Packet transfer apparatus
CN1497898A (en) Resource management system
CN1859177A (en) Method for processing customized task in equipment management
CN1555170A (en) Flow filtering fine wall
CN1369990A (en) Digital family network system
CN1297130C (en) Communications terminal
CN1265597C (en) Local proxy server
CN101080077A (en) Maintenance method of device management tree and terminal device
CN1503537A (en) Service control network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091021

Termination date: 20200224