CN109327393A - Network exchange destination port determines method, apparatus and the interchanger based on the device - Google Patents

Network exchange destination port determines method, apparatus and the interchanger based on the device Download PDF

Info

Publication number
CN109327393A
CN109327393A CN201811370028.9A CN201811370028A CN109327393A CN 109327393 A CN109327393 A CN 109327393A CN 201811370028 A CN201811370028 A CN 201811370028A CN 109327393 A CN109327393 A CN 109327393A
Authority
CN
China
Prior art keywords
reduced value
forwarding
network
destination
destination port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811370028.9A
Other languages
Chinese (zh)
Other versions
CN109327393B (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.)
Information Engineering University of PLA Strategic Support Force
Original Assignee
Information Engineering University of PLA Strategic Support Force
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 Information Engineering University of PLA Strategic Support Force filed Critical Information Engineering University of PLA Strategic Support Force
Priority to CN201811370028.9A priority Critical patent/CN109327393B/en
Publication of CN109327393A publication Critical patent/CN109327393A/en
Application granted granted Critical
Publication of CN109327393B publication Critical patent/CN109327393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The invention belongs to network communication technology fields, in particular to a kind of network exchange destination port determines method, apparatus and the interchanger based on the device, this method includes: receiving data to be forwarded frame, and network protocol type, destination address and the source port number of data frame are obtained, generate the reduced value comprising destination address and source port number;Corresponding hashed value is obtained by reduced value, and using hashed value as address, the forwarding-table item for being stored with the address is read in default forwarding table;It extracts in forwarding-table item and has learnt reduced value and destination port number, the reduced value is matched with the reduced value that learnt, if successful match, using the destination port number as the destination port for being used to forward the data to be forwarded frame, if non-successful match, output it fails to match notice.The present invention can alleviate increased costs problem when multiple data frames existing in the prior art using multiple network agreement mix forwarding, further promote the performance of data communication in SDN network framework.

Description

Network exchange destination port determines method, apparatus and the interchanger based on the device
Technical field
The invention belongs to network communication technology field, in particular to a kind of network exchange destination port determines method, apparatus And the interchanger based on the device.
Background technique
Forwarding table is also forwarding database or routing directory.Bridge forwards frame by forwarding table, and forwarding table is two layers of net The design of one of commonly used core component of network exchange chip, forwarding table is answered just in a certain network protocol or a certain kind It is only applicable to two layers of Ethernet of forwarding with scene, such as mac forwarding table, cannot achieve the forwarding of other protocol frames.
Software defined network (Software Defined Network, SDN) is a kind of new network wound of Emulex network New architecture, is a kind of implementation of network virtualization, and core technology OpenFlow is by by network equipment control plane and number It is separated according to face, to realize the flexible control of network flow, network is made to become more intelligent as pipeline.SDN network The control function of the network equipment and forwarding capability can be separated, and then control function is all focused on to long-range controller On, and the network equipment is only responsible for the forwarding of data.Therefore, hybrid network protocol data frame may be implemented using SDN switch Forwarding.But need to change existing network structure using SDN network, lead to multiple data frames using multiple network agreement Increased costs when mixing forwarding.
Summary of the invention
For this purpose, the present invention, which provides a kind of network exchange destination port, determines method, apparatus and the interchanger based on the device, To alleviate increased costs problem when multiple data frames existing in the prior art using multiple network agreement mix forwarding, into One step promotes the performance of data communication in SDN network framework.
According to design scheme provided by the present invention, a kind of network exchange destination port determines method, includes following content:
Data to be forwarded frame is received, and obtains network protocol type, destination address and the source port number of data frame, generates packet Reduced value containing destination address and source port number;
Corresponding hashed value is obtained by reduced value, and using hashed value as address, has read storage in default forwarding table State the forwarding-table item of address;
It extracts in forwarding-table item and has learnt reduced value and destination port number, the reduced value has been learnt into reduced value with described It is matched, if successful match, using the destination port number as the destination port for being used to forward the data to be forwarded frame, If non-successful match, output it fails to match notice.
It is above-mentioned, according to reduced value create-rule corresponding with the network protocol type, generate comprising destination address and The reduced value of source port number, it is Ethernet protocol, RapidIO that network protocol type is at least preset in the reduced value create-rule Agreement and the corresponding destination address storage of optical-fibre channel Fiber channel agreement.
Above-mentioned, reduced value is calculated using Hash algorithm to obtain corresponding hashed value.
Preferably, the Hash algorithm is CRC32 algorithm, or is CRC16 algorithm, or is complementation operation.
Above-mentioned, presetting includes multiple forwarding-table items in forwarding table, includes at least in each forwarding-table item and has learnt to compare Value and destination slogan.
Preferably, having learnt reduced value bit wide is 49, and bit wide of the destination slogan in the forwarding-table item is by purpose Port number determines.
A kind of network exchange destination port determining device includes generation module, read module and matching module, wherein
Generation module for receiving data to be forwarded frame, and obtains network protocol type, destination address and the source of data frame Port numbers generate the reduced value comprising destination address and source port number;
Read module, for obtaining corresponding hashed value by reduced value, and using hashed value as address, in default forwarding table Read the forwarding-table item for being stored with the address;
Matching module has learnt reduced value and destination port number for extracting in forwarding-table item, by the reduced value and institute It states and has learnt reduced value and matched, if successful match, using the destination port number as being used to forward the number to be forwarded According to the destination port of frame, if non-successful match, output it fails to match notice.
It is raw according to reduced value create-rule corresponding with the network protocol type in generation module in above-mentioned device At the reduced value comprising destination address and source port number, reduced value create-rule is to preset content, which generates rule It is respectively Ethernet protocol, RapidIO agreement and optical-fibre channel Fiber channel that network protocol type is at least preset in then The corresponding destination address storage of agreement.
It include multiple reading submodules in read module, each reading submodule is and generation module in above-mentioned device It is connected with matching module, each reading submodule includes that hash function generates submodule and list item reading submodule, wherein
Hash function generates submodule, for being calculated using Hash algorithm the reduced value received, acquisition pair It answers hashed value and feeds back to list item reading submodule;
List item reading submodule, for according to the hashed value that receives and using hashed value as address, in default forwarding table Read the forwarding-table item for being stored with the address.
A kind of interchanger includes following content: resolver, port determining device and switch, wherein
Resolver, the data to be forwarded frame for obtaining parsing are sent to port determining device;
Port determining device, for extracting its destination slogan according to the data frame received and being sent to switch;
Switch, for the data to be forwarded frame received to be carried out forwarded according to destination slogan;
Port determining device is realized using above-mentioned network exchange destination port determining device.
Beneficial effects of the present invention:
The present invention is generated, matching and list item determine to export target side in network data repeating process by reduced value Slogan alleviates the problem of mixing increased costs when forwarding using multiple data frames of multiple network agreement in the prior art, can To support process of tabling look-up using the forwarding of multiple data frames of multiple network agreement simultaneously, and then determine described wait turn for forwarding The destination slogan of data frame is sent out, destination port determining device can be applied on the node of existing network structure, no It needs to change existing whole network structure, avoids due to being assisted caused by changing existing network structure using multiple network Multiple data frames of view mix the problem of increased costs when forwarding, and reaching reduces the multiple data frames for applying multiple network agreement The technical effect of cost, promotes data communication feature in SDN network framework, to SDN network architecture technology and hair when mixing forwarding Exhibition has important directive significance.
Detailed description of the invention:
Fig. 1 is SDN network configuration diagram in embodiment;
Fig. 2 is that method flow schematic diagram is determined in embodiment;
Fig. 3 is one of determining device schematic diagram in embodiment;
Fig. 4 is two of determining device schematic diagram in embodiment;
Fig. 5 is two of determining device schematic diagram in embodiment;
Fig. 6 is interchanger schematic diagram in embodiment.
Specific embodiment:
To make the object, technical solutions and advantages of the present invention clearer, understand, with reference to the accompanying drawing with technical solution pair The present invention is described in further detail.
Currently, forwarding table is one of commonly used core component of double layer network exchange chip, the design needle of forwarding table For a certain network protocol or a certain application scenarios, as mac forwarding table is only applicable to two layers of Ethernet of forwarding, Wu Fashi The forwarding of other existing protocol frames.SDN network can separate the control function of the network equipment and forwarding capability, and then will control function It can all focus on long-range controller, and the network equipment is only responsible for the forwarding of data.As shown in Figure 1, with SDN network framework Including being illustrated for a controller and three network equipments.In Fig. 1, SDN network structure includes: 14 He of controller Three network equipments, three network equipments are respectively as follows: the network equipment 11, the network equipment 12 and the network equipment 13.The network equipment 11, It is communicated two-by-two between the network equipment 12 and the network equipment 13.Controller 14 is respectively to the network equipment 11,12 and of the network equipment The network equipment 13 is remotely controlled.The forwarding of 13 network equipment 11, the network equipment 12 and the network equipment responsible data.Citing Illustrate, controller 14 can control the network equipment 11 and support ethernet network agreement, also can control the support of the network equipment 11 RapidIO agreement can also control the network equipment 11 and support Fiber channel agreement.Therefore, use SDN switch can be with Realize the forwarding of hybrid network protocol data frame.But need to change existing network structure using SDN network, cause to apply Multiple data frames of multiple network agreement mix the problem of increased costs when forwarding, in consideration of it, the embodiment of the present invention, referring to figure Shown in 2, a kind of network exchange destination port is provided and determines method, includes following content:
S101, data to be forwarded frame is received, and obtains network protocol type, destination address and the source port number of data frame, Generate the reduced value comprising destination address and source port number;
S102, corresponding hashed value is obtained by reduced value, and using hashed value as address, reads storage in default forwarding table There is the forwarding-table item of the address;
Reduced value and destination port number are learnt in S103, extraction forwarding-table item, the reduced value have been learnt with described Reduced value is matched, if successful match, using the destination port number as the mesh for being used to forward the data to be forwarded frame Port, if non-successful match, output it fails to match notice.
For applying multiple data frames of multiple network agreement to mix forwarding in SDN network framework, generated by reduced value, Matching and list item determine to export destination port number, can be effectively relieved existing in the prior art using multiple network agreement Multiple data frames mix the technical issues of increased costs when forwarding, and having reached reduces the multiple data for applying multiple network agreement The technical effect of cost when frame mixing forwarding.
For reduced value create-rule, in further embodiment of the present invention, according to corresponding with the network protocol type Reduced value create-rule generates the reduced value comprising destination address and source port number, at least presets in the reduced value create-rule Having network protocol type is Ethernet protocol, RapidIO agreement and the corresponding purpose of optical-fibre channel Fiber channel agreement Address storage.If the network protocol type is Ethernet protocol, destination address is purpose MAC Address.If the network association View type is RapidIO agreement, then destination address is the address ID of RapidIO mesh.If the network protocol type is Fiber Channel agreement, then destination address is the address ID of Fiber channel mesh.Illustratively, the bit wide of reduced value can be 49 Position, by presetting multiple reduced value create-rules, multiple reduced value create-rules can be as shown in table 1.
Table 1
From table 1 it follows that the 1st of the reduced value is extremely if the network protocol type is Ethernet protocol 48th can be used to store the destination address, and the 49th of the reduced value can be used to store number 0;If the network Protocol type is RapidIO agreement, then the 1st of the reduced value can be used to store the destination address, institute to the 16th Each for stating in the 17th to the 32nd of reduced value can be used to store number 0, and the 33rd of the reduced value to the 47 can be used to store the source port number, and the 48th of the reduced value can be used to store number 0, the reduced value 49th can be used to store number 1;If the network protocol type is Fiber channel agreement, the reduced value 1st to the 32nd can be used to store the destination address, and the 33rd to the 47th of the reduced value can be used to store The source port number, the 48th of the reduced value can be used to store number 1, and the 49th of the reduced value can be used to deposit Storage number 1.
For the obtained reduced value of generation, in further embodiment of this invention, reduced value is counted using Hash algorithm It calculates to obtain corresponding hashed value.Processing is carried out to the reduced value using preset Hash algorithm and obtains hashed value.Preferably, Hash algorithm can be CRC32 algorithm or CRC16 algorithm, or be other methods for calculating hashed value, such as: complementation fortune It calculates.
Further, presetting in forwarding table in the embodiment of the present invention may include multiple forwarding-table items, each forwarding-table item In include at least learnt reduced value and destination slogan.Preferably, having learnt reduced value bit wide is 49, and destination slogan exists Bit wide in the forwarding-table item is determined by destination port quantity.Illustratively, if the quantity of the destination port is greater than 2N-1, And it is less than or equal to 2N, wherein N is positive integer, then bit wide of the destination slogan in the forwarding-table item is N.Citing Illustrate, if the quantity of destination port is 15, available 2315 < 2 of <4, so, destination slogan is in the forwarding-table item Bit wide be 4.Therefore, the bit wide of forwarding-table item (has learnt position of the bit wide plus destination slogan of reduced value for 53 It is wide).
Determine that method, the embodiment of the present invention also provide a kind of determining dress of network exchange destination port based on above-mentioned port It sets, it is shown in Figure 3, it include generation module 101, read module 102 and matching module 103, wherein
Generation module 101 for receiving data to be forwarded frame, and obtains the network protocol type of data frame, destination address And source port number, generate the reduced value comprising destination address and source port number;
Read module 102, for obtaining corresponding hashed value by reduced value, and using hashed value as address, in default forwarding The forwarding-table item for being stored with the address is read in table;
Matching module 103 has learnt reduced value and destination port number for extracting in forwarding-table item, by the reduced value with The reduced value that learnt is matched, if successful match, the destination port number is described to be forwarded as being used to forward The destination port of data frame, if non-successful match, output it fails to match notice.
By redefining the content of forwarding-table item, port determining device is applied into the node in network structure, without changing Become existing whole network structure, so that it may realize that the forwarding of multiple data frames using multiple network agreement is tabled look-up process, tool There is the advantages of versatile, easy transplanting, easily realization and lightweight.Simultaneously as avoiding carrying out existing whole network structure Change, so, dispose very convenient, saving time cost and human cost.
Further, in above-mentioned device, 101 in generation module, according to comparison corresponding with the network protocol type It is worth create-rule, generates the reduced value comprising destination address and source port number, reduced value create-rule is to preset content, should It is respectively Ethernet protocol, RapidIO agreement and optical-fibre channel that network protocol type is at least preset in reduced value create-rule The corresponding destination address storage of Fiber channel agreement.
Further, as shown in figure 4, including multiple reading submodules in read module 102, such as 23,24 and 25 in figure, Each reading submodule is connect with generation module 21 and matching module 22, and each reading submodule includes that hash function generates son Module (31,33,35 in such as figure) and list item reading submodule (32,34,36 in such as figure), wherein
Hash function generates submodule, for being calculated using Hash algorithm the reduced value received, acquisition pair It answers hashed value and feeds back to list item reading submodule;
List item reading submodule, for according to the hashed value that receives and using hashed value as address, in default forwarding table Read the forwarding-table item for being stored with the address.
In determining device embodiment in port of the present invention, generation module is used to receive the A network protocol class of data to be forwarded frame Type, destination address and source port number, according to reduced value create-rule corresponding with A network protocol type, generating includes the mesh Address and the source port number reduced value;It is also used for receiving B network protocol type, the destination of data to be forwarded frame simultaneously Location and source port number, according to reduced value create-rule corresponding with B network protocol type, generating includes the destination address and institute State the reduced value of source port number.Realize while supporting process of tabling look-up using the forwarding of multiple data frames of multiple network agreement, into And determining the destination slogan for forwarding the data to be forwarded frame, destination port determining device can be applied existing Network structure node on, have no need to change existing whole network structure, institute is to avoid due to changing existing network knot The problem of mixing increased costs when forwarding using multiple data frames of multiple network agreement caused by structure, therefore, alleviates The technical issues of multiple data frames existing in the prior art using multiple network agreement mix increased costs when forwarding, reaches The technical effect of cost when reducing multiple data frames mixing forwarding using multiple network agreement is arrived.Further, referring to Shown in Fig. 5, includes three read modules with port determining device, i.e., be illustrated for the list item determination unit in figure, compared It is worth generation module 21, matching module 22 and three list item determination units;Three list item determination units are respectively as follows: list item determination unit 23, list item determination unit 24 and list item determination unit 26.List item determination unit 23 may include: that hash function generates submodule 31 With reading submodule 32.List item determination unit 24 may include: that hash function generates submodule 33 and reading submodule 34.List item Determination unit 26 may include: that hash function generates submodule 37 and reading submodule 38.
It is shown in Figure 6 the present invention also provides a kind of interchanger based on above-mentioned port determining device, in following Hold: resolver 41, port determining device 42 and switch 43, wherein
Resolver 41, the data to be forwarded frame for obtaining parsing are sent to port determining device;
Port determining device 42, for extracting its destination slogan according to the data frame received and being sent to exchange dress It sets;
Switch 43, for the data to be forwarded frame received to be carried out forwarded according to destination slogan;
Port determining device 41 is realized using the network exchange destination port determining device in above-described embodiment, completes SDN The mixing of the multiple data frames of multiple network agreement forwards demand in the network architecture, reduces SDN network lower deployment cost, easy to accomplish, It is versatile, it easily transplants, avoids the entirety change to existing network infrastructure, save manpower and time cost.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limit the scope of the invention up to formula and numerical value.
The technical effect and preceding method embodiment phase of device provided by the embodiment of the present invention, realization principle and generation Together, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without It is as limitation, therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, section or code of table, a part of the module, section or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of network exchange destination port determines method, which is characterized in that include following content:
Data to be forwarded frame is received, and obtains network protocol type, destination address and the source port number of data frame, generating includes mesh Address and source port number reduced value;
Corresponding hashed value is obtained by reduced value, and using hashed value as address, reads and is stored with describedly in default forwarding table The forwarding-table item of location;
It extracts in forwarding-table item and has learnt reduced value and destination port number, the reduced value and the reduced value that learnt are carried out Matching, if successful match, using the destination port number as the destination port for being used to forward the data to be forwarded frame, if not Successful match, then output it fails to match notice.
2. network exchange destination port according to claim 1 determines method, which is characterized in that assisted according to the network The corresponding reduced value create-rule of type is discussed, the reduced value comprising destination address and source port number is generated, which generates rule It is Ethernet protocol, RapidIO agreement and optical-fibre channel Fiber channel agreement that network protocol type is at least preset in then Corresponding destination address storage.
3. network exchange destination port according to claim 1 determines method, which is characterized in that utilize Hash algorithm pair Reduced value is calculated to obtain corresponding hashed value.
4. network exchange destination port according to claim 3 determines method, which is characterized in that the Hash algorithm is CRC32 algorithm, or be CRC16 algorithm, or be complementation operation.
5. network exchange destination port according to claim 1 determines method, which is characterized in that include in default forwarding table Multiple forwarding-table items include at least in each forwarding-table item and have learnt reduced value and destination slogan.
6. network exchange destination port according to claim 5 determines method, which is characterized in that learnt reduced value bit wide It is 49, bit wide of the destination slogan in the forwarding-table item is determined by destination port quantity.
7. a kind of network exchange destination port determining device, which is characterized in that include generation module, read module and matching mould Block, wherein
Generation module for receiving data to be forwarded frame, and obtains network protocol type, destination address and the source port of data frame Number, generate the reduced value comprising destination address and source port number;
Read module is read in default forwarding table for obtaining corresponding hashed value by reduced value, and using hashed value as address It is stored with the forwarding-table item of the address;
Matching module has learnt reduced value and destination port number for extracting in forwarding-table item, by the reduced value and it is described Study reduced value is matched, if successful match, using the destination port number as being used to forward the data to be forwarded frame Destination port, if non-successful match, output it fails to match notice.
8. network exchange destination port determining device according to claim 7, which is characterized in that in generation module, according to Reduced value create-rule corresponding with the network protocol type generates the reduced value comprising destination address and source port number, right Ratio create-rule is to preset content, and being at least preset with network protocol type in the reduced value create-rule is respectively ether FidonetFido, RapidIO agreement and the corresponding destination address storage of optical-fibre channel Fiber channel agreement.
9. network exchange destination port determining device according to claim 7, which is characterized in that comprising more in read module A reading submodule, each reading submodule are connect with generation module and matching module, and each reading submodule includes Hash Function generates submodule and list item reading submodule, wherein
Hash function generates submodule, for calculating using Hash algorithm the reduced value received, obtains corresponding dissipate Train value simultaneously feeds back to list item reading submodule;
List item reading submodule, for being read in default forwarding table according to the hashed value received and using hashed value as address It is stored with the forwarding-table item of the address.
10. a kind of interchanger, which is characterized in that it include following content: resolver, port determining device and switch, In,
Resolver, the data to be forwarded frame for obtaining parsing are sent to port determining device;
Port determining device, for extracting its destination slogan according to the data frame received and being sent to switch;
Switch, for the data to be forwarded frame received to be carried out forwarded according to destination slogan;
Port determining device is realized using network exchange destination port determining device as claimed in claim 7.
CN201811370028.9A 2018-11-17 2018-11-17 Network switching destination port determining method and device and switch based on device Active CN109327393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811370028.9A CN109327393B (en) 2018-11-17 2018-11-17 Network switching destination port determining method and device and switch based on device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811370028.9A CN109327393B (en) 2018-11-17 2018-11-17 Network switching destination port determining method and device and switch based on device

Publications (2)

Publication Number Publication Date
CN109327393A true CN109327393A (en) 2019-02-12
CN109327393B CN109327393B (en) 2021-01-22

Family

ID=65258313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811370028.9A Active CN109327393B (en) 2018-11-17 2018-11-17 Network switching destination port determining method and device and switch based on device

Country Status (1)

Country Link
CN (1) CN109327393B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113206807A (en) * 2020-01-31 2021-08-03 伊姆西Ip控股有限责任公司 Method for information processing, electronic device, and computer storage medium
CN114244702A (en) * 2022-02-23 2022-03-25 苏州浪潮智能科技有限公司 Switch configuration management method and device, electronic equipment and storage medium
CN114500654A (en) * 2022-02-23 2022-05-13 石家庄通合电子科技股份有限公司 Data forwarding device, power module and data forwarding method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827038A (en) * 2010-05-24 2010-09-08 杭州华三通信技术有限公司 Distributed equipment and method for forwarding message in distributed equipment
CN102664816A (en) * 2012-05-30 2012-09-12 迈普通信技术股份有限公司 Device and method for quickly searching MPLS (multi-protocol label switching) forwarding database
CN102957600A (en) * 2011-08-19 2013-03-06 中兴通讯股份有限公司 Method and device for data message forwarding
CN104168201A (en) * 2014-08-06 2014-11-26 福建星网锐捷网络有限公司 Multipath forwarding method and device
US20160234104A1 (en) * 2013-09-20 2016-08-11 Nokia Solutions And Networks Management International Gmbh Handling of signaling messages on the data plane in a software-defined architecture
CN108521378A (en) * 2018-04-23 2018-09-11 天津芯海创科技有限公司 Retransmission method, device and the network switching equipment of heterogeneous protocol message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827038A (en) * 2010-05-24 2010-09-08 杭州华三通信技术有限公司 Distributed equipment and method for forwarding message in distributed equipment
CN102957600A (en) * 2011-08-19 2013-03-06 中兴通讯股份有限公司 Method and device for data message forwarding
CN102664816A (en) * 2012-05-30 2012-09-12 迈普通信技术股份有限公司 Device and method for quickly searching MPLS (multi-protocol label switching) forwarding database
US20160234104A1 (en) * 2013-09-20 2016-08-11 Nokia Solutions And Networks Management International Gmbh Handling of signaling messages on the data plane in a software-defined architecture
CN104168201A (en) * 2014-08-06 2014-11-26 福建星网锐捷网络有限公司 Multipath forwarding method and device
CN108521378A (en) * 2018-04-23 2018-09-11 天津芯海创科技有限公司 Retransmission method, device and the network switching equipment of heterogeneous protocol message

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIGANGDONG等: ""The research on Designs of Multiple Flow Table in the OpenFlow Protocol"", 《IEEE》 *
陈伟宏等: ""基于多协议的端口转发技术研究"", 《控制工程》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113206807A (en) * 2020-01-31 2021-08-03 伊姆西Ip控股有限责任公司 Method for information processing, electronic device, and computer storage medium
CN113206807B (en) * 2020-01-31 2022-12-09 伊姆西Ip控股有限责任公司 Method for information processing, electronic device, and computer storage medium
CN114244702A (en) * 2022-02-23 2022-03-25 苏州浪潮智能科技有限公司 Switch configuration management method and device, electronic equipment and storage medium
CN114500654A (en) * 2022-02-23 2022-05-13 石家庄通合电子科技股份有限公司 Data forwarding device, power module and data forwarding method
CN114244702B (en) * 2022-02-23 2022-05-31 苏州浪潮智能科技有限公司 Switch configuration management method and device, electronic equipment and storage medium
CN114500654B (en) * 2022-02-23 2024-03-22 石家庄通合电子科技股份有限公司 Data forwarding device, power module and data forwarding method

Also Published As

Publication number Publication date
CN109327393B (en) 2021-01-22

Similar Documents

Publication Publication Date Title
KR101913490B1 (en) Flow table management method and relevant device and system
CN106664261B (en) A kind of methods, devices and systems configuring flow entry
CN106790104B (en) IP communication and FC-AE-1553 communication means between multi-protocols emerging system, node
CN109327393A (en) Network exchange destination port determines method, apparatus and the interchanger based on the device
US20210250288A1 (en) Method for Forwarding Packet in Hybrid Network, Device, and System
CN102857414A (en) Forwarding table writing method and device and message forwarding method and device
CN105049359A (en) Technologies for distributed routing table lookup
CN104899085B (en) A kind of data processing method and device
CN103036792B (en) Transmitting and scheduling method for maximizing minimal equity multiple data streams
CN104871145A (en) Memory sharing in network device
CN103931147A (en) Path diversity in a connection-oriented network
CN104468357A (en) Method for multistaging flow table, and method and device for processing multistage flow table
EP3559833B1 (en) Best-efforts database functions
CN104811382A (en) Data packet processing method and device
CN109962850A (en) The method and controller and computer readable storage medium of realization Segment routing
EP3560148B1 (en) Database functions-defined network switch
CN107547391A (en) A kind of message transmitting method and device
US11082358B2 (en) Network path measurement method, apparatus, and system
US11206216B2 (en) Flexible ethernet frame forwarding method and apparatus
CN111147372A (en) Downlink message sending and forwarding method and device
CN104639440A (en) Method and device for realizing third tier forwarding and packaging protocol information in Internet
US9509613B1 (en) Mechanisms for deadlock avoidance support in network fabrics
CN105959224B (en) High speed route lookup device and method based on bit vectors
US10374899B2 (en) Method and device for reporting OpenFLow switch capability
US9628392B2 (en) Method and device for forwarding message

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