CN102739549B - Receive the method for message, the method sending message and device - Google Patents

Receive the method for message, the method sending message and device Download PDF

Info

Publication number
CN102739549B
CN102739549B CN201210243505.1A CN201210243505A CN102739549B CN 102739549 B CN102739549 B CN 102739549B CN 201210243505 A CN201210243505 A CN 201210243505A CN 102739549 B CN102739549 B CN 102739549B
Authority
CN
China
Prior art keywords
message
field
chain
forwarding
table item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210243505.1A
Other languages
Chinese (zh)
Other versions
CN102739549A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210243505.1A priority Critical patent/CN102739549B/en
Publication of CN102739549A publication Critical patent/CN102739549A/en
Application granted granted Critical
Publication of CN102739549B publication Critical patent/CN102739549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments provide a kind of method receiving message, chain of command device receives the first message turning dough leavening device and send; Chain of command device obtains first field relevant with the first message according to the first message, and the first field is different from any one field in the heading of the first message; Chain of command device generating forward list item, comprises the first field in the matching domain of forwarding-table item; Chain of command device sends upgrade instruction to turning dough leavening device, upgrades instruction and comprises forwarding-table item, upgrades instruction and to be added to by the forwarding-table item upgraded in instruction turn in the transmitting of dough leavening device for making to turn dough leavening device.In addition, the embodiment of the present invention additionally provides the method and corresponding device that send message.By technique scheme, the field outside the field in the heading turning the message that dough leavening device sends in the matching domain of the forwarding-table item that chain of command device generates, can be comprised.

Description

Receive the method for message, the method sending message and device
Technical field
The present invention relates to communication technical field, particularly relate to the method receiving message, the method, the chain of command device that send message and turn dough leavening device.
Background technology
Along with the development of network technology, occur controlling and forwarding the network architecture of classifying.
Comprise the network equipment of two types in the network of the network architecture of control and forward separating, namely turn dough leavening device and chain of command device.Wherein, turn dough leavening device and process the message received according to stream table, chain of command device is administered turning dough leavening device by control channel.
" control and forward separating " in the network architecture of control and forward separating refers to that turning dough leavening device is separated with chain of command device.Wherein, turn dough leavening device and the some or all of function of chain of command is transferred to chain of command device.Turn dough leavening device and possess the ability of carrying out with chain of command device communicating.Turn dough leavening device to be communicated with chain of command device by control channel.
In prior art, turn dough leavening device need by not with transmit the message mated and be sent to chain of command device so that chain of command device according to above-mentioned not and transmit the message generating forward list item mated, and above-mentioned forwarding-table item be sent to turn dough leavening device.Contain the field in the heading turning the message that dough leavening device sends in the matching domain of forwarding-table item, in the matching domain of the forwarding-table item that chain of command device generates, other fields can not be comprised.
Summary of the invention
The object of this invention is to provide the method sending message, the method, the chain of command device that receive message and turn dough leavening device, the field outside the field in the heading turning the message that dough leavening device sends in the matching domain of the forwarding-table item that chain of command device generates, can be comprised.
For achieving the above object, provide following technical scheme:
First aspect, provides a kind of method receiving message, comprising: chain of command device receives the first message turning dough leavening device and send; Described chain of command device obtains first field relevant with described first message according to described first message, and described first field is different from any one field in the heading of described first message; Described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item; Described chain of command device sends renewal instruction to the described dough leavening device that turns, described renewal instruction comprises described forwarding-table item, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
In the first possible implementation of the method for the described reception message provided in described first aspect, the information that described first field is asked for described first message.
In the implementation that the second of the method for the described reception message provided in described first aspect is possible, described first field is the field in the second message of the agreement defined that described first message is corresponding, and the type of described second message is different from the type of described first message.
In the third possible implementation of the method for the described reception message provided in described first aspect, the network address of the network equipment of the data that described first field is asked for described first message of storage.
According to the method for the described reception message that described first aspect provides, the first possible implementation method described of the method for the described reception message that described first aspect provides, the third possible implementation method described of the method for the implementation method that described the second of the method for the described reception message that described first aspect provides is possible and the described reception message that described first aspect provides, in 4th kind of possible implementation of the method for the described reception message provided in described first aspect, described chain of command device generating forward list item comprises: described chain of command device determines the first outgoing interface according to the heading of described first message, described chain of command device generates described forwarding-table item, described first outgoing interface is comprised in the action fields of described forwarding-table item, or described chain of command device determines the second outgoing interface according to described first field, described chain of command device generates described forwarding-table item, comprises described second outgoing interface in the action fields of described forwarding-table item, or described chain of command device determines the 3rd outgoing interface according to the heading of described first message and described first field, and described chain of command device generates described forwarding-table item, in the action fields of described forwarding-table item, comprise described 3rd outgoing interface.
Second aspect, a kind of method sending message is provided, comprise: turn dough leavening device and send the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, described first message is used for making described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item; Described turn dough leavening device receive described chain of command device send renewal instruction, described renewal instruction comprises described forwarding-table item; Described turn dough leavening device the described forwarding-table item in described renewal instruction is added to described in turn in the transmitting of dough leavening device.
In the first possible implementation of the method for the described transmission message provided in described first aspect, the information that described first field is asked for described first message.
In the implementation that the second of the method for the described transmission message provided in described first aspect is possible, stating the first field is field in the second message of the agreement defined that described first message is corresponding, and the type of described second message is different from the type of described first message.
In the third possible implementation of the method for the described transmission message provided in described first aspect, the network address of the network equipment of the data that described first field is asked for described first message of storage.
According to the method for the described transmission message that described first aspect provides, the first possible implementation described of the method for the described transmission message that described first aspect provides, the implementation that described the second of the method for the described transmission message that described first aspect provides is possible, the implementation that the described Sa Bo kind of the method for the described transmission message that described first aspect provides is possible, in 4th kind of possible implementation of the method for the described transmission message provided in described first aspect, described chain of command device generating forward list item comprises: described chain of command device determines the first outgoing interface according to the heading of described first message, described chain of command device generates described forwarding-table item, described first outgoing interface is comprised in the action fields of described forwarding-table item, or described chain of command device determines the second outgoing interface according to described first field, described chain of command device generates described forwarding-table item, comprises described second outgoing interface in the action fields of described forwarding-table item, or described chain of command device determines the 3rd outgoing interface according to the heading of described first message and described first field, and described chain of command device generates described forwarding-table item, in the action fields of described forwarding-table item, comprise described 3rd outgoing interface.
The third aspect, provides a kind of chain of command device, comprising: receiving element, for receiving the first message turning dough leavening device and send; Obtain unit, obtain first field relevant with described first message for described first message received according to described receiving element, described first field is different from any one field in the heading of described first message; Generation unit, for the described first field generating forward list item obtained according to described acquisition unit, comprises described first field in the matching domain of described forwarding-table item; Transmitting element, for sending renewal instruction to the described dough leavening device that turns, described renewal instruction comprises the described forwarding-table item that described generation unit generates, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
In the first the possible implementation of the described chain of command device provided in the described third aspect, described generation unit comprises: first determines that subelement and first generates subelement, and described first determines that subelement is for determining the first outgoing interface according to the heading of described first message; Described first generates subelement for generating described forwarding-table item, comprises described first and determine described first outgoing interface that subelement is determined in the action fields of described forwarding-table item; Or second determines that subelement and second generates subelement, and described second determines that subelement is for determining the second outgoing interface according to described first field; Described second generates subelement for generating described forwarding-table item, comprises described second and determine described second outgoing interface that subelement is determined in the action fields of described forwarding-table item; Or the 3rd determines that subelement and the 3rd generates subelement, the described 3rd determines that subelement is for determining the 3rd outgoing interface according to the heading of described first message and described first field; Described 3rd generates subelement for generating described forwarding-table item, comprises the described 3rd and determine described 3rd outgoing interface that subelement is determined in the action fields of described forwarding-table item.
Fourth aspect, one is provided to turn dough leavening device, comprise: transmitting element, for sending the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, and described first message is used for making described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item; Receiving element, for receiving the renewal instruction that described chain of command device sends, described renewal instruction comprises described forwarding-table item; Adding device, turns described in adding in the transmitting of dough leavening device for the described forwarding-table item in the described renewal instruction that received by described receiving element.
As can be seen from technique scheme, after chain of command device receives the message turning dough leavening device transmission, the first field of any one field be different from the heading turning the message that dough leavening device sends can be obtained according to the message turning dough leavening device transmission, and generate the forwarding-table item containing the first field in matching domain according to the first field.Therefore, in technique scheme, the field outside the field in the heading turning the message that dough leavening device sends in the matching domain of the forwarding-table item that chain of command device generates, can be comprised.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet receiving the method for message that Fig. 1 provides for the embodiment of the present invention;
A kind of schematic flow sheet sending the method for message that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram that in the DNS scene that Fig. 3 provides for the embodiment of the present invention, network element is mutual;
The schematic diagram that in the FTP scene that Fig. 4 provides for the embodiment of the present invention, network element is mutual;
The schematic diagram that in the GFS scene that Fig. 5 provides for the embodiment of the present invention, network element is mutual;
The structural representation of a kind of chain of command device that Fig. 6 provides for the embodiment of the present invention;
A kind of structural representation turning dough leavening device that Fig. 7 provides for the embodiment of the present invention;
A kind of schematic flow sheet receiving the method for message that Fig. 8 provides for the embodiment of the present invention;
A kind of schematic flow sheet receiving the method for message that Fig. 9 provides for the embodiment of the present invention;
A kind of schematic flow sheet receiving the method for message that Figure 10 provides for the embodiment of the present invention;
The structural representation of a kind of chain of command device that Figure 11 provides for the embodiment of the present invention;
The structural representation of a kind of chain of command device that Figure 12 provides for the embodiment of the present invention;
The structural representation of a kind of chain of command device that Figure 13 provides for the embodiment of the present invention;
The structural representation of a kind of chain of command device that Figure 14 provides for the embodiment of the present invention;
A kind of structural representation turning dough leavening device that Figure 15 provides for the embodiment of the present invention;
The structural representation of a kind of chain of command device that Figure 16 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention relates to the network architecture of control and forward separating." control and forward separating " in the network architecture of control and forward separating refers to that turning dough leavening device is separated with chain of command device.Wherein, turn dough leavening device and the some or all of function of chain of command is transferred to chain of command device.Turn dough leavening device and possess the ability of carrying out with chain of command device communicating.Turn dough leavening device to be communicated with chain of command device by control channel.
The chain of command device that the present invention relates to is the device of the network architecture meeting control and forward separating.The dough leavening device that turns that the present invention relates to is meet the device controlled with forwarding the network architecture of classifying.Wherein, turn dough leavening device to process the message received according to stream table.Chain of command device is controlled turning dough leavening device by control channel.
For example, turn dough leavening device when message is forwarded, the message of two layers can be forwarded, also can the message of three layers be forwarded.About two layers and three layers, specifically please refer to Open Systems Interconnection (Open SystemsInterconnection model, OSI model).
When turning dough leavening device specific implementation, can be switch or router.
Turning under dough leavening device is the scene of switch, turning dough leavening device can be specifically open flows switch (OpenFlowSwitch).About open flows switch, please refer to standards setting organizations (Standard Setting Organization, SSO) open network basis (Open Networking Foundation, ONF) " open flows switch specification " version 1.0(OpenFlow Switch Specification1.0 of issuing).
During chain of command device specific implementation, can be open flows controller (OpenFlow Controller).About open flows controller, please refer to " open flows switch specification " version 1.0 that ONF issues.
During control channel specific implementation, can be that open flows switch and open flows controller carry out mutual escape way (Secure Channel).About escape way, specifically please refer to " open flows switch specification " version 1.0 that ONF issues.
Turn dough leavening device and can have two kinds of forward modes, one is flow forwarding pattern, and another kind is Packet forwarding pattern.
Flow forwarding refers to that turning dough leavening device forwards message according to stream table.For judging that the number of the field whether message mates with the list item of stream table is more than 2 or 2 in a list item of stream table.For example, for judging that the number of the field whether message mates with the list item of stream table can be 5 in a list item of stream table.5 fields can be source Internet protocol (Internet Protocol, IP) address, object IP address, source port (Port), destination interface and agreement (Protocol) respectively.For example, for judging that field that whether message mates with the list item of stream table can be the field of data link (Data Link) layer being in OSImodel, also can be the field of the IP layer being in OSI model.
Packet forwarding refers to that turning dough leavening device forwards message according to packet forwarding table.For judging that the number of the field whether message mates with the list item of packet forwarding table is 1 in a list item of packet forwarding table.For example, for judging that field that whether message mate with the list item of stream table can object IP address in the list item of packet forwarding table, also can be that object media interviews control (Media Access Control, MAC) protocol address.Those skilled in the art will appreciate that packet forwarding table can be MAC table, also can be routing table.
Those skilled in the art will appreciate that open flows switch can generate MAC table according to the MAC protocol address, source in the message received and the interface for receiving message.After MAC table generates, open flows switch can carry out Packet forwarding according to MAC table.
Embodiments provide a kind of method receiving message.As shown in Figure 1, described method comprises:
11, chain of command device receives the first message turning dough leavening device and send.
For example, described first message can be described in turn the message that dough leavening device receives.Described first message does not have and the described message turning transmitting in dough leavening device and mate.Described first message can be the message of the two layers of information comprising OSI model, also can be the message of the three layers of information comprising OSI model.A forwarding-table item can be comprised in transmitting described in those skilled in the art will appreciate that, also can comprise multiple forwarding-table item.Described transmit in forwarding-table item comprise matching domain and action fields.
12, described chain of command device obtains first field relevant with described first message according to described first message, and described first field is different from any one field in the heading of described first message.
For example, described first message can only include a heading, also can comprise multiple heading.The heading of described first message refers to all headings that described first message comprises.
For example, if described first message comprises multiple heading, then the heading of described first message had both comprised the outer heading of described first message, also comprised the internal layer heading of described first message.Such as, if described first message is the IP message of the four layers of information comprising OSI Model, then the heading of described IP message had both comprised outer heading, i.e. IP head, also internal layer heading is comprised, i.e. TCP(Transmission Control Protocol, transmission control protocol) head or UDP(User Datagram Protocol, User Datagram Protoco (UDP)) head.
Described first field any one field be different from the heading of described first message can be presented as that the type of field is not identical.Specifically, if the type of described first field is different from the type of any one field in the heading of described first message, then described first field is different from any one field in the heading of described first message.Such as, if the type of described first field is the object udp port in UDP head, and do not comprise UDP head in the heading of described first message, then think that described first field is different from any one field in the heading of described first message.
Described first field any one field be different from the heading of described first message also can be presented as that the type of field is identical, but the value of field is different.For example, if have in the heading of described first message and only have a field identical with the type of described first field, and the value of described first field is different from the value of the field identical with the type of described first field in the heading of described first message, then described first field is different from any one field in the heading of described first message.Such as, if IP address for the purpose of the type of described first field, have in the heading of described first message and only have the field of IP address for the purpose of a field type, and the value of described first field is different from the value of the object IP address field in described first message, then think that described first field is different from any one field in the heading of described first message.
Optionally, described first field can be the information that described first message is asked.
Such as, described first message can be DNS(Domain Name System, domain name system) request message.Described first field can be the IP address corresponding to network address comprised in described first message.For example, the network address comprised in described first message is www.XXX.com.After name server receives described first message, obtain IP address corresponding to described network address according to the network address in described first message.For example, the IP address that described network address is corresponding can be 202.108.22.6.IP address corresponding for described network address is sent to described chain of command device by domain name server.Described chain of command device can using 202.108.22.6 as described first field.It will be appreciated by those skilled in the art that, be under the scene of IP address corresponding to described network address in described first field, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn the flow whether flow that dough leavening device receives is website corresponding to the described network address of access.
Optionally, described first field also can be the field in the second message of the agreement defined that described first message is corresponding, and the type of described second message is different from the type of described first message.
Such as, described first message can be FTP(File Transfer Protocol, file transfer protocol (FTP)) connection establishment request message.Object tcp port in the TCP head of described first message is 21.The agreement that described first message is corresponding is FTP.Described second message can be the FTP transfer of data message of FTP definition.Object tcp port in the TCP head of described second message is 20.It will be appreciated by those skilled in the art that, if comprise described first field in the matching domain of the forwarding-table item that described chain of command device generates, and tcp port for the purpose of the type of described first field and the value of the first field is 20, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn whether the flow that dough leavening device receives is FTP transfer of data message.
Optionally, described first field can be the network address of the network equipment storing the data that described first message is asked.
For example, the data that described first message is asked can be text, audio file or video file.Such as, described first message may be used for request access GFS(Google file system, Google File System) application data.For example, the data of described first message request access are the file that file is called W.Described first field can be store the network address that described file is called the network equipment of the file of W.This network address can be IP address, also can be MAC protocol address.
13, described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
Those skilled in the art will appreciate that in the matching domain of forwarding-table item and can also comprise the second field.Second field is identical with the 3rd field.Described 3rd field is a field in the heading of described first message.The positional information of described 3rd field in described first message is contained in described forwarding-table item.Described positional information is for obtaining the field of message to be matched.Turn after dough leavening device receives and have the message of same characteristic features with described first message when described, the described dough leavening device that turns can obtain the described field that to have with described first message in the message of same characteristic features according to described positional information, and judge described field whether with described second fields match in described forwarding-table item.
Those skilled in the art will appreciate that described forwarding-table item contains the positional information of field to be matched in message to be matched corresponding to the first field.
Described first field any one field be different from the heading of described first message in 12 can also be presented as that the type of field is identical, the value of field is identical, but position positional information indicated by of field to be matched in message to be matched corresponding to described first field that comprises of described forwarding-table item is different from identical with the type of described first field and identical with the value of the described first field position of field in described first message in the heading of described first message.Specifically, if described 3rd field is identical with the type of described first field and identical with the value of described first field field unique in described first message, but position positional information indicated by of field to be matched in message to be matched corresponding to described first field that described forwarding-table item comprises is different from the described position of 3rd field in described first message, then described first field is different from any one field in the heading of described first message.
Matching domain and action fields can be comprised in forwarding-table item.Field in the matching domain of this forwarding-table item can comprise source IP address, object IP address, source port, destination interface and agreement (Protocol).Outgoing interface number can be comprised in the action fields of this forwarding-table item.The outgoing interface that dough leavening device forwards the message mated with described forwarding-table item is turned described in described outgoing interface number is used to indicate.
Optionally, in the method shown in Fig. 1, described chain of command device generating forward list item can comprise:
13a, described chain of command device can determine the first outgoing interface according to the heading of described first message, and described chain of command device generates described forwarding-table item, comprise described first outgoing interface in the action fields of described forwarding-table item.
About 13a, the flow chart of the method for reception message that can be shown in Figure 8.
For example, the topology calculate optimal path of network that can administer according to the heading of described first message and described chain of command device of described chain of command device or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described first outgoing interface according to described optimal path or described shortest path.For example, described chain of command device calculates the IP address that the information in the heading of described first message that described optimal path or described shortest path use can be ftp server.
Optionally, in the method shown in Fig. 1, described chain of command device generating forward list item can comprise:
13b, described chain of command device can determine the second outgoing interface according to described first field, and described chain of command device generates described forwarding-table item, comprise described second outgoing interface in the action fields of described forwarding-table item.
About 13b, the flow chart of the method for reception message that can be shown in Figure 9.
For example, the network topology corresponding to network that described chain of command device can be administered according to described first field and described chain of command device calculates optimal path or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described second outgoing interface according to described optimal path or described shortest path.For example, described chain of command device calculates the IP address that described first field that described optimal path or described shortest path use can be web page server.
Optionally, in the method shown in Fig. 1, described chain of command device generating forward list item can comprise:
13c, described chain of command device can determine the 3rd outgoing interface according to the heading of described first message and described first field, and described chain of command device generates described forwarding-table item, comprise described 3rd outgoing interface in the action fields of described forwarding-table item.
About 13c, the flow chart of the method for reception message that can be shown in Figure 10.
For example, the network topology corresponding to network that described chain of command device can be administered according to the heading of described first message, described first field and described chain of command device calculates optimal path or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described 3rd outgoing interface according to described optimal path or described shortest path.
14, described chain of command device sends renewal instruction to the described dough leavening device that turns, described renewal instruction comprises described forwarding-table item, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
Optionally, a kind of chain of command device is embodiments provided.Described chain of command device can perform the method shown in Fig. 1.See Figure 14, described chain of command device comprises:
Receiver 1401, for receiving the first message turning dough leavening device and send.
Described receiver 1401 can perform 11 in the method shown in Fig. 1.About described receiver 1401, in method shown in Figure 1 11, repeat no more herein.
Processor 1402, obtain first field relevant with described first message for described first message received according to described receiver 1401, described first field is different from any one field in the heading of described first message; And, according to described first field generating forward list item, in the matching domain of described forwarding-table item, comprise described first field.
Described processor 1402 can perform 12 and 13 in the method shown in Fig. 1.About described processor 1402, in method shown in Figure 1 12 and 13, repeat no more herein.
Transmitter 1403, for sending renewal instruction to the described dough leavening device that turns, described renewal instruction comprises the described forwarding-table item that described processor 1402 generates, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
Described transmitter 1403 can perform 14 in the method shown in Fig. 1.About described transmitter 1403, in method shown in Figure 1 14, repeat no more herein.
Optionally, in the chain of command device shown in Figure 14, described processor 1402 can be specifically for:
Heading according to described first message determines the first outgoing interface, generates described forwarding-table item, comprises described first outgoing interface in the action fields of described forwarding-table item.
About technique scheme, can 13a in the method shown in reference diagram 1, repeat no more herein.
Optionally, in the chain of command device shown in Figure 14, described processor 1402 can be specifically for:
Determine the second outgoing interface according to described first field, generate described forwarding-table item, in the action fields of described forwarding-table item, comprise described second outgoing interface.
About technique scheme, can 13b in the method shown in reference diagram 1, repeat no more herein.
Optionally, in the chain of command device shown in Figure 14, described processor 1402 can be specifically for:
Determine the 3rd outgoing interface according to the heading of described first message and described first field, generate described forwarding-table item, in the action fields of described forwarding-table item, comprise described 3rd outgoing interface.
About technique scheme, can 13c in the method shown in reference diagram 1, repeat no more herein.
Visible, by technique scheme, the field outside the field in the heading turning the message that dough leavening device sends in the matching domain of the forwarding-table item that chain of command device generates, can be comprised.In prior art, in the matching domain of the forwarding-table item that chain of command device generates, comprise the field in the heading turning the message that dough leavening device sends, the field outside the field in the heading turning the message that dough leavening device sends can not be comprised.Therefore, the technical scheme that the embodiment of the present invention provides can reduce the quantity turning the message that dough leavening device sends to chain of command device, and then alleviates taking the control channel between retransmission unit and chain of command device.
The embodiment of the present invention additionally provides a kind of method sending message.As shown in Figure 2, described method comprises:
21, turn dough leavening device and send the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, described first message is used for making described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
For example, described first message can be described in turn the message that dough leavening device receives.Described first message be not with the message turning transmitting in dough leavening device and mate.Described first message can be the message of the two layers of information comprising OSI model, also can be the message of the three layers of information comprising OSI model.A forwarding-table item can be comprised in transmitting described in those skilled in the art will appreciate that, also can comprise multiple forwarding-table item.Described transmit in forwarding-table item comprise matching domain and action fields.
For example, described first message can only include a heading, also can comprise multiple heading.The heading of described first message refers to all headings that described first message comprises.
For example, if described first message comprises multiple heading, then the heading of described first message had both comprised the outer heading of described first message, also comprised the internal layer heading of described first message.Such as, if described first message is the IP message of the four layers of information comprising OSI Model, then the heading of described IP message had both comprised outer heading, i.e. IP head, also comprised internal layer heading, i.e. TCP head or UDP head.
Described first field any one field be different from the heading of described first message can be presented as that the type of field is not identical.Specifically, if the type of described first field is different from the type of any one field in the heading of described first message, then described first field is different from any one field in the heading of described first message.Such as, if the type of described first field is the object udp port in UDP head, and do not comprise UDP head in the heading of described first message, then can think that described first field is different from any one field in the heading of described first message.
Described first field any one field be different from the heading of described first message also can be presented as that the type of field is identical, but the value of field is different.For example, if have in the heading of described first message and only have a field identical with the type of described first field, and the value of described first field is different from the value of the field identical with the type of described first field in the heading of described first message, then described first field is different from any one field in the heading of described first message.Such as, if IP address for the purpose of the type of described first field, have in the heading of described first message and only have the field of IP address for the purpose of a field type, and the value of described first field is different from the value of the object IP address field in described first message, then think that described first field is different from any one field in the heading of described first message.
Optionally, described first field can be the information that described first message is asked.
Such as, described first message can be DNS request message.Described first field can be the IP address corresponding to network address comprised in described first message.For example, the network address comprised in described first message is www.XXX.com.After name server receives described first message, obtain IP address corresponding to described network address according to the network address in described first message.For example, the IP address that described network address is corresponding can be 202.108.22.6.IP address corresponding for described network address is sent to described chain of command device by domain name server.Described chain of command device can using 202.108.22.6 as described first field.It will be appreciated by those skilled in the art that, be under the scene of IP address corresponding to described network address in described first field, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn the flow whether flow that dough leavening device receives is website corresponding to the described network address of access.
Optionally, described first field also can be the field in the second message of the agreement defined that described first message is corresponding, and the type of described second message is different from the type of described first message.
Such as, described first message can be FTP connection establishment request message.Object tcp port in the TCP head of described first message is 21.The agreement that described first message is corresponding is FTP.Described second message can be the FTP transfer of data message of FTP definition.Object tcp port in the TCP head of described second message is 20.It will be appreciated by those skilled in the art that, tcp port for the purpose of the type of described first field and the value of the first field is under the scene of 20, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn whether the flow that dough leavening device receives is FTP transfer of data message.
Optionally, described first field can be the network address of the network equipment storing the data that described first message is asked.
For example, the data that described first message is asked can be text, audio file or video file.Such as, described first message may be used for request access GFS application data.For example, the data of described first message request access are the file that file is called W.Described first field can be store the network address that described file is called the network equipment of the file of W.This network address can be IP address, also can be MAC protocol address.
Those skilled in the art will appreciate that in the matching domain of forwarding-table item and can also comprise the second field, the second field is identical with the 3rd field, and described 3rd field is a field in the heading of described first message.The positional information of described 3rd field in described first message is contained in forwarding-table item.Described positional information is for obtaining the field of message to be matched.Turn after dough leavening device receives and have the message of same characteristic features with described first message when described, the described dough leavening device that turns can obtain the described field that to have with described first message in the message of same characteristic features according to described positional information, and judge described field whether with described second fields match in described forwarding-table item.
Those skilled in the art will appreciate that described forwarding-table item contains the positional information of field to be matched in message to be matched corresponding to the first field.
Described first field any one field be different from the heading of described first message can also be presented as that the type of field is identical, the value of field is identical, but position positional information indicated by of field to be matched in message to be matched corresponding to described first field that comprises of described forwarding-table item is different from identical with the type of described first field and identical with the value of the described first field position of field in described first message in the heading of described first message.Specifically, if described 3rd field is identical with the type of described first field and identical with the value of described first field field unique in described first message, but position positional information indicated by of field to be matched in message to be matched corresponding to described first field that described forwarding-table item comprises is different from the described position of 3rd field in described first message, then described first field is different from any one field in the heading of described first message.
Forwarding-table item can comprise matching domain and action fields.Field in the matching domain of this forwarding-table item can comprise source IP address, object IP address, source port, destination interface and agreement.Outgoing interface number can be comprised in the action fields of this forwarding-table item.The outgoing interface that dough leavening device forwards the message mated with described forwarding-table item is turned described in described outgoing interface number is used to indicate.
Optionally, in method shown in Fig. 2, described chain of command device generating forward list item can comprise: described chain of command device can determine the first outgoing interface according to the heading of described first message, described chain of command device generates described forwarding-table item, comprises described first outgoing interface in the action fields of described forwarding-table item.
For example, the network topology corresponding to network that described chain of command device can be administered according to the heading of described first message and described chain of command device calculates optimal path or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described first outgoing interface according to described optimal path or described shortest path.For example, described chain of command device calculates the IP address that the information in the heading of described first message that described optimal path or described shortest path use can be ftp server.
Optionally, in method shown in Fig. 2, described chain of command device generating forward list item can comprise: described chain of command device can determine the second outgoing interface according to described first field, described chain of command device generates described forwarding-table item, comprises described second outgoing interface in the action fields of described forwarding-table item.
For example, the network topology corresponding to network that described chain of command device can be administered according to described first field and described chain of command device calculates optimal path or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described second outgoing interface according to described optimal path or described shortest path.For example, described chain of command device calculates the IP address that described first field that described optimal path or described shortest path use can be web page server.
Optionally, in method shown in Fig. 2, described chain of command device generating forward list item can comprise: described chain of command device can determine the 3rd outgoing interface according to the heading of described first message and described first field, described chain of command device generates described forwarding-table item, comprises described 3rd outgoing interface in the action fields of described forwarding-table item.
For example, the topology calculate optimal path of network that can administer according to the heading of described first message, described first field and described chain of command device of described chain of command device or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described 3rd outgoing interface according to described optimal path or described shortest path.
22, turn the renewal instruction that dough leavening device receives the transmission of described chain of command device described in, described renewal instruction comprises described forwarding-table item.
23, turn described in dough leavening device the described forwarding-table item in described renewal instruction is added to described in turn in the transmitting of dough leavening device.
Optionally, embodiments provide one and turn dough leavening device.The described dough leavening device that turns can perform the method shown in Fig. 2.See Figure 15, described in turn dough leavening device and comprise:
Transmitter 1501, for sending the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, described first message is used for making described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
Described transmitter 1501 can perform 21 in the method shown in Fig. 2.About described transmitter 1501, in method shown in Figure 2 21, repeat no more herein.
Receiver 1502, for receiving the renewal instruction that described chain of command device sends, described renewal instruction comprises described forwarding-table item.
Described receiver 1502 can perform 22 in the method shown in Fig. 2.About described receiver 1502, in method shown in Figure 2 22, repeat no more herein.
Network processing unit 1503, turns described in adding in the transmitting of dough leavening device for the described forwarding-table item in the described renewal instruction that received by described receiver 1502.
Described network processing unit 1503 can perform 23 in the method shown in Fig. 2.About described network processing unit 1503, in method shown in Figure 2 23, repeat no more herein.
Visible, by technique scheme, the field outside the field in the heading turning the message that dough leavening device sends in the matching domain of the forwarding-table item that chain of command device generates, can be comprised.In prior art, in the matching domain of the forwarding-table item that chain of command device generates, comprise the field in the heading turning the message that dough leavening device sends, the field outside the field in the heading turning the message that dough leavening device sends can not be comprised.Therefore, the technical scheme that the embodiment of the present invention provides can reduce the quantity turning the message that dough leavening device sends to chain of command device, and then alleviates taking the control channel between retransmission unit and chain of command device.
Method shown in Fig. 1 and the method shown in Fig. 2 can be applied to DNS scene.The schematic diagram that in the DNS scene that Fig. 3 provides for the embodiment of the present invention, network element is mutual.Network element interaction flow shown in Fig. 3 comprises:
31, DNS request message is sent.
For example, turn dough leavening device and DNS request message is sent to chain of command device.Described DNS request message comprises the domain name of certain web page server.
32, the DNS request message turning dough leavening device transmission described in basis obtains first field relevant to described DNS request message.
For example, described chain of command device, by mutual with name server, obtains the IP address of network element server.
33, generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
For example, described chain of command device can determine the outgoing interface in the action fields of described forwarding-table item according to described first field.Such as, the IP address of described web page server is 202.108.22.6.Dough leavening device is turned to the optimal path of described web page server or shortest path described in the topology calculate of the network that described chain of command device can be administered according to the IP address of described network element server and described chain of command device.Described chain of command device turns the outgoing interface of dough leavening device described in can determining according to described optimal path or described shortest path.Such as, described chain of command device can determine described in turn dough leavening device access IP address be the outgoing interface of the web page server of 202.108.22.6 is interface 11.Described forwarding-table item can be as shown in table 1:
Matching domain (comprising the first field) Action fields (comprising outgoing interface)
IP address The described interface turning dough leavening device
202.108.22.6 Interface 11
202.108.22.6 Interface 11
Table 1
34, send renewal instruction, described renewal instruction comprises described forwarding-table item.
For example, described chain of command device sends renewal instruction to the described dough leavening device that turns, and described renewal instruction comprises described forwarding-table item.Described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.Such as, described chain of command device the renewal instruction including described forwarding-table item is sent to described in turn dough leavening device.
35, the described forwarding-table item in described renewal instruction is added to described in turn in the transmitting of dough leavening device.
Specifically, described in turn dough leavening device receive described in include the renewal instruction of described forwarding-table item after, turn described in the described forwarding-table item in described renewal instruction is added in the transmitting of dough leavening device.
Method shown in Fig. 1 and the method shown in Fig. 2 can be applied to FTP scene.The schematic diagram that in the FTP scene that Fig. 4 provides for the embodiment of the present invention, network element is mutual.Network element interaction flow shown in Fig. 4 comprises:
41, FTP connection establishment request message is sent.
Specifically, turn dough leavening device and FTP connection establishment request message is sent to chain of command device.
42, the FTP connection establishment request message turning dough leavening device transmission described in basis obtains first field relevant to described FTP connection establishment request message.
For example, the object tcp port number comprised in the heading field of described FTP connection establishment request message is 21.Described chain of command device can determine according to the tcp port number in FTP connection establishment request message that the message that described chain of command device receives is FTP connection establishment request message.And then described chain of command device can generate described first field.Tcp port for the purpose of the type of the first field, the value of the first field is 20.
43, generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
For example, the type of described first field comprised in the matching domain of described forwarding-table item can be object tcp port, and the value of described first field can be 20.Turn described in the matching domain of described forwarding-table item may be used for judging whether the message that dough leavening device receives is FTP transfer of data message.
For example, described chain of command device can determine the outgoing interface in the action fields of described forwarding-table item according to the heading of described FTP connection establishment request message.Specifically, described chain of command device can according to the object IP address in the heading of described FTP connection establishment request message, and the described chain of command device topology of network of administering determines optimal path or the shortest path of the ftp server that the described object IP address of access is corresponding.Then, described chain of command device can determine according to described optimal path or described shortest path described in turn the outgoing interface of dough leavening device.Specifically, described chain of command device calculate described in turn dough leavening device and forward the outgoing interface of FTP connection establishment request message and described to turn the outgoing interface that dough leavening device forwards FTP transfer of data message be same interface.Described forwarding-table item can be as shown in table 2:
Matching domain (comprising the first field) Action fields (comprising outgoing interface)
Object tcp port number The described interface turning dough leavening device
Tcp port 21 Interface 11
Tcp port 20 Interface 11
Table 2
44, send renewal instruction, described renewal instruction comprises described forwarding-table item.
For example, described chain of command device sends renewal instruction to the described dough leavening device that turns, and described renewal instruction comprises described forwarding-table item.Described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.Such as described chain of command device turns dough leavening device described in the renewal instruction including described forwarding-table item being sent to.
45, the described forwarding-table item in described renewal instruction is added to described in turn in the transmitting of dough leavening device.
For example, described in turn dough leavening device receive described in include the renewal instruction of described forwarding-table item after, turn described in the described forwarding-table item in described renewal instruction is added in the transmitting of dough leavening device.
For example, turn dough leavening device receive user send tcp port be 20 FTP transfer of data message, can determine that the outgoing interface of described FTP transfer of data message is interface 11 according to described forwarding-table item.
Method shown in Fig. 1 and the method shown in Fig. 2 can be applied to GFS scene.The schematic diagram that in the GFS scene that Fig. 5 provides for the embodiment of the present invention, network element is mutual.Network element interaction flow shown in Fig. 5 comprises:
51, GFS application data request message is sent.
Specifically, turn dough leavening device and GFS application data request message is sent to chain of command device.
52, the GFS application data request message turning dough leavening device transmission described in basis obtains first field relevant to described GFS application data request message.
For example, described chain of command device according to described in turn the GFS application data request message that dough leavening device sends and obtain first field relevant to described GFS application data request message.If described GFS application data request message is used for the file that request access file is called W, then the first relevant to described GFS application data request message field is store the network address that described file is called the network equipment of the file of W.
53, generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
For example, described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item.Described chain of command device can determine the outgoing interface in the action fields of described forwarding-table item according to described first field.Such as, described chain of command device can be called the network address of the network equipment of the file of W according to the described file of storage, and the topology of the network of administering described in described chain of command device determines that turning dough leavening device described in access accesses optimal path or the shortest path that the described file of described storage is called the network equipment of the file of W.Then, described chain of command device can determine according to described optimal path or described shortest path described in turn the outgoing interface of dough leavening device.Such as, described chain of command device can determine described in turn dough leavening device forward outgoing interface that described file is called the file of W for described in turn the interface 11 of dough leavening device.Described forwarding-table item can be as shown in table 3:
Table 3
54, send renewal instruction, described renewal instruction comprises described forwarding-table item.
For example, described chain of command device sends renewal instruction to the described dough leavening device that turns, described renewal instruction comprises described forwarding-table item, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.Such as described chain of command device turns dough leavening device described in the renewal instruction including described forwarding-table item being sent to.
55, the described forwarding-table item in described renewal instruction is added to described in turn in the transmitting of dough leavening device.
For example, described in turn dough leavening device receive described in include the renewal instruction of described forwarding-table item after, turn described in the described forwarding-table item in described renewal instruction is added in the transmitting of dough leavening device.
For example, user is called the network address of the network equipment of the file of W according to storing described file, initiate the access of file file being called to W.The described dough leavening device that turns receives after request access file that user sends is called the message of the file of W, described in turn the outgoing interface that dough leavening device is called the message of the file of W according to described forwarding-table item determination access file be interface 11.
Embodiments provide a kind of chain of command device, described chain of command device can be realized by the method shown in Fig. 1.See Figure 16, described device comprises:
Receiving element 61, for receiving the first message turning dough leavening device and send.
For example, receiving element 61 can be the receiver of described chain of command device.About receiving element 61, in method specifically shown in Figure 1 11, repeat no more herein.
Obtain unit 62, obtain first field relevant with described first message for described first message received according to described receiving element 61, described first field is different from any one field in the heading of described first message.
Obtain the CPU that unit 62 can be described chain of command device.About acquisition unit 62, in method specifically shown in Figure 1 12, repeat no more herein.
Optionally, described first field can be the information that described first message is asked.
Such as, described first message can be DNS(Domain Name System, domain name system) request message.Described first field can be the IP address corresponding to network address comprised in described first message.For example, the network address comprised in described first message is www.XXX.com.After name server receives described first message, obtain IP address corresponding to described network address according to the network address in described first message.IP address corresponding to described network address can be 202.108.22.6.IP address corresponding for described network address is sent to described chain of command device by domain name server.Described chain of command device can using 202.108.22.6 as described first field.It will be appreciated by those skilled in the art that, be under the scene of IP address corresponding to described network address in described first field, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn the flow whether flow that dough leavening device receives is website corresponding to the described network address of access.
Optionally, described first field also can be the field in the second message of the agreement defined that described first message is corresponding, and the type of described second message is different from the type of described first message.
Such as, described first message can be FTP connection establishment request message.Object tcp port in the TCP head of described first message is 21.The agreement that described first message is corresponding is FTP.Described second message can be the FTP transfer of data message of FTP definition.Object tcp port in the TCP head of described second message is 20.It will be appreciated by those skilled in the art that, tcp port for the purpose of the type of described first field and the value of the first field is under the scene of 20, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn whether the flow that dough leavening device receives is FTP transfer of data message.
Optionally, described first field can be the network address of the network equipment storing the data that described first message is asked.
For example, the data that described first message is asked can be text, audio file or video file.Such as, described first message may be used for request access GFS application data.For example, the data of described first message request access are the file that file is called W.Described first field can be store the network address that described file is called the network equipment of the file of W.This network address can be IP address, also can be MAC protocol address.
Generation unit 63, for the described first field generating forward list item obtained according to described acquisition unit 62, comprises described first field in the matching domain of described forwarding-table item.
Generation unit 63 can be the CPU of described chain of command device.About generation unit 63, in method specifically shown in Figure 1 13, repeat no more herein.
Transmitting element 64, for sending renewal instruction to the described dough leavening device that turns, described renewal instruction comprises the described forwarding-table item that described generation unit 63 generates, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
Transmitting element 64 can be the transmitter of described chain of command device.About transmitting element 64, in method specifically shown in Figure 1 14, repeat no more herein.
Optionally, in chain of command device shown in Figure 16, generation unit 63 can comprise first and determine that subelement 63a and first generates subelement 63b, or comprises second and determine that subelement 63c and second generates subelement 63d, or comprises the 3rd and determine that subelement 63e and the 3rd generates subelement 63f.
Determine that subelement 63a and described first generates subelement 63b about described first, can with reference to Figure 11.
Determine that subelement 63c and described second generates subelement 63d about described second, can with reference to Figure 12.
Determine that subelement 63e and the described 3rd generates subelement 63f about the described 3rd, can with reference to Figure 13.
Described first determines that subelement 63a is for determining the first outgoing interface according to the heading of described first message; Described first generates subelement 63b for generating described forwarding-table item, comprises described first and determine described first outgoing interface that subelement is determined in the action fields of described forwarding-table item.
For example, the topology calculate optimal path of network that can administer according to the heading of described first message and described chain of command device of described chain of command device or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described first outgoing interface according to described optimal path or described shortest path.For example, described chain of command device calculates the IP address that the information in the heading of described first message that described optimal path or described shortest path use can be ftp server.
Described second determines that subelement 63c is for determining the second outgoing interface according to described first field; Described second generates subelement 63d for generating described forwarding-table item, comprises described second and determine described second outgoing interface that subelement is determined in the action fields of described forwarding-table item.
For example, the topology calculate optimal path of network that can administer according to described first field and described chain of command device of described chain of command device or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described second outgoing interface according to described optimal path or described shortest path.For example, described chain of command device calculates the IP address that described first field that described optimal path or described shortest path use can be web page server.
Described 3rd determines that subelement 63e is for determining the 3rd outgoing interface according to the heading of described first message and described first field; Described 3rd generates subelement 63f for generating described forwarding-table item, comprises the described 3rd and determine described 3rd outgoing interface that subelement is determined in the action fields of described forwarding-table item.Specifically can determine optimal path or shortest path according to the heading of described first message and described first field in conjunction with network topology, thus turn the outgoing interface of dough leavening device described in determining according to described optimal path or shortest path.
For example, the network topology corresponding to network that described chain of command device can be administered according to the heading of described first message, described first field and described chain of command device calculates optimal path or shortest path.The network of administering described in described chain of command device can comprise and multiplely turns dough leavening device.Described chain of command device determines described 3rd outgoing interface according to described optimal path or described shortest path.
Embodiments provide one and turn dough leavening device, described chain of command device can be realized by the method shown in Fig. 2.See Fig. 7, described device comprises:
Transmitting element 71, for sending the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, described first message is used for making described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item.
For example, transmitting element 71 can be described in turn transmitter in dough leavening device.About transmitting element 71, can 21 in the method shown in reference diagram 2, repeat no more herein.
Optionally, described first field can be the information that described first message is asked.
Such as, described first message can be DNS request message.Described first field can be the IP address corresponding to network address comprised in described first message.For example, the network address comprised in described first message is www.XXX.com.After name server receives described first message, obtain IP address corresponding to described network address according to the network address in described first message.IP address corresponding to described network address can be 202.108.22.6.IP address corresponding for described network address is sent to described chain of command device by domain name server.Described chain of command device can using 202.108.22.6 as described first field.It will be appreciated by those skilled in the art that, be under the scene of IP address corresponding to described network address in described first field, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn the flow whether flow that dough leavening device receives is website corresponding to the described network address of access.
Optionally, described first field also can be the field in the second message of the agreement defined that described first message is corresponding, and the type of described second message is different from the type of described first message.
Such as, described first message can be FTP connection establishment request message.Object tcp port in the TCP head of described first message is 21.The agreement that described first message is corresponding is FTP.Described second message can be the FTP transfer of data message of FTP definition.Object tcp port in the TCP head of described second message is 20.It will be appreciated by those skilled in the art that, tcp port for the purpose of the type of described first field and the value of the first field is under the scene of 20, turn after dough leavening device receives flow, described in can judging according to described forwarding-table item, turn whether the flow that dough leavening device receives is FTP transfer of data message.
Optionally, described first field can be the network address of the network equipment storing the data that described first message is asked.
For example, the data that described first message is asked can be text, audio file or video file.Such as, described first message may be used for request access GFS application data.For example, the data of described first message request access are the file that file is called W.Described first field can be store the network address that described file is called the network equipment of the file of W.This network address can be IP address, also can be MAC protocol address.
Receiving element 72, for receiving the renewal instruction that described chain of command device sends, described renewal instruction comprises described forwarding-table item.
For example, receiving element 72 can be described in turn receiver in dough leavening device.About receiving element 72, specifically refer to 22 in Fig. 2, repeat no more herein.
Adding device 73, turns described in adding in the transmitting of dough leavening device for the described forwarding-table item in the described renewal instruction that received by described receiving element 72.
For example, adding device 73 can be described in turn network processing unit (network processor, NP) in dough leavening device.About adding device 73, specifically refer to 23 in Fig. 2, repeat no more herein.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, can be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: (english abbreviation is ROM for USB flash disk, portable hard drive, read-only memory, English full name is Read-Only Memory), random access memory (english abbreviation is RAM, and English full name is Random AccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (7)

1. receive a method for message, it is characterized in that, comprising:
Chain of command device receives the first message turning dough leavening device and send;
Described chain of command device obtains first field relevant with described first message according to described first message, described first field is different from any one field in the heading of described first message, described first field is any one in following: the information that (1) described first message is asked, (2) field in the second message of the agreement defined that described first message is corresponding, the type of described second message is different from the type of described first message, and (3) store the network address of the network equipment of the data that described first message is asked;
Described chain of command device generating forward list item, comprises described first field in the matching domain of described forwarding-table item; With
Described chain of command device sends renewal instruction to the described dough leavening device that turns, described renewal instruction comprises described forwarding-table item, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
2. method according to claim 1, is characterized in that, described chain of command device generating forward list item comprises:
Described chain of command device determines the first outgoing interface according to the heading of described first message, and described chain of command device generates described forwarding-table item, comprises described first outgoing interface in the action fields of described forwarding-table item; Or
Described chain of command device determines the second outgoing interface according to described first field, and described chain of command device generates described forwarding-table item, comprises described second outgoing interface in the action fields of described forwarding-table item; Or
Described chain of command device determines the 3rd outgoing interface according to the heading of described first message and described first field, and described chain of command device generates described forwarding-table item, comprises described 3rd outgoing interface in the action fields of described forwarding-table item.
3. send a method for message, it is characterized in that, comprising:
Turn dough leavening device and send the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, described first message is used for making described chain of command device generating forward list item, described first field is comprised in the matching domain of described forwarding-table item, described first field is any one in following: the information that (1) described first message is asked, (2) field in the second message of the agreement defined that described first message is corresponding, the type of described second message is different from the type of described first message, (3) network address of the network equipment of the data that described first message is asked is stored,
Described turn dough leavening device receive described chain of command device send renewal instruction, described renewal instruction comprises described forwarding-table item; With
Described turn dough leavening device the described forwarding-table item in described renewal instruction is added to described in turn in the transmitting of dough leavening device.
4. method according to claim 3, is characterized in that, described chain of command device generating forward list item comprises:
Described chain of command device determines the first outgoing interface according to the heading of described first message, and described chain of command device generates described forwarding-table item, comprises described first outgoing interface in the action fields of described forwarding-table item; Or
Described chain of command device determines the second outgoing interface according to described first field, and described chain of command device generates described forwarding-table item, comprises described second outgoing interface in the action fields of described forwarding-table item; Or
Described chain of command device determines the 3rd outgoing interface according to the heading of described first message and described first field, and described chain of command device generates described forwarding-table item, comprises described 3rd outgoing interface in the action fields of described forwarding-table item.
5. a chain of command device, is characterized in that, comprising:
Receiving element, for receiving the first message turning dough leavening device and send;
Obtain unit, obtain first field relevant with described first message for described first message received according to described receiving element, described first field is different from any one field in the heading of described first message;
Generation unit, for the described first field generating forward list item obtained according to described acquisition unit, described first field is comprised in the matching domain of described forwarding-table item, described first field is any one in following: the information that (1) described first message is asked, (2) field in the second message of the agreement defined that described first message is corresponding, the type of described second message is different from the type of described first message, and (3) store the network address of the network equipment of the data that described first message is asked; With
Transmitting element, for sending renewal instruction to the described dough leavening device that turns, described renewal instruction comprises the described forwarding-table item that described generation unit generates, described renewal instruction for turn described in making dough leavening device the described forwarding-table item in described renewal instruction added to described in turn in the transmitting of dough leavening device.
6. device according to claim 5, is characterized in that, described generation unit comprises:
First determines that subelement and first generates subelement, and described first determines that subelement is for determining the first outgoing interface according to the heading of described first message; Described first generates subelement for generating described forwarding-table item, comprises described first and determine described first outgoing interface that subelement is determined in the action fields of described forwarding-table item; Or
Second determines that subelement and second generates subelement, and described second determines that subelement is for determining the second outgoing interface according to described first field; Described second generates subelement for generating described forwarding-table item, comprises described second and determine described second outgoing interface that subelement is determined in the action fields of described forwarding-table item; Or
3rd determines that subelement and the 3rd generates subelement, and the described 3rd determines that subelement is for determining the 3rd outgoing interface according to the heading of described first message and described first field; Described 3rd generates subelement for generating described forwarding-table item, comprises the described 3rd and determine described 3rd outgoing interface that subelement is determined in the action fields of described forwarding-table item.
7. turn a dough leavening device, it is characterized in that, comprising:
Transmitting element, for sending the first message to chain of command device, first field relevant with described first message is obtained according to described first message to make described chain of command device, described first field is different from any one field in the heading of described first message, described first message is used for making described chain of command device generating forward list item, described first field is comprised in the matching domain of described forwarding-table item, described first field is any one in following: the information that (1) described first message is asked, (2) field in the second message of the agreement defined that described first message is corresponding, the type of described second message is different from the type of described first message, (3) network address of the network equipment of the data that described first message is asked is stored,
Receiving element, for receiving the renewal instruction that described chain of command device sends, described renewal instruction comprises described forwarding-table item; With
Adding device, turns described in adding in the transmitting of dough leavening device for the described forwarding-table item in the described renewal instruction that received by described receiving element.
CN201210243505.1A 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device Active CN102739549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210243505.1A CN102739549B (en) 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210243505.1A CN102739549B (en) 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device

Publications (2)

Publication Number Publication Date
CN102739549A CN102739549A (en) 2012-10-17
CN102739549B true CN102739549B (en) 2015-10-21

Family

ID=46994361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210243505.1A Active CN102739549B (en) 2012-07-13 2012-07-13 Receive the method for message, the method sending message and device

Country Status (1)

Country Link
CN (1) CN102739549B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2908479B1 (en) 2012-10-30 2018-05-23 Huawei Technologies Co., Ltd. Method, apparatus and system for implementing tunnel processing
CN102938739B (en) * 2012-11-26 2016-08-24 华为技术有限公司 Deep message detection method and apparatus
CN103906131A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Data transmission system, device and method
FI124398B (en) * 2013-01-04 2014-08-15 Tellabs Oy Method and apparatus for determining implementation of a search table for a network element of software-defined network
CN104283756B (en) * 2013-07-02 2017-12-15 新华三技术有限公司 A kind of method and apparatus for realizing distributed multi-tenant virtual network
EP3021533B1 (en) 2013-07-19 2019-01-02 Huawei Technologies Co., Ltd. Switching device, controller, and method and system for switching device configuration and packet processing
WO2015180113A1 (en) * 2014-05-30 2015-12-03 华为技术有限公司 Network address translation method and apparatus
CN104518970B (en) * 2014-12-12 2018-12-25 北京智谷睿拓技术服务有限公司 Flow table update method, device and controller
CN106330696A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Sending method and device for keep-alive messages
CN106385365B (en) 2015-08-07 2019-09-06 新华三技术有限公司 The method and apparatus for realizing cloud platform safety based on open flows Openflow table
CN106888152B (en) 2015-12-16 2019-11-12 华为技术有限公司 A kind of message treatment method, device and system
CN105656786B (en) * 2016-01-22 2019-04-12 中国人民解放军国防科学技术大学 A kind of router look-up method based on fast, slow table
CN106713132B (en) * 2016-11-23 2020-02-14 华为技术有限公司 Method and apparatus for updating forwarding table entry
CN110224942B (en) * 2018-03-01 2023-08-04 中兴通讯股份有限公司 Message processing method, device and storage medium
CN111026324B (en) 2018-10-09 2021-11-19 华为技术有限公司 Updating method and device of forwarding table entry
CN112260913B (en) * 2020-12-21 2021-04-02 广东省新一代通信与网络创新研究院 Access method and system for realizing distributed broadband

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577271A (en) * 2009-10-07 2012-07-11 日本电气株式会社 Information system, control server, virtual network management method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577271A (en) * 2009-10-07 2012-07-11 日本电气株式会社 Information system, control server, virtual network management method, and program

Also Published As

Publication number Publication date
CN102739549A (en) 2012-10-17

Similar Documents

Publication Publication Date Title
CN102739549B (en) Receive the method for message, the method sending message and device
US8755389B1 (en) Semi-centralized multiple path routing
JP5864758B2 (en) System and method for controlling network traffic via a virtual switch
CN104378299B (en) Flow table item processing method and device
CN105634956B (en) A kind of message forwarding method, device and system
CN103997414A (en) Configuration information generation method and network control unit
WO2006020800A3 (en) Software architecture and hardware abstraction layer for multi-radio routing and method for providing the same
CN104468368B (en) Configure the method and device of bgp neighbor
CN109361606A (en) A kind of message handling system and the network equipment
CN104717081A (en) Gateway function realization method and device
US10742545B2 (en) Multicasting system
CN108259218A (en) A kind of IP address distribution method and device
CN105814843A (en) Method and apparatus for generating flow table
CN110460641A (en) Data transmission method, apparatus and system
CN104660597A (en) Three-layer authentication method and device as well as three-layer authentication exchanger
CN104205729B (en) Method, device, and system for configuring device in network
CN103493439B (en) The method of reception information, the method sending information and device
WO2015096707A1 (en) Method, device and system for acquiring information about configuration server
CN102821049A (en) Method and device for forwarding message
US11394635B2 (en) Aggregated bit index explicit replication networking system
CN103973573A (en) Session backup method and device and message forwarding method and device
CN107409102A (en) Automatic discovery and arranging to multi-frame EtherChannel peer-to-peer
CN109246016A (en) Message processing method and device across VXLAN
US10938591B2 (en) Multicast system
CN103916317A (en) Communication method, routing bridge and 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