anastop / latte Goto Github PK
View Code? Open in Web Editor NEWLatency & packet loss measuring tool for SDN controllers
Latency & packet loss measuring tool for SDN controllers
Hi,
I found Latte very promising and would like to use it my my own project. But I have now knowledge about Go. Im wondering to ask does it support Mininet & Pox controller?
Best Regards,
I think this is just the initial steps - and I never read go before, so...
In the final section:
src := int32(tcp.SrcPort)
dst := int32(tcp.DstPort)
if dst == ofport {
packets_in[src] = time.Now().UnixNano()
}
if src == ofport {
latency := time.Now().UnixNano() - packets_in[dst]
h.Add(float64(latency / 1000000.0))
you use the switch port as an index, and match the packet_in time
to the response packet and calculate latency. So, do you assume
only one packet from the switch is being served at a time?
Or, will the match find the first packet in the packet_in list?
And what if there is no response packet from the controller (lost packet_in)?
The idea is to replace the offset arithmetic used to walk through a packet and extract specific fields, with a more structured and comprehensive approach.
That is, it would be convenient if we could convert (i.e., "deserialize", "unmarshall", "unpack", ...) a byte slice corresponding to a certain OF packet region (e.g. ofp_match
) to a well defined struct. Then accessing the desired packet fields would be as simple as accessing the corresponding struct fields.
This approach can potentially enhance code simplicity and readability, but may hurt performance, especially if the inspected packets contain many variable-sized fields that need many "jump-to-offset"-"read-length"-"jump-to-offset"-... operations.
while clone with github this type of error shows
gocode/src/github.com/google/gopacket/pcap/pcap_unix.go:486:8: error: incompatible types in assignment
p.cur = p.cur.next
gocode/src/github.com/google/gopacket/pcap/pcap_unix.go:486:8: error: incompatible types in assignment
p.cur = p.cur.next
^
gocode/src/github.com/google/gopacket/pcap/pcap_unix.go:507:33: error: incompatible type for field 1 in struct construction
return pcapAddresses{all: p.cur.addresses}
^
#4 pull request submitted.
Hi,
Wanted to know if this tool is compatible with windows platform. If yes could be please assist with steps for running it?
Specifically wanted to know what param should we pass to "-device" options as there is no such naming convention like 'eth0, lan0' in windows.
Any help would be appreciated.
Thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.