CN114629860B - Data transmission method, device, service line card and storage medium - Google Patents

Data transmission method, device, service line card and storage medium Download PDF

Info

Publication number
CN114629860B
CN114629860B CN202210266242.XA CN202210266242A CN114629860B CN 114629860 B CN114629860 B CN 114629860B CN 202210266242 A CN202210266242 A CN 202210266242A CN 114629860 B CN114629860 B CN 114629860B
Authority
CN
China
Prior art keywords
data transmission
interface
end interface
control instruction
line card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210266242.XA
Other languages
Chinese (zh)
Other versions
CN114629860A (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.)
Beijing Hengan Jiaxin Safety Technology Co ltd
Original Assignee
Beijing Hengan Jiaxin Safety 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 Beijing Hengan Jiaxin Safety Technology Co ltd filed Critical Beijing Hengan Jiaxin Safety Technology Co ltd
Priority to CN202210266242.XA priority Critical patent/CN114629860B/en
Publication of CN114629860A publication Critical patent/CN114629860A/en
Application granted granted Critical
Publication of CN114629860B publication Critical patent/CN114629860B/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
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/109Integrated on microchip, e.g. switch-on-chip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/028Subscriber network interface devices

Abstract

The embodiment of the application discloses a data transmission method, a data transmission device, a service line card and a storage medium, wherein the data transmission method, the device, the service line card and the storage medium are applied to a control chip to acquire board card data of a switch board card; generating a control instruction according to the board data; and sending a control instruction to the switching chip so that the switching chip can control data transmission between the front end interface and the rear end interface of the business line card according to the control instruction. The advantage of doing so is that the defect that the transmission mode is single because of the fixed corresponding relation between the front end interface and the rear end interface in the prior art is solved, and the control chip can improve the flexibility and the adaptability of the switch in data transmission through controlling or adjusting the front end interface and the rear end interface by the exchange chip.

Description

Data transmission method, device, service line card and storage medium
Technical Field
The embodiment of the application relates to the technical field of switches, in particular to a data transmission method, a data transmission device, a service line card and a storage medium.
Background
A switch is a network device for converting electrical (optical) signals. It can provide an exclusive electric signal path for any two network nodes of the access switch, such as an ethernet switch, a fiber optic switch, etc. as a common switch.
The service line card of the switch is a device interface between the access line and the access device in the switch, and can convert digital signals and analog signals to be used for connecting the cable or the optical fiber lamp line. The service line card of the exchanger circulating in the current market is simpler, the front end interface and the rear end interface of the exchanger are in one-to-one correspondence, and the fixed data transmission path enables the exchanger to be poor in flexibility and weak in adaptability.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, a service line card and a storage medium, so as to flexibly control a switch to transmit data and improve the flexibility and adaptability of the switch.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a control chip, including:
acquiring board card data of a board card of the switch;
generating a control instruction according to the board data;
and sending a control instruction to the switching chip so that the switching chip can control data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
In a second aspect, an embodiment of the present application further provides a data transmission method, which is applied to a switching chip, including:
acquiring a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card;
and controlling data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
In a third aspect, an embodiment of the present application further provides a data transmission device, applied to a control chip, including:
the board card data acquisition module is used for acquiring board card data of the board card of the switch;
the control instruction generation module is used for generating a control instruction according to the board card data;
and the control instruction sending module is used for sending a control instruction to the switching chip so that the switching chip can control data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
In a fourth aspect, an embodiment of the present application further provides a data transmission device, which is applied to a switching chip, including:
the control instruction acquisition module is used for acquiring a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card;
and the data transmission module is used for controlling data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
In a fifth aspect, an embodiment of the present application further provides a service line card, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement a data transmission method according to an embodiment of the first aspect of the present application, and/or implement a data transmission method according to an embodiment of the second aspect of the present application.
In a sixth aspect, embodiments of the present application further provide a computer readable storage medium, on which a computer program is stored, wherein the program when executed by a processor implements a data transmission method according to an embodiment of the first aspect of the present application, and/or implements a data transmission method according to an embodiment of the second aspect of the present application.
In the technical scheme of the embodiment of the application, the control chip generates the control instruction according to the board card data and sends the control instruction to the exchange chip to control the data transmission between the front end interface and the rear end interface. The advantage of doing so is that the defect that the transmission mode is single because of the fixed corresponding relation between the front end interface and the rear end interface in the prior art is solved, and the control chip can improve the flexibility and the adaptability of the switch in data transmission through controlling or adjusting the front end interface and the rear end interface by the exchange chip.
Drawings
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a flowchart of a data transmission method according to a second embodiment of the present application;
fig. 3 is a schematic diagram of a switch service line card provided in the third embodiment of the present application;
fig. 4 is a block diagram of a data transmission device according to a fourth embodiment of the present application;
fig. 5 is a block diagram of a data transmission device provided in a fifth embodiment of the present application;
fig. 6 is a block diagram of a service line card according to a sixth embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present application. The embodiment of the application can be applied to the situation that the control switch performs data transmission, the method can be executed by a data transmission device, and the method is applied to a control chip, and the device can be realized by software and/or hardware and is specifically configured in a business line card.
Referring to the data transmission method shown in fig. 1, the method specifically includes the following steps:
s110, acquiring board data of the board card of the switch.
The switch board card can be a board card connected with the service line card where the control chip is located, and the connection mode can be through a circuit. The board card data may be internal data given to the control chip switch by the switch board card, and may carry information that the switch wants to control the front end interface and the back end interface, etc.
S120, generating a control instruction according to the board card data.
The control instruction can be used for controlling the exchange chip, and aims to adjust data transmission between the front-end interface and the back-end interface. The control instructions may be in the form of code.
In an alternative embodiment, the generating the control instruction according to the board card data may include: converting the board card data from an Ethernet form into a high-speed serial port form so as to update the board card data; and generating a control instruction according to the updated board card data.
Specifically, in order to ensure efficient data interaction between boards and/or service line cards in the switch, ethernet is generally selected for communication, and the switch boards and the service line cards can be connected through ethernet ports of hundred megabytes or gigabytes, but after the board card data enter the chip, the board card data needs to be transmitted between a control chip of the service line card and the switch chip or the like, and then the board card data needs to be changed into a high-speed communication mode which is more suitable for a circuit board, so that it can be understood that the board card data is converted from an ethernet form into a high-speed serial port form, for example, the board card data can be converted into PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus), and thus a control instruction in the form of a high-speed serial port can be generated according to the board card data.
And S130, sending a control instruction to the exchange chip so that the exchange chip can control data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
The exchange chip is used for data transmission between the front end interface and the back end interface on the service board card. The front end interface, namely an interface of the service line card connected with the external equipment, can receive data input by the external equipment through the front end interface, is processed by the service line card and other switch board cards and is sent out through other front end interfaces, so that the normal function of the switch is realized, and the front end interface can be wired (for example, an Ethernet interface) or wireless (for example, a wireless local area network), so that the connection between the front end interface and the external equipment can be unlimited or wired. The back end interface may be a connection interface between the service line card and the switch board card, and is generally connected by using a serial port or ethernet. It will be appreciated that, if the external device sends or obtains data through the switch, the data must pass through the front-end interface, the switch chip and the back-end interface, regardless of the transmission direction of the data.
Specifically, the control instruction determined in the previous step is sent to the exchange chip through the high-speed serial port, so that the exchange chip can control the front end interface and the rear end interface of the service line card according to the control instruction, and the strategy of data transmission is adjusted.
Illustratively, assume that the traffic line card of the switch has three front-end interfaces A, B, C and three back-end interfaces D, E, F. In the prior art, the front end interface and the rear end interface have fixed corresponding relations, for example, A corresponds to D, B corresponds to E, C corresponds to F, and when the switch is used, the data transmission can be normally carried out only by paying attention to the connecting relation, so that the switch has weak flexibility and poor adaptability. According to the technical scheme, the corresponding relation between the front-end interface and the rear-end interface can be dynamically adjusted according to the control instruction, and aiming at different external equipment and transmission requirements, the data transmission logic in the switch is changed, for example, A can be enabled to correspond to D and F, B can be closed, and C can be enabled to correspond to E and other flexible data transmission modes.
In an alternative embodiment, after sending the control instruction to the switch chip, the method may further include: acquiring a working state signal of an exchange chip; and judging whether data transmission between the front end interface and the rear end interface is abnormal or not according to the working state signals.
The working state signal can be a feedback signal which is collected by the exchange chip and reflects the common group working state of the front end interface, the rear end interface and the exchange chip. Because the exchange chip is directly connected with the front end interface and the rear end interface, the control chip is only connected with the exchange chip, and the control chip only acquires working state signals from the exchange chip. And judging whether the front end interface and the rear end interface work normally or not according to the working state signals, and if abnormal conditions occur, indicating that the data transmission fails. According to the abnormal condition of the data transmission judged by the working state signal, compared with the detection of the integrity of the data transmission content, the method is simpler and quicker, and the data transmission efficiency of the switch is improved.
In an optional embodiment, the determining, according to the working status signal, whether the data transmission between the front end interface and the back end interface is abnormal may include: determining whether the working state signal is matched with the control instruction; and judging whether the data transmission between the front-end interface and the rear-end interface is abnormal or not according to the matching result.
It can be understood that the exchange chip controls the front end interface and the rear end interface to perform data transmission according to the control instruction, and then the process is in accordance with the requirement of the control instruction, so that whether the working states of the front end interface and the rear end interface and the exchange chip can be successfully matched with the requirement of the control instruction can be determined, and whether the data transmission among the front end interface, the rear end interface and the exchange chip is abnormal can be determined.
According to the embodiment, the abnormal condition of the data transmission is judged according to the matching result between the working state signal and the control instruction, and the data transmission can be checked rapidly and efficiently through the matching of the working state signal and the control instruction, so that the efficiency of the data transmission is improved.
In the technical scheme of the embodiment of the application, the control chip generates the control instruction according to the board card data and sends the control instruction to the exchange chip to control the data transmission between the front end interface and the rear end interface. The advantage of doing so is that the defect that the transmission mode is single because of the fixed corresponding relation between the front end interface and the rear end interface in the prior art is solved, and the control chip can improve the flexibility and the adaptability of the switch in data transmission through controlling or adjusting the front end interface and the rear end interface by the exchange chip.
Example two
Fig. 2 is a flowchart of a data transmission method according to a second embodiment of the present application. The embodiment of the application can be suitable for controlling the condition that the switch carries out data transmission, the method can be executed by a data transmission device, and the device can be realized by software and/or hardware and is particularly configured in a business line card.
Referring to the data transmission method shown in fig. 2, the method specifically includes the following steps:
s210, acquiring a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card.
And acquiring a control instruction of the control chip, wherein the control instruction comprises information on how to adjust the front end interface and the back end interface, such as the corresponding relation between the front end interface and the back end interface, the switch adjustment of the front end interface and/or the back end interface, and the like.
And S220, controlling data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
And according to the control instruction, the transmission path between the front end interface and the rear end interface is adjusted, so that the front end interface which needs to transmit data is connected with the rear end interface through the exchange chip. Of course, the data transmission may be performed from the front-end interface to the back-end interface, or from the back-end interface to the front-end interface.
In an alternative embodiment, after controlling data transmission between the front end interface and the back end interface of the service line card according to the control instruction, the method may further include: and sending a self working state signal to the control chip so that the control chip judges whether data transmission between the front end interface and the rear end interface is abnormal or not according to the working state signal. According to the abnormal condition of the data transmission judged by the working state signal, compared with the detection of the integrity of the data transmission content, the method is simpler and quicker, and the data transmission efficiency of the switch is improved.
The switching chip is directly connected with the front end interface and the rear end interface, so that the working states of the front end interface and the rear end interface can be directly detected, and the working states of the switching chip are fed back to the control chip. The control chip judges whether the data transmission among the front end interface, the exchange chip and the rear end interface has problems or not according to the working state signals.
In an optional implementation manner, the controlling, according to the control instruction, data transmission between the front end interface and the back end interface of the service line card may include: according to the control instruction, selecting a source interface and a target interface in the data transmission process from all front-end interfaces and rear-end interfaces of the service line card; and data transmission is carried out between the source interface and the target interface.
The source interface and the target interface can be any interface in each front-end interface and each back-end interface, and data is transmitted from the source interface to the exchange chip and from the exchange chip to the target interface. The number of the source interfaces is not limited, that is, the data can be sent from one source interface to a plurality of target interfaces, or the plurality of source interfaces can be respectively matched with different target interfaces, and the like. The method has the advantages that the transmission corresponding relation between the front-end interface and the rear-end interface can be flexibly adjusted, different source interfaces and different target interfaces are allocated according to different specific conditions, and the flexibility and the adaptability of data transmission are improved.
In the technical scheme of the embodiment of the application, the exchange chip acquires the control instruction and controls the data transmission between the front-end interface and the rear-end interface. The advantage of doing so is that the defect that the transmission mode is single because of the fixed corresponding relation between the front end interface and the rear end interface in the prior art is solved, and the exchange chip adjusts the front end interface and the rear end interface according to the control instruction of the control chip, so that the flexibility and the adaptability of the exchange during data transmission can be improved.
Example III
Fig. 3 is a schematic diagram of a switch service line card according to a third embodiment of the present application. Based on the foregoing embodiments, the embodiments of the present application provide a preferred embodiment, where the switch performs data exchange through the switch service line card shown in fig. 3. As shown in fig. 3:
the front-end interface may be an integrated module with a model number SFP (Small Form-factor Pluggables, small Form-factor pluggable gigabit interface converter), and may support 16 channels (i.e., sfp+_2x8 in fig. 3), and correspondingly connect PIPE (Passive Intelligent Port Extender, intelligent port expander), for example, a port expander with a model number 98PX1012 is used, where 98PX1012 has 16 high-speed differential lines, 12 of which may support 1GbE,2.5GbE,5GbE, and 10GbE, and another 4 of which support single or 2 or 4 parallel lines.
The exchange chip can adopt a chip with the model BFN-T10-20D, and the exchange capacity is 2.0Tbps.
The front-end interface may include SFP + _2×8 48×10GE ports and PIPE chips, with single differential line interface rates up to 10Gbps NRZ. SFP+ is connected with the exchange chip through PIPE, every 8 10GE ports are connected with the exchange chip through a PIPE, and the bandwidth of the PIPE and the exchange information chip is 100Gbps.
The backend interface may include 8 switch fabric types 6px6cexamax j1501, each of which allocates 100Gbps of switching capacity.
The control chip consists of a CPU (Central Processing Unit ) and a communication interface with the model number of ExaMAX2Px 6C. The ExaMAX2Px6C acquires board data from other board cards of the exchanger, converts the board card data from an Ethernet form into a PCIe (Peripheral Component Interconnect Express, high-speed serial computer expansion bus) form, processes the PCIe by the CPU, generates a control instruction according to the board card data, sends the control instruction to the exchange chip, and the exchange chip correspondingly adjusts the data transmission of the front end interface and the rear end interface according to the control instruction.
Example IV
Fig. 4 is a block diagram of a data transmission device provided in a fourth embodiment of the present application, where the embodiment of the present application may be applicable to a case where a control switch performs data transmission, and the device may be implemented by software and/or hardware, applied to a control chip, and may be configured in a service line card. As shown in fig. 4, the data transmission apparatus 400 may include: a board card data acquisition module 410, a control instruction generation module 420, and a control instruction transmission module 430, wherein,
the board data acquisition module 410 is configured to acquire board data of a board of the switch;
a control instruction generating module 420, configured to generate a control instruction according to the board card data;
the control instruction sending module 430 is configured to send a control instruction to the switching chip, so that the switching chip controls data transmission between the front end interface and the back end interface of the service line card according to the control instruction.
In the technical scheme of the embodiment of the application, the control chip generates the control instruction according to the board card data and sends the control instruction to the exchange chip to control the data transmission between the front end interface and the rear end interface. The advantage of doing so is that the defect that the transmission mode is single because of the fixed corresponding relation between the front end interface and the rear end interface in the prior art is solved, and the control chip can improve the flexibility and the adaptability of the switch in data transmission through controlling or adjusting the front end interface and the rear end interface by the exchange chip.
In an alternative embodiment, the control instruction generation module 420 may include:
the board card data updating unit is used for converting the board card data from the Ethernet form into the high-speed serial port form so as to update the board card data;
and the control instruction generating unit is used for generating a control instruction according to the updated board card data.
In an alternative embodiment, the data transmission apparatus 400 may further include:
the working state acquisition module is used for acquiring a working state signal of the exchange chip;
and the data transmission detection module is used for judging whether the data transmission between the front end interface and the rear end interface is abnormal or not according to the working state signal.
In an alternative embodiment, the data transmission detection module may include:
the signal matching detection unit is used for determining whether the working state signal is matched with the control instruction;
and the transmission abnormality judging unit is used for judging whether the data transmission between the front end interface and the rear end interface is abnormal or not according to the matching result.
The data transmission device provided by the embodiment of the application can execute the data transmission method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the data transmission methods.
Example five
Fig. 5 is a block diagram of a data transmission device provided in a fifth embodiment of the present application, where the embodiment of the present application may be applied to a case of controlling a switch to perform data transmission, and the device may be implemented by software and/or hardware, applied to a switch chip, and may be configured in a service line card. As shown in fig. 5, the data transmission apparatus 500 may include: a control instruction acquisition module 510 and a data transmission module 520, wherein,
a control instruction acquisition module 510, configured to acquire a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card;
the data transmission module 520 is configured to control data transmission between the front end interface and the back end interface of the service line card according to the control instruction.
In the technical scheme of the embodiment of the application, the exchange chip acquires the control instruction and controls the data transmission between the front-end interface and the rear-end interface. The advantage of doing so is that the defect that the transmission mode is single because of the fixed corresponding relation between the front end interface and the rear end interface in the prior art is solved, and the exchange chip adjusts the front end interface and the rear end interface according to the control instruction of the control chip, so that the flexibility and the adaptability of the exchange during data transmission can be improved.
In an alternative embodiment, the data transmission apparatus 500 may further include:
the transmission abnormality judging module is used for sending a working state signal of the control chip to the control chip so as to enable the control chip to judge whether data transmission between the front end interface and the rear end interface is abnormal or not according to the working state signal.
In an alternative embodiment, the transmission anomaly determination module may include:
the interface selection unit is used for selecting a source interface and a target interface in the data transmission process from all front-end interfaces and rear-end interfaces of the service line card according to the control instruction;
and the data transmission unit is used for carrying out data transmission between the source interface and the target interface.
The data transmission device provided by the embodiment of the application can execute the data transmission method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the data transmission methods.
Example six
Fig. 6 is a block diagram of a service line card according to a sixth embodiment of the present application. Fig. 6 illustrates a block diagram of an exemplary traffic line card 612 suitable for use in implementing embodiments of the present application. The business line card 612 illustrated in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 6, the business line card 612 is in the form of a general purpose computing device. Components of the traffic line card 612 may include, but are not limited to: one or more processors or processing units 616, a system memory 628, and a bus 618 that connects the various system components (including the system memory 628 and processing units 616).
Bus 618 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The traffic line cards 612 typically include a variety of computer system readable media. Such media may be any available media that is accessible by the traffic line card 612 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 628 may include computer-system-readable media in the form of volatile memory, such as Random Access Memory (RAM) 630 and/or cache memory 632. The traffic line cards 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 can be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 618 through one or more data medium interfaces. Memory 628 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the present application.
A program/utility 640 having a set (at least one) of program modules 642 may be stored in, for example, the memory 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 642 generally perform the functions and/or methods in the embodiments described herein.
The traffic line card 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing device, presenter 624, etc.), one or more devices that enable a user to interact with the traffic line card 612, and/or any device (e.g., network card, modem, etc.) that enables the traffic line card 612 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 622. Also, the traffic line cards 612 may communicate with one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet, through network adapters 620. As shown, the network adapter 620 communicates with other modules of the traffic line card 612 over the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the traffic line cards 612, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 616 executes various functional applications and data processing, for example, implements the data transmission method provided by the embodiments of the present application by running at least one of the other programs among the plurality of programs stored in the system memory 628.
Example seven
The seventh embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program (or referred to as computer executable instructions), which when executed by a processor, is configured to perform a data transmission method provided by the embodiments of the present application, and is applied to a control chip, and includes: acquiring board card data of a board card of the switch; generating a control instruction according to the board data; and sending a control instruction to the switching chip so that the switching chip can control data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
The seventh embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program (or referred to as computer executable instructions), which when executed by a processor, is configured to perform a data transmission method provided by the embodiments of the present application, and is applied to a switch chip, and includes: acquiring a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card; and controlling data transmission between the front end interface and the rear end interface of the business line card according to the control instruction.
Any combination of one or more computer readable media may be employed as the computer storage media of the embodiments herein. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, the scope of which is defined by the scope of the appended claims.

Claims (10)

1. A data transmission method, applied to a control chip, comprising:
acquiring board card data of a board card of the switch;
generating a control instruction according to the board card data; the control instruction is used for adjusting data transmission between the front end interface and the rear end interface;
the control instruction is sent to the exchange chip, so that the exchange chip controls data transmission between the front end interface and the rear end interface of the business line card according to the control instruction;
and controlling data transmission between the front end interface and the rear end interface of the service line card according to the control instruction, wherein the control instruction comprises the following steps: according to the control instruction, selecting a source interface and a target interface in a data transmission process from all front-end interfaces and rear-end interfaces of the service line card; data transmission is carried out between the source interface and the target interface; the front end interface is an interface for connecting the service line card with external equipment, and the rear end interface is a connection interface between the service line card and the switch board card.
2. The method of claim 1, wherein the generating control instructions from the board data comprises:
converting the board card data from an Ethernet form to a high-speed serial port form so as to update the board card data;
and generating the control instruction according to the updated board card data.
3. The method according to claim 1 or 2, wherein after said sending of said control instruction to the switching chip, the method further comprises:
acquiring a working state signal of an exchange chip;
and judging whether data transmission between the front end interface and the rear end interface is abnormal or not according to the working state signal.
4. A method according to claim 3, wherein said determining whether data transmission between the front-end interface and the back-end interface is abnormal according to the operation state signal comprises:
determining whether the working state signal is matched with the control instruction;
and judging whether the data transmission between the front end interface and the rear end interface is abnormal or not according to the matching result.
5. A data transmission method, applied to a switching chip, comprising:
acquiring a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card; the control instruction is used for adjusting data transmission between the front end interface and the rear end interface;
according to the control instruction, controlling data transmission between a front end interface and a rear end interface of the business line card;
and controlling data transmission between the front end interface and the rear end interface of the service line card according to the control instruction, wherein the control instruction comprises the following steps:
according to the control instruction, selecting a source interface and a target interface in a data transmission process from all front-end interfaces and rear-end interfaces of the service line card;
data transmission is carried out between the source interface and the target interface; the front end interface is an interface for connecting the service line card with external equipment, and the rear end interface is a connection interface between the service line card and the switch board card.
6. The method of claim 5, wherein after controlling data transmission between the front-end interface and the back-end interface of the service line card according to the control instruction, the method further comprises:
and sending a self working state signal to the control chip so that the control chip judges whether data transmission between the front end interface and the rear end interface is abnormal or not according to the working state signal.
7. A data transmission device, characterized by being applied to a control chip, comprising:
the board card data acquisition module is used for acquiring board card data of the board card of the switch;
the control instruction generation module is used for generating a control instruction according to the board card data; the control instruction is used for adjusting data transmission between the front end interface and the rear end interface;
the control instruction sending module is used for sending the control instruction to the switching chip so that the switching chip can control data transmission between the front end interface and the rear end interface of the business line card according to the control instruction;
the control instruction sending module is further used for selecting a source interface and a target interface in a data transmission process from all front-end interfaces and rear-end interfaces of the service line card according to the control instruction; data transmission is carried out between the source interface and the target interface; the front end interface is an interface for connecting the service line card with external equipment, and the rear end interface is a connection interface between the service line card and the switch board card.
8. A data transmission device, applied to a switching chip, comprising:
the control instruction acquisition module is used for acquiring a control instruction; the control instruction is generated by the control chip according to the board card data of the switch board card; the control instruction is used for adjusting data transmission between the front end interface and the rear end interface;
the data transmission module is used for controlling data transmission between the front end interface and the rear end interface of the business line card according to the control instruction;
the data transmission module is further used for selecting a source interface and a target interface in a data transmission process from all front-end interfaces and rear-end interfaces of the service line card according to the control instruction; data transmission is carried out between the source interface and the target interface; the front end interface is an interface for connecting the service line card with external equipment, and the rear end interface is a connection interface between the service line card and the switch board card.
9. A service line card, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the data transmission method of any of claims 1-4 and/or the data transmission method of any of claims 5-6.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data transmission method according to any one of claims 1-4 and/or implements a data transmission method according to any one of claims 5-6.
CN202210266242.XA 2022-03-17 2022-03-17 Data transmission method, device, service line card and storage medium Active CN114629860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210266242.XA CN114629860B (en) 2022-03-17 2022-03-17 Data transmission method, device, service line card and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210266242.XA CN114629860B (en) 2022-03-17 2022-03-17 Data transmission method, device, service line card and storage medium

Publications (2)

Publication Number Publication Date
CN114629860A CN114629860A (en) 2022-06-14
CN114629860B true CN114629860B (en) 2024-01-30

Family

ID=81902375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210266242.XA Active CN114629860B (en) 2022-03-17 2022-03-17 Data transmission method, device, service line card and storage medium

Country Status (1)

Country Link
CN (1) CN114629860B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202085181U (en) * 2011-01-28 2011-12-21 南京宏晶微电子科技有限公司 Intelligent television router
CN103188173A (en) * 2011-12-28 2013-07-03 迈普通信技术股份有限公司 Switch equipment
WO2013107144A1 (en) * 2012-01-21 2013-07-25 华为技术有限公司 Switch chip port management method, main control board, switch board, and system
EP2887596A1 (en) * 2013-12-20 2015-06-24 Huawei Technologies Co., Ltd. Network device and information transmission method
CN106330782A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Port capacity distribution method and device, and switch service board
CN109614354A (en) * 2018-12-13 2019-04-12 锐捷网络股份有限公司 Interface assignment method, board, equipment and storage medium
WO2020181761A1 (en) * 2019-03-11 2020-09-17 江苏君英天达人工智能研究院有限公司 Sdn enhanced path allocation device and method employing bin-packing technique
CN112491700A (en) * 2020-12-14 2021-03-12 成都颜创启新信息技术有限公司 Network path adjusting method, system, device, electronic equipment and storage medium
CN112969202A (en) * 2021-03-15 2021-06-15 北京东土军悦科技有限公司 Network parameter adjusting method and device, electronic equipment and storage medium
CN112995261A (en) * 2019-12-17 2021-06-18 中兴通讯股份有限公司 Configuration method and device of service table, network equipment and storage medium
CN113691742A (en) * 2021-08-20 2021-11-23 杭州海康威视数字技术股份有限公司 Video processing equipment, video data processing method and mosaic control system
CN113726631A (en) * 2021-07-21 2021-11-30 中盈优创资讯科技有限公司 Static IP (Internet protocol) government-enterprise user resource business path auditing method and device
CN215576217U (en) * 2021-08-31 2022-01-18 南京奥通智能科技有限公司 Process layer electrical measurement and control device based on Ethernet switch
CN216057336U (en) * 2021-11-11 2022-03-15 天津迦堂科技发展有限公司 Photoelectric hybrid network and distribution safety adjustable switch

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105676986B (en) * 2014-11-20 2019-01-22 鸿富锦精密工业(武汉)有限公司 Electronic equipment interfaces switching system
US11736195B2 (en) * 2019-04-23 2023-08-22 Ciena Corporation Universal sub slot architecture for networking modules
US11079559B2 (en) * 2019-04-23 2021-08-03 Ciena Corporation Universal sub slot architecture for networking modules

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202085181U (en) * 2011-01-28 2011-12-21 南京宏晶微电子科技有限公司 Intelligent television router
CN103188173A (en) * 2011-12-28 2013-07-03 迈普通信技术股份有限公司 Switch equipment
WO2013107144A1 (en) * 2012-01-21 2013-07-25 华为技术有限公司 Switch chip port management method, main control board, switch board, and system
EP2887596A1 (en) * 2013-12-20 2015-06-24 Huawei Technologies Co., Ltd. Network device and information transmission method
CN106330782A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Port capacity distribution method and device, and switch service board
CN109614354A (en) * 2018-12-13 2019-04-12 锐捷网络股份有限公司 Interface assignment method, board, equipment and storage medium
WO2020181761A1 (en) * 2019-03-11 2020-09-17 江苏君英天达人工智能研究院有限公司 Sdn enhanced path allocation device and method employing bin-packing technique
CN112995261A (en) * 2019-12-17 2021-06-18 中兴通讯股份有限公司 Configuration method and device of service table, network equipment and storage medium
CN112491700A (en) * 2020-12-14 2021-03-12 成都颜创启新信息技术有限公司 Network path adjusting method, system, device, electronic equipment and storage medium
CN112969202A (en) * 2021-03-15 2021-06-15 北京东土军悦科技有限公司 Network parameter adjusting method and device, electronic equipment and storage medium
CN113726631A (en) * 2021-07-21 2021-11-30 中盈优创资讯科技有限公司 Static IP (Internet protocol) government-enterprise user resource business path auditing method and device
CN113691742A (en) * 2021-08-20 2021-11-23 杭州海康威视数字技术股份有限公司 Video processing equipment, video data processing method and mosaic control system
CN215576217U (en) * 2021-08-31 2022-01-18 南京奥通智能科技有限公司 Process layer electrical measurement and control device based on Ethernet switch
CN216057336U (en) * 2021-11-11 2022-03-15 天津迦堂科技发展有限公司 Photoelectric hybrid network and distribution safety adjustable switch

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
A switch agent for wireless sensor nodes with dual interfaces: Implementation and evaluation;Zheng, Tao;Radhakrishnan, Sridhar;Sarangan, Venkatesh;Tsinghua Science and Technology;第17卷(第5期);全文 *
Choosing the Right Ethernet Switching Chip;Louis Pengue;Electronic Products;全文 *
Saranyan Vijayaraghavan;David Écija;Willi Auwärter;Sushobhan Joshi;Knud Seufert;Ari P. Seitsonen;Kentaro Tashiro;Johannes V. Barth.Selective Supramolecular Fullerene–Porphyrin Interactions and Switching in Surface-Confined C60–Ce(TPP)2 Dyads.Nano Letters.2012,第12卷(第8期),全文. *
SDN交换机及其星载交换的实现方案初探;陈果;徐展琦;杨帆;冯淼淼;;无线电通信技术(第06期);全文 *
Switched Interconnects Can Solve Complex Data Flows.;Product Design & Development;第60卷(第5期);全文 *
光纤通道交换机软件系统的设计;王林, 罗志祥, 张健, 刘文琮;光通信技术(第08期);全文 *
基于UX8交换芯片的机群互连网络设计;安学军;张佩珩;高文学;吴冬冬;微电子学与计算机(第007期);全文 *
基于资源预算的ATM交换控制芯片设计;金轶丰;於健;;计算机工程(第13期);全文 *
路由器接口管理软件设计的几点探讨;余鹏;;科技风(第21期);全文 *
面向下一代网络的网关接口芯片设计与实现;仲智刚;郁正庆;万能;冯根宝;;电子设计应用(第01期);全文 *

Also Published As

Publication number Publication date
CN114629860A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
US10210121B2 (en) System for switching between a single node PCIe mode and a multi-node PCIe mode
US20110184965A1 (en) Identifying Devices in a Topology of Devices for Audio/Video Streaming
CN111432000A (en) Control method, device, equipment and storage medium of Internet of things equipment
CN111049765B (en) Aggregation port switching method, device, chip, switch and storage medium
US20230305980A1 (en) Flexibly configured multi-computing-node server mainboard structure and program
US20120297100A1 (en) Storage system and data transmission method
CN113194162B (en) Data transmission method, device, electronic equipment and medium
CN112286857A (en) Server I2C bus allocation method and system supporting multi-backplane cascade
KR20210000648A (en) Method, apparatus, electronic device and computer readable storage medium for supporting communication among chips
CN109669787B (en) Data transmission method and device, storage medium and electronic equipment
US7669190B2 (en) Method and system for efficiently recording processor events in host bus adapters
CN114356671A (en) Board card debugging device, system and method
CN114629860B (en) Data transmission method, device, service line card and storage medium
CN116737624B (en) High-performance data access device
CN109151033B (en) Communication method and device based on distributed system, electronic equipment and storage medium
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
US20060104206A1 (en) Apparatus, system, and method for detecting a fibre channel miscabling event
CN115168141A (en) Optical interface management system, method, device, programmable logic device and storage medium
CN109582620B (en) UART interface conversion device and method
CN109002404B (en) PCIE equipment and monitoring method thereof
US5968187A (en) Computer system and method including a portable portion that has a capability to diagnose and perform analysis for a stationary position and for a portable portion
CN113434324A (en) Abnormal information acquisition method, system, device and storage medium
CN101582055A (en) Serial port takeover method and device
CN117632848B (en) Processor platform, circuit board and server
CN216014148U (en) Server and server backboard

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