CN109005080B - A distributed packet forwarding implementation method, implementation system and automated testing method - Google Patents
A distributed packet forwarding implementation method, implementation system and automated testing method Download PDFInfo
- Publication number
- CN109005080B CN109005080B CN201810663825.XA CN201810663825A CN109005080B CN 109005080 B CN109005080 B CN 109005080B CN 201810663825 A CN201810663825 A CN 201810663825A CN 109005080 B CN109005080 B CN 109005080B
- Authority
- CN
- China
- Prior art keywords
- message
- mac
- linux
- vfp
- protocol stack
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术中自动化回归测试领域,具体涉及一种分布式包转发实现方法、实现系统及自动化测试方法。The invention relates to the field of automated regression testing in communication technology, in particular to a distributed packet forwarding implementation method, an implementation system and an automated testing method.
背景技术Background technique
目前,借助于通用测试平台,可快捷方便实现对通信设备的自动化回归测试。但是由于通信设备位置固定,一般需要安装在实验室的机架上,组网不够灵活,需要测试人员手动跳纤来改变网络拓扑,降低了测试效率。尤其是在搭建大型测试环境时,采用真实的通信设备不仅硬件成本价格高昂,还占用大量试验场地,导致测试成本较高,需要耗费大量人力物力。尤其是在研发阶段,需要大量采用通信设备进行测试,不但需要较高的研发成本,也相对的降低了研发效率。At present, with the help of a general test platform, automated regression testing of communication equipment can be quickly and easily realized. However, due to the fixed location of communication equipment, it generally needs to be installed on the rack of the laboratory, and the networking is not flexible enough. Testers need to manually jump the fiber to change the network topology, which reduces the test efficiency. Especially when building a large-scale test environment, the use of real communication equipment not only has high hardware costs, but also occupies a large number of test sites, resulting in high test costs and a lot of manpower and material resources. Especially in the research and development stage, it is necessary to use a large number of communication equipment for testing, which not only requires higher research and development costs, but also relatively reduces the research and development efficiency.
发明内容SUMMARY OF THE INVENTION
针对现有技术中存在的缺陷,本发明的目的在于提供一种分布式包转发实现方法、实现系统及自动化测试方法,通过系统虚拟通信设备接入测试平台,降低测试成本,通过调整配置实现网络拓扑的快速调整,提高测试效率,进而提高研发效率。In view of the defects in the prior art, the purpose of the present invention is to provide a distributed packet forwarding implementation method, implementation system and automated testing method, which can access the test platform through the system virtual communication device, reduce the test cost, and realize the network by adjusting the configuration. The rapid adjustment of topology improves test efficiency, thereby improving R&D efficiency.
为达到以上目的,本发明采取一种基于Linux的分布式包转发实现方法,包括步骤:In order to achieve the above object, the present invention adopts a Linux-based distributed packet forwarding implementation method, comprising the steps:
在Linux环境下设置多个虚拟转发VFP单板,所述VFP单板和Linux的通用协议栈均通过内部接口连接虚拟交换机;A plurality of virtual forwarding VFP boards are set in the Linux environment, and the VFP boards and the general protocol stack of Linux are connected to the virtual switch through internal interfaces;
所述通用协议栈和/或VFP单板在待发报文上增加控制性报文头后发送到虚拟交换机,所述控制性报文头包括源、目的MAC地址;The general protocol stack and/or the VFP single board adds a control header to the to-be-sent message and sends it to the virtual switch, where the control header includes the source and destination MAC addresses;
同时或之后,所述通用协议栈和/或VFP单板接收源、目的MAC地址匹配的报文,剥掉所述报文头后转发。At the same time or afterward, the general protocol stack and/or the VFP single board receives the packet whose source and destination MAC addresses match, strips the packet header, and forwards the packet.
在上述技术方案的基础上,所述VFP单板和Linux的通用协议栈均通过内部接口连接虚拟交换机之前,还包括步骤:通过管理终端配置所述通用协议栈的管理端口与Linux管理网卡的映射关系;另外,创建一个管理模块,配置所述VFP单板的业务端口与业务网卡的映射关系。On the basis of the above technical solution, before the VFP single board and the Linux general protocol stack are connected to the virtual switch through the internal interface, the step further includes the step of configuring the mapping between the management port of the general protocol stack and the Linux management network card through the management terminal In addition, a management module is created to configure the mapping relationship between the service port of the VFP board and the service network card.
在上述技术方案的基础上,所述Linux环境为主机环境时,所述Linux管理网卡为Linux主机网卡,配置所有VFP单板上业务端口数量的总和等于所述Linux主机网卡的数量。Based on the above technical solutions, when the Linux environment is a host environment, the Linux management network card is a Linux host network card, and the sum of the number of service ports on all VFP boards is configured to be equal to the number of the Linux host network cards.
在上述技术方案的基础上,所述Linux环境为虚拟机环境时,所述Linux管理网卡为Linux虚拟机网卡,将Linux虚拟机网卡与Linux主机网卡采用桥接方式捆绑,并根据所有VFP单板上业务端口数量需求创建对应业务网卡。On the basis of the above technical solution, when the Linux environment is a virtual machine environment, the Linux management network card is a Linux virtual machine network card, and the Linux virtual machine network card and the Linux host network card are bound in a bridging manner. Create a corresponding service NIC according to the number of service ports.
在上述技术方案的基础上,所述通用协议栈包括第一报文封装标记组件MAC_IN_MAC,所述VFP单板包括非阻塞输入输出组件NIO和第二报文封装标记组件MAC_IN_MAC,所述NIO设有至少一个业务端口,所述第一MAC_IN_MAC和第二MAC_IN_MAC设有所述内部接口。Based on the above technical solutions, the general protocol stack includes a first packet encapsulation marking component MAC_IN_MAC, the VFP single board includes a non-blocking input and output component NIO and a second packet encapsulation marking component MAC_IN_MAC, the NIO is provided with At least one service port, the first MAC_IN_MAC and the second MAC_IN_MAC are provided with the internal interface.
在上述技术方案的基础上,所述通用协议栈对报文的处理包括:On the basis of the above technical solution, the processing of the message by the general protocol stack includes:
通用协议栈根据管理端口收到的数据生成配置报文,或自身生成状态报文,通过第一MAC_IN_MAC封装控制性报文头,并通过内部接口发送到所述虚拟交换机;The general protocol stack generates a configuration packet according to the data received by the management port, or generates a status packet by itself, encapsulates a control packet header through the first MAC_IN_MAC, and sends it to the virtual switch through an internal interface;
同时或之后,通用协议栈监听内部接口上的报文,若监听到源、目的MAC地址与通用协议栈匹配的报文,则接收报文并剥离报文头后,发送给通用协议栈的对应模块处理。At the same time or later, the general protocol stack monitors the packets on the internal interface. If it monitors the packets whose source and destination MAC addresses match the general protocol stack, it receives the packets and strips the packet headers before sending them to the corresponding interface of the general protocol stack. module processing.
在上述技术方案的基础上,所述VFP单板对报文的处理包括:On the basis of the above technical solution, the processing of the message by the VFP board includes:
VFP单板由业务端口接收业务网卡的业务报文或信令报文,或者VFP单板自身产生告警报文,将所述报文通过第二MAC_IN_MAC封装控制性报文头,通过内部接口发送到所述虚拟交换机;The VFP board receives the service packets or signaling packets of the service network card through the service port, or the VFP board generates an alarm packet by itself, encapsulates the control packet through the second MAC_IN_MAC, and sends the packet to the internal interface through the internal interface. the virtual switch;
同时或之后,VFP单板监听内部接口上的报文,若监听到源、目的MAC地址与VFP单板匹配的报文,则接收对应报文并剥离报文头,发送给所述NIO进行下一步处理。At the same time or later, the VFP board monitors the packets on the internal interface. If it monitors the packets whose source and destination MAC addresses match the VFP board, it receives the corresponding packets, strips the packet headers, and sends them to the NIO for downlinking. one-step processing.
在上述技术方案的基础上,所述控制性报文头为扩展以太报文,还包括vlan、目的槽位、端口、端口类型以及速率;所述控制性报文头中源、目的MAC地址根据所述协议栈和VFP单板所在槽位调整。Based on the above technical solution, the control packet header is an extended Ethernet packet, and further includes vlan, destination slot, port, port type and rate; the source and destination MAC addresses in the control packet header are based on The slot where the protocol stack and the VFP board are located is adjusted.
本发明提供一种基于Linux的分布式包转发实现系统,运行于linux环境下,包括:The invention provides a Linux-based distributed packet forwarding implementation system, which runs in the Linux environment, including:
通用协议栈,其设有管理端口和第一报文封装标记组件MAC_IN_MAC;所述通用协议栈根据管理端口接收的数据生成配置报文,所述第一MAC_IN_MAC用于为通用协议栈生成的状态报文或所述配置报文添加控制性报文头;A general protocol stack, which is provided with a management port and a first message encapsulation marking component MAC_IN_MAC; the general protocol stack generates a configuration message according to data received by the management port, and the first MAC_IN_MAC is used for the status report generated by the general protocol stack add a control header to the message or the configuration message;
至少一个虚拟转发过程VFP单板,其包括非阻塞输入输出组件NIO和第二报文封装标记组件MAC_IN_MAC,所述NIO设有至少一个业务端口;所述第二MAC_IN_MAC用于为来自业务端口的业务报文或信令报文,以及自身生成的告警报文添加控制性报文头;At least one virtual forwarding process VFP single board, which includes a non-blocking input and output component NIO and a second packet encapsulation marking component MAC_IN_MAC, the NIO is provided with at least one service port; the second MAC_IN_MAC is used for services from the service port. Add control headers to messages or signaling messages, as well as self-generated alarm messages;
虚拟交换机,其通过内部接口与第一MAC_IN_MAC和第二MAC_IN_MAC通信;a virtual switch that communicates with the first MAC_IN_MAC and the second MAC_IN_MAC through an internal interface;
其中,所述控制性报文头包括源、目的MAC地址;所述第一MAC_IN_MAC还用于接收源、目的MAC地址匹配的报文,剥掉报文头发送给所述协议栈对应模块;所述第二MAC_IN_MAC还用于接收源、目的MAC地址匹配的报文,剥掉报文头发送给NIO进行下一步处理。Wherein, the control packet header includes source and destination MAC addresses; the first MAC_IN_MAC is also used to receive a packet matching the source and destination MAC addresses, strip off the packet header and send it to the corresponding module of the protocol stack; The second MAC_IN_MAC is also used to receive a packet whose source and destination MAC addresses match, and strip off the packet header and send it to NIO for further processing.
本发明提供一种自动化测试方法,基于通用测试平台,将所述分布式包转发实现系统作为一台虚拟通信设备接入所述通用测试平台,且虚拟通信设备的数量根据需求设置。The present invention provides an automated testing method. Based on a general testing platform, the distributed packet forwarding implementation system is connected to the general testing platform as a virtual communication device, and the number of virtual communication devices is set according to requirements.
本发明的有益效果在于:The beneficial effects of the present invention are:
1、通过基于Linux的分布式包转发方法和系统来虚拟通信设备,在开发调试环境下,省去真实通信设备的物理组网环节,提升研发效率,缩短迭代周期。1. Virtual communication devices are created through the Linux-based distributed packet forwarding method and system. In the development and debugging environment, the physical networking of real communication devices is omitted, the R&D efficiency is improved, and the iteration cycle is shortened.
2、通过基于Linux的分布式包转发方法和系统,代替真实通信设备接入通用测试平台,有效减少自动化测试过程中的硬件设备及维护,节约人工成本和时间成本。同时,还能减少机房和通信设备的采购,减少能耗,降低设备折旧费用。2. Through the Linux-based distributed packet forwarding method and system, it replaces the real communication equipment to access the general test platform, which effectively reduces the hardware equipment and maintenance in the automated testing process, and saves labor costs and time costs. At the same time, it can also reduce the purchase of computer rooms and communication equipment, reduce energy consumption, and reduce equipment depreciation costs.
3、本发明的方法和系统对外以软件形式发布,便于获取,可以运用在培训和认证上,使用广泛。3. The method and system of the present invention are released externally in the form of software, which is easy to obtain, can be used in training and certification, and is widely used.
附图说明Description of drawings
图1为本发明第四实施例基于Linux的分布式包转发实现系统示意图。FIG. 1 is a schematic diagram of a system for implementing distributed packet forwarding based on Linux according to a fourth embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图及实施例对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
第一实施例first embodiment
本发明基于Linux的分布式包转发实现方法,运行于Linux环境下,包括步骤:The present invention is based on a Linux-based distributed packet forwarding implementation method, which runs under the Linux environment and includes the steps:
启动linux系统,设置多个VFP(Virtual Forwarding Process,虚拟转发过程)单板,VFP单板和Linux的通用协议栈均通过内部接口连接虚拟交换机。其中,虚拟交换机作为虚拟网桥,承载VFP单板和通用协议栈所有的通信报文,实现报文的转发,VFP单板和通用协议栈的交互过程可以通过在虚拟交换机上抓包观察、Start the Linux system, and set up multiple VFP (Virtual Forwarding Process, virtual forwarding process) boards. Both the VFP board and the Linux general protocol stack are connected to the virtual switch through internal interfaces. Among them, the virtual switch, as a virtual bridge, carries all the communication packets of the VFP board and the general protocol stack, and realizes the forwarding of the packets. The interaction process between the VFP board and the general protocol stack can be observed by capturing packets on the virtual switch.
通用协议栈和/或VFP单板在待发报文上增加控制性报文头后发送到虚拟交换机,所述控制性报文头包括源、目的MAC地址。The general protocol stack and/or the VFP board add a control packet header to the to-be-sent packet and send it to the virtual switch, where the control packet header includes the source and destination MAC addresses.
同时或之后,通用协议栈和/或VFP单板监听内部接口上的报文,并接收源、目的MAC地址匹配的报文,剥掉所述报文头后转发。At the same time or afterward, the general protocol stack and/or the VFP board monitor the packets on the internal interface, receive packets with matching source and destination MAC addresses, strip the packet headers, and forward them.
上述步骤中,控制性报文头为扩展以太报文,还可以包括vlan、目的槽位、端口、端口类型以及速率,作为转发时进行匹配的的辅助确认信息。控制性报文头中源、目的MAC地址根据协议栈和VFP单板所在槽位进行调整,确保协议栈和VFP单板上业务端口的对应关系。In the above steps, the control packet header is an extended Ethernet packet, and may also include vlan, destination slot, port, port type and rate, as auxiliary confirmation information for matching during forwarding. The source and destination MAC addresses in the control packet header are adjusted according to the protocol stack and the slot where the VFP board is located to ensure the correspondence between the protocol stack and the service port on the VFP board.
第二实施例Second Embodiment
基于上述实施例,本实施例中,Linux环境为主机环境,那么Linux管理网卡为Linux主机网卡,主机网卡决定所有VFP单板上业务端口的总数量,即,所有VFP单板上业务端口数量的总和等于所述Linux主机网卡的数量。Based on the above embodiment, in this embodiment, the Linux environment is the host environment, then the Linux management network card is the Linux host network card, and the host network card determines the total number of service ports on all VFP boards, that is, the total number of service ports on all VFP boards. The sum is equal to the number of NICs in the Linux host.
通过管理终端配置通用协议栈的管理端口与Linux管理网卡的映射关系,其中,管理终端可以是个人电脑、网管服务器或终端管理工具,可以通过telnet或ssh进行管理。Configure the mapping relationship between the management port of the general protocol stack and the Linux management network card through the management terminal, where the management terminal can be a personal computer, a network management server or a terminal management tool, and can be managed through telnet or ssh.
另外,在Linux主机环境下,创建一个管理模块,配置VFP单板的业务端口与业务网卡的映射关系。该管理模块还负责管理协议栈和VFP单板的内部接口连接关系,维护所有MAC地址和系统网卡(包括业务网卡和管理网卡)的映射关系。In addition, in the Linux host environment, create a management module and configure the mapping relationship between the service port of the VFP board and the service network card. The management module is also responsible for managing the connection relationship between the protocol stack and the internal interface of the VFP board, and maintaining the mapping relationship between all MAC addresses and system network cards (including service network cards and management network cards).
每个业务端口对应一个业务网卡,业务网卡可以是虚拟网卡。每个VFP单板的业务端口的MAC地址相互独立,所述报文严格识别MAC地址进行转发处理。Each service port corresponds to a service network card, and the service network card may be a virtual network card. The MAC addresses of the service ports of each VFP board are independent of each other, and the packets are forwarded by strictly identifying the MAC addresses.
第三实施例Third Embodiment
基于第一实施例,本实施例中,Linux环境为虚拟机环境,即Linux主机下挂至少一个Linux虚拟机。Linux管理网卡为Linux虚拟机网卡,将Linux虚拟机网卡与Linux主机网卡采用桥接方式捆绑,并根据所有VFP单板上业务端口数量需求创建对应业务网卡。通过管理终端配置通用协议栈的管理端口与Linux管理网卡的映射关系,其中,管理终端可以是个人电脑、网管服务器或终端管理工具,可以通过telnet或ssh进行管理。Based on the first embodiment, in this embodiment, the Linux environment is a virtual machine environment, that is, at least one Linux virtual machine is attached to the Linux host. The Linux management network card is a Linux virtual machine network card. The Linux virtual machine network card and the Linux host network card are bundled in a bridge mode, and corresponding service network cards are created according to the number of service ports on all VFP boards. Configure the mapping relationship between the management port of the general protocol stack and the Linux management network card through the management terminal, where the management terminal can be a personal computer, a network management server or a terminal management tool, and can be managed through telnet or ssh.
另外,创建一个管理模块,配置所述VFP单板的业务端口与业务网卡的映射关系。In addition, a management module is created to configure the mapping relationship between the service port of the VFP board and the service network card.
每个业务端口对应一个业务网卡,业务网卡可以是虚拟网卡。每个VFP单板的业务端口的MAC地址相互独立,所述报文严格识别MAC地址进行转发处理。Each service port corresponds to a service network card, and the service network card may be a virtual network card. The MAC addresses of the service ports of each VFP board are independent of each other, and the packets are forwarded by strictly identifying the MAC addresses.
第四实施例Fourth Embodiment
本发明一种基于Linux的分布式包转发实现系统,该系统运行于linux环境下,包括通用协议栈、虚拟交换机、管理模块和至少一个VFP单板,如图1所示,本实施例中VFP单板为3个。The present invention is a Linux-based distributed packet forwarding implementation system. The system runs in a Linux environment and includes a general protocol stack, a virtual switch, a management module and at least one VFP single board. As shown in FIG. 1 , in this embodiment, the VFP There are 3 single boards.
其中,通用协议栈负责控制层面的信令和业务处理。具体的,通用协议栈用于根据管理端口接收的数据生成配置报文,还用于生成状态报文。通用协议栈设有管理端口和第一报文封装标记组件MAC_IN_MAC,用于配置报文或状态报文添加控制性报文头。Among them, the general protocol stack is responsible for signaling and service processing at the control plane. Specifically, the general protocol stack is used to generate a configuration message according to the data received by the management port, and is also used to generate a status message. The general protocol stack is provided with a management port and a first message encapsulation marking component MAC_IN_MAC, which is used to add a control header to a configuration message or a status message.
VFP单板包括非阻塞输入输出组件NIO和第二报文封装标记组件MAC_IN_MAC,NIO设有至少一个业务端口,分别对应业务网卡。VFP单板既可以生成告警报文,也可以从自业务端口接收业务报文或信令报文,第二MAC_IN_MAC用于为业务报文、信令报文和告警报文添加控制性报文头。The VFP single board includes a non-blocking input and output component NIO and a second packet encapsulation marking component MAC_IN_MAC. The NIO is provided with at least one service port, which respectively corresponds to a service network card. The VFP board can not only generate alarm packets, but also receive service packets or signaling packets from its own service port. The second MAC_IN_MAC is used to add control headers to service packets, signaling packets, and alarm packets. .
虚拟交换机用于虚拟网桥,与第一MAC_IN_MAC和第二MAC_IN_MAC通过内部接口通信,负责通用协议栈和VFP单板间内部接口互联和报文转发。The virtual switch is used for the virtual bridge, communicates with the first MAC_IN_MAC and the second MAC_IN_MAC through the internal interface, and is responsible for the interconnection and packet forwarding of the internal interface between the general protocol stack and the VFP board.
管理模块,负责管理通用协议栈和VFP单板的内部接口连接关系,维护所有业务端口的MAC地址和业务板卡的映射关系。The management module is responsible for managing the connection relationship between the general protocol stack and the internal interface of the VFP board, and maintaining the mapping relationship between the MAC addresses of all service ports and the service boards.
其中,内部通信口可划分多个VLAN,以实现独立通道互不影响,例如信令通道VLAN1只处理携带控制性报文头的信令报文,配置通道VLAN2承载IP转发路径,用于盘间的配置和告警信息传递,业务通道VLAN3用于本节点内盘间互转等。虚拟交换机承载所有内部接接口通信的报文,报文携带控制性报文头,可以通过抓包工具在线观测报文交互过程。Among them, the internal communication port can be divided into multiple VLANs, so that independent channels do not affect each other. For example, the signaling channel VLAN1 only processes the signaling packets carrying the control header, and the channel VLAN2 is configured to carry the IP forwarding path, which is used for inter-disk configuration and alarm information transmission, service channel VLAN3 is used for inter-disk transfer within the node, etc. The virtual switch carries all the communication packets of the internal interface. The packets carry control headers. You can use the packet capture tool to observe the packet interaction process online.
控制性报文头包括源、目的MAC地址。第一MAC_IN_MAC还用于接收源、目的MAC地址匹配的报文,剥掉报文头发送给所述协议栈对应模块;第二MAC_IN_MAC还用于接收源、目的MAC地址匹配的报文,剥掉报文头发送给NIO进行下一步处理。The control packet header includes the source and destination MAC addresses. The first MAC_IN_MAC is also used to receive the message whose source and destination MAC addresses match, and strip the header of the message and send it to the corresponding module of the protocol stack; the second MAC_IN_MAC is also used to receive the message whose source and destination MAC addresses match, and strip it off. The packet header is sent to NIO for further processing.
第五实施例Fifth Embodiment
在第四实施例的基础上,通用协议栈对报文的处理包括:On the basis of the fourth embodiment, the processing of the message by the general protocol stack includes:
通用协议栈根据管理端口收到的数据生成配置报文,通用协议栈还可以生成状态报文,这两种报文通过第一MAC_IN_MAC被封装控制性报文头,然后通过内部接口发送到所述虚拟交换机。The general protocol stack generates configuration packets according to the data received by the management port, and the general protocol stack can also generate status packets. virtual switch.
同时或之后,通用协议栈监听内部接口上的报文,可以是业务报文或信令报文,如果监听到源、目的MAC地址与通用协议栈匹配的报文,则接收该报文,剥离报文头后,发送给通用协议栈的对应模块处理。At the same time or later, the general protocol stack monitors the packets on the internal interface, which can be service packets or signaling packets. If a packet whose source and destination MAC addresses match the general protocol stack is monitored, the packet is received and stripped. After the packet header, it is sent to the corresponding module of the general protocol stack for processing.
第六实施例Sixth Embodiment
在第五实施例的基础上,VFP单板对报文的处理包括:VFP单板由业务端口接收业务网卡的业务报文或信令报文,或者VFP单板自身产生告警报文,这些报文通过第二MAC_IN_MAC封装控制性报文头,再由内部接口发送到交换机。On the basis of the fifth embodiment, the processing of the message by the VFP board includes: the VFP board receives the service message or signaling message of the service network card through the service port, or the VFP board generates an alarm message by itself. The message is encapsulated by the second MAC_IN_MAC control header, and then sent to the switch by the internal interface.
同时或之后,VFP单板监听内部接口上的报文,可以是配置报文或状态报文,也可以是来自其他VFP单板的业务报文、信令报文或告警报文。若监听到源、目的MAC地址与VFP单板匹配的报文,则接收对应报文并剥离报文头,发送给所述NIO进行下一步处理。由此,可以实现VFP单板和通用协议栈之间的报文转发,也可以实现不同VFP单板之间的报文转发。At the same time or later, the VFP board monitors the packets on the internal interface, which may be configuration packets or status packets, or service packets, signaling packets, or alarm packets from other VFP boards. If a packet whose source and destination MAC addresses match the VFP board is monitored, the corresponding packet is received, the packet header is stripped, and sent to the NIO for further processing. In this way, packet forwarding between the VFP board and the general protocol stack can be implemented, and packet forwarding between different VFP boards can also be implemented.
第七实施例Seventh Embodiment
本实施例提供一种自动化测试方法,基于通用测试平台,将第四、五或六实施例的基于Linux的分布式包转发实现系统,作为一台被测通信设备接入所述通用测试平台,在自动化测试过程中,虚拟通信设备的数量可以根据需求设置。通过虚拟通信设备的方式,极大提高自动化验证效率,减少设备硬件资源投入,提升研发效率,缩短迭代开发周期。The present embodiment provides an automated testing method. Based on a general test platform, the Linux-based distributed packet forwarding implementation system of the fourth, fifth, or sixth embodiment is connected to the general test platform as a communication device under test, During automated testing, the number of virtual communication devices can be set as required. Through virtual communication equipment, the efficiency of automatic verification is greatly improved, the investment of equipment hardware resources is reduced, the R&D efficiency is improved, and the iterative development cycle is shortened.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、系统、和计算机程序产品来描述的。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生指定的功能的装置。The present application is described with reference to methods, systems, and computer program products according to embodiments of the present application. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device functional device.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture including the instruction means.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理。These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process.
以上仅为本发明的实施例而已,并不用于限制本发明,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均包含在申请待批的本发明的权利要求范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。The above are only examples of the present invention, and are not intended to limit the present invention. For those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can be made. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the invention are included within the scope of the claims of the present invention for which the application is pending. Contents not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810663825.XA CN109005080B (en) | 2018-06-25 | 2018-06-25 | A distributed packet forwarding implementation method, implementation system and automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810663825.XA CN109005080B (en) | 2018-06-25 | 2018-06-25 | A distributed packet forwarding implementation method, implementation system and automated testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005080A CN109005080A (en) | 2018-12-14 |
CN109005080B true CN109005080B (en) | 2020-09-01 |
Family
ID=64601585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810663825.XA Active CN109005080B (en) | 2018-06-25 | 2018-06-25 | A distributed packet forwarding implementation method, implementation system and automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005080B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683073A (en) * | 2020-05-29 | 2020-09-18 | 烽火通信科技股份有限公司 | Communication method and system for three-layer application based on MAC |
CN113660111B (en) * | 2021-07-21 | 2024-07-09 | 厦门亿联网络技术股份有限公司 | Method for testing external protocol stack of 4G Desk Phone |
CN114189484B (en) * | 2021-12-28 | 2023-10-27 | 杭州迪普科技股份有限公司 | Method and device for forwarding message internally |
CN115086216B (en) * | 2022-06-16 | 2024-05-03 | 上海寰创网络科技有限公司 | Test method and system for multiple virtual terminals |
CN118869627A (en) * | 2023-04-27 | 2024-10-29 | 华为技术有限公司 | Data processing method, device and network equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101588283A (en) * | 2009-04-22 | 2009-11-25 | 北京四方继保自动化股份有限公司 | Realization method of wide-area distributed integrated soft bus based on multi-agent technology |
CN101931584A (en) * | 2009-06-22 | 2010-12-29 | 中兴通讯股份有限公司 | Method and system supporting data forwarding between multiple protocol stacks in the same system |
US9264330B2 (en) * | 2013-10-13 | 2016-02-16 | Nicira, Inc. | Tracing host-originated logical network packets |
CN106612225A (en) * | 2016-12-12 | 2017-05-03 | 武汉烽火信息集成技术有限公司 | Openstack based agent deployment system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6907039B2 (en) * | 2002-07-20 | 2005-06-14 | Redback Networks Inc. | Method and apparatus for routing and forwarding between virtual routers within a single network element |
-
2018
- 2018-06-25 CN CN201810663825.XA patent/CN109005080B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101588283A (en) * | 2009-04-22 | 2009-11-25 | 北京四方继保自动化股份有限公司 | Realization method of wide-area distributed integrated soft bus based on multi-agent technology |
CN101931584A (en) * | 2009-06-22 | 2010-12-29 | 中兴通讯股份有限公司 | Method and system supporting data forwarding between multiple protocol stacks in the same system |
US9264330B2 (en) * | 2013-10-13 | 2016-02-16 | Nicira, Inc. | Tracing host-originated logical network packets |
CN106612225A (en) * | 2016-12-12 | 2017-05-03 | 武汉烽火信息集成技术有限公司 | Openstack based agent deployment system and method |
Also Published As
Publication number | Publication date |
---|---|
CN109005080A (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005080B (en) | A distributed packet forwarding implementation method, implementation system and automated testing method | |
US12301479B2 (en) | Managing network traffic in virtual switches based on logical port identifiers | |
CN107431642B (en) | System and method for controlling a switch to capture and monitor network traffic | |
US9325563B2 (en) | Overlay tunnel information exchange protocol | |
US8645567B2 (en) | Method and system for packet filtering for local host-management controller pass-through communication via network controller | |
US20150103679A1 (en) | Tracing Host-Originated Logical Network Packets | |
EP2544409A1 (en) | Generic monitoring packet handling mechanism for OpenFlow 1.1 | |
CN110601983A (en) | Method and system for forwarding routing without sensing source of protocol | |
JP2005006303A (en) | Virtual network address | |
EP2843906A1 (en) | Method, apparatus, and system for data transmission | |
CN103944828A (en) | Method and equipment for transmitting protocol messages | |
CN107122324B (en) | A message transmission method and device | |
CN108429652A (en) | SDN-based remote flow mirroring control method, implementation method and related equipment | |
CN113347258B (en) | Method and system for data acquisition, monitoring and analysis under cloud flow | |
CN105262638A (en) | Method for simultaneously testing plurality of electronic products | |
CN114371912A (en) | Virtual network management method of data center and data center system | |
CN105634788B (en) | Single board and single board management method and system | |
CN102231709A (en) | Control plane structure of virtual routing device and control method thereof | |
CN101453390B (en) | Test method and system for biplane double layer communication | |
CN109379239B (en) | Method and device for configuring access switch in OpenStack environment | |
CN110391961A (en) | A tunnel binding method, device and system | |
CN115002029A (en) | Traffic forwarding method, device, equipment and storage medium | |
WO2014117474A1 (en) | Routing method, system, and related device | |
CN104219240B (en) | A kind of main frame learning method and device | |
CN106506716B (en) | A kind of connection method of SDN controller in-band management and 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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240625 Address after: 430000 No. 6, High-tech Fourth Road, Donghu High-tech Development Zone, Wuhan City, Hubei Province Patentee after: FIBERHOME TELECOMMUNICATION TECHNOLOGIES Co.,Ltd. Country or region after: China Patentee after: Wuhan Changjiang Computing Technology Co.,Ltd. Address before: 430000 No. 6, High-tech Fourth Road, Donghu High-tech Development Zone, Wuhan City, Hubei Province Patentee before: FIBERHOME TELECOMMUNICATION TECHNOLOGIES Co.,Ltd. Country or region before: China |
|
TR01 | Transfer of patent right |