CN110365586A - The method and device of message transmissions - Google Patents
The method and device of message transmissions Download PDFInfo
- Publication number
- CN110365586A CN110365586A CN201910644311.4A CN201910644311A CN110365586A CN 110365586 A CN110365586 A CN 110365586A CN 201910644311 A CN201910644311 A CN 201910644311A CN 110365586 A CN110365586 A CN 110365586A
- Authority
- CN
- China
- Prior art keywords
- message
- gigabit etherchannel
- physics
- gigabit
- etherchannel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application provides a kind of method and device of message transmissions, is related to field of communication technology, which comprises the descriptor for determining the corresponding Gigabit EtherChannel of message to be sent is the descriptor of virtual Gigabit EtherChannel;Related attribute is sent according to message is corresponding, the physics Gigabit EtherChannel for being used to send the message is selected from a plurality of physics Gigabit EtherChannel that virtual Gigabit EtherChannel includes.Processor is after the descriptor for obtaining Gigabit EtherChannel, can also judge Gigabit EtherChannel descriptor whether be virtual Gigabit EtherChannel descriptor, if, attribute possessed by message when then processor can be forwarded according to message, physics Gigabit EtherChannel is selected, from a plurality of physics Gigabit EtherChannel of virtual Gigabit EtherChannel for message transmission.Due to that can be selected from a plurality of physics Gigabit EtherChannel when carrying out message transmission, compared with it can only send in the prior art by a physics Gigabit EtherChannel, the requirement of bandwidth can be met for greater flexibility.
Description
Technical field
This application involves fields of communication technology, in particular to a kind of method and device of message transmissions.
Background technique
In existing router design, it can be communicated by data channel between the host and interface card of router.
Data channel is usually made of traditional data transmission channel such as Gigabit EtherChannel.The interface of interface card to data can pass through
Gigabit EtherChannel is transferred to host process;It, can also be logical by ether when host is intended to send data to opposite equip. by interface simultaneously
Road transfers data to interface card.
In traditional router, the host and interface card of the router are generally connected by single Gigabit EtherChannel, thus real
Communication between existing host and interface card.However in today of data volume outburst, bandwidth of the data communication field to communication equipment
Demand increasingly increases, and the bandwidth of single Gigabit EtherChannel is difficult to reach the requirement of specification of equipment.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method and device of message transmissions, to improve in the prior art
The bandwidth of single Gigabit EtherChannel is difficult to the problem of reaching the requirement of specification of equipment.
In a first aspect, the embodiment of the present application provides a kind of method of message transmissions, which comprises determine to be sent
The corresponding Gigabit EtherChannel of message descriptor be virtual Gigabit EtherChannel descriptor, wherein the virtual Gigabit EtherChannel includes
A plurality of physics Gigabit EtherChannel;Related attribute is sent according to the message is corresponding, include from the virtual Gigabit EtherChannel is a plurality of
The physics Gigabit EtherChannel for being used to send the message is selected in physics Gigabit EtherChannel.
Processor can also judge whether the descriptor of Gigabit EtherChannel is virtual after the descriptor for obtaining Gigabit EtherChannel
The descriptor of Gigabit EtherChannel, if so, attribute possessed by message when processor can be forwarded according to message, from virtual Gigabit EtherChannel
A plurality of physics Gigabit EtherChannel in select a physics Gigabit EtherChannel, for message transmission.It, can due to when carrying out message transmission
Physics Gigabit EtherChannel is selected from a plurality of physics Gigabit EtherChannel with the attribute having according to message, and can only be passed through in the prior art
One physics Gigabit EtherChannel transmission is compared, and can meet the requirement of bandwidth for greater flexibility.
It is described to send related attribute according to the message is corresponding in a possible design, from the virtual ether
The physics Gigabit EtherChannel for being used to send the message is selected in a plurality of physics Gigabit EtherChannel that channel includes, comprising: obtain
The corresponding forwarding core of message flow belonging to the message is from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes
The message selects and distributes the forwarding core corresponding physics Gigabit EtherChannel.
Processor can carry out the forwarding of message when E-Packeting by multiple forwarding cores simultaneously.In order to message number
According to sequence kept, the message of same stream is usually to pass through same forwarding core to receive, and forwarding core, which can be handled, to be received
Message until sending, this also means that the message of same stream can be sent by the same forwarding core, forward core in selection
When can be used forwarding core core number be used as key value.Therefore, physics Gigabit EtherChannel can be distributed according to the core number of forwarding core,
A physics Gigabit EtherChannel is answered in each forwarding verification, and multiple forwarding cores are sent out simultaneously when sending the message of a plurality of stream respectively
It send.
In a possible design, it is described according to message send in relation to attribute include from the virtual Gigabit EtherChannel it is more
In physics Gigabit EtherChannel selection one for sending the physics Gigabit EtherChannel of the message, comprising: obtain the stream of the message
Mark;It is the message selection from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes according to the traffic identifier
And distribute the traffic identifier corresponding physics Gigabit EtherChannel.
Processor can also distribute corresponding physics Gigabit EtherChannel according to the traffic identifier of message for message, same stream
The traffic identifier of message be it is identical, therefore, distribute physics Gigabit EtherChannel according to traffic identifier, the message of identical traffic identifier is assigned
Into same channel, also kept conducive to the sequence of message sequence.
In a possible design, the traffic identifier for obtaining the message, comprising: obtain five yuan of the message
Group;Hash operation is carried out to the five-tuple of the message, obtains the traffic identifier of the message.
Processor can obtain the five-tuple of message, then Hash operation be carried out to five-tuple, after Hash operation
Traffic identifier of the five-tuple as message.
In a possible design, the method also includes: receiving channel configuration change information;Matched according to the channel
Set the channel configuration for whole physics Gigabit EtherChannels that virtual Gigabit EtherChannel includes described in change information update.
It include a plurality of physics Gigabit EtherChannel since virtual Gigabit EtherChannel is practical, for the configuration to virtual Gigabit EtherChannel
Information is modified, and the configuration for the whole physics Gigabit EtherChannels that can include by the virtual Gigabit EtherChannel is modified.
In a possible design, above-mentioned method is executed by the Gigabit EtherChannel driver of processor.
The improvement of method for communication transmission provided by the present application can concentrate in Gigabit EtherChannel driver, i.e. ether
Channels drive program can allow the drive software on upper layer not perceive bottom hardware upper interface and logic without modification
Variation, improve the reusability of this method.
Second aspect, the embodiment of the present application provide a kind of device of message transmissions, and described device includes: that channel obtains mould
Block, for determining that the descriptor of the corresponding Gigabit EtherChannel of message to be sent is the descriptor of virtual Gigabit EtherChannel;Channel distribution
Module, for the related attribute of transmission according to the message, a plurality of physics Gigabit EtherChannel for including from the virtual Gigabit EtherChannel
Middle selection one is for sending the physics Gigabit EtherChannel of the message.
In a possible design, the channel distribution module, specifically for obtaining message flow belonging to the message
Corresponding forwarding core is that the message selects and distributes institute from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes
State the corresponding physics Gigabit EtherChannel of forwarding core;And/or the channel distribution module, specifically for obtaining failing to be sold at auction for the message
Know;It is that the message selects simultaneously from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes according to the traffic identifier
Distribute the traffic identifier corresponding physics Gigabit EtherChannel.
In a possible design, the channel distribution module, specifically for obtaining the five-tuple of the message;To institute
The five-tuple for stating message carries out cryptographic calculation, obtains the traffic identifier of the message.
In a possible design, described device further include: configuration change receiving module, for receiving Labcard driver journey
The channel configuration change information of sequence request;Configure update module, for according to the configuration change information update virtually with
The too channel configuration of channel whole physics Gigabit EtherChannels for including.
The third aspect, the application provide a kind of electronic equipment, comprising: processor, memory and bus, the memory are deposited
The executable machine readable instructions of the processor are contained, when electronic equipment operation, the processor and the storage
By bus communication between device, execution first aspect or first aspect when the machine readable instructions are executed by the processor
Method described in any optional implementation.
Fourth aspect, the application provide a kind of computer readable storage medium, store on the computer readable storage medium
There is computer program, any optional realization of first aspect or first aspect is executed when which is run by processor
Method described in mode.
5th aspect, the application provide a kind of computer program product, and the computer program product is transported on computers
When row, so that computer executes the method in any possible implementation of first aspect or first aspect.
Above objects, features, and advantages to enable the embodiment of the present application to be realized are clearer and more comprehensible, be cited below particularly compared with
Good embodiment, and cooperate appended attached drawing, it is described in detail below.
Detailed description of the invention
Illustrate the technical solutions in the embodiments of the present application or in the prior art in order to clearer, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 shows the schematic diagram of host and interface cartoon letters in the router of the prior art;
Fig. 2 shows the schematic diagrams of host and interface cartoon letters in communication equipment provided by the embodiments of the present application;
Fig. 3 shows the flow diagram of the method for message transmissions provided by the embodiments of the present application;
Fig. 4 shows the flow diagram of the specific steps of step S120 in Fig. 3;
Fig. 5 shows the flow diagram of the specific steps of step S121 in Fig. 4;
Fig. 6 shows the part flow diagram of the method for message transmissions provided by the embodiments of the present application;
Fig. 7 shows the schematic block diagram of the device of message transmissions provided by the embodiments of the present application.
Specific embodiment
Referring to Figure 1, Fig. 1 shows the schematic structure of host 110 and interface cartoon letters in the router of the prior art
Block diagram includes a host 110 and multiple interface cards in router, and referring to Figure 1, router may include host 110, interface
Card 1 and interface card 2.Host 110 and interface card 1 connects by physics Gigabit EtherChannel 1, host 110 and interface card 2 pass through physics with
Too channel 2 connects.Host 110 can be Service Processing Unit (Service Processing Unit, abbreviation SPU).
The data that interface card 1 receives can be transferred to host 110, the number to be issued of host 110 by physics Gigabit EtherChannel 1
According to the corresponding physical interface of interface card 1 can also be sent to by physics Gigabit EtherChannel 1;The data that interface card 2 receives can lead to
It crosses physics Gigabit EtherChannel 2 and is transferred to host 110, the data to be issued of host 110 can also be sent to by physics Gigabit EtherChannel 2
The corresponding physical interface of interface card 2.However it is only usually connected with a physics Gigabit EtherChannel between host 110 and each interface card,
The bandwidth of single physics Gigabit EtherChannel is extremely difficult to the requirement of specification of equipment.
Drawbacks described above existing in the prior art, applicants contemplate that being inventor after practicing and carefully studying
It is obtaining as a result, therefore, what the discovery procedure of the above problem and the hereinafter embodiment of the present invention were proposed regarding to the issue above
Solution all should be the contribution that inventor makes the present invention in process of the present invention.
In order to solve the above technical problems, the embodiment of the present application provides the method and device of following message transmissions, below
It will describe in detail in conjunction with attached drawing to the method and device of the message transmissions in the embodiment of the present application.
Embodiment
Fig. 3 is referred to, Fig. 3 shows the flow diagram of the method for the message transmissions of the application embodiment of the method offer,
Specifically comprise the following steps S110 to step S120:
Step S110 determines that the descriptor of the corresponding Gigabit EtherChannel of message to be sent is the description of virtual Gigabit EtherChannel
Symbol.
The descriptor of Gigabit EtherChannel is the descriptor for determining Gigabit EtherChannel identity, the description including physics Gigabit EtherChannel
The descriptor of symbol and virtual Gigabit EtherChannel, wherein the virtual Gigabit EtherChannel includes a plurality of physics Gigabit EtherChannel.Physics ether is logical
The descriptor in road is different from the descriptor of virtual Gigabit EtherChannel, and processor, can be with after receiving the descriptor of Gigabit EtherChannel
Using Gigabit EtherChannel driver according to the difference between the descriptor of physics Gigabit EtherChannel and the descriptor of virtual Gigabit EtherChannel
Place determines the type of Gigabit EtherChannel.Gigabit EtherChannel driver is the drive of the Gigabit EtherChannel hardware for processor end
Dynamic program, Gigabit EtherChannel driver can provide the software on upper layer the interface functions such as configuration hardware, packet sending and receiving, realization pair
The control of physical hardware and the transmission-receiving function of message.The software on upper layer can be Labcard driver program.
Before step S110, Gigabit EtherChannel driver can initialize every physics Gigabit EtherChannel, initial
Descriptor independent is distributed when change for every physics Gigabit EtherChannel.Since designer is known in advance in physics Gigabit EtherChannel
A part be single use, another part is applied in combination, a plurality of physics Gigabit EtherChannel can be combined into one it is virtual
Gigabit EtherChannel.Therefore, designer can be that the configuration of virtual Gigabit EtherChannel is retouched using Gigabit EtherChannel driver by processor
State symbol.When descriptor is respectively configured for physics Gigabit EtherChannel and virtual Gigabit EtherChannel, two different descriptions can be constructed
It accords with using the differentiation as physics Gigabit EtherChannel and virtual Gigabit EtherChannel.
For example, refer to Fig. 2, Gigabit EtherChannel driver can for physics Gigabit EtherChannel 1, physics Gigabit EtherChannel 3, physics with
Too channel 4 and physics Gigabit EtherChannel 5 is initialized, and is physics Gigabit EtherChannel 1, physics Gigabit EtherChannel in initialization
3, physics Gigabit EtherChannel 4 and physics Gigabit EtherChannel 5 distribute respective descriptor.Gigabit EtherChannel driver might as well be set as physics
The descriptor that Gigabit EtherChannel 1 distributes is W_01, and Gigabit EtherChannel driver is that the descriptor that physics Gigabit EtherChannel 3 distributes is W_
03, Gigabit EtherChannel driver is that the descriptor that physics Gigabit EtherChannel 4 distributes is W_04, Gigabit EtherChannel driver be physics with
The descriptor that too channel 5 is distributed is W_05.Wherein, physics Gigabit EtherChannel 1 is single use, and physics Gigabit EtherChannel 1 connects
Mouth card 1 and host 110;Physics Gigabit EtherChannel 3, physics Gigabit EtherChannel 4 and physics Gigabit EtherChannel 5 are applied in combination, physics
Gigabit EtherChannel 3, physics Gigabit EtherChannel 4 and physics Gigabit EtherChannel 5 are combined into virtual Gigabit EtherChannel 120, virtual Gigabit EtherChannel 120
Connecting interface card 2 and host 110.
Therefore, designer can also be physics Gigabit EtherChannel 3, physics using Gigabit EtherChannel driver by processor
The virtual Gigabit EtherChannel 120 that Gigabit EtherChannel 4 and physics Gigabit EtherChannel 5 are combined into distributes descriptor X_01.Due to distribution with
Too the descriptor in channel when, Gigabit EtherChannel driver is just that physics Gigabit EtherChannel and virtual Gigabit EtherChannel are assigned with different type
Descriptor, therefore processor can confirm that the descriptor of the Gigabit EtherChannel is corresponding in the descriptor for receiving Gigabit EtherChannel
Gigabit EtherChannel whether be virtual Gigabit EtherChannel.
Details are provided below in the descriptor for receiving Gigabit EtherChannel for processor:
When host needs to send message to the communication equipment of opposite end, the host computer Labcard driver program in processor is obtained
Message, and obtain from Gigabit EtherChannel driver the descriptor of Gigabit EtherChannel, then Labcard driver program is by Gigabit EtherChannel
Descriptor sends jointly to Gigabit EtherChannel driver, description of the Gigabit EtherChannel driver further according to Gigabit EtherChannel together with message
It accords with and determines whether Gigabit EtherChannel is virtual Gigabit EtherChannel.
If the corresponding Gigabit EtherChannel of the descriptor of Gigabit EtherChannel is not virtual Gigabit EtherChannel, i.e. the descriptor pair of Gigabit EtherChannel
What is answered is physics Gigabit EtherChannel, then message directly can be sent to the physics Gigabit EtherChannel by Gigabit EtherChannel driver, so that
Message is sent to interface card chip by the physics Gigabit EtherChannel, the physical interface for the interface card that interface card chip sends message,
Physical interface is sent to message by physical circuit the communication equipment of opposite end.
If the corresponding Gigabit EtherChannel of the descriptor of Gigabit EtherChannel is virtual Gigabit EtherChannel, S120 is thened follow the steps.
Since Labcard driver program is that the descriptor of Gigabit EtherChannel is sent jointly to Gigabit EtherChannel driving journey together with message
Sequence, therefore, Labcard driver program do not need to be concerned about that the descriptor of Gigabit EtherChannel is the descriptor of physics Gigabit EtherChannel or virtual
Therefore the descriptor of Gigabit EtherChannel can not improve Labcard driver program.
Step S120 sends related attribute according to the message is corresponding, and include from the virtual Gigabit EtherChannel is a plurality of
The physics Gigabit EtherChannel for being used to send the message is selected in physics Gigabit EtherChannel.
The related attribute of the corresponding transmission of message refers to that certain message is different from the property of other messages in forwarding, message
Sending related attribute can be the forwarding core to E-Packet, or the traffic identifier of message.
Processor is in the description that the descriptor for determining Gigabit EtherChannel using Gigabit EtherChannel driver is virtual Gigabit EtherChannel
Fu Hou parses whole physics Gigabit EtherChannels that the virtual Gigabit EtherChannel includes, then according to the related attribute of the transmission of message, from
The transmission that several physics Gigabit EtherChannels carry out message is selected in whole physics Gigabit EtherChannels.
In a specific embodiment, forwarding core when processor can be forwarded according to the message, from described virtual
It is that the message selects and distributes corresponding physics Gigabit EtherChannel in a plurality of physics Gigabit EtherChannel that Gigabit EtherChannel includes.In directly
Multiple messages that (Direct Memory Access, abbreviation DMA) receives same stream from opposite equip. are accessed, and message
It is stored in memory, when some packet storage in multiple messages is in memory, DMA forwards core according to the core number notice of forwarding core
Receive above-mentioned message, it can the pointer of above-mentioned message is sent to forwarding core, goes to send above-mentioned message with notice forwarding core.
For example, referring to Fig. 2, host 110 includes two forwarding cores: (figure is not for forwarding 1 (not shown) of core and forwarding core 2
Show), forwarding core 1 sends the message of a stream, and forwarding core 2 sends the message of another stream.Processor is driven using Gigabit EtherChannel
Program can distribute the physics Gigabit EtherChannel 3 in virtual Gigabit EtherChannel for forwarding core 1, i.e., the message forwarded through forwarding core 1 all passes through
Physics Gigabit EtherChannel 3 is sent to interface card 2;Processor using Gigabit EtherChannel driver can for forwarding core 2 distribute virtually with
Physics Gigabit EtherChannel 4 too in channel, i.e., the message forwarded through forwarding core 2 are all sent to interface card 2 through physics Gigabit EtherChannel 4.
During E-Packeting, the forwarding of message can be carried out by multiple forwarding cores simultaneously.In order to message number
According to sequence kept, the message of same stream is usually to pass through same forwarding core to send, until the message quilt of this stream
It is sent.Therefore, physics Gigabit EtherChannel can be distributed according to forwarding core, each forwarding verification answers a physics ether logical
Road enables multiple forwarding cores to send simultaneously when sending the message of a plurality of stream respectively.
In another embodiment specific implementation mode, Fig. 4 is referred to, the specific steps of step S120 can be such as step S121 to step
Shown in rapid S122:
Step S121 obtains the traffic identifier of the message.
The traffic identifier of message is that the message is different from the traffic identifier of other messages, the preparation method of the traffic identifier of message referring to
Following steps S1211 to step S1212:
Step S1211 obtains the five-tuple of the message.
The five-tuple of message is source IP address, purpose IP address, source port number, destination slogan and the transport layer of message
Protocol number.
Step S1212 carries out Hash operation to the five-tuple of the message, obtains the traffic identifier of the message.
Processor can carry out cryptographic calculation to five-tuple by Gigabit EtherChannel driver, obtain the traffic identifier of message,
Cryptographic calculation is specifically as follows Hash operation, to obtain the cryptographic Hash of message, which can be used as the traffic identifier of message.
Step S122 is from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes according to the traffic identifier
The message selects and distributes the traffic identifier corresponding physics Gigabit EtherChannel.
Next might as well using cryptographic Hash as the traffic identifier of message for continue to illustrate:
The five-tuple of same message flow is consistent, and therefore, calculated cryptographic Hash is also consistent, for different Kazakhstan
The message of uncommon value, can respectively distribute a physics Gigabit EtherChannel.
It can be the message distribution physics Gigabit EtherChannel 4 that cryptographic Hash is A for example, refer to Fig. 2, can be cryptographic Hash be B
Message distribute physics Gigabit EtherChannel 5.
Processor, which also can use Gigabit EtherChannel driver, asks that message distributes corresponding object according to the traffic identifier of message
Manage Gigabit EtherChannel, the traffic identifier of the message of same stream be it is identical, therefore, physics Gigabit EtherChannel is distributed according to traffic identifier,
The message of identical traffic identifier is assigned in same channel, is also kept conducive to the sequence of message sequence.
In a specific embodiment, Fig. 6 is referred to, the method for message transmissions provided by the embodiments of the present application further includes
Following steps S130 to step S140:
Step S130, receiving channel configuration change information.
Channel configuration change information is to change the information of channel parameters, such as change the information of the type in channel or change logical
The information of the configuration in road.
Step S140, whole physics that virtual Gigabit EtherChannel includes according to the channel configuration change information update with
The too channel configuration in channel.
It is changed due to that can not be done in Labcard driver program side, Labcard driver program can make virtual Gigabit EtherChannel
For a physics Gigabit EtherChannel, channel configuration change information is sent out.Include a plurality of physics since virtual Gigabit EtherChannel is practical with
Too channel, therefore in order to which the configuration information to virtual Gigabit EtherChannel is modified, the whole that can include by the virtual Gigabit EtherChannel
The configuration of physics Gigabit EtherChannel is modified.
It is appreciated that above-mentioned all steps can be executed by processor by Gigabit EtherChannel driver.The application mentions
The improvement of the method for communication transmission of confession can concentrate in Gigabit EtherChannel driver, i.e. pair of Gigabit EtherChannel driver
Upper interface and logic can allow the drive software on upper layer not perceive the variation of bottom hardware without modification, improve the party
The reusability of method.
The method of message transmissions provided by the embodiments of the present application is reached by the abstract and load balancing to Gigabit EtherChannel
It is constant to upper presentation logic sum function interface, do not limit the effect of hardware design under.Not to upper presentation logic sum function interface
Become, the software on upper layer can be made not perceive the variation of bottom, can not make any change to the software on upper layer can make upper layer
The new hardware of software adaptation, be multiplexed the software on upper layer can to the greatest extent;Not limiting hardware design under has hardware
Bigger freely degree of performance is formerly only available and is connected to interface card using a physics Gigabit EtherChannel, if the physics Gigabit EtherChannel
Bandwidth is unable to satisfy requirement, can only use the channel of the more high bandwidth of single, and message transmissions provided by the embodiments of the present application
Method allows the channel of a plurality of low bandwidth channel composition higher bandwidth to use, more flexible.
Fig. 7 is referred to, Fig. 7 shows the device of message transmissions provided by the embodiments of the present application, which includes:
Channel obtains module 710, for determining that the descriptor of the corresponding Gigabit EtherChannel of message to be sent is virtual ether
The descriptor in channel.
Channel distribution module 720 includes from the virtual Gigabit EtherChannel for the related attribute of transmission according to the message
A plurality of physics Gigabit EtherChannel in selection one for sending the physics Gigabit EtherChannel of the message.
In a specific embodiment, the channel distribution module 720, specifically for obtaining report belonging to the message
Text flows corresponding forwarding core, is that the message selects and divides from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes
With the corresponding physics Gigabit EtherChannel of the forwarding core;And/or the channel distribution module 720, it is specifically used for obtaining the message
Traffic identifier;It is the message from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes according to the traffic identifier
It selects and distributes the traffic identifier corresponding physics Gigabit EtherChannel.
The channel distribution module 720, specifically for obtaining the five-tuple of the message;To the five-tuple of the message into
Row cryptographic calculation obtains the traffic identifier of the message.
Described device further include: configuration change receiving module, the channel configuration for the request of receiver board card driver is more
Convert to breath;Update module is configured, for whole objects that virtual Gigabit EtherChannel includes according to the configuration change information update
Manage the channel configuration of Gigabit EtherChannel.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
The application also provides a kind of electronic equipment, comprising: processor, memory and bus, the memory storage is
The executable machine readable instructions of processor are stated, when electronic equipment operation, between the processor and the memory
By bus communication, method described in embodiment of the method is executed when the machine readable instructions are executed by the processor.
The application also provides a kind of computer readable storage medium, is stored with computer on the computer readable storage medium
Program executes method described in embodiment of the method when the computer program is run by processor.
The application also provides a kind of computer program product to be made when the computer program product is run on computers
It obtains computer and executes method described in embodiment of the method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it
Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious
The device of multiple embodiments according to the application, architectural framework in the cards, the function of method and computer program product are shown
It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part of the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement
The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used
To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of method of message transmissions, which is characterized in that the described method includes:
The descriptor for determining the corresponding Gigabit EtherChannel of message to be sent is the descriptor of virtual Gigabit EtherChannel, wherein the void
Quasi- Gigabit EtherChannel includes a plurality of physics Gigabit EtherChannel;
Related attribute is sent according to the message is corresponding, from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel is included
Selection one for sending the physics Gigabit EtherChannel of the message.
2. the method according to claim 1, wherein described send related attribute according to the message is corresponding,
The physics ether for being used to send the message is selected from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes
Channel, comprising:
The corresponding forwarding core of message flow belonging to the message is obtained, a plurality of physics ether for including from the virtual Gigabit EtherChannel
It is that the message selects and distributes the forwarding core corresponding physics Gigabit EtherChannel in channel.
3. the method according to claim 1, wherein described send related attribute according to the message is corresponding,
The physics ether for being used to send the message is selected from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes
Channel, comprising:
Obtain the traffic identifier of the message;
It is that the message selects simultaneously from a plurality of physics Gigabit EtherChannel that the virtual Gigabit EtherChannel includes according to the traffic identifier
Distribute the traffic identifier corresponding physics Gigabit EtherChannel.
4. according to the method described in claim 3, it is characterized in that, the traffic identifier for obtaining the message, comprising:
Obtain the five-tuple of the message;
Hash operation is carried out to the five-tuple of the message, obtains the traffic identifier of the message.
5. the method according to claim 1, wherein the method also includes:
Receiving channel configuration change information;
The channel for whole physics Gigabit EtherChannels that virtual Gigabit EtherChannel includes according to the channel configuration change information update
Configuration.
6. method according to claim 1-5, which is characterized in that the method is driven by the Gigabit EtherChannel of processor
Dynamic program executes.
7. a kind of device of message transmissions, which is characterized in that described device includes:
Channel obtains module, for determining that the descriptor of the corresponding Gigabit EtherChannel of message to be sent is retouching for virtual Gigabit EtherChannel
State symbol;
Channel distribution module, for the related attribute of transmission according to the message, include from the virtual Gigabit EtherChannel is a plurality of
The physics Gigabit EtherChannel for being used to send the message is selected in physics Gigabit EtherChannel.
8. device according to claim 7, which is characterized in that
The channel distribution module, specifically for obtaining the corresponding forwarding core of message flow belonging to the message, from described virtual
It is that the message selects and distributes the forwarding core corresponding physics ether in a plurality of physics Gigabit EtherChannel that Gigabit EtherChannel includes
Channel;And/or
The channel distribution module, specifically for obtaining the traffic identifier of the message;According to the traffic identifier, from it is described virtually with
It is that the message selects and to distribute the corresponding physics ether of the traffic identifier logical in a plurality of physics Gigabit EtherChannel that too channel includes
Road.
9. a kind of electronic equipment characterized by comprising processor, storage medium and bus, the storage medium storage is
The executable machine readable instructions of processor are stated, when electronic equipment operation, are led between the processor and the storage medium
Bus communication is crossed, the processor executes the machine readable instructions, executes as described in claim any one of 1-6 when executing
Method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium
Sequence, the computer program execute as the method according to claim 1 to 6 when being run by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910644311.4A CN110365586B (en) | 2019-07-16 | 2019-07-16 | Message transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910644311.4A CN110365586B (en) | 2019-07-16 | 2019-07-16 | Message transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110365586A true CN110365586A (en) | 2019-10-22 |
CN110365586B CN110365586B (en) | 2022-05-17 |
Family
ID=68219999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910644311.4A Active CN110365586B (en) | 2019-07-16 | 2019-07-16 | Message transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365586B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113726737A (en) * | 2021-07-26 | 2021-11-30 | 绿盟科技集团股份有限公司 | Communication method, device and medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060039380A1 (en) * | 2004-08-09 | 2006-02-23 | Cloonan Thomas J | Very high speed cable modem for increasing bandwidth |
CN104521198A (en) * | 2012-08-02 | 2015-04-15 | 思科技术公司 | System and method for virtual ethernet interface binding |
CN104852869A (en) * | 2014-02-14 | 2015-08-19 | 杭州华三通信技术有限公司 | Port aggregation method and device |
CN105991471A (en) * | 2015-02-16 | 2016-10-05 | 杭州华三通信技术有限公司 | Traffic control method of network device, traffic control device and network device |
EP3240213A1 (en) * | 2016-04-25 | 2017-11-01 | Schaffner International AG | Device for synchronization via an ethernet interface |
CN107995119A (en) * | 2017-12-11 | 2018-05-04 | 浙江亿邦通信科技股份有限公司 | Three layers and the realization method and system of above network equipment STP based on port model |
CN108259328A (en) * | 2017-08-30 | 2018-07-06 | 新华三技术有限公司 | Message forwarding method and device |
CN109104363A (en) * | 2018-09-26 | 2018-12-28 | 迈普通信技术股份有限公司 | A kind of message forwarding method and equipment |
CN109167729A (en) * | 2018-09-14 | 2019-01-08 | 迈普通信技术股份有限公司 | Topology discovery method, device and multi-service transport network system |
CN109600321A (en) * | 2017-09-30 | 2019-04-09 | 迈普通信技术股份有限公司 | Message forwarding method and device |
CN109714269A (en) * | 2018-12-19 | 2019-05-03 | 迈普通信技术股份有限公司 | A kind of data processing method and the network equipment |
-
2019
- 2019-07-16 CN CN201910644311.4A patent/CN110365586B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060039380A1 (en) * | 2004-08-09 | 2006-02-23 | Cloonan Thomas J | Very high speed cable modem for increasing bandwidth |
CN104521198A (en) * | 2012-08-02 | 2015-04-15 | 思科技术公司 | System and method for virtual ethernet interface binding |
CN104852869A (en) * | 2014-02-14 | 2015-08-19 | 杭州华三通信技术有限公司 | Port aggregation method and device |
CN105991471A (en) * | 2015-02-16 | 2016-10-05 | 杭州华三通信技术有限公司 | Traffic control method of network device, traffic control device and network device |
EP3240213A1 (en) * | 2016-04-25 | 2017-11-01 | Schaffner International AG | Device for synchronization via an ethernet interface |
CN108259328A (en) * | 2017-08-30 | 2018-07-06 | 新华三技术有限公司 | Message forwarding method and device |
CN109600321A (en) * | 2017-09-30 | 2019-04-09 | 迈普通信技术股份有限公司 | Message forwarding method and device |
CN107995119A (en) * | 2017-12-11 | 2018-05-04 | 浙江亿邦通信科技股份有限公司 | Three layers and the realization method and system of above network equipment STP based on port model |
CN109167729A (en) * | 2018-09-14 | 2019-01-08 | 迈普通信技术股份有限公司 | Topology discovery method, device and multi-service transport network system |
CN109104363A (en) * | 2018-09-26 | 2018-12-28 | 迈普通信技术股份有限公司 | A kind of message forwarding method and equipment |
CN109714269A (en) * | 2018-12-19 | 2019-05-03 | 迈普通信技术股份有限公司 | A kind of data processing method and the network equipment |
Non-Patent Citations (1)
Title |
---|
ZHAOGENG LI,ETC: "VMS: Traffic balancing based on virtual switches in datacenter networks", 《2017 IEEE 25TH INTERNATIONAL CONFERENCE ON NETWORK PROTOCOLS (ICNP)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113726737A (en) * | 2021-07-26 | 2021-11-30 | 绿盟科技集团股份有限公司 | Communication method, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN110365586B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4150336B2 (en) | Configuration to create multiple virtual queue pairs from compressed queue pairs based on shared attributes | |
CN104734931B (en) | Link establishing method and device between a kind of virtual network function | |
CN103546299B (en) | Use the 50Gb/s Ethernet of serializer/de-serializers passage | |
CN105094956B (en) | A kind of method for distributing business and device based on channel separation | |
CN104272684A (en) | Dynamic service insertion in a fabric switch | |
CN101692652B (en) | Method and device for preventing interrupt of traffics in aggregation link | |
US20140282611A1 (en) | Distributed and scaled-out network switch and packet processing | |
CN104580011B (en) | A kind of data forwarding device and method | |
CN106603550B (en) | A kind of Network Isolation method and device | |
CN102148768B (en) | Message forwarding method and device | |
CN103534989A (en) | Priority based flow control in a distributed fabric protocol (DFP) switching network architecture | |
CN110099014A (en) | The method and host of Message processing in cloud computing system | |
CN103534998A (en) | Distributed fabric protocol (DFP) switching network architecture | |
CN101072158A (en) | Method for releasing and processing virtual circuit information and supplier edge device | |
CN106713378A (en) | Method and system for realizing service provision by multiple application servers | |
CN114374634A (en) | Message forwarding method and network equipment | |
CN106130901A (en) | Method, device and the system of a kind of data transmission | |
US10193773B2 (en) | Methods, systems, and computer readable media for distributed network packet statistics collection in a test environment | |
CN108768667A (en) | A method of for internuclear network communication in multi-core processor piece | |
CN106713010B (en) | A kind of communication means and system of avionics network system | |
CN110365586A (en) | The method and device of message transmissions | |
CN103795621B (en) | Virtual machine data exchange method and device, and physical host | |
CN105721329A (en) | Shunting method, OpenFlow switch, controller and shunting system | |
CN114050998A (en) | Method, device, electronic equipment and medium for realizing remote direct memory access | |
CN106209559A (en) | A kind of method and apparatus setting up Multicast Tunnel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |