CN109995678A - Message transmitting method and device - Google Patents

Message transmitting method and device Download PDF

Info

Publication number
CN109995678A
CN109995678A CN201711483136.2A CN201711483136A CN109995678A CN 109995678 A CN109995678 A CN 109995678A CN 201711483136 A CN201711483136 A CN 201711483136A CN 109995678 A CN109995678 A CN 109995678A
Authority
CN
China
Prior art keywords
transmission mode
chip
message
type
module
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
CN201711483136.2A
Other languages
Chinese (zh)
Other versions
CN109995678B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201711483136.2A priority Critical patent/CN109995678B/en
Publication of CN109995678A publication Critical patent/CN109995678A/en
Application granted granted Critical
Publication of CN109995678B publication Critical patent/CN109995678B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/65Re-configuration of fast packet switches

Abstract

The application provides a kind of message transmitting method and device, is related to the communications field, is able to solve application module and modifies the problem of development difficulty that the process of setting brings heavy workload, and will lead to application module increases repeatedly in this way.This method is applied to interchanger, and the interchanger includes one for being adapted to the adaptation module and at least one application module of exchange chip;It is stored with that chip type, the chip type are corresponding to send mode, at least one type of message for sending mode that can transmit at least one and corresponding chip setting information at least one in the adaptation module;This method comprises: the adaptation module, which obtains, send mode on the chip type and target of the exchange chip;Search chip setting information corresponding with mode is sent on the chip type and the target;The chip setting information is sent to the exchange chip, so that the exchange chip is configured according to the chip setting information.

Description

Message transmitting method and device
Technical field
This application involves the communications field more particularly to a kind of message transmitting methods and device.
Background technique
Currently, interchanger is usually by exchange chip and central processing unit (Central Processing Unit, CPU) group At, wherein exchange chip is responsible for the forwarding of message, and CPU is responsible for managing and controlling the behavior that exchange chip E-Packets.For handing over The special packet that application module indicates in the message or CPU that chip can not be handled is changed, exchange chip is needed these message up sending CPU。
Exchange chip deliver newspaper on CPU text on send mode varied.The exchange chip of different vendor's production is same Send mode all may be different in the exchange chip support of the different series of one producer production, for example, the friendship of some manufacturers production Change chip support on send the mode to include layer two (L2) forwarding table, wide shield (BroadShield) and accesses control list (Access Control List, ACL) etc., it includes protocol Data Unit that mode is sent in the exchange chip support of some manufacturers production (Protocol Data Unit, PDU) and ACL etc..Wherein, an exchange chip can be supported to send mode on a variety of, work as application On module instruction exchange chip when sending different types of message, exchange chip may send text of delivering newspaper in mode using on different.
If application module instruction exchange chip is using text of delivering newspaper in mode is sent on certain, which needs to modify Itself setting, and generate chip setting information corresponding with mode is given on this and send the chip setting information to exchange chip, So that the exchange chip configured according to the chip setting information can successfully on give the message.If the exchange chip uses Text of delivering newspaper in mode is sent on another kind, then application module, which needs to modify again, itself is arranged and generates core corresponding with mode is above sent Piece setting information.The process that application module modifies setting repeatedly in this way brings heavy workload, and will lead to application module Development difficulty increase.
Summary of the invention
The application provides a kind of message transmitting method and device, is able to solve the mistake that application module modifies setting repeatedly in this way The problem of journey brings heavy workload, and the development difficulty that will lead to application module increases.
In order to achieve the above objectives, the application adopts the following technical scheme that
In a first aspect, the application provides the method applied to interchanger, the interchanger includes one and hands over for being adapted to Change the adaptation module and at least one application module of chip;Chip type, the chip type are stored in the adaptation module It is corresponding that mode, at least one type of message for sending mode that can transmit at least one and corresponding are sent at least one Chip setting information;The described method includes: the adaptation module obtains the side of sending on the chip type and target of the exchange chip Formula;Search chip setting information corresponding with mode is sent on the chip type and the target;It is sent to the exchange chip The chip setting information, so that the exchange chip is configured according to the chip setting information.
Second aspect, the embodiment of the present application provide a kind of message transmitting device, and described device is set to interchanger, for fitting It is corresponding at least one to be stored with chip type, the chip type in described device for exchange chip with the interchanger Send mode, at least one type of message for sending mode that can transmit at least one and corresponding chip setting information;Institute Stating device includes: acquisition module, send mode on the chip type and target for obtaining the exchange chip;Searching module is used Send mode corresponding chip setting information in the chip type of the acquisition module acquisition and the target in searching;Hair Module is sent, for sending the chip setting information that the searching module is searched to the exchange chip, so that the exchange Chip is configured according to the chip setting information.
The third aspect, the embodiment of the present application provide a kind of interchanger, which includes: memory, communication interface and place Device is managed, the processor and the communication interface are coupled to the processor, and the processor executes generation for storing computer Code, the processor execute the biography of message described in above-mentioned first aspect for executing the computer executable code control interchanger Transmission method, the communication interface are transmitted for the data of the interchanger and external equipment.
Fourth aspect, the application provide a kind of computer readable storage medium, deposit in the computer readable storage medium Instruction is contained, when described instruction is run on switches, so that the interchanger executes message described in above-mentioned first aspect Transmission method.
5th aspect, the application provides a kind of computer program product comprising instruction, when the computer program product When running on switches, so that the interchanger executes message transmitting method described in above-mentioned first aspect.
Message transmitting method and device provided by the present application, with exchange chip in the prior art to application module transmitting message On when mode being sent to change, then need application module to modify itself setting, and generate chip corresponding with mode is sent on this and set Confidence manner of breathing ratio, the application is connecting exchange chip and application module by adaptation module, when application module needs exchange chip When uploading the message of certain type of message, adaptation module obtained from the information that itself is stored with the chip type of exchange chip and On send mode corresponding chip setting parameter, and chip setting parameter is sent to exchange chip, in order to exchange chip according to Chip setting parameter is configured.Application module only needs to provide required type of message in this way, it is no longer necessary to modify itself Setting, reduces the workload of application module itself;Simultaneously because the setting modification content considered required for application module is reduced, Also reduce the development difficulty of application module.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of interchanger provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of message transmitting method provided by the embodiments of the present application;
Fig. 3 is the flow chart of another message transmitting method provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of message transmitting device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of CPU provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another kind CPU provided by the embodiments of the present application.
Specific embodiment
Message transmitting method provided by the embodiments of the present application and device are described in detail with reference to the accompanying drawing.
Term "and/or" in the application, only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds Relationship, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.
The term " includes " and " having " and their any deformation being previously mentioned in the description of the present application, it is intended that cover It covers and non-exclusive includes.Such as it contains the process, method, system, product or equipment of a series of steps or units and does not limit In listed step or unit, but optionally further comprising the step of other are not listed or unit, or optionally further comprising For the intrinsic other step or units of these process, methods, product or equipment.
It should be noted that in the embodiment of the present application, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present application " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
In the description of the present application, unless otherwise indicated, the meaning of " plurality " is refer to two or more.
The embodiment of the present application provides a kind of message transmitting method, and with reference to Fig. 1, this method be can be applied in interchanger 10, The interchanger 10 includes CPU11 and exchange chip 12.Wherein, further include adaptation module 111 in interchanger 10 and at least one is answered With module (adaptation module 111 and at least one application module operate in CPU), illustratively, application module is shown in Fig. 1 112, application module 113 and application module 114;In adaptation module 111 include external interface 1111, information collocation module 1112, Protocol information module 1113, movement arbitration module 1114, searching module 1115.Wherein, external interface 1111 is for realizing adaptation Connection between module 111 and at least one application module, the connection type can be for wirelessly or non-wirelessly, radio connection can Think through bluetooth (Bluetooth, BT) connection, Wireless Fidelity (Wireless Fidelity, Wi-Fi), near-field communication The connection such as (Near Field Communication, NFC).Information collocation module 1112 is for storing at least one application module The configuration information of set messages transmitted to CPU, such as type of message, transmission priority.Protocol information module 1113 is for depositing Storage exchange chip 12 supports the type of message sent, and parameter relevant to type of message, as message name, processing are preferential Grade etc..It acts arbitration module to be used for when the type of message that at least two application modules are sent is identical as transmission mode, from least Two transmission modes judge the transmission mode of messages transmitted to CPU.Searching module 1115 is for searching and chip type, type of message Mode is sent on corresponding, and according to above sending mode to search corresponding chip setting information, illustratively, three kinds provided in Fig. 1 On send mode to correspond to respective chip setting information, and the side of sending on three kinds in mode and exchange chip 12 is sent on above-mentioned three kinds Formula corresponds.
Optionally, external interface 1111 includes the interface of setting message transmissions parameter and connecing for deletion message transmissions parameter Mouthful.Wherein, message transmissions parameter includes type of message, effective object and transmission mode.Above-mentioned message transmissions parameter is by application Module provides.Optionally, message transmissions parameter can also include other expansible parameters, extremely such as application module ID, message transmissions Host CPU or from CPU etc..Wherein, if there is type of message, effective object and the transmission mode of the setting of at least two application modules All the same, then adaptation module 111 needs to record the application module ID of above-mentioned at least two application module, determines above-mentioned biography with identification The corresponding application module of defeated mode.
The embodiment of the present application provides a kind of message transmitting method, as shown in Fig. 2, this method may include S201 to S208:
Mode is sent in S201, the chip type of adaptation module acquisition exchange chip and target.
Wherein, be stored in adaptation module chip type, chip type it is corresponding send at least one mode, at least one On send mode that can transmit at least one type of message and corresponding chip setting information.
It should be noted that the chip type of exchange chip is arranged by the manufacturer for producing the exchange chip.
It should be noted that exchange chip can be triggered from application module itself to the application module transmitting message, at this In the case of kind, application module sends message transmissions parameter to adaptation module, in response to the message transmissions parameter received, is adapted to mould Root tuber according to the type of message in message transmissions parameter determine the message on send mode, it should be noted that send the mode to be on this The exchange chip of the chip type supported on send mode.If the upload mode that can transmit the type of message is the chip The exchange chip of type do not support on send mode, then the message of the type of message is not transmitted to application module.
Further, it is also possible to which the message of exchange chip active transmission is from exchange chip actively to application module transmitting message The message that exchange chip cannot be handled, such as layer 2 (L2, data link layer) manage message such as Bridge Protocol Data Unit (bridge protocol data unit, BPDU), Generic Attribute Registration Protocol (Generic Attribute Registration Protocol, GVRP), address resolution protocol (Address Resolution Protocol, ARP);Layer 3 It is unrelated that (L3, network layer) manages message such as routing information protocol (Routing Information Protocol, RIP), agreement Multicast (Protocol Independent Multicast, PIM), ospf (Open Shortest Path First, OSPF), Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, VRRP), group Management agreement (Internet Group Management Protocol, IGMP), network-control message protocol (Internet Control Message Protocol, ICMP);Data message such as unknown unicast network interconnection agreement (Internet Protocol, IP) message, unknown multicast packets, reverse path forwarding (Reverse Path Forward, RPF) failure message, Various error messages etc..
It includes ACL, L2 forwarding table, PDU, broadShield etc. that mode is sent on it should be noted that, it is every kind above-mentioned on give All there is corresponding chip type i.e. chip setting information in mode.
S202, adaptation module search chip setting information corresponding with mode is sent on chip type and target.
It should be noted that chip setting information is stored in advance in the database of adaptation module, or it is stored in and fits In other storage devices with module with data connection relationship, for the storage location of chip setting information, do not limit herein It is fixed.
S203, adaptation module are to exchange chip transmission chip setting information, so that exchange chip is according to chip setting information It is configured.
Optionally, it if adaptation module receives deletion message transmissions behavior of application module transmission, indicates to hand over It changes chip and deletes the configuration carried out according to the chip setting information.
When sending mode to change in application module transmitting message with exchange chip in the prior art, then application module is needed Itself setting is modified, and is generated compared with sending the corresponding chip setting information of mode on this, the embodiment of the present application is by suitable Exchange chip and application module are connected with module, when application module needs exchange chip to upload the message of certain type of message, Adaptation module obtains with the chip type of exchange chip from the information that itself is stored and above send mode corresponding chip setting ginseng Number, and chip setting parameter is sent to exchange chip, in order to which exchange chip is configured according to chip setting parameter.In this way Application module only needs to provide required type of message, it is no longer necessary to modify itself setting, reduce application module itself Workload, simultaneously because the setting modification content considered required for application module is reduced, the exploitation for also reducing application module is difficult Degree.
When being clashed in order to avoid the transmission mode set in application module, by communicating with each other between application module with true The transmission mode for determining exchange chip execution causes application module development difficulty to increase, in a realization side of the embodiment of the present application In formula, need to be determined exchange chip according to which kind of transmission mode transmitting message by adaptation module.Therefore, in reality as shown in Figure 2 In existing mode, implementation as shown in Figure 3 can also be realized.Wherein, S201 adaptation module acquisition exchange chip is being executed Before sending mode on chip type and target, S304 can also be performed to S306:
S304, adaptation module receive type of message, transmission mode and effective object that application module is sent.
Wherein, effective object is used to limit the source of the message of application transport mode.
It should be noted that network protocol used in the different message of type of message is different.
Transmission mode successively includes abandoning (Drop) behavior, trap (Trap) row according to the sequence of priority from high to low For, duplication (Copy) behavior and label (remark) behavior;Discarding behavior indicates dropping packets, and not to CPU transmitting message;It falls into Trap behavior indicates to E-Packet to CPU transmitting message, and not;Replication is indicated to CPU transmitting message, and is E-Packeted; Transmission priority when remark instruction modification message is transmitted to CPU.
It should be noted that effective object includes port (port) and virtual LAN (Virtual
Local Area Network, VLAN) etc..Effective object can be one or more or zero, work as effect When object is zero, indicate that the overall situation comes into force.For example, if type of message is dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) message, effective object port1, then by port1 send DHCP message all adopt Application module is transmitted to corresponding transmission mode.Effective object can be set by application module according to practical message transmissions situation It sets, it is not limited here.
S305, the type of message sent if there is at least two application modules are identical as effective object, then adaptation module The transmission mode of highest priority in the transmission mode of at least two application modules transmission is determined as object transmission mode.
Illustratively, monitoring (snooping) two application modules there are DHCP server side and DHCP needs exchange chip will DHCP message is transmitted to CPU.Transmission mode specified by DHCP server side is Copy behavior, specified by DHCP snooping Transmission mode is Trap behavior, and the specified effective object of two application modules is all global.The transmission mode of two application modules There are conflicts, then the higher Trap behavior of priority in Copy behavior and Trap behavior are determined as object transmission mode.
Optionally, identical as effective object if there is the type of message of at least two application modules transmission, then it is adapted to mould Transmission mode in transmission mode that at least two application modules are sent in addition to object transmission mode is determined as transmission to be selected by block Mode.
Optionally, every kind of transmission mode is arranged according to the sequence of priority from high to low in transmission mode to be selected, in this way After application module delete target transmission mode, adaptation module can send highest in current sequence to exchange chip according to sequence The transmission mode of priority.
Optionally, when the corresponding application module of object transmission mode does not need to receive the message of exchange chip transmission, then It is sent to adaptation module and deletes instruction, with delete target transmission mode.It is indicated in response to deleting, adaptation module indicates exchange chip Delete target transmission mode;The transmission mode of highest priority in transmission mode to be selected is determined as new mesh by adaptation module later Transmission mode is marked, and sends new object transmission mode to exchange chip.
Illustratively, when the transmission mode conflict that DHCP server side and DHCP snooping are indicated, if currently employed Object transmission mode be DHCP snooping instruction Trap behavior, DHCP snooping issue delete instruction after, fit Trap behavior is deleted with module, and the highest Copy behavior of current priority is determined as object transmission mode, and indicate to hand over It changes chip and DHCP message is sent to by DHCP server side with Copy behavior.If adaptation module receives DHCP again The Trap behavior that snooping is sent, then be determined as object transmission mode for Trap behavior, Copy behavior be determined as biography to be selected Defeated mode, and Trap behavior is sent to exchange chip, so that DHCP message is transmitted to by the exchange chip according to Trap behavior DHCP snooping。
S306, adaptation module send type of message, effective object and object transmission mode to exchange chip, so that exchange core Piece transmits message corresponding with type of message, effective object according to object transmission mode.
Optionally, when exchange chip is according to object transmission mode transmitting message, if adaptation module is received using mould New type of message, new effective object and the new transmission mode that block is sent, and new type of message and object transmission mode Corresponding type of message is identical, and new effective object effective object corresponding with object transmission mode is identical, and adaptation module then compares The transmission priority of newer transmission mode and object transmission mode.If the transmission priority of new transmission mode is higher than target The transmission priority of transmission mode then sends new transmission mode to exchange chip, so that exchange chip is according to new transmission side Formula transmits data packet;If the transmission priority of object transmission mode is higher than the transmission priority of new transmission mode, will be new Transmission mode be determined as transmission mode to be selected.
Illustratively, under the premise of type of message is identical with effective object, when current transmission mode is Trap behavior, If adaptation module receives the Drop behavior of application module transmission, indicate exchange chip by currently employed Trap behavior more It is newly Drop behavior;If adaptation module receives the Copy behavior of application module transmission, Copy behavior is determined as to be selected Transmission mode.
Optionally, it under the premise of type of message is identical with effective object, is passed in exchange chip according to object transmission mode When defeated message, if to receive new transmission mode identical as object transmission mode for adaptation module, new transmission mode is recorded Application module ID.If the corresponding application module of object transmission mode indicates delete target transmission mode, the transmission is kept Mode, by message transmissions to the new corresponding application module of transmission mode.
In the embodiment of the present application, it if the type of message of different application module instruction is identical as effective object, is adapted to Module carries out movement ruling to multiple transmission modes, i.e., the highest transmission mode of transmission priority is selected from multiple transmission modes As object transmission mode, and after transmission mode change, message is carried out according to the highest transmission mode of transmission priority always Transmission.Compared with ditch is carried out by application module in the prior art and passes to the transmission mode of determining exchange chip, the embodiment of the present application In from multiple transmission modes determine object transmission mode process do not need application module participation, in the exploitation of application module Cheng Zhong, also there is no need to consider when transmission mode clashes, the movement executed required for application module is also meaned that, The development difficulty of application module reduces.
As shown in figure 4, the embodiment of the present application provides a kind of message transmitting device 400, which is set to interchanger, Exchange chip for adaptive layer 2 switch.Referring to Fig.1, interchanger includes exchange chip and CPU, and operation has the device 400 in CPU With at least one application module;Be stored in the device 400 chip type, chip type it is corresponding send at least one mode, At least one type of message and corresponding chip setting information that mode can be transmitted are sent at least one.The device 400 includes:
Module 401 is obtained, send mode on the chip type and target for obtaining exchange chip.
Searching module 402, for searching core corresponding with mode is sent on the chip type and target for obtaining the acquisition of module 401 Piece setting information.
Sending module 403, for sending the chip setting information that searching module 402 is searched to exchange chip, so that exchange Chip is configured according to chip setting information.
Optionally, device 400 further include:
Receiving module 404, for receiving the type of message of application module transmission.
Determining module 405, for by chip type it is corresponding on send in mode, with the received message class of receiving module 404 Mode is sent to be determined as sending mode in target on type is corresponding.
Optionally, device 400 further include:
Receiving module 404, for receiving type of message, transmission mode and the effective object of application module transmission, effect pair As the source of the message for limiting application transport mode.
Determining module 405, the type of message for sending if there is at least two application modules is identical as effective object, The transmission mode of highest priority in the transmission mode of at least two application modules transmission is then determined as object transmission mode.
Sending module 403 is also used to send the target that type of message, effective object and determining module determine to exchange chip Transmission mode, by make exchange chip according to object transmission in a manner of transmit message corresponding with type of message, effective object.
Optionally, determining module 405, the type of message for being also used to send if there is at least two application modules and effect Object is identical, then is determined as the transmission mode in the transmission mode of at least two application modules transmission in addition to object transmission mode Transmission mode to be selected.
Receiving module 404 is also used to receive the deletion instruction of application module transmission.
Device 400 further include:
Indicating module 406 is used to indicate exchange chip delete target transmission mode.
Determining module 405 is also used to for the transmission mode of highest priority in transmission mode to be selected to be determined as new target Transmission mode, and new object transmission mode is sent to exchange chip.
Optionally, receiving module 404 are also used to receive new type of message, the new effective object of application module transmission With new transmission mode.
Device 400 further include:
Comparison module 407, if identical for new type of message type of message corresponding with object transmission mode and new Effective object effective object corresponding with object transmission mode it is identical, then newer transmission mode and object transmission mode Transmission priority.
Sending module 403, if the transmission priority for being also used to new transmission mode is higher than the transmission of object transmission mode Priority then sends new transmission mode to exchange chip, so that exchange chip transmits data packet according to new transmission mode.
Determining module 405, if the transmission priority for being also used to object transmission mode is higher than the transmission of new transmission mode New transmission mode is then determined as transmission mode to be selected by priority.
Message transmitting device provided by the present application is sent with exchange chip in the prior art in application module transmitting message When mode changes, then application module is needed to modify itself setting, and generate chip setting information corresponding with mode is sent on this It compares, the application is connecting exchange chip and application module by adaptation module, when application module needs exchange chip to upload certain When the message of kind of type of message, adaptation module is obtained from the information that itself store and the chip type of exchange chip and the upper side of sending Parameter is arranged in the corresponding chip of formula, and chip setting parameter is sent to exchange chip, in order to which exchange chip is set according to chip Parameter is set to be configured.Application module only needs to provide required type of message in this way, it is no longer necessary to modify itself setting, subtract The workload of application module itself is lacked, simultaneously because the setting modification content considered required for application module is reduced, has also reduced The development difficulty of application module.
Fig. 5 shows a kind of possible structural schematic diagram of CPU involved in above-described embodiment.As shown in figure 5, CPU500 includes: processing unit 501 and communication unit 503.Processing unit 501 is for controlling the movement of interchanger 500 Management, for example, the step of executing above-mentioned acquisition module 401, the execution of searching module 402, and/or it is described herein for executing Other processes of technology.Communication unit 503 is used to support the communication of CPU500 Yu other network entities, for example, executing above-mentioned hair The step of sending module 403, receiving module 404 to execute.CPU500 can also include storage unit 502, and storage unit 502 is for depositing Store up the program code and data of CPU500.
Wherein, above-mentioned processing unit 501 can be processor 601 or controller in CPU600, the processor 601 or control Device processed, which may be implemented or execute, combines various illustrative logic blocks, module and circuit described in present disclosure. The processor 601 or controller can be central processing unit, general processor, digital signal processor, specific integrated circuit, existing Field programmable gate array or other programmable logic device, transistor logic, hardware component or any combination thereof.Its It may be implemented or execute and combine various illustrative logic blocks, module and circuit described in present disclosure.It is described Processor 601 is also possible to realize the combination of computing function, such as combines comprising one or more microprocessors, at digital signal Manage (Digital Signal Processing, DSP) and the combination of microprocessor etc..
Communication unit 503 can be transceiver, transmission circuit or communication interface 603 in CPU600 etc..
Storage unit 502 can be memory 602 in CPU600 etc., which may include volatile storage Device, such as random access memory;The memory 602 also may include nonvolatile memory, such as read-only memory, quick flashing Memory, hard disk or solid state hard disk;The memory 602 can also include the combination of the memory of mentioned kind.
Bus 604 can be expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..Bus 604 can be divided into address bus, data/address bus, control bus etc..For convenient for table Show, only indicated with a thick line in Fig. 6, it is not intended that an only bus or a type of bus.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, and finger is stored in computer readable storage medium It enables, when the network equipment in first network executes the instruction, which executes method shown in above method embodiment Each step that the network equipment executes in process.
Wherein, computer readable storage medium, such as electricity, magnetic, optical, electromagnetic, infrared ray can be but not limited to or partly led System, device or the device of body, or any above combination.The more specific example of computer readable storage medium is (non-poor The list of act) it include: the electrical connection with one or more conducting wires, portable computer diskette, hard disk, random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), erasable type may be programmed read-only It is memory (Erasable Programmable Read Only Memory, EPROM), register, hard disk, optical fiber, portable Compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), light storage device, magnetic memory The computer readable storage medium of part or above-mentioned any appropriate combination or any other form well known in the art. A kind of illustrative storage medium is coupled to processor, to enable a processor to from the read information, and can be to Information is written in the storage medium.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be with In application-specific IC (Application Specific Integrated Circuit, ASIC).In the application In embodiment, computer readable storage medium can be any tangible medium for including or store program, which can be referred to Enable execution system, device or device use or in connection.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, this Shen Protection scope please should be subject to the protection scope in claims.

Claims (10)

1. a kind of message transmitting method, which is characterized in that the method is applied to interchanger, and the interchanger includes one and is used for It is adapted to the adaptation module and at least one application module of exchange chip;Chip type, the core are stored in the adaptation module Sheet type is corresponding send at least one mode, at least one type of message for sending mode that can transmit at least one and Corresponding chip setting information;The described method includes:
The adaptation module obtains and send mode on the chip type and target of the exchange chip;
Search chip setting information corresponding with mode is sent on the chip type and the target;
Send the chip setting information to the exchange chip so that the exchange chip according to the chip setting information into Row configuration.
2. the method according to claim 1, wherein obtaining the chip of the exchange chip in the adaptation module Type and before above sending mode, the method also includes:
Receive the type of message that application module is sent;
By the chip type it is corresponding on send in mode, it is corresponding with the type of message on send mode to be determined as giving in target Mode.
3. the method according to claim 1, wherein on the chip type and target for obtaining the exchange chip Before sending mode, the method also includes:
Type of message, transmission mode and effective object that the application module is sent are received, the effective object is answered for limiting With the source of the message of the transmission mode;
The type of message sent if there is at least two application modules is identical as effective object, then applies described at least two The transmission mode of highest priority is determined as object transmission mode in the transmission mode that module is sent;
The type of message, the effective object and the object transmission mode are sent to the exchange chip, so that the friendship It changes chip and transmits message corresponding with the type of message, the effective object according to the object transmission mode.
4. according to the method described in claim 3, it is characterized in that, the message class sent if there is at least two application modules Type is identical as effective object, then in the transmission mode sent at least two application module in addition to the object transmission mode Transmission mode be determined as transmission mode to be selected;
It is described after sending the type of message, the effective object and the object transmission mode to the exchange chip, The method also includes:
Receive the deletion instruction that the application module is sent;
Indicate that the exchange chip deletes the object transmission mode;
The transmission mode of highest priority in the transmission mode to be selected is determined as to new object transmission mode, and to the friendship It changes chip and sends the new object transmission mode.
5. according to the method described in claim 3, it is characterized in that, sending the type of message, institute to the exchange chip After stating effective object and the object transmission mode, the method also includes:
Receive new type of message, new effective object and new transmission mode that application module is sent;
If new type of message type of message corresponding with object transmission mode is identical, and the new effective object with The corresponding effective object of the object transmission mode is identical, then the new transmission mode and the object transmission mode Transmission priority;
If the transmission priority of the new transmission mode is higher than the transmission priority of the object transmission mode, Xiang Suoshu Exchange chip sends the new transmission mode, so that the exchange chip transmits data packet according to the new transmission mode;
It, will be described if the transmission priority of the object transmission mode is higher than the transmission priority of the new transmission mode New transmission mode is determined as transmission mode to be selected.
6. a kind of message transmitting device, which is characterized in that described device is set to interchanger, for being adapted to the friendship of the interchanger Chip is changed, is stored with that chip type, the chip type are corresponding to send mode, described at least one at least one in described device At least one type of message and corresponding chip setting information that mode can be transmitted are sent on a;Described device includes:
Module is obtained, send mode on the chip type and target for obtaining the exchange chip;
Searching module, for searching the chip type obtained with the acquisition module and sending mode corresponding in the target Chip setting information;
Sending module, for sending the chip setting information that the searching module is searched to the exchange chip, so that institute Exchange chip is stated to be configured according to the chip setting information.
7. device according to claim 6, which is characterized in that described device further include:
Receiving module, for receiving the type of message of application module transmission;
Determining module, for by the chip type it is corresponding on send in mode, with the received message of the receiving module Mode is sent to be determined as sending mode in target on type is corresponding.
8. device according to claim 6, which is characterized in that described device further include:
Receiving module, type of message, transmission mode and the effective object sent for receiving the application module, the effect pair As the source for limiting the message using the transmission mode;
Determining module, the type of message for sending if there is at least two application modules is identical as effective object, then by institute The transmission mode for stating highest priority in the transmission mode of at least two application modules transmission is determined as object transmission mode;
The sending module is also used to send the type of message, the effective object and the determination to the exchange chip Module determine the object transmission mode, by make the exchange chip according to the object transmission in a manner of transmit and the message Type, the corresponding message of the effective object.
9. device according to claim 8, which is characterized in that
The determining module, the type of message for being also used to send if there is at least two application modules is identical as effective object, Then the transmission mode in the transmission mode of at least two application module transmission in addition to the object transmission mode is determined as Transmission mode to be selected;
The receiving module is also used to receive the deletion instruction that the application module is sent;
Described device further include:
Indicating module is used to indicate the exchange chip and deletes the object transmission mode;
The determining module is also used to the transmission mode of highest priority in the transmission mode to be selected being determined as new target Transmission mode, and the new object transmission mode is sent to the exchange chip.
10. device according to claim 8, which is characterized in that
The receiving module is also used to receive new type of message, new effective object and the new transmission of application module transmission Mode;
Described device further include:
Comparison module, if identical and described for new type of message type of message corresponding with object transmission mode New effective object effective object corresponding with the object transmission mode is identical, then the new transmission mode with it is described The transmission priority of object transmission mode;
The sending module, if the transmission priority for being also used to the new transmission mode is higher than the object transmission mode Transmission priority then sends the new transmission mode to the exchange chip, so that the exchange chip is according to described new Transmission mode transmits data packet;
The determining module, if the transmission priority for being also used to the object transmission mode is higher than the new transmission mode The new transmission mode is then determined as transmission mode to be selected by transmission priority.
CN201711483136.2A 2017-12-29 2017-12-29 Message transmission method and device Active CN109995678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483136.2A CN109995678B (en) 2017-12-29 2017-12-29 Message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483136.2A CN109995678B (en) 2017-12-29 2017-12-29 Message transmission method and device

Publications (2)

Publication Number Publication Date
CN109995678A true CN109995678A (en) 2019-07-09
CN109995678B CN109995678B (en) 2022-06-10

Family

ID=67109944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483136.2A Active CN109995678B (en) 2017-12-29 2017-12-29 Message transmission method and device

Country Status (1)

Country Link
CN (1) CN109995678B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968919A (en) * 2019-12-12 2021-06-15 上海欣诺通信技术股份有限公司 Data processing method, device, equipment and storage medium
CN115842792A (en) * 2023-02-20 2023-03-24 之江实验室 Data processing method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913486A (en) * 2005-08-10 2007-02-14 中兴通讯股份有限公司 Method and device for strengthening safety of protocol message
CN104158809A (en) * 2014-08-20 2014-11-19 杭州华三通信技术有限公司 Method and device for uploading protocol message to CPU
WO2015097042A1 (en) * 2013-12-23 2015-07-02 Gemalto Sa Method for accessing a service and a corresponding device
CN105245428A (en) * 2014-07-07 2016-01-13 北京东土科技股份有限公司 Method and device for configuring message processing rule
CN105591989A (en) * 2016-01-25 2016-05-18 盛科网络(苏州)有限公司 Chip realization method for reporting protocol message to CPU
CN106685826A (en) * 2016-12-01 2017-05-17 瑞斯康达科技发展股份有限公司 Interchanger stacking system, slave unit, switching chip and method for processing protocol message
CN106789759A (en) * 2016-12-19 2017-05-31 迈普通信技术股份有限公司 A kind of message up sending method and exchange chip
EP3813396A1 (en) * 2019-10-25 2021-04-28 Thales Dis France Sa Chip and method for maintaining a connection to at least one network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913486A (en) * 2005-08-10 2007-02-14 中兴通讯股份有限公司 Method and device for strengthening safety of protocol message
WO2015097042A1 (en) * 2013-12-23 2015-07-02 Gemalto Sa Method for accessing a service and a corresponding device
CN105245428A (en) * 2014-07-07 2016-01-13 北京东土科技股份有限公司 Method and device for configuring message processing rule
CN104158809A (en) * 2014-08-20 2014-11-19 杭州华三通信技术有限公司 Method and device for uploading protocol message to CPU
CN105591989A (en) * 2016-01-25 2016-05-18 盛科网络(苏州)有限公司 Chip realization method for reporting protocol message to CPU
CN106685826A (en) * 2016-12-01 2017-05-17 瑞斯康达科技发展股份有限公司 Interchanger stacking system, slave unit, switching chip and method for processing protocol message
CN106789759A (en) * 2016-12-19 2017-05-31 迈普通信技术股份有限公司 A kind of message up sending method and exchange chip
EP3813396A1 (en) * 2019-10-25 2021-04-28 Thales Dis France Sa Chip and method for maintaining a connection to at least one network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MASOUD OVEIS GHARAN等: ""Dynamic Virtual Channel Configuration for Efficient Multicore System"", 《2014 EIGHTH INTERNATIONAL CONFERENCE ON COMPLEX,INTELLIGENT AND SOFTWARE INTENSIVE》 *
秦济龙等: ""一种高速网络报文处理器设计浅析"", 《第十六届计算机工程与工艺年会暨第二届微处理器技术论坛》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968919A (en) * 2019-12-12 2021-06-15 上海欣诺通信技术股份有限公司 Data processing method, device, equipment and storage medium
CN112968919B (en) * 2019-12-12 2023-05-30 上海欣诺通信技术股份有限公司 Data processing method, device, equipment and storage medium
CN115842792A (en) * 2023-02-20 2023-03-24 之江实验室 Data processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109995678B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US9444743B2 (en) Network system, switch and connected terminal detection method
US9548933B2 (en) Network system, switch, and methods of network configuration
CN105191215B (en) The method and apparatus that data plane for bi-directional service chain learns
JP5594552B2 (en) Network system and route control method
US9014056B2 (en) Bridging network devices in a hybrid communication network
CN108173691B (en) Cross-device aggregation method and device
CN103118149B (en) Communication control method between same tenant's server and the network equipment
JP6633775B2 (en) Packet transmission
US9917766B2 (en) Loop-free hybrid network
JP2008042505A (en) Network unit and data control program
CN108259218A (en) A kind of IP address distribution method and device
JP7046983B2 (en) Packet transmission method and equipment
CN107547346A (en) A kind of message transmitting method and device
JP5682846B2 (en) Network system, packet processing method, and storage medium
CN104363084A (en) Link status synchronization method and device
CN110581805A (en) Routing table updating method, device, switch and storage medium
CN109995678A (en) Message transmitting method and device
CN104579809B (en) The detection method and equipment of a kind of stacking splitting
JPWO2014126094A1 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
CN106209634B (en) Learning method and device of address mapping relation
US9853891B2 (en) System and method for facilitating communication
JP5367194B1 (en) Programmable logic controller
JP2009278317A (en) Network driver, computer incorporated with the network driver and server
CN103457864A (en) Method, device and network equipment for processing next-hop of routing
JP2014207504A (en) Communication system, communication method, and upper level device

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